@font-face { font-family: "Lexend"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/lexend-700.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/atkinson-hyperlegible-400.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/atkinson-hyperlegible-700.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ink: #2f1a11;
  --muted: #5a4638;
  --line: #2f1a11;
  --paper: #eadfc6;
  --paper-deep: #d9caa4;
  --silk: #fbf6ea;
  --dusk: #262a58;
  --dusk-deep: #171a3d;
  --dusk-floor: #0f1030;
  --ember: #d4571c;
  --ember-deep: #8f3208;
  --ember-fill: #a93b0a;
  --lichen: #c3d06a;
  --accent: #8f3208;
  --accent-dark: #2f1a11;
  --head: "Lexend", "Trebuchet MS", Verdana, sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, Tahoma, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.55 var(--body); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 4px solid var(--dusk); outline-offset: 3px; }
h1, h2, h3, h4, legend { font-family: var(--head); font-weight: 700; }

/* ---- stage: header and the dusk plate ---- */
.stage { background: var(--dusk); color: var(--silk); }
.site-header { border-bottom: 4px solid var(--dusk-floor); background: var(--dusk-deep); color: var(--silk); }
.header-inner { max-width: 1180px; margin: auto; padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; font-size: 16px; line-height: 1.25; color: var(--silk); }
.brand strong { display: block; font-family: var(--head); font-size: 18px; letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 0; background: var(--lichen); color: var(--ink); font: 700 22px/1 var(--head); box-shadow: 5px 5px 0 var(--dusk-floor); }
.header-link { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--silk); white-space: nowrap; font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--lichen); text-underline-offset: 6px; cursor: pointer; }
.header-link:hover { text-decoration-color: var(--ember); }
.stage :focus-visible { outline-color: var(--lichen); }

.plate { position: relative; overflow: hidden; }
.plate-wrap { position: relative; width: min(100% - 48px, 1120px); margin: auto; }
.plate-wrap::after { content: ""; position: absolute; right: 0; bottom: 18px; width: 26px; height: 26px; background: var(--lichen); clip-path: polygon(0 0, 100% 0, 100% 100%, 46% 100%, 46% 46%, 0 46%); }
.plate-art { position: absolute; top: 26px; right: 0; width: 54%; height: 400px; pointer-events: none; }
.plate-art svg { display: block; width: 100%; height: 100%; }

.minimal-shell { position: relative; width: 100%; margin: 0; padding: 56px 0 56px; display: flex; flex-direction: column; min-height: 0; }
.minimal-shell h1 { margin: 0 0 30px; max-width: 8.5em; min-height: 372px; display: flex; align-items: center; color: var(--silk); font-family: var(--head); font-weight: 700; font-size: clamp(40px, 6.2vw, 88px); line-height: 1.04; letter-spacing: -.02em; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.choice-grid a { position: relative; min-height: 136px; padding: 62px 58px 18px 20px; display: flex; align-items: flex-end; border: 0; border-radius: 0; background: var(--silk); color: var(--ink); font-family: var(--head); font-size: clamp(18px, 1.7vw, 22px); font-weight: 700; line-height: 1.22; letter-spacing: 0; text-decoration: none; box-shadow: 0 0 0 var(--dusk-floor); transform: translate(0, 0); transition: transform .25s steps(3), box-shadow .25s steps(3); }
.choice-grid a:nth-child(1), .choice-grid a:nth-child(5) { background: var(--lichen); }
.choice-grid a:nth-child(3), .choice-grid a:nth-child(4) { background: var(--silk); }
.choice-grid a:nth-child(3) { background: var(--ember-fill); color: var(--silk); }
.choice-grid a:nth-child(4) { background: var(--silk); }
.choice-grid a:nth-child(6) { background: var(--silk); }
.choice-grid a::before { content: ""; position: absolute; top: 16px; left: 20px; width: 30px; height: 30px; background: var(--ember); }
.choice-grid a:nth-child(1)::before { clip-path: circle(50%); }
.choice-grid a:nth-child(2)::before { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--dusk); }
.choice-grid a:nth-child(3)::before { clip-path: polygon(0 100%, 50% 0, 100% 100%); background: var(--lichen); }
.choice-grid a:nth-child(4)::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 58%, 42% 58%, 42% 42%, 0 42%); background: var(--ember); }
.choice-grid a:nth-child(5)::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--dusk); }
.choice-grid a:nth-child(6)::before { clip-path: circle(50%); background: var(--lichen); box-shadow: inset 0 0 0 0 transparent; }
.choice-grid a::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 20px; height: 20px; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 40%, 40% 40%, 40% 100%, 0 100%); }
.choice-grid a:hover, .choice-grid a:focus-visible { transform: translate(-6px, -10px); box-shadow: 10px 14px 0 var(--dusk-floor); animation: hover-drift 4.8s steps(8) infinite; }
.choice-grid a:focus-visible { outline: 4px solid var(--silk); outline-offset: 5px; }
@keyframes hover-drift { 0%, 100% { transform: translate(-6px, -10px); } 50% { transform: translate(-6px, -16px); } }
.agency-line { margin: 34px 0 0; padding: 0 44px 0 0; color: var(--silk); font-size: 16px; font-weight: 700; }
.agency-line a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 3px; text-decoration-color: var(--lichen); text-underline-offset: 5px; }

