:root {
  --ink: #263328;
  --forest: #314936;
  --moss: #68765f;
  --rose: #b88786;
  --rose-soft: #dfc5c0;
  --blue: #8b9da8;
  --cream: #f5f0e7;
  --paper: #fbf8f1;
  --line: #d8d2c6;
  --white: #fffdfa;
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(49, 55, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  border-radius: 4px;
}
.skip-link:focus { top: 16px; }

.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 76px);
  background: var(--paper);
  border-bottom: 1px solid rgba(38, 51, 40, 0.12);
}
.wordmark {
  font-family: var(--serif);
  text-decoration: none;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
}
.wordmark span { font-style: italic; color: var(--rose); }
.wordmark sup { font-family: var(--sans); font-size: 9px; margin-left: 2px; }
.header-note {
  color: #687069;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100vh - 82px);
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #ebe7df;
}
.hero-image, .hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image { object-fit: cover; object-position: 56% center; }
.hero-wash {
  background: linear-gradient(90deg, rgba(246, 243, 236, 0.97) 0%, rgba(246, 243, 236, 0.9) 31%, rgba(246, 243, 236, 0.2) 61%, rgba(246, 243, 236, 0.05) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(650px, 92%);
  margin-left: clamp(24px, 9vw, 142px);
  padding: 70px 0 100px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.035em; }
h1 { max-width: 640px; margin-bottom: 24px; font-size: clamp(48px, 6.3vw, 86px); line-height: 1.01; }
.hero-intro { max-width: 560px; margin-bottom: 36px; color: #566057; font-size: clamp(17px, 1.6vw, 20px); }
.hero-signature {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 4vw, 64px);
  bottom: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid var(--forest);
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .choice-card:focus-visible, .text-button:focus-visible {
  outline: 3px solid #b88952;
  outline-offset: 4px;
}
.button-dark { background: var(--forest); color: white; }
.button-dark:hover { background: #203724; }
.button-outline { background: transparent; color: var(--forest); }
.button-outline:hover { background: rgba(49,73,54,.06); }

.finder { padding: clamp(88px, 10vw, 150px) clamp(20px, 5vw, 70px); }
.section-heading { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-heading h2, .recipe-copy h2 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 62px); line-height: 1.08; }
.section-heading > p:last-child { color: #687069; }
.guide-shell {
  width: min(1040px, 100%);
  min-height: 600px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.progress-wrap { margin-bottom: 50px; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 10px; color: #6e756e; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.progress-track { height: 2px; background: #ded9ce; }
.progress-track span { display: block; height: 100%; width: 33.333%; background: var(--forest); transition: width .35s ease; }
fieldset { min-width: 0; padding: 0; border: 0; }
.choice-step { display: none; }
.choice-step.active { display: block; animation: fade-up .38s ease both; }
.choice-step legend { width: 100%; margin-bottom: 8px; font-family: var(--serif); font-size: clamp(34px, 4vw, 50px); line-height: 1.1; text-align: center; }
.step-note { margin-bottom: 32px; color: #6a716b; text-align: center; }
.choice-grid { display: grid; gap: 14px; }
.choice-grid-four { grid-template-columns: repeat(4, 1fr); }
.choice-grid-three { grid-template-columns: repeat(3, 1fr); }
.choice-card {
  min-height: 190px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.choice-card:hover { transform: translateY(-3px); border-color: #9ca497; background: #f8f6ef; }
.choice-card[aria-pressed="true"] { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: #f0f2eb; }
.choice-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px; border-radius: 50%; background: var(--cream); color: var(--rose); font-family: var(--serif); font-size: 22px; }
.choice-card strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.choice-card small { color: #6d746e; font-size: 13px; line-height: 1.4; }
.form-nav { min-height: 34px; display: flex; align-items: center; justify-content: space-between; margin-top: 30px; }
.text-button { padding: 6px 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.auto-note { margin-left: auto; color: #8a8e89; font-size: 12px; }

.result { animation: fade-up .5s ease both; }
.result-topline { display: flex; justify-content: space-between; gap: 20px; }
.result-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.result-heading h3 { margin-bottom: 10px; font-size: clamp(42px, 5vw, 62px); line-height: 1.05; }
.result-heading p { max-width: 650px; margin-bottom: 0; color: #646d65; }
.stem-count { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; color: var(--rose); }
.stem-count strong { font-family: var(--serif); font-size: 68px; font-weight: 400; line-height: 1; }
.stem-count span { color: #6e756e; font-size: 11px; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
.stem-list { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.stem-item { min-width: 0; padding: 32px 14px 28px; border-right: 1px solid var(--line); text-align: center; }
.stem-item:last-child { border-right: 0; }
.flower-glyph { position: relative; width: 56px; height: 56px; margin: 0 auto 18px; }
.flower-glyph span { position: absolute; left: 22px; top: 1px; width: 13px; height: 25px; border-radius: 70% 40% 70% 40%; background: var(--petal, #d9b5b5); transform-origin: 7px 27px; opacity: .9; }
.flower-glyph span:nth-child(2) { transform: rotate(72deg); }
.flower-glyph span:nth-child(3) { transform: rotate(144deg); }
.flower-glyph span:nth-child(4) { transform: rotate(216deg); }
.flower-glyph span:nth-child(5) { transform: rotate(288deg); }
.flower-glyph::after { content:""; position:absolute; left:23px; top:21px; width:12px; height:12px; border-radius:50%; background:#bda85d; }
.stem-item b { display: block; margin-bottom: 7px; font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.15; }
.stem-item em { display: block; color: #777d76; font-size: 11px; font-style: normal; line-height: 1.4; }
.stem-item .stem-quantity { display: block; margin-top: 10px; color: var(--forest); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.lesson-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0 18px; }
.lesson-card { display: flex; gap: 18px; min-height: 176px; padding: 26px; background: #efebe2; }
.lesson-number { color: var(--rose); font-family: var(--serif); font-size: 18px; }
.lesson-card h4, .practice-note h4 { margin-bottom: 8px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.lesson-card p:last-child, .practice-note p { margin-bottom: 0; color: #5f685f; font-size: 14px; }
.practice-note { display: flex; gap: 22px; padding: 24px 28px; border: 1px solid var(--line); background: white; }
.practice-mark { color: var(--rose); font-size: 30px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.recipe-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 760px; background: #d8ded4; }
.recipe-visual { min-height: 760px; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 40% 35%, #f6f1e8 0, #e3ddd1 50%, #c9c3b9 100%); }
.recipe-visual::before { content:""; position:absolute; width: 520px; height:520px; border:1px solid rgba(49,73,54,.16); border-radius:50%; }
.paper-card { position: absolute; width: min(330px, 60vw); aspect-ratio: 2/3; border: 8px solid white; background: white; box-shadow: 0 26px 55px rgba(45, 51, 42, .22); }
.card-back { transform: translate(-70px, -6px) rotate(-8deg); display: grid; place-content: center; text-align:center; }
.card-back p { margin:0; font-family:var(--serif); font-size:28px; }
.card-back span { color:#7b817b; font-size:11px; letter-spacing:.14em; text-transform:uppercase; }
.card-front { transform: translate(80px, 24px) rotate(6deg); overflow:hidden; }
.card-front img { width:100%; height:100%; object-fit:cover; }
.card-front::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 50%, rgba(28,42,31,.68)); }
.card-front p { position:absolute; z-index:1; left:25px; right:20px; bottom:16px; margin:0; color:white; font-family:var(--serif); font-size:28px; line-height:1.08; }
.recipe-copy { padding: clamp(70px, 9vw, 130px); }
.recipe-copy > p:not(.eyebrow, .small-note) { max-width: 600px; margin-bottom: 30px; color:#566158; }
.small-note { margin-top:12px; color:#667067; font-size:11px; }

footer { padding: 65px 24px; background: var(--ink); color: #eef0ea; text-align: center; }
.footer-mark { margin-bottom: 10px; font-size: 30px; }
footer > p:nth-child(2) { font-family: var(--serif); font-size: 19px; }
.meaning-note { max-width: 660px; margin: 34px auto 0; color: #bfc7bd; font-size: 11px; }

@keyframes fade-up { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

@media (max-width: 900px) {
  .choice-grid-four { grid-template-columns: repeat(2, 1fr); }
  .stem-list { grid-template-columns: repeat(2, 1fr); }
  .stem-item { border-bottom:1px solid var(--line); }
  .stem-item:nth-child(even) { border-right:0; }
  .stem-item:last-child { grid-column:1 / -1; }
  .recipe-cards { grid-template-columns: 1fr; }
  .recipe-visual { min-height: 620px; }
  .recipe-copy { padding: 80px clamp(24px, 8vw, 90px); }
}

@media (max-width: 640px) {
  body { font-size:16px; }
  .site-header { height:68px; padding:0 18px; }
  .header-note { display:none; }
  .hero { min-height: calc(100svh - 68px); align-items:end; }
  .hero-image { object-position: 68% center; }
  .hero-wash { background:linear-gradient(0deg, rgba(246,243,236,.98) 0%, rgba(246,243,236,.9) 42%, rgba(246,243,236,.12) 78%); }
  .hero-copy { width:auto; margin:0; padding:280px 22px 68px; }
  h1 { font-size:clamp(44px, 13vw, 64px); }
  .hero-signature { display:none; }
  .button { width:100%; }
  .finder { padding:78px 14px; }
  .guide-shell { min-height:0; padding:30px 18px; }
  .choice-step legend { font-size:36px; }
  .choice-grid-four, .choice-grid-three { grid-template-columns:1fr; }
  .choice-card { min-height:0; display:grid; grid-template-columns:48px 1fr; column-gap:16px; padding:17px; }
  .choice-icon { grid-row:1 / 3; margin:0; }
  .choice-card strong { align-self:end; font-size:22px; }
  .auto-note { display:none; }
  .result-heading { align-items:start; }
  .stem-count { display:none; }
  .stem-list { grid-template-columns:1fr; }
  .stem-item, .stem-item:last-child { grid-column:auto; display:grid; grid-template-columns:56px 1fr auto; align-items:center; column-gap:14px; padding:18px 8px; border-right:0; text-align:left; }
  .flower-glyph { grid-row:1 / 4; margin:0; }
  .stem-item b, .stem-item em, .stem-item .stem-quantity { margin:0; }
  .stem-item .stem-quantity { grid-column:3; grid-row:1 / 3; }
  .lesson-grid { grid-template-columns:1fr; }
  .lesson-card { min-height:0; padding:22px; }
  .recipe-visual { min-height:500px; }
  .paper-card { width:230px; }
  .card-back { transform:translate(-46px,-2px) rotate(-8deg); }
  .card-front { transform:translate(56px,20px) rotate(6deg); }
  .card-front p { font-size:23px; }
  .recipe-copy { padding:70px 22px; }
}

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

@media print {
  body { background:white; }
  .site-header, .hero, .section-heading, form, .progress-wrap, .recipe-cards, footer, .result-topline button, .result-actions { display:none !important; }
  .finder, .guide-shell { padding:0; }
  .guide-shell { box-shadow:none; border:0; }
  .result[hidden] { display:none; }
}
