/* Fond Farewell — tokens from DESIGN.md */
:root {
  --ink: #1E1B16; --ink-soft: #5C554A; --paper: #FBF7F1; --paper-raised: #FFFFFF;
  --line: #E4DACB; --gold: #8A6E33; --gold-hover: #765D29; --gold-tint: #F3EDE1;
  --on-gold: #FBF7F1; --ok: #2F6B47; --err: #A23B2A;
  --shadow: 0 10px 30px rgba(30, 27, 22, .12);
  --font-display: "Caladea", "Cambria", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 4px; --r-md: 10px; --r-pill: 999px;
  --wrap: 1080px; --text: 680px; --gutter: 20px;
  --section: 96px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3EDE1; --ink-soft: #C9C0B0; --paper: #161410; --paper-raised: #1F1C17;
    --line: #3A342B; --gold: #C9A962; --gold-hover: #D8BB7A; --gold-tint: #221E17;
    --on-gold: #161410; --ok: #7FC59B; --err: #E58C7C;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
}
@media (max-width: 760px) { :root { --section: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; color: var(--ink); }
h1 { font-size: 40px; line-height: 1.15; }
h2 { font-size: 28px; line-height: 1.25; }
h3 { font-size: 22px; line-height: 1.35; }
@media (max-width: 760px) { h1 { font-size: 32px; } }
p { margin: 0 0 16px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; margin-bottom: 12px; display: block; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; line-height: 1.5; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.text { max-width: var(--text); }
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--line); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper-raised); padding: 8px 16px; z-index: 10; }
.skip:focus { left: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 28px; border-radius: var(--r-pill);
  font: 500 16px/1 var(--font-body); text-decoration: none; cursor: pointer; border: 1px solid var(--gold); transition: background .15s, color .15s; }
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--on-gold); }
.btn-secondary { background: transparent; color: var(--gold); }
.btn-secondary:hover { background: var(--gold-tint); color: var(--gold-hover); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: block; width: 210px; }
.logo-dark { display: none; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--gold); text-decoration: underline; }
.nav-links .btn { min-height: 40px; padding: 10px 20px; font-size: 15px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink); font: 500 15px var(--font-body); padding: 10px 18px; min-height: 44px; cursor: pointer; }
@media (max-width: 760px) {
  .brand { width: 170px; }
  .menu-toggle { display: block; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 16px; }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
  .nav-links .btn { margin-top: 12px; width: 100%; min-height: 48px; }
}

/* hero */
.hero { padding: 72px 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--ink-soft); }
.booklet-stack { position: relative; aspect-ratio: 1 / 1; max-width: 480px; justify-self: center; width: 100%; }
.booklet-stack img { position: absolute; width: 58%; border-radius: 2px; box-shadow: var(--shadow); }
.booklet-stack img:nth-child(1) { left: 0; top: 8%; transform: rotate(-4deg); }
.booklet-stack img:nth-child(2) { right: 0; top: 0; transform: rotate(3deg); }
.booklet-stack img:nth-child(3) { left: 22%; top: 22%; }
@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .booklet-stack { max-width: 360px; }
}

/* samples */
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.sample figure { margin: 0; }
.sample img { box-shadow: var(--shadow); border-radius: 2px; }
.sample figcaption { margin-top: 16px; }
.sample figcaption strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; display: block; }
.inside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.inside img { border: 1px solid var(--line); border-radius: 2px; }
@media (max-width: 760px) {
  .samples { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .inside { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); counter-increment: step; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: 32px; line-height: 1; color: var(--gold); }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* prices */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.price { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; }
.price.featured { border-color: var(--gold); }
.price .amount { font-family: var(--font-display); font-size: 40px; line-height: 1; margin: 12px 0 4px; }
.price .per { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: 15px; }
.price li { padding: 8px 0; border-top: 1px solid var(--line); }
.price .tag { align-self: flex-start; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.price .btn { margin-top: auto; }
.price-notes { margin-top: 24px; font-size: 14px; color: var(--ink-soft); max-width: var(--text); }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; max-width: 480px; } }

/* payment band */
.band { background: var(--gold-tint); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

/* faq */
.faq { margin-top: 32px; max-width: var(--text); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 32px 20px 0; font-family: var(--font-display); font-size: 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--font-body); font-size: 24px; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 20px; color: var(--ink-soft); }

/* cta */
.cta { text-align: left; }
.cta .actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* forms */
.form { max-width: var(--text); }
.form fieldset { border: 0; padding: 0; margin: 0 0 40px; }
.form legend { font-family: var(--font-display); font-size: 22px; padding: 0; margin-bottom: 8px; }
.form .hint { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; }
.field { margin-bottom: 20px; }
.field label, .choice-group .group-label { display: block; font-weight: 500; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.field input[type=text], .field input[type=email], .field input[type=date], .field input[type=number], .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper-raised); color: var(--ink); font: 400 16px/1.5 var(--font-body); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field input[type=file] { font: 400 15px var(--font-body); color: var(--ink-soft); max-width: 100%; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-raised); cursor: pointer; }
.choice input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.choice span small { display: block; color: var(--ink-soft); font-size: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.hidden { position: absolute; left: -9999px; }
.notice { background: var(--gold-tint); border-left: 3px solid var(--gold); padding: 16px 20px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: 32px; }
.req { color: var(--err); }

/* legal */
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; font-size: 14px; color: var(--ink-soft); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot .brand { width: 160px; margin-bottom: 12px; }

/* logo swap for dark mode (kept last so it wins) */
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}
