/* One-page absentee ballot guide. Same palette and type as 4fred.com
   (Greenwich Registrars of Voters green and gold), plainer layout. Light theme only. */
:root {
  --paper: #fafaf7;
  --white: #ffffff;
  --ink: #172026;
  --muted: #59656b;
  --teal: #1f4433;
  --teal-deep: #15301f;
  --teal-wash: #e7ede9;
  --gold: #b99c35;
  --gold-soft: #d9c27a;
  --line: #d8dfdc;
  --read: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--ui); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--white); padding: 8px 12px; }

h1, h2, h3 { font-family: var(--read); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.35rem; font-weight: 600; }
.label { font: 700 .75rem/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 .8rem; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250,250,247,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark img { width: 64px; }
.wordmark strong { display: block; font: 600 1.25rem/1.2 var(--ui); }
.wordmark small { display: block; font-size: .85rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--teal); }

/* Buttons */
.btn { display: inline-block; font: 600 1rem var(--ui); text-decoration: none; cursor: pointer; padding: 13px 24px; border-radius: 4px; border: 2px solid transparent; }
.btn-gold { background: var(--gold-soft); color: var(--teal-deep); }
.btn-gold:hover { background: #e6d395; }
.btn-light { border-color: currentColor; color: var(--white); }
.btn-light:hover { background: rgba(255,255,255,.08); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); }

/* Hero */
.hero { background: var(--teal); color: var(--white); padding-block: clamp(48px, 8vw, 96px); }
.hero .label { color: var(--gold-soft); }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lede { font: 400 clamp(1.15rem, 2vw, 1.35rem)/1.6 var(--read); max-width: 46ch; color: #e3ebe6; margin: 0 0 1.8rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { margin: 1.2rem 0 0; font-size: .92rem; color: #c9d8cf; }
.hero .fine a { color: var(--white); }

/* Sections */
section { padding-block: clamp(48px, 7vw, 84px); }
section.alt { background: var(--white); border-block: 1px solid var(--line); }
.intro { max-width: 60ch; margin-bottom: 2rem; }

/* Key dates */
.dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.dates li { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 4px; padding: 18px; }
.dates b { display: block; font: 500 1.5rem/1.2 var(--read); color: var(--teal); margin-bottom: 6px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 26px; border: 2px solid var(--ink); border-radius: 50%; font: 600 .9rem var(--ui); margin-bottom: 14px; }
.steps p { margin: 0 0 .6em; }

/* Checklist */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin: 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 26px; height: 15px; margin-top: 6px; border-radius: 50%; background: var(--ink); }

/* Two columns */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.cols ul { padding-left: 1.2em; }
.cols li { margin-bottom: .4em; }
.card { background: var(--teal-wash); border-radius: 6px; padding: 24px; }
.card p:last-child { margin-bottom: 0; }

/* About */
.about { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about img { border-radius: 6px; }
.stat { font: 500 clamp(2.4rem, 5vw, 3.4rem)/1 var(--read); color: var(--teal); margin: 0 0 .3rem; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 4vw, 32px); min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; min-width: 0; }
.form input, .form textarea { font: 1rem var(--ui); color: var(--ink); width: 100%; min-width: 0; padding: 11px 13px; border: 1px solid #b9c4c1; border-radius: 4px; background: var(--paper); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: #10241a; color: #b7c1c4; padding-block: 36px 28px; font-size: .92rem; }
.site-footer p { margin: 0 0 .6em; max-width: 80ch; }
.site-footer a { color: #dfe6e8; }
.footer-name { color: var(--white); font-weight: 600; }

@media (max-width: 860px) {
  .dates { grid-template-columns: 1fr 1fr; }
  .steps, .checks, .cols, .about, .form-grid { grid-template-columns: 1fr; }
  .about img { max-width: 320px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .nav { display: none; }
  .wordmark img { width: 46px; }
  .dates, .field-row { grid-template-columns: 1fr; }
  .hero .btn { width: 100%; text-align: center; }
}
