:root {
  color-scheme: light;
  --paper: #f8f4ea;
  --paper-light: #fffdf8;
  --ink: #3F382F;
  --muted: #8d8272;
  --red: #D8664A;
  --orange: #D98B34;
  --green: #8ea94b;
  --line: rgba(74, 63, 48, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(238, 154, 53, 0.09), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(142, 169, 75, 0.08), transparent 30%),
    var(--paper);
  font-family:
    "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    system-ui, sans-serif;
}

.page-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 3px,
      rgba(74, 63, 48, 0.018) 4px
    );
}

.page {
  width: min(100% - 48px, 1440px);
  min-height: 100svh;
  margin-inline: auto;
  padding: 28px 0 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

.site-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.site-mark__fruit {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 50% 50% 48% 52%;
  background: var(--red);
  box-shadow: inset -2px -2px 0 rgba(157, 51, 38, 0.18);
}

.site-mark__fruit::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 4px;
  top: -3px;
  left: 7px;
  border-radius: 80% 0 80% 0;
  background: var(--green);
  transform: rotate(-22deg);
}

.hero {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.65fr);
  align-items: center;
  gap: clamp(36px, 6vw, 104px);
}

.illustration {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(96, 81, 58, 0.1);
  border-radius: clamp(24px, 3vw, 42px);
  background: var(--paper-light);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 70px rgba(91, 72, 45, 0.1);
  transform: rotate(-0.4deg);
  animation: picture-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 70px rgba(247, 239, 220, 0.2);
}

.illustration img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.copy {
  padding-right: clamp(0px, 3vw, 40px);
  animation: copy-in 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

h1 {
  margin: 0;
  font-family:
    "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP",
    Georgia, serif;
  font-size: clamp(2.45rem, 4.7vw, 5.9rem);
  font-weight: 500;
  line-height: 1.27;
  letter-spacing: -0.055em;
}

h1 span {
  display: inline-block;
  color: var(--red);
  white-space: nowrap;
}

.note {
  margin: clamp(24px, 4vw, 44px) 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  letter-spacing: 0.08em;
}

footer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

@keyframes picture-in {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(-1deg) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-0.4deg) scale(1);
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 820px) {
  .page {
    width: min(100% - 32px, 680px);
    padding-top: 22px;
    gap: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .copy {
    width: min(100%, 520px);
    padding: 0 8px;
  }

  h1 {
    font-size: clamp(2.7rem, 12.5vw, 5rem);
  }

  footer {
    padding-inline: 8px;
  }
}

@media (max-width: 430px) {
  .page {
    width: min(100% - 22px, 680px);
    padding-bottom: 16px;
  }

  .illustration {
    border-radius: 22px;
  }

  .copy {
    padding-inline: 4px;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  footer {
    flex-wrap: wrap;
    row-gap: 4px;
    padding-inline: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .illustration,
  .copy {
    animation: none;
  }
}

/* 404 page */
.error-page {
  place-items: center;
  text-align: center;
}

.error-card {
  width: min(100%, 640px);
}

.error-card img {
  display: block;
  width: min(100%, 420px);
  margin: 0 auto 30px;
  border-radius: 28px;
  mix-blend-mode: multiply;
}

.error-card h1 {
  font-size: clamp(2.4rem, 8vw, 4.8rem);
}

.error-card p {
  color: var(--muted);
}

.home-link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 4px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--red);
}

.home-link:hover,
.home-link:focus-visible {
  color: var(--red);
}

