@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
}

:root {
  --ink: #1c2838;
  --ink-soft: #3d4b5e;
  --blue: #1a4e8c;
  --blue-deep: #123055;
  --orange: #e85d04;
  --orange-deep: #9a3412;
  --paper: #f4f0e8;
  --paper-2: #ebe4d8;
  --white: #fffcf8;
  --line: #e0d6c8;
  --focus: #e85d04;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(18, 48, 85, 0.07);
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; }

.notice {
  background: var(--blue-deep);
  color: #f6f1e7;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.45rem 1rem;
}
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: flex; align-items: center; }
.logo img { height: 48px; width: auto; display: block; }
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.nav-open {
  display: none;
  border: 1px solid var(--blue);
  color: var(--blue-deep);
  background: var(--white);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: 600 1rem/1 var(--sans);
  cursor: pointer;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.05rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
}
.nav a:hover { color: var(--orange-deep); }
.nav a[aria-current="page"] {
  color: var(--orange-deep);
  box-shadow: inset 0 -2px 0 var(--orange);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  grid-template-areas:
    "copy form"
    "facts form";
  gap: 1.15rem 2.4rem;
  align-items: start;
  padding-top: 0.6rem;
}
.hero-copy { grid-area: copy; }
.hero .quote-card { grid-area: form; }
.hero .facts { grid-area: facts; margin: 0; }
.kicker {
  margin: 0 0 0.45rem;
  color: var(--orange-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 640; letter-spacing: -0.02em; line-height: 1.15; color: #14233a; }
h1 { font-size: clamp(2.05rem, 4.4vw, 3.25rem); margin: 0 0 0.8rem; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); margin: 2rem 0 0.7rem; }
h3 { font-size: 1.28rem; margin: 1.4rem 0 0.4rem; }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink); margin: 0 0 0.85rem; }
.prose > p,
.prose > ul,
.prose > ol,
.prose > h2,
.prose > h3,
.prose > .faq,
.prose > .sheet { max-width: 74ch; }
.layout .prose > p,
.layout .prose > ul,
.layout .prose > ol,
.layout .prose > h2,
.layout .prose > h3,
.layout .prose > .faq,
.layout .prose > .sheet { max-width: none; }
.prose p { margin: 0 0 0.95rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.3rem 0; }
.prose strong { font-weight: 700; }

.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1rem;
}
.quote-card h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
}
.zip-form { margin: 0; }
.zip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
}
.zip-field { display: flex; flex-direction: column; gap: 0.28rem; }
.zip-field span, .math label span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-deep);
}
.zip-field input, .math input {
  height: 48px;
  border: 1.5px solid #c9bfb2;
  border-radius: 8px;
  padding: 0 0.75rem;
  font: 600 1.15rem/1 var(--sans);
  color: var(--ink);
  background: #fff;
  width: 8.2rem;
  letter-spacing: 0.06em;
}
.math input { width: 100%; letter-spacing: 0; font-weight: 600; }
.zip-field input::placeholder { color: #8a8175; font-weight: 500; letter-spacing: 0; }
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.05rem;
  border-radius: 8px;
  border: 0;
  background: var(--blue);
  color: white;
  font: 700 1.05rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
button:hover, .btn:hover { background: var(--blue-deep); color: white; }
.form-help, .form-legal {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}
.zip-error {
  color: var(--orange-deep);
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0.55rem 0 0;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1.3rem 0 0.2rem;
  padding: 0;
  list-style: none;
}
.facts li {
  background: transparent;
  border-top: 2px solid var(--orange);
  padding-top: 0.45rem;
}
.facts strong { display: block; font-family: var(--serif); font-weight: 640; font-size: 1.05rem; }
.facts span { color: var(--ink-soft); font-size: 0.98rem; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.6rem 0;
}
.sheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  margin: 0.6rem 0 1.1rem;
  font-size: 1.02rem;
}
.sheet th, .sheet td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.sheet th { background: var(--blue-deep); color: #f6f1e7; font-weight: 650; }
.sheet tr:last-child td { border-bottom: 0; }
.checklist { list-style: none; padding: 0; margin: 0.4rem 0 1rem; }
.checklist li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  margin: 0.4rem 0;
}
.checklist label { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; }
.checklist input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--blue); }

.math {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0.6rem 0 1rem;
}
.math label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 650; }
.math .result {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.4em;
  font-size: 1.05rem;
}

.steps { list-style: none; padding: 0; margin: 0.4rem 0 1rem; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.15rem 0 0.85rem 3rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--blue-deep);
  color: white;
  font-family: var(--serif);
  font-weight: 640;
  display: grid;
  place-items: center;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
}
.aside { position: sticky; top: 0.8rem; }
.aside .quote-card h2 { font-size: 1.05rem; }
.related { margin-top: 1rem; }
.related h2 {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin: 0 0 0.4rem;
}
.related ol { margin: 0; padding-left: 1.1rem; }
.related li { margin: 0.28rem 0; }

.crumbs { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 0.7rem; }
.crumbs a { color: var(--ink-soft); }

.faq { margin: 0.4rem 0 1rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  margin: 0.45rem 0;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--blue-deep); }
.faq details p { margin: 0.45rem 0 0.2rem; }

.closer {
  margin-top: 2rem;
  background: var(--blue-deep);
  color: #f6f1e7;
  border-radius: 14px;
  padding: 1.3rem 1.3rem 1.4rem;
}
.closer h2 { color: white; margin-top: 0; }
.closer p { margin: 0 0 0.9rem; color: #f3eadf; }
.closer .btn { background: #c2410c; }
.closer .btn:hover { background: #9a3412; }

.guide-index { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.guide-index li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.guide-index a { font-family: var(--serif); font-weight: 640; font-size: 1.25rem; text-decoration: none; }
.guide-index a:hover { text-decoration: underline; }
.guide-index p { margin: 0.25rem 0 0; color: var(--ink-soft); }

.callout {
  border-left: 4px solid var(--blue);
  padding: 0.2rem 0 0.2rem 0.9rem;
  margin: 1rem 0;
  color: var(--ink);
}

.site-footer {
  background: var(--blue-deep);
  color: #e7eef6;
  padding: 2rem 0 1.2rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.site-footer .foot-label {
  font-family: var(--sans);
  font-weight: 700;
  color: #f6d7bf;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
}
.site-footer a { color: #f7f3ec; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.28rem 0; }
.legal-line {
  max-width: var(--max);
  margin: 1.2rem auto 0;
  padding: 0.9rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: #d5deea;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .nav-open { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 1.25rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    z-index: 5;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "form" "facts";
  }
  .layout, .facts, .footer-grid, .math { grid-template-columns: 1fr; }
  .layout { display: flex; flex-direction: column; }
  .aside { position: static; order: -1; }
  .zip-field input { width: 100%; }
  .zip-row button { width: 100%; }
  h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