@media (min-width: 851px) {
  .home-shell { min-height: 0; padding-bottom: 56px; }
}

/* ---- local board (filled by the runtime) ---- */
.local-board { border-top: 6px solid var(--dusk-floor); background: var(--paper); color: var(--ink); }
.local-wrap { max-width: 1180px; margin: auto; padding: 72px 32px 96px; }
.local-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 0 0 32px; border-bottom: 5px solid var(--ink); }
.local-kicker, .local-card-kicker, .local-section-heading > span, .local-small-label { color: var(--ember-deep); font-family: var(--body); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.local-kicker { margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.local-kicker span { color: var(--ember); padding: 0 4px; }
.local-intro h2 { margin: 0; font: 700 clamp(36px, 5.2vw, 66px)/1.05 var(--head); letter-spacing: -.02em; }
.local-intro > div > p:last-child { max-width: 560px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.local-generated { flex: none; margin: 0 0 3px; color: var(--muted); font-size: 14px; font-weight: 700; }
.local-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 64px 0 22px; }
.local-section-heading h3 { margin: 0; font: 700 clamp(26px, 3vw, 36px)/1.1 var(--head); letter-spacing: -.015em; }
.local-section-heading > span { order: 2; padding-bottom: 6px; text-align: right; }
.local-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.local-card { position: relative; min-width: 0; padding: 28px 29px 44px; border: 4px solid var(--ink); border-radius: 0; background: var(--silk); box-shadow: 8px 8px 0 var(--paper-deep); }
.local-card::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 16px; height: 16px; background: var(--ember); clip-path: polygon(0 0, 100% 0, 100% 40%, 40% 40%, 40% 100%, 0 100%); }
.local-card:nth-child(3n+2)::after { background: var(--dusk); }
.local-card:nth-child(3n)::after { background: #6b7a1d; }
.local-card h4 { margin: 7px 0 18px; font: 700 clamp(22px, 2.5vw, 29px)/1.15 var(--head); letter-spacing: -.01em; }
.local-card-kicker { margin: 0; }
.local-card .local-copy { max-width: 64ch; margin: 10px 0; color: #43322a; }
.local-card .local-subtle, .local-subtle { display: block; color: var(--muted); font-size: 15px; }
.local-source { margin: 24px 0 0; padding: 14px 30px 0 0; border-top: 3px solid var(--ink); color: var(--muted); font-size: 14px; font-weight: 700; }
.local-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--ember-deep); font-size: 16px; font-weight: 700; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.local-wide { grid-column: 1 / -1; }
.local-weather-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; padding: 13px 0 27px; border-bottom: 3px solid var(--ink); }
.local-weather-lead > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px 22px; }
.local-big-temp { font: 700 clamp(72px, 11vw, 120px)/.9 var(--head); letter-spacing: -.04em; color: var(--ink); }
.local-weather-condition { max-width: 200px; color: var(--muted); font-size: 18px; }
.local-weather-note { padding-bottom: 7px; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 16px; }
.local-weather-note strong { color: var(--ink); font-size: 18px; }
.local-day-strip, .local-hour-strip { display: flex; overflow-x: auto; scrollbar-width: thin; }
.local-day-strip { gap: 0; padding: 22px 0; border-bottom: 3px solid var(--ink); }
.local-day { flex: 0 0 150px; padding: 0 14px; border-left: 3px solid var(--ink); display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); line-height: 1.3; }
.local-day:first-child { padding-left: 0; border-left: 0; }
.local-day strong { color: var(--ink); font-size: 15px; }
.local-day-temp { color: var(--ember-deep); font: 700 22px/1.2 var(--head); }
.local-small-label { margin: 23px 0 14px; }
.local-hour-strip { gap: 10px; }
.local-hour { flex: 0 0 96px; padding: 11px 10px; border: 3px solid var(--ink); border-radius: 0; background: var(--paper); display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.local-hour strong { color: var(--ink); font: 700 21px/1.2 var(--head); }
.local-big-number { margin: 16px 0 8px; color: var(--ember-deep); font: 700 68px/1 var(--head); letter-spacing: -.04em; }
.local-radar { margin: 19px 0 0; overflow: hidden; border: 4px solid var(--ink); border-radius: 0; background: var(--silk); }
.local-radar img { display: block; width: 100%; height: auto; }
.local-radar figcaption { padding: 8px 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.local-alert, .local-advisory { display: flex; gap: 19px; padding: 24px 27px; margin-top: 21px; border: 4px solid #7a1f0d; border-radius: 0; background: #fbe0cf; color: var(--ink); box-shadow: 8px 8px 0 var(--paper-deep); }
.local-alert-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 0; background: #7a1f0d; color: #fff; font-weight: 700; }
.local-alert h3, .local-advisory h3 { margin: 7px 0 9px; font-size: 20px; line-height: 1.35; }
.local-alert p, .local-advisory p { margin-bottom: 0; }
.local-advisory { align-items: center; border-color: var(--ink); background: #e3eaa6; }
.local-advisory-mark { flex: none; color: var(--ember-deep); font-size: 38px; line-height: 1; }
.local-advisory h3 { font: 700 clamp(19px, 2.2vw, 25px)/1.25 var(--head); }
.local-advisory-alert { border-color: #7a1f0d; background: #fbe0cf; }
.local-row { padding: 13px 0; border-bottom: 3px solid var(--paper-deep); }
.local-row:first-of-type { padding-top: 0; }
.local-row:last-of-type { border-bottom: 0; }
.local-row-title { display: block; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.35; text-decoration-thickness: 2px; text-decoration-color: var(--ember); text-underline-offset: 4px; }
.local-row-detail { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.local-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 35px; }
.local-market-name { display: block; font-size: 18px; }
.local-lottery { padding: 12px 0; border-bottom: 3px solid var(--paper-deep); display: flex; flex-direction: column; gap: 5px; }
.local-lottery strong { font: 700 21px/1.2 var(--head); letter-spacing: .02em; }

/* ---- inner pages: question and quote ---- */
.page-shell { max-width: 1180px; margin: auto; padding: 60px 32px 92px; }
.intro { display: flex; flex-direction: column; }
.intro h1 { order: 1; }
.eyebrow { order: 2; margin: 18px 0 0; padding-left: 16px; border-left: 8px solid var(--ember); color: var(--ember-deep); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.intro h1 { margin: 0; font: 700 clamp(36px, 5.2vw, 70px)/1.06 var(--head); letter-spacing: -.02em; }
.intro-copy { order: 3; margin: 14px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); max-width: 62ch; }

.options { margin-top: 50px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.option { min-width: 0; min-height: 247px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; border: 4px solid var(--ink); border-radius: 0; background: var(--silk); transition: transform .25s steps(3), box-shadow .25s steps(3); }
.option:hover { transform: translate(-5px, -8px); box-shadow: 9px 12px 0 var(--paper-deep); }
.option-number { color: var(--ember-deep); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.option h2 { margin: 19px 0 7px; font-size: clamp(22px, 2.5vw, 28px); line-height: 1.15; letter-spacing: -.01em; }
.option p { margin: 0; color: var(--muted); font-size: 16px; max-width: 30ch; }
.option .option-action { margin-top: auto; padding: 12px 15px; min-height: 48px; width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-radius: 0; color: var(--silk); background: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.25; text-decoration: none; text-align: left; cursor: pointer; }
.option-action:hover { background: var(--dusk); }
.option-action span { font-size: 19px; line-height: 1; }
.option .option-note { margin-top: 7px; font-size: 14px; color: var(--muted); }

.question-section { scroll-margin-top: 25px; margin-top: 54px; padding: 40px; border: 4px solid var(--ink); border-radius: 0; background: var(--silk); box-shadow: 10px 10px 0 var(--paper-deep); }
.question-heading h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.015em; }
.question-heading > p:last-child { margin: 13px 0 0; color: var(--muted); }
.question-form { margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 22px; }
.form-grid label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 16px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; border: 3px solid var(--ink); border-radius: 0; padding: 12px 14px; color: var(--ink); background: #fff; font-weight: 400; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 4px solid var(--dusk); outline-offset: 2px; background: #fffef8; }
.form-grid input, .form-grid select { min-height: 52px; }
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid .message-field { grid-column: 1 / -1; }
.form-grid .checkbox-row, .quote-form > fieldset > .checkbox-row { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; }
.form-grid .checkbox-row { grid-column: 1 / -1; }
.form-grid .checkbox-row input, .quote-form > fieldset > .checkbox-row input { width: 24px; min-width: 24px; height: 24px; min-height: 24px; margin: 2px 0 0; accent-color: var(--dusk); }
.quote-form > fieldset > .checkbox-row { margin-top: 22px; }
.honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-bottom { margin-top: 28px; }
.form-bottom button { min-height: 54px; display: inline-flex; align-items: center; gap: 12px; border: 0; border-radius: 0; padding: 13px 22px; color: var(--silk); background: var(--ember-fill); font-family: var(--head); font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 0 0 var(--ink); transition: transform .2s steps(3), box-shadow .2s steps(3); }
.form-bottom button:hover, .form-bottom button:focus-visible { background: var(--ember-fill); transform: translate(-4px, -6px); box-shadow: 7px 9px 0 var(--ink); }
.submit-note { max-width: 610px; margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.form-status { min-height: 22px; margin: 13px 0 0; color: var(--ember-deep); font-weight: 700; font-size: 16px; }

.product-switch { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 20px; }
.product-switch a { display: inline-flex; align-items: center; min-height: 48px; border: 3px solid var(--ink); border-radius: 0; padding: 8px 18px; background: var(--silk); color: var(--ink); font-weight: 700; text-decoration: none; transition: transform .2s steps(3), box-shadow .2s steps(3); }
.product-switch a:hover { transform: translate(-3px, -4px); box-shadow: 5px 6px 0 var(--paper-deep); }
.product-switch a[aria-current="page"] { border-color: var(--dusk); color: var(--silk); background: var(--dusk); transform: translate(-3px, -4px); box-shadow: 5px 6px 0 var(--ink); }
.quote-form fieldset { min-width: 0; margin: 22px 0; padding: 29px; border: 4px solid var(--ink); border-radius: 0; background: var(--silk); }
.quote-form legend { padding: 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.quote-form .form-grid { margin-top: 4px; }
.quote-submit { margin: 22px 0 55px; max-width: 720px; }
.quote-submit button, .quote-results button { min-height: 52px; border: 0; border-radius: 0; padding: 13px 22px; color: var(--silk); background: var(--ember-fill); font-family: var(--head); font-size: 17px; font-weight: 700; cursor: pointer; transition: transform .2s steps(3), box-shadow .2s steps(3); }
.quote-submit button:hover:not(:disabled), .quote-results button:hover:not(:disabled) { transform: translate(-4px, -6px); box-shadow: 7px 9px 0 var(--ink); }
.quote-submit button:disabled, .quote-results button:disabled { cursor: wait; opacity: .6; }
#quote-status { color: var(--ember-deep); font-weight: 700; }
.quote-results { margin: 30px 0 70px; padding: 28px; border: 4px solid var(--ink); border-radius: 0; background: var(--silk); box-shadow: 10px 10px 0 var(--paper-deep); }
.quote-results h2 { margin: 0 0 16px; }
.quote-results article { border-top: 4px solid var(--ink); padding: 20px 0; }
.quote-results article h3 { margin: 0 0 5px; }
.quote-results article p { margin: 4px 0 13px; }

.site-footer { border-top: 6px solid var(--dusk-floor); max-width: none; margin: 0; padding: 27px max(32px, calc((100% - 1116px) / 2)) 35px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; background: var(--dusk); color: var(--silk); font-size: 16px; }
.site-footer p { margin: 0; }
.site-footer > p:first-child { color: var(--silk); font-weight: 700; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 3px; text-decoration-color: var(--lichen); text-underline-offset: 5px; }
.site-footer .footer-note { flex-basis: 100%; }
.site-footer :focus-visible { outline-color: var(--lichen); }

@media (max-width: 850px) {
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-intro { align-items: flex-start; flex-direction: column; }
  .plate-art { position: relative; top: auto; width: 100%; height: 250px; margin-top: 18px; }
  .minimal-shell { padding-top: 22px; }
  .minimal-shell h1 { min-height: 0; max-width: none; margin-bottom: 26px; }
  .plate-wrap::after { bottom: 14px; }
}

@media (max-width: 590px) {
  .header-inner { padding: 14px 20px; flex-wrap: wrap; gap: 4px 16px; }
  .brand { font-size: 14px; gap: 10px; }
  .brand strong { font-size: 16px; }
  .header-link { margin-left: auto; font-size: 15px; white-space: normal; text-align: right; }
  .plate-wrap { width: calc(100% - 40px); }
  .plate-art { height: 210px; }
  .page-shell { padding: 42px 20px 65px; }
  .options { margin-top: 37px; grid-template-columns: 1fr; gap: 16px; }
  .option { min-height: 0; padding: 23px; }
  .option h2 { margin-top: 15px; }
  .option .option-action { margin-top: 20px; }
  .question-section { margin-top: 40px; padding: 26px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .quote-form fieldset { padding: 22px 16px; }
  .site-footer { padding: 25px 20px 34px; }
  .choice-grid { grid-template-columns: 1fr; gap: 18px; }
  .choice-grid a { min-height: 104px; padding: 56px 56px 16px 20px; }
  .agency-line { padding-right: 40px; }
  .local-wrap { padding: 52px 20px 70px; }
  .local-section-heading { margin-top: 46px; align-items: flex-start; flex-direction: column; gap: 7px; }
  .local-section-heading { flex-direction: column-reverse; }
  .local-section-heading > span { order: 0; text-align: left; padding-bottom: 0; }
  .local-grid, .local-weather-lead, .local-news-list { grid-template-columns: 1fr; }
  .local-card { padding: 24px 20px 44px; }
  .local-weather-lead { gap: 14px; }
  .local-alert, .local-advisory { padding: 22px 18px; gap: 12px; }
  .local-day { flex-basis: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .choice-grid a, .option, .form-bottom button, .quote-submit button, .quote-results button, .product-switch a { transition: none; animation: none !important; }
}
