/* ==========================================================================
   Hartwell & Co. — ledger paper
   White #fdfdfb · Ledger rule #dfe6ee · Ink blue #1f3a5f · Margin red #c0392b
   Spectral (display) + Public Sans (body) · zero JS
   The page is ruled like accounting paper, red margin line included.
   ========================================================================== */

:root {
  --paper: #fdfdfb;
  --rule: #dfe6ee;
  --ink: #1f3a5f;
  --ink-deep: #142944;
  --margin-red: #c0392b;
  --gray: #4c5a6b;
  --display: "Spectral", Georgia, serif;
  --body: "Public Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

[id] { scroll-margin-top: 1rem; }

body {
  margin: 0;
  color: #2a3440;
  font-family: var(--body);
  font-size: 1.0425rem;
  line-height: 1.7;
  /* ruled ledger ground with a red margin line */
  background:
    linear-gradient(90deg, transparent 0 calc(min(7vw, 4.5rem) - 2px), var(--margin-red) calc(min(7vw, 4.5rem) - 2px) min(7vw, 4.5rem), transparent min(7vw, 4.5rem)),
    repeating-linear-gradient(var(--paper) 0 27px, var(--rule) 27px 28px);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
}

.skip-link:focus { top: 0.5rem; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.55em;
  color: var(--ink-deep);
}

h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); }

p { margin: 0 0 1em; }

a { color: var(--ink); text-decoration-color: var(--margin-red); }

/* content sits right of the red margin line */
.site-header, .hero, .section, .site-footer {
  padding-left: max(1.25rem, min(9vw, 6rem));
  padding-right: 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  max-width: 70rem;
  margin: 0 auto;
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  text-decoration: none;
  color: var(--ink-deep);
  white-space: nowrap;
}

.brand span { color: var(--margin-red); }

.header-call {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.55rem 1.2rem;
}

.header-call:hover { background: var(--margin-red); }

.site-nav { width: 100%; min-width: 0; max-width: 100%; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0.8rem;
  display: flex;
  gap: 1.6rem;
  border-bottom: 2px solid var(--ink);
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav ul::-webkit-scrollbar { display: none; }

.site-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--gray);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink-deep); text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 460px) {
  .brand { font-size: 1.2rem; }
  .header-call { font-size: 0.85rem; padding: 0.5rem 1rem; }
}

/* ---------- Hero ---------- */

.hero {
  max-width: 70rem;
  margin: 0 auto;
  padding-top: clamp(2.75rem, 7vw, 5rem);
  padding-bottom: 2rem;
}

.kicker {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--margin-red);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  max-width: 22ch;
}

.hero-lede { max-width: 56ch; font-size: 1.1rem; color: var(--gray); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--ink);
}

.btn:hover, .btn:focus-visible { background: var(--ink-deep); border-color: var(--ink-deep); }

.btn-line { background: transparent; color: var(--ink-deep); }

.btn-line:hover, .btn-line:focus-visible { background: var(--rule); }

/* ---------- Fee table ---------- */

.section {
  max-width: 70rem;
  margin: 0 auto;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-lede { max-width: 46rem; margin-bottom: 1.75rem; color: var(--gray); }

.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 2px solid var(--ink);
}

.fee-table th, .fee-table td {
  border: 1px solid var(--rule);
  text-align: left;
  padding: 0.7rem 0.9rem;
  vertical-align: top;
  font-size: 0.97rem;
}

.fee-table thead th {
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-color: var(--ink);
}

.fee-table tbody th { font-weight: 600; color: var(--ink-deep); }

.fee-table td:nth-child(2) {
  font-family: var(--display);
  font-weight: 700;
  color: var(--margin-red);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .fee-table td:nth-child(3) { display: none; }
  .fee-table th, .fee-table td { padding: 0.55rem 0.55rem; font-size: 0.9rem; }
  .fee-table tbody th { font-size: 0.9rem; }
}

/* ---------- Calendar band ---------- */

.calendar-band {
  max-width: none;
  background: var(--ink-deep);
  color: #cdd9e8;
}

.calendar-band > * {
  max-width: 63rem;
  margin-left: auto;
  margin-right: auto;
}

.calendar-band h2 { color: #fff; }

.section-lede-light { color: #9fb2c8; }

.deadline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44rem;
  columns: 2;
  column-gap: 3rem;
}

.deadline-list li {
  break-inside: avoid;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(205, 217, 232, 0.2);
}

.deadline-list time {
  font-family: var(--display);
  font-weight: 700;
  color: #e8b35a;
  min-width: 4.2rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .deadline-list { columns: 1; }
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 50rem; }

.faq-list details { border-bottom: 1px solid var(--rule); background: rgba(255, 255, 255, 0.6); }

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-deep);
  padding: 0.95rem 0.5rem;
}

.faq-list summary:hover { color: var(--margin-red); }

.faq-list details p { color: var(--gray); padding: 0 0.5rem 1rem; margin: 0; }

/* ---------- Fit band ---------- */

.fit-band { max-width: none; background: #eef2f7; }

.fit-band > * { max-width: 63rem; margin-left: auto; margin-right: auto; }

.fit-lede { font-size: 1.1rem; max-width: 48rem; }

.fit-note { font-size: 0.9rem; color: var(--gray); margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  max-width: 70rem;
  margin: 0 auto;
  border-top: 2px solid var(--ink);
  text-align: left;
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
  font-size: 0.92rem;
  color: var(--gray);
}

.footer-fine { font-size: 0.8rem; opacity: 0.85; }

.social-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  justify-content: flex-start;
  padding: 0;
  margin: 1rem 0 0;
}

.social-links a { display: inline-flex; color: var(--ink); opacity: 0.85; }

.social-links a:hover, .social-links a:focus-visible { opacity: 1; }

.social-links svg { width: 1.3rem; height: 1.3rem; }
