:root {
  --paper: #f3f1ea;
  --ink: #161513;
  --dim: #3f3c37;
  --quiet: #6d6860;
  --line: #d8d3c8;
  --red: #c43228;
  --pad: clamp(18px, 4vw, 52px);
  --max: 1080px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: #f3f1ea; }
body {
  margin: 0;
  background-color: #f3f1ea;
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip { position: absolute; left: 12px; top: -40px; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { top: 12px; }
/* Safari 26 paints the tab bar from a full-width fixed strip at the top, not from theme-color. */
.chrome {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: #f3f1ea;
  pointer-events: none;
  z-index: 2;
  animation: canopy-chrome linear both;
  animation-timeline: scroll();
  animation-range: 10px 11px;
}
@keyframes canopy-chrome { to { transform: translateY(-100px); } }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--ink);
}
.brand { text-decoration: none; font-weight: 620; letter-spacing: -0.04em; font-size: 22px; margin-left: -6px; }
.brand i { display: inline-block; width: 10px; height: 10px; background: var(--red); margin-right: 8px; font-style: normal; }
.top a { text-decoration: none; }

.sheet { width: min(var(--max), calc(100% - var(--pad) * 2)); margin: 0 auto; }
.hero { padding: 8vh 0 6vh; position: relative; }
.hero h1,
.hero .lede,
.hero .actions { margin-left: 18px; }
.hero:before, .hero:after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--red);
  border-style: solid;
}
.hero:before { top: 28px; left: -6px; border-width: 1px 0 0 1px; }
.hero:after { top: 28px; right: -6px; border-width: 1px 1px 0 0; }
h1 {
  font-weight: 560;
  font-size: clamp(52px, 8vw, 96px);
  letter-spacing: -0.045em;
  line-height: 0.9;
  margin: 0 0 18px;
  max-width: 10ch;
}
.lede { max-width: 36ch; font-size: 18px; color: var(--dim); margin: 0 0 28px; }
.actions { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.btn {
  background: var(--red);
  color: white;
  text-decoration: none;
  padding: 12px 16px;
  border: 0;
  cursor: pointer;
  transition: none;
}
.btn:hover,
.close .btn:hover { background: #b82e26; transition: none; }
.ghost { color: var(--ink); }

.why { border-top: 1px solid var(--ink); }
.chapter {
  display: grid;
  grid-template-columns: 72px 1fr 1.1fr;
  gap: 24px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}
.num { font-variant-numeric: tabular-nums; color: var(--red); letter-spacing: 0.08em; padding-top: 8px; }
.chapter h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; font-weight: 560; margin: 0 0 8px; line-height: 1; }
.chapter p { margin: 0; color: var(--dim); max-width: 36ch; }

.marquee {
  height: 220px;
  overflow: hidden;
  border: 1px solid var(--ink);
  position: relative;
  background: #faf8f3;
}
.marquee ul {
  list-style: none;
  margin: 0;
  padding: 8px 16px;
  animation: rise 28s linear infinite;
}
.marquee li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.marquee .ct { color: var(--quiet); }
@keyframes rise {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.marquee:hover ul { animation-play-state: paused; }

.estimator { border: 1px solid var(--ink); padding: 16px 16px 18px; background: #faf8f3; }
.estimator label { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); }
.moneyline { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--ink); margin: 6px 0 16px; }
.moneyline span { font-size: 28px; }
.moneyline input {
  border: 0;
  background: transparent;
  font-size: 40px;
  letter-spacing: -0.04em;
  width: 100%;
  padding: 0 0 4px;
}
.moneyline input:focus { outline: none; }
.est-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.est-row b { font-weight: 560; font-variant-numeric: tabular-nums; }

.offer {
  border: 1px solid var(--ink);
  padding: 16px;
  background: white;
  min-height: 180px;
}
.offer .shop { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--quiet); margin: 0 0 12px; }
.offer strong { display: block; font-size: 28px; letter-spacing: -0.04em; font-weight: 560; line-height: 1; }
.offer em { font-style: normal; color: var(--dim); display: block; margin-top: 10px; }

.form-block { padding: 64px 0 48px; }
.form-block h2 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.045em; margin: 0 0 8px; font-weight: 560; line-height: 0.95; max-width: 14ch; }
form.sheet-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 28px; }
.full { grid-column: 1 / -1; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiet); }
label.field input, label.field select, label.field textarea {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 8px 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 17px;
  color: var(--ink);
}
textarea {
  min-height: 4.5rem;
  max-height: 9rem;
  resize: vertical;
  overflow: auto;
}
.form-note { color: var(--quiet); font-size: 14px; }
#form-done { margin-top: 16px; min-height: 1.4em; }

.stories { padding-bottom: 48px; }
.stories h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.04em; font-weight: 560; margin: 0 0 8px; }
.story { border-top: 1px solid var(--line); }
.story summary {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.story summary::-webkit-details-marker { display: none; }
.story summary::marker { content: ""; }
.story summary::after {
  content: "";
  justify-self: end;
  align-self: center;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
}
.story[open] summary::after { transform: rotate(225deg); }
.story time { color: var(--quiet); font-variant-numeric: tabular-nums; font-size: 14px; }
.story strong { font-weight: 560; font-size: 20px; letter-spacing: -0.03em; }
.story-body { padding: 0 0 28px; }
.story-body .figure { margin: 4px 0 20px; border-top: 0; }
.story-body .figure b { font-size: 28px; }
.story-body .prose { max-width: 62ch; }

.close {
  background: var(--ink);
  color: var(--paper);
  padding: 64px var(--pad);
}
.close inner, .close .inner { width: min(var(--max), 100%); margin: 0 auto; }
.close h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.045em; line-height: 0.95; font-weight: 520; max-width: 16ch; margin: 0 0 28px; }
.close .btn { background: var(--red); transition: none; }
.close .btn:hover { background: #b82e26; transition: none; }

.foot { padding: 22px var(--pad) 40px; color: var(--quiet); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.page { padding: 6vh 0 8vh; }
.page h1 { max-width: 16ch; }
.prose { max-width: 62ch; color: var(--dim); }
.prose p { margin: 0 0 14px; }
.figure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 28px 0;
}
.figure div { padding: 16px 16px 16px 0; }
.figure b { display: block; font-size: 32px; letter-spacing: -0.04em; }
.figure span { color: var(--quiet); font-size: 14px; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (min-width: 801px) {
  .top {
    padding-left: max(var(--pad), calc((100% - var(--max)) / 2));
    padding-right: max(var(--pad), calc((100% - var(--max)) / 2));
  }
}
@media (max-width: 800px) {
  .form-block { padding-bottom: 28px; }
  .chapter, form.sheet-form, .figure { grid-template-columns: 1fr; }
  .story summary { grid-template-columns: 1fr auto; align-items: center; }
  .story[open] summary { padding-bottom: 12px; }
  .story-body .figure div { padding-top: 12px; padding-bottom: 12px; }
  .story-body .figure div:first-child { padding-top: 12px; }
  .story-body .figure div:last-child { padding-bottom: 32px; }
  .story summary time,
  .story summary strong { grid-column: 1; }
  .story summary::after { grid-column: 2; grid-row: 1 / span 2; }
  .top { flex-wrap: wrap; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee ul { animation: none; }
  html { scroll-behavior: auto; }
}
