:root {
  color-scheme: light;
  --paper: #f7f2e8;
  --fresh-paper: #fffcf6;
  --ink: #304033;
  --pencil: #6d6e68;
  --sage: #84927a;
  --sage-deep: #65715d;
  --mustard: #e5b755;
  --warm: #c9826d;
  --line: rgb(48 64 51 / 16%);
  --focus: #304033;
  --serif: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: inherit;
}

a:focus-visible {
  border-radius: 0.25rem;
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.section,
.site-footer {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding-inline: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--fresh-paper);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  min-height: min(48rem, calc(100svh - 5rem));
  padding-block: clamp(3rem, 8vw, 7rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--sage-deep);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 6.3rem);
  line-height: 0.98;
}

h2 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.15rem, 4.5vw, 4.1rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.hero-copy,
.lead {
  max-width: 40rem;
  color: var(--pencil);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.availability {
  margin: 0;
  color: var(--pencil);
  font-size: 0.9rem;
}

.slip-scene {
  position: relative;
  min-height: 28rem;
}

.slip {
  position: absolute;
  display: flex;
  width: min(78%, 20rem);
  min-height: 11rem;
  align-items: flex-end;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--fresh-paper);
  box-shadow: 0 1.5rem 3rem rgb(48 64 51 / 8%);
}

.slip::before {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--mustard);
  content: "";
}

.slip-one {
  top: 1rem;
  right: 3%;
  transform: rotate(5deg);
}

.slip-two {
  top: 9rem;
  left: 2%;
  transform: rotate(-7deg);
}

.slip-three {
  right: 8%;
  bottom: 0;
  transform: rotate(2deg);
}

.slip-line {
  display: block;
  width: 100%;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--line);
  box-shadow: 0 -1.5rem 0 var(--line), 0 -3rem 0 var(--line);
}

.section {
  padding-block: clamp(4.5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--line);
}

.step {
  min-height: 15rem;
  padding: 1.5rem;
  background: var(--fresh-paper);
}

.step-number {
  display: grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: 3rem;
  place-items: center;
  border-radius: 50%;
  background: #d5efc4;
  font-weight: 750;
}

.step p {
  margin-bottom: 0;
  color: var(--pencil);
}

.note-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 1.2fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.note-card {
  position: relative;
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--fresh-paper);
  transform: rotate(-1.5deg);
}

.note-card::after {
  position: absolute;
  right: 1.5rem;
  bottom: -0.6rem;
  width: 4rem;
  height: 1.2rem;
  background: rgb(229 183 85 / 65%);
  content: "";
  transform: rotate(-4deg);
}

.note-label {
  margin-bottom: 1rem;
  color: var(--sage-deep);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-quote {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.25;
}

.privacy-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.privacy-list strong {
  display: block;
  margin-bottom: 0.5rem;
}

.privacy-list span {
  color: var(--pencil);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--pencil);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

.message-page {
  display: grid;
  width: min(100% - 2rem, 42rem);
  min-height: 100svh;
  margin-inline: auto;
  align-content: center;
}

.message-page h1 {
  margin-top: 3rem;
}

.message-page .button {
  justify-self: start;
  margin-top: 1rem;
}

@media (max-width: 48rem) {
  html {
    scroll-behavior: auto;
  }

  .hero,
  .section-intro,
  .note-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .slip-scene {
    min-height: 22rem;
  }

  .steps,
  .privacy-list {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: auto;
  }

  .step-number {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 30rem) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 1.5rem, 72rem);
  }

  .language-link {
    padding-inline: 0.65rem;
  }

  .slip-scene {
    min-height: 19rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
