:root {
  --paper: #f7f1e8;
  --paper-deep: #eee3d5;
  --ink: #27251f;
  --muted: #6f685d;
  --terracotta: #ad5d43;
  --terracotta-dark: #84432f;
  --sage: #7d866d;
  --sage-pale: #d9ddcf;
  --butter: #e7c875;
  --plum: #6d4a59;
  --white: #fffdf9;
  --line: rgba(39, 37, 31, 0.16);
  --shadow: 0 28px 60px rgba(76, 55, 38, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, textarea { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  transition: top 180ms ease;
}

.skip-link:focus { top: 1rem; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--white);
  background: var(--terracotta);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
}

.brand-name { font-family: var(--serif); font-size: 1.02rem; }

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

.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.5);
}

.language-button {
  width: 38px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.07em;
}

.language-button.is-active { color: var(--white); background: var(--ink); }

.header-buy {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 5rem;
  padding: 6.5rem 0 7rem;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--terracotta-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; }

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3.4rem, 6.4vw, 6.4rem);
  letter-spacing: -0.045em;
}

h1 em { color: var(--terracotta); font-weight: inherit; }

.bilingual-intro {
  max-width: 690px;
  margin: 2.25rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.bilingual-intro p { margin: 0; }
.bilingual-intro span { margin-right: 0.38rem; color: var(--ink); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.08em; }

.hero-actions { margin-top: 2.4rem; display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.83rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, .language-button:focus-visible, .theme-button:focus-visible, .text-link:focus-visible, .header-buy:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
.button-primary { color: var(--white); background: var(--terracotta); box-shadow: 0 10px 25px rgba(132, 67, 47, 0.18); }
.button-primary:hover { background: var(--terracotta-dark); }
.button-quiet { color: var(--ink); background: transparent; border-color: var(--line); }
.button-light { color: var(--ink); background: var(--white); }

.text-link { padding: 0.35rem 0; text-underline-offset: 5px; font-size: 0.83rem; font-weight: 700; }

.hero-art { position: relative; min-height: 520px; display: grid; place-items: center; }

.book-card {
  position: relative;
  z-index: 2;
  width: min(330px, 76vw);
  aspect-ratio: 0.73;
  padding: 2.5rem 2.3rem;
  display: flex;
  flex-direction: column;
  background: var(--sage);
  color: #fbf5e8;
  border-radius: 4px 18px 18px 4px;
  box-shadow: 18px 24px 0 #c6ac6a, 28px 45px 65px rgba(46, 37, 27, 0.22);
  transform: rotate(3deg);
}

.book-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.book-kicker { margin: 0; font-size: 0.58rem; font-weight: 750; letter-spacing: 0.15em; text-transform: uppercase; }
.book-title { margin-top: auto; font-family: var(--serif); font-size: 2.82rem; line-height: 0.98; letter-spacing: -0.045em; }
.book-title span { color: #f2cd70; font-style: italic; }
.book-line { width: 48px; height: 2px; margin: 1.8rem 0 1rem; background: #f2cd70; }
.book-author { margin: 0; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.orbit { position: absolute; border: 1px solid rgba(109, 74, 89, 0.32); border-radius: 50%; }
.orbit-one { width: 440px; height: 440px; }
.orbit-two { width: 520px; height: 240px; transform: rotate(-28deg); }
.scribble { position: absolute; z-index: 3; color: var(--plum); font-family: var(--serif); font-size: 1.1rem; font-style: italic; }
.scribble-one { left: 0; top: 17%; transform: rotate(-10deg); }
.scribble-two { right: 1%; top: 27%; transform: rotate(9deg); }
.scribble-three { left: 4%; bottom: 13%; transform: rotate(5deg); }

.preview-section {
  padding: 7.5rem max(20px, calc((100% - 1180px) / 2));
  background: var(--white);
}

.section-heading { max-width: 660px; margin-bottom: 3.2rem; }
.section-heading h2, .journey-intro h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 4rem); letter-spacing: -0.035em; }
.section-heading > p:last-child, .journey-intro > p:last-child { max-width: 580px; margin: 1.2rem 0 0; color: var(--muted); }

.preview-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 4rem; align-items: start; }
.theme-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }

.theme-button {
  min-height: 86px;
  padding: 1rem 0.85rem 1rem 0;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.65rem;
  text-align: left;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color 180ms ease, padding-left 180ms ease;
}

.theme-button:nth-child(odd) { border-right: 1px solid var(--line); }
.theme-button:nth-child(even) { padding-left: 0.85rem; }
.theme-button:hover { color: var(--ink); padding-left: 0.35rem; }
.theme-button:nth-child(even):hover { padding-left: 1.2rem; }
.theme-button.is-active { color: var(--terracotta-dark); }
.theme-index { font-family: var(--serif); font-size: 0.72rem; }
.theme-label { font-size: 0.86rem; font-weight: 750; }
.theme-subtitle { grid-column: 2; margin-top: -0.3rem; font-size: 0.7rem; line-height: 1.35; }

.theme-hint { display: flex; gap: 0.6rem; margin: 1.35rem 0 0; color: var(--muted); font-size: 0.76rem; }

.reflection-card {
  position: relative;
  min-height: 560px;
  padding: clamp(1.7rem, 4vw, 3.5rem);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(173, 93, 67, 0.2);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.reflection-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(173, 93, 67, 0.19);
  border-radius: 50%;
  pointer-events: none;
}

.reflection-topline { display: flex; align-items: center; gap: 0.8rem; color: var(--terracotta-dark); }
.reflection-number { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(173, 93, 67, 0.38); border-radius: 50%; font-family: var(--serif); font-size: 0.72rem; }
.reflection-theme { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.prompt-label { margin: 2.1rem 0 0.6rem; color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.reflection-card h3 { max-width: 720px; margin: 0; font-size: clamp(1.75rem, 3vw, 2.7rem); letter-spacing: -0.025em; }

.micro-action { margin: 1.65rem 0; padding: 1rem 1.1rem; display: flex; gap: 0.8rem; color: var(--terracotta-dark); background: rgba(231, 200, 117, 0.22); border-radius: 10px; }
.micro-action p { margin: 0; font-size: 0.8rem; }
.micro-action strong { color: var(--ink); }

.reflection-card label { display: block; margin-bottom: 0.6rem; font-size: 0.72rem; font-weight: 750; }
.reflection-card textarea { width: 100%; padding: 1rem; color: var(--ink); background: rgba(255, 253, 249, 0.75); border: 1px solid var(--line); border-radius: 10px; resize: vertical; outline: none; }
.reflection-card textarea:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(173, 93, 67, 0.12); }
.reflection-card textarea::placeholder { color: #9f978b; }
.note-meta { margin: 0.55rem 0 1rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.66rem; }
.privacy-note { display: flex; gap: 0.3rem; }
.reflection-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.save-status { min-height: 1.2rem; margin: 0.85rem 0 0; color: var(--sage); font-size: 0.72rem; font-weight: 700; }

.journey-section { padding: 8rem max(20px, calc((100% - 1180px) / 2)) 2rem; background: var(--paper-deep); }
.journey-intro { display: grid; grid-template-columns: 1fr 1.2fr; column-gap: 4rem; align-items: end; }
.journey-intro .eyebrow { grid-column: 1 / -1; }
.journey-intro > p:last-child { align-self: end; font-size: 1rem; }

.timeline { margin: 4.5rem 0 5rem; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.timeline-item { position: relative; padding: 1.7rem 2rem 0 0; }
.timeline-item::before { content: ""; position: absolute; left: 0; top: -6px; width: 11px; height: 11px; background: var(--terracotta); border: 3px solid var(--paper-deep); border-radius: 50%; }
.timeline-item + .timeline-item { padding-left: 1.3rem; border-left: 1px solid var(--line); }
.timeline-item + .timeline-item::before { left: 1.3rem; }
.timeline-days { color: var(--terracotta-dark); font-size: 0.67rem; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.timeline-item h3 { margin: 0.8rem 0; font-size: 1.55rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 0.8rem; }

.outcome-card {
  padding: clamp(2rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.75fr;
  align-items: center;
  gap: 3rem;
  color: var(--white);
  background: var(--plum);
  border-radius: 24px;
}

.outcome-card .eyebrow { color: #e7c875; }
.outcome-card h3 { margin: 0; font-size: clamp(2rem, 3.2vw, 3.1rem); }
.outcome-card ul { margin: 0; padding: 0; list-style: none; }
.outcome-card li { padding: 0.72rem 0; display: flex; gap: 0.7rem; border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.8rem; }
.outcome-card li::before { content: "✓"; color: #e7c875; font-weight: 800; }
.final-cta { text-align: center; }
.final-cta .button { width: 100%; }
.final-cta p { margin: 0.9rem 0 0; color: rgba(255, 255, 255, 0.7); font-size: 0.66rem; }

footer { margin-top: 5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.7rem; }
footer p { margin: 0; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 5rem; }
  .hero-copy { text-align: center; }
  .bilingual-intro { text-align: left; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 560px; }
  .preview-grid { grid-template-columns: 1fr; }
  .theme-panel { order: 2; }
  .reflection-card { order: 1; }
  .journey-intro { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; border-top: 0; gap: 0; }
  .timeline-item { border-top: 1px solid var(--line); padding-bottom: 2rem; }
  .timeline-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .timeline-item:nth-child(3)::before { left: 0; }
  .outcome-card { grid-template-columns: 1fr 1fr; }
  .final-cta { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .site-header { min-height: 72px; }
  .brand-name, .header-buy span:first-child { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .hero { min-height: auto; padding: 4.5rem 0 5rem; }
  h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .hero-art { min-height: 480px; }
  .book-card { width: 265px; padding: 2.1rem 1.9rem; }
  .book-title { font-size: 2.3rem; }
  .orbit-one { width: 360px; height: 360px; }
  .orbit-two { width: 410px; }
  .scribble-two { right: 0; }
  .preview-section, .journey-section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .theme-list { grid-template-columns: 1fr; }
  .theme-button:nth-child(odd) { border-right: 0; }
  .theme-button:nth-child(even) { padding-left: 0; }
  .theme-button:nth-child(even):hover { padding-left: 0.35rem; }
  .reflection-card { border-radius: 16px; }
  .reflection-actions .button { width: 100%; }
  .note-meta { align-items: flex-end; }
  .timeline { grid-template-columns: 1fr; }
  .timeline-item + .timeline-item { border-left: 0; padding-left: 0; }
  .timeline-item + .timeline-item::before { left: 0; }
  .outcome-card { grid-template-columns: 1fr; gap: 2.2rem; border-radius: 16px; }
  .final-cta { grid-column: auto; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
