:root {
  --ink: #211f1b;
  --muted: #6c665d;
  --paper: #fff;
  --canvas: #f8f4ec;
  --line: #d7cec0;
  --line-strong: #9a9083;
  --clay: #9b5847;
  --clay-dark: #713b31;
  --clay-soft: #f1ddd5;
  --sage: #637769;
  --gold: #b98a33;
  --focus: #498ac5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - 28px), 1080px); margin-inline: auto; }
button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.hero { padding: 34px 0 24px; }
.breadcrumb { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.breadcrumb a { text-underline-offset: 3px; }
.product-name, .step, .result-label { margin: 0 0 7px; color: var(--clay-dark); font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.product-name { font-size: 13px; }
.hero h1, .date-form h2, .theme-panel h3, .next-heading h2, .section-heading h2, .big-milestone h2, .share-controls h2, .tradition-grid h2, .faq-section > h2 {
  margin: 0; font-family: "Arial Black", Arial, Helvetica, sans-serif; letter-spacing: -.045em; line-height: 1.05;
}
.hero h1 { max-width: 760px; font-size: clamp(34px, 9vw, 60px); }
.hero-lead { max-width: 740px; margin: 18px 0 0; font-size: clamp(18px, 4.7vw, 22px); font-weight: 750; line-height: 1.4; }

.start-section { display: grid; gap: 14px; padding-bottom: 44px; }
.date-form { padding: 22px 18px; background: var(--paper); border: 1px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 rgba(33,31,27,.1); }
.date-form h2 { margin-bottom: 22px; font-size: clamp(26px, 7vw, 36px); }
.date-form label { display: block; margin-bottom: 7px; font-weight: 850; }
.date-form input[type="date"] { width: 100%; min-height: 56px; padding: 8px 13px; background: #fff; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--ink); font-size: 17px; font-weight: 750; }
.date-form small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.form-error { min-height: 24px; margin: 7px 0 4px; color: #a22e20; font-weight: 750; }
.primary-button, .outline-button, .example-button { min-height: 48px; border-radius: 11px; font-weight: 900; cursor: pointer; }
.primary-button { width: 100%; padding: 10px 18px; background: var(--clay); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); color: #fff; }
.primary-button:active { box-shadow: 0 1px 0 var(--ink); transform: translateY(3px); }
.example-button { width: 100%; margin-top: 10px; padding: 8px; background: transparent; border: 0; color: var(--clay-dark); text-decoration: underline; text-underline-offset: 4px; }
.privacy-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: #ede8dc; border: 1px solid var(--line-strong); }
.privacy-note > span { flex: 0 0 10px; width: 10px; height: 10px; margin-top: 7px; background: var(--sage); border-radius: 50%; }
.privacy-note p, .privacy-note small { margin: 0; }
.privacy-note strong, .privacy-note small { display: block; }
.privacy-note small { margin-top: 3px; color: var(--muted); }

.result-hero { position: relative; overflow: hidden; padding: 42px 0; scroll-margin-top: 88px; background: #efe3da; border-block: 1px solid var(--ink); }
.result-grid { display: grid; gap: 26px; }
.result-label { color: var(--clay-dark); }
.result-grid > div > h2 { margin: 0; font-family: "Arial Black", Arial, Helvetica, sans-serif; font-size: clamp(62px, 19vw, 96px); letter-spacing: -.075em; line-height: .95; }
.result-grid > div > h2 small { display: block; margin-top: 7px; font-size: .32em; letter-spacing: -.03em; }
.duration-line { margin: 17px 0 2px; font-size: 21px; font-weight: 850; }
.days-line { margin: 4px 0 0; font-size: 17px; }
.days-line strong { color: var(--clay-dark); }
.aside-line { margin: 10px 0 0; color: var(--muted); font-style: italic; }

.theme-panel { padding: 20px; background: rgba(255,255,255,.84); border: 1px solid var(--ink); border-radius: 15px; box-shadow: 5px 5px 0 rgba(33,31,27,.12); }
.theme-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.theme-toggle { display: grid; grid-template-columns: repeat(2, 1fr); padding: 3px; background: #e6ded3; border: 1px solid var(--line-strong); border-radius: 10px; }
.theme-toggle button { min-height: 38px; padding: 5px 8px; background: transparent; border: 0; border-radius: 7px; font-size: 12px; font-weight: 850; cursor: pointer; }
.theme-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.theme-panel h3 { margin-top: 12px; font-size: 28px; }
.theme-kind { margin: 18px 0 0; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.theme-name { display: block; margin: 2px 0 4px; color: var(--clay-dark); font-size: clamp(36px, 10vw, 52px); line-height: 1.08; }
.theme-alt { margin: 0; color: var(--muted); font-weight: 750; }
.theme-meaning { margin: 20px 0 0; padding-top: 15px; border-top: 1px solid var(--line); }

.celebration { position: absolute; inset: 0; pointer-events: none; }
.celebration i { position: absolute; top: -24px; width: 7px; height: 12px; background: var(--gold); opacity: 0; animation: fall 2.6s ease-in forwards; }
.celebration i:nth-child(1) { left: 9%; animation-delay: .1s; }.celebration i:nth-child(2) { left: 26%; background: var(--clay); animation-delay: .4s; }.celebration i:nth-child(3) { left: 43%; animation-delay: .15s; }.celebration i:nth-child(4) { left: 61%; background: var(--sage); animation-delay: .55s; }.celebration i:nth-child(5) { left: 78%; animation-delay: .25s; }.celebration i:nth-child(6) { left: 92%; background: var(--clay); animation-delay: .7s; }
@keyframes fall { 0% { opacity: 0; transform: translateY(0) rotate(0); } 15% { opacity: .8; } 100% { opacity: 0; transform: translateY(520px) rotate(260deg); } }

.next-section { padding: 44px 0; }
.next-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.next-heading h2 { font-size: clamp(28px, 7.5vw, 42px); }
.next-heading > div > p:last-child { margin: 5px 0 0; color: var(--muted); font-weight: 750; }
.countdown { flex: 0 0 auto; text-align: right; }
.countdown strong, .countdown span { display: block; }
.countdown strong { color: var(--clay-dark); font-family: "Arial Black", Arial, sans-serif; font-size: clamp(42px, 12vw, 62px); line-height: 1; }
.countdown span { color: var(--muted); font-weight: 800; }
.coming-note { min-height: 24px; margin: 16px 0 5px; color: var(--clay-dark); font-weight: 850; }
.progress-track { height: 13px; overflow: hidden; background: #e2ddd3; border: 1px solid var(--line-strong); border-radius: 999px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--clay); }
.progress-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.progress-labels strong { color: var(--ink); text-align: center; }
.next-theme { display: grid; gap: 6px; margin-top: 18px; padding: 13px 0; border-block: 1px solid var(--line); font-weight: 750; }

.milestone-band { padding: 42px 0; background: var(--ink); color: #fff; }
.milestone-grid { display: grid; gap: 28px; }
.milestone-band .step { color: #e8cfc4; }
.big-milestone h2 { font-size: clamp(44px, 13vw, 70px); }
.big-milestone > strong { display: block; margin-top: 10px; color: #ead7b6; font-size: 18px; }
.big-milestone > p:last-child { margin: 6px 0 0; color: #d7d0c5; }
.number-summary dl { margin: 0; border-top: 1px solid #706d66; }
.number-summary dl div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid #706d66; }
.number-summary dt { color: #d7d0c5; }
.number-summary dd { margin: 0; font-weight: 900; }

.little-section, .share-section, .faq-section { padding: 44px 0; }
.section-heading { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.section-heading h2 { font-size: clamp(28px, 7.5vw, 40px); }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); }
.little-list { border-block: 1px solid var(--ink); }
.little-row { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 64px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.little-row:last-child { border-bottom: 0; }
.little-row strong, .little-row span { display: block; }
.little-row strong { font-size: 18px; }
.little-row span { color: var(--muted); font-size: 13px; }
.little-row time { font-weight: 800; text-align: right; }

.timeline-section { padding: 44px 0; background: #eee7db; border-block: 1px solid var(--line-strong); }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 14px; min-height: 74px; padding-bottom: 14px; }
.timeline li::before { content: ""; position: absolute; top: 31px; bottom: -2px; left: 15px; width: 2px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline-mark { display: grid; z-index: 1; width: 32px; height: 32px; place-items: center; background: #fff; border: 2px solid var(--line-strong); border-radius: 50%; font-size: 12px; font-weight: 900; }
.timeline li.done .timeline-mark { background: var(--sage); border-color: var(--sage); color: #fff; }
.timeline li.next .timeline-mark { background: var(--clay); border-color: var(--ink); box-shadow: 0 0 0 5px rgba(155,88,71,.18); color: #fff; }
.timeline-copy strong, .timeline-copy span { display: block; }
.timeline-copy strong { font-size: 18px; }
.timeline-copy span { color: var(--muted); }
.timeline li.future { opacity: .58; }

.share-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.share-controls h2 { font-size: clamp(28px, 8vw, 40px); }
.share-controls p:last-child { margin: 5px 0 0; color: var(--muted); }
.outline-button { padding: 8px 14px; background: #fff; border: 1px solid var(--ink); color: var(--ink); }
.name-fields { display: grid; gap: 13px; margin-bottom: 16px; padding: 16px; background: #ede8dc; border: 1px solid var(--line-strong); }
.name-fields label { font-weight: 800; }
.name-fields label span { color: var(--muted); font-size: 12px; font-weight: 500; }
.name-fields input { width: 100%; min-height: 48px; margin-top: 5px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 9px; }
.share-card { padding: 25px 20px; background: #f0e2d8; border: 1px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 rgba(33,31,27,.12); text-align: center; }
.share-card > p { margin: 0 0 14px; color: var(--clay-dark); font-size: 11px; font-weight: 900; letter-spacing: .22em; }
.share-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 9vw, 44px); font-weight: 500; }
.share-card > span { display: block; margin: 7px 0; color: var(--muted); }
.share-card > strong { display: block; margin: 21px 0; font-family: "Arial Black", Arial, sans-serif; font-size: clamp(32px, 10vw, 52px); line-height: 1; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.share-actions .outline-button { width: 100%; }
.share-status { min-height: 24px; margin: 8px 0 0; color: var(--sage); font-weight: 750; }

.traditions-section { padding: 46px 0; background: #fff; border-block: 1px solid var(--line); }
.tradition-grid { display: grid; gap: 34px; }
.tradition-grid h2 { margin-bottom: 12px; font-size: clamp(27px, 7vw, 38px); }
.tradition-grid article > p:last-child { margin: 0; color: var(--muted); }
.gift-list { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border-top: 1px solid var(--line); }
.gift-list div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); }
.gift-list dt { font-weight: 850; }
.gift-list dd { margin: 0; color: var(--muted); text-align: right; }
.faq-section > h2 { margin-bottom: 20px; font-size: clamp(30px, 8vw, 44px); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { padding: 16px 30px 16px 0; font-size: 17px; font-weight: 850; cursor: pointer; }
.faq-list p { max-width: 800px; margin: -3px 0 18px; color: var(--muted); }
.related-tools { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--ink); }
.related-tools h2 { margin: 0 0 10px; font-size: 19px; }
.related-tools a { display: block; width: fit-content; margin: 6px 0; color: var(--clay-dark); font-weight: 750; text-underline-offset: 3px; }

@media (min-width: 720px) {
  .shell { width: min(calc(100% - 48px), 1080px); }
  .start-section { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: start; }
  .date-form { padding: 28px; }
  .privacy-note { min-height: 100%; padding: 24px; align-items: center; }
  .result-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); align-items: center; }
  .next-theme { grid-template-columns: repeat(2, 1fr); }
  .milestone-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .section-heading { flex-direction: row; align-items: end; justify-content: space-between; }
  .little-list { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
  .little-row { display: block; min-height: 104px; padding: 16px; border-bottom: 0; border-right: 1px solid var(--line); }
  .little-row:last-child { border-right: 0; }
  .little-row time { display: block; margin-top: 10px; text-align: left; }
  .timeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .timeline li { display: block; min-height: 0; padding: 0 10px 0 0; }
  .timeline li::before { top: 15px; right: 0; bottom: auto; left: 31px; width: auto; height: 2px; }
  .timeline-copy { margin-top: 10px; }
  .timeline-copy strong { font-size: 15px; }
  .timeline-copy span { font-size: 13px; }
  .name-fields { grid-template-columns: repeat(2, 1fr); }
  .share-card { padding: 36px; }
  .tradition-grid { grid-template-columns: .9fr 1.1fr; }
  .gift-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .nav-links > a:not(.nav-pill) { display: none; }
  .next-heading { align-items: flex-start; }
  .countdown { padding-top: 24px; }
  .progress-labels span { max-width: 80px; }
  .share-controls { align-items: center; }
  .share-controls .outline-button { flex: 0 0 110px; }
}

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