:root {
  color-scheme: light;
  --paper: #f3eedf;
  --paper-deep: #e8deca;
  --ink: #18211d;
  --muted: #5f665f;
  --rule: #b9ae98;
  --accent: #b6462d;
  --accent-dark: #7f2f20;
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Gill Sans", 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: 17px;
  line-height: 1.6;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
button, input, select { font: inherit; }
button, select, input { min-height: 48px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.nav-links { display: flex; gap: 22px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: var(--accent-dark); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr); gap: clamp(48px, 8vw, 120px); padding-block: clamp(70px, 10vw, 140px) 80px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(4rem, 9vw, 8.6rem); letter-spacing: -.065em; max-width: 760px; }
h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -.04em; }
h3 { font-size: 1.55rem; }
.dek { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.4; max-width: 620px; margin: 28px 0 16px; }
.trust-line { color: var(--muted); font-size: .9rem; }
.calculator { border-top: 5px solid var(--ink); padding-top: 20px; align-self: end; }
.calculator h2 { font-size: 1.75rem; letter-spacing: 0; margin-bottom: 24px; }
.field { margin-bottom: 20px; }
label, legend { display: block; font-weight: 700; font-size: .82rem; letter-spacing: .04em; margin-bottom: 7px; }
input, select { width: 100%; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); padding: 10px 12px; }
.primary, .secondary { cursor: pointer; border: 1px solid var(--ink); padding: 12px 18px; font-weight: 700; }
.primary { width: 100%; color: var(--paper); background: var(--ink); }
.primary:hover { background: var(--accent-dark); }
.secondary { background: transparent; color: var(--ink); }
.status { min-height: 1.6em; color: var(--accent-dark); font-weight: 700; margin: 8px 0 0; }
.result-band { background: var(--ink); color: var(--paper); padding-block: 70px; scroll-margin-top: 20px; }
.result-band[hidden], [hidden] { display: none; }
.result-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 8vw, 110px); }
.date { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1; margin: 12px 0 22px; }
.range-note { color: #c9c2b1; max-width: 480px; }
.countdown { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); border-top: 1px solid #696e68; border-bottom: 1px solid #696e68; }
.time-unit { padding: 22px 12px 22px 0; border-right: 1px solid #696e68; }
.time-unit:last-child { border-right: 0; padding-left: 12px; }
.time-unit span { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.time-unit small { color: #b9bcae; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.seconds-unit.is-ticking span { animation: second-falls 420ms cubic-bezier(.16, 1, .3, 1); }
@keyframes second-falls { from { opacity: .28; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
.passage { margin-top: 22px; }
.minute-rail { display: grid; grid-template-columns: repeat(60, 1fr); gap: 3px; height: 38px; align-items: end; }
.minute-rail i { height: 100%; background: var(--paper); opacity: .72; transform-origin: bottom; transition: transform 220ms cubic-bezier(.7, 0, .84, 0), opacity 220ms cubic-bezier(.7, 0, .84, 0); }
.minute-rail i:nth-child(5n) { height: 72%; }
.minute-rail i.is-spent { opacity: .12; transform: scaleY(.18); }
.passage p { color: #c9c2b1; font-family: var(--serif); font-size: 1.1rem; margin: 12px 0 0; }
.passage strong { color: var(--paper); font-variant-numeric: tabular-nums; }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.result-actions .secondary { color: var(--paper); border-color: var(--paper); }
.share-block { display: grid; grid-template-columns: .75fr 1.25fr; gap: 22px 34px; border-top: 1px solid #696e68; margin-top: 30px; padding-top: 24px; }
.share-block .eyebrow { margin: 0 0 5px; }
.share-promise { color: #c9c2b1; font-size: .82rem; margin: 0; }
.share-destinations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.share-link { display: flex; align-items: center; gap: 9px; min-height: 48px; border: 1px solid #8b8e84; background: transparent; color: var(--paper); padding: 8px 12px; text-decoration: none; cursor: pointer; font: 700 .78rem var(--sans); }
.share-link span { display: inline-grid; width: 22px; height: 22px; place-items: center; border: 1px solid #8b8e84; font-family: var(--serif); font-size: .9rem; }
.share-link:hover { background: var(--paper); color: var(--ink); }
#share-status { grid-column: 2; color: #c9c2b1; font-size: .78rem; min-height: 1.3em; }
.section { padding-block: clamp(70px, 10vw, 130px); border-bottom: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: .65fr 1.35fr; gap: 40px; margin-bottom: 55px; }
.section-head p { max-width: 650px; margin: 8px 0 0; font-size: 1.15rem; }
.refine-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.refine-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.refine-grid .field { border-top: 2px solid var(--ink); padding-top: 15px; }
.live-estimate { position: sticky; top: 24px; border-block: 3px double var(--ink); padding: 22px 0 25px; }
.live-date { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.7rem); letter-spacing: -.045em; line-height: .98; margin: 12px 0 26px; }
.estimate-shift { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 13px 0; font-size: .84rem; }
.estimate-shift span:last-child { text-align: right; }
.estimate-shift strong { display: block; font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; }
.shift-arrow { color: var(--accent-dark); font-size: 1.4rem; }
.live-delta { color: var(--accent-dark); font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.live-note { color: var(--muted); font-size: .82rem; margin: 0; }
.live-estimate.is-updated .live-date { animation: result-pulse 360ms cubic-bezier(.16, 1, .3, 1); }
@keyframes result-pulse { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.comparison { font-family: var(--serif); font-size: 1.5rem; }
.three-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 5vw, 70px); counter-reset: steps; }
.three-up article { counter-increment: steps; }
.three-up article::before { content: "0" counter(steps); display: block; color: var(--accent-dark); font-weight: 700; margin-bottom: 42px; }
.three-up p { color: var(--muted); }
.statement { max-width: 930px; }
.statement p { font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2.4rem); line-height: 1.35; }
.faq { max-width: 860px; }
details { border-top: 1px solid var(--rule); padding: 22px 0; }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
details p { color: var(--muted); max-width: 700px; }
.site-footer { padding-block: 40px; font-size: .86rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.prose { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding-block: 80px 120px; }
.prose h1 { font-size: clamp(3.5rem, 8vw, 6.5rem); margin-bottom: 35px; }
.prose h2 { font-size: 2rem; margin: 55px 0 12px; }
.prose .lead { font-family: var(--serif); font-size: 1.4rem; }
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav-links a:not(:last-child) { display: none; }
  .hero, .result-grid, .section-head { grid-template-columns: 1fr; }
  .hero { padding-top: 55px; gap: 60px; }
  h1 { font-size: clamp(3.6rem, 19vw, 5.8rem); }
  .refine-layout, .three-up { grid-template-columns: 1fr; }
  .live-estimate { position: static; order: -1; }
  .countdown { grid-template-columns: 1fr 1fr; }
  .time-unit { border-bottom: 1px solid #696e68; }
  .time-unit:nth-child(2) { border-right: 0; padding-left: 12px; }
  .time-unit:nth-child(3), .time-unit:nth-child(4) { border-bottom: 0; }
  .minute-rail { gap: 2px; height: 30px; }
  .share-block { grid-template-columns: 1fr; }
  #share-status { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .live-estimate.is-updated .live-date, .seconds-unit.is-ticking span { animation: none; } .minute-rail i { transition: none; } }
