@font-face { font-family: "Gloock"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/gloock-400.woff2) format("woff2"); }
@font-face { font-family: "Commissioner"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/commissioner-400.woff2) format("woff2"); }
@font-face { font-family: "Commissioner"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/commissioner-700.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --night: #131a33;
  --dusk: #26325c;
  --umber: #2a1b14;
  --fog: #edeff4;
  --card: #fbfcfe;
  --line: #c2c9dc;
  --ink: #1b2240;
  --muted: #4a5472;
  --oat: #c9973a;
  --oat-dark: #7a5410;
  --rust: #8a3a22;
  --lamp: #b3261e;
  --glow: #f7d3ae;
  --title: "Gloock", "Georgia", serif;
  --text: "Commissioner", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--fog); font: 400 17px/1.6 var(--text); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
.stage :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--glow); }
.stage .choice-grid a:focus-visible { outline-color: #fff; }

/* The painted stage: azure, three hill planes and the foreground, all behind the page's own cel. */
.stage { position: relative; background: var(--umber); color: #f6f1e7; isolation: isolate; overflow: hidden; }
.stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 560px; z-index: -2; background: linear-gradient(180deg, #0f1530 0, #1f2a55 150px, #4e4577 245px, #b66f87 320px, #ee9f86 392px, #f4c79e 450px); }
.stage-art { position: absolute; inset: 0 0 auto 0; width: 100%; height: 560px; z-index: -1; display: block; }
.stage > .site-header, .stage > main { position: relative; z-index: 1; }
.verge { margin-top: -1px; line-height: 0; background: var(--umber); }
.verge-art { display: block; width: 100%; height: 56px; }

/* Header: a dark cel with a painted hill edge below it on inner pages. */
.site-header { position: relative; background: var(--night); color: #f6f1e7; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: linear-gradient(180deg, #6d769c 0 4px, var(--oat) 4px 8px, var(--rust) 8px 12px); pointer-events: none; }
.stage .site-header { background: transparent; }
.stage .site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: linear-gradient(180deg, #6d769c 0 4px, var(--oat) 4px 8px, var(--rust) 8px 12px); pointer-events: none; }
.header-inner { max-width: 1180px; margin: auto; padding: 20px 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; }
.brand strong { display: block; font: 400 21px/1.15 var(--title); letter-spacing: .005em; }
.brand-mark { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 2px solid var(--glow); border-radius: 50% 50% 8px 8px; font: 400 23px/1 var(--title); color: var(--glow); }
.header-link { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--glow); white-space: nowrap; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; cursor: pointer; }
.header-link span { color: var(--glow); }

/* Home: title card on the nearest plane, the six choices as cels above the painting. */
.minimal-shell { width: min(100% - 40px, 1040px); min-height: 0; margin: auto; padding: clamp(18px, 3vw, 34px) 0 34px; display: flex; flex-direction: column; }
.minimal-shell h1 { margin: 0 0 clamp(104px, 13vw, 124px); max-width: none; font: 400 clamp(40px, 6.4vw, 84px)/1.04 var(--title); letter-spacing: -.005em; color: #f8f3ea; text-wrap: balance; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.choice-grid a { position: relative; min-height: 128px; padding: 22px 22px 24px; display: flex; align-items: flex-end; border: 2px solid var(--night); border-radius: 6px; background: var(--card); color: var(--ink); font: 400 clamp(21px, 2.1vw, 26px)/1.18 var(--title); text-decoration: none; box-shadow: 0 6px 0 var(--night); transition: transform .18s, box-shadow .18s, border-color .18s; }
.choice-grid a::before { content: ""; position: absolute; top: 14px; right: 14px; width: 46px; height: 16px; background: var(--oat); clip-path: polygon(0 100%, 22% 30%, 38% 66%, 62% 0, 82% 54%, 100% 100%); }
.choice-grid a:hover { transform: translateY(-3px); border-color: var(--lamp); box-shadow: 0 9px 0 var(--lamp); }
.choice-grid a:last-child { background: var(--night); color: #f8f3ea; border-color: var(--glow); box-shadow: 0 6px 0 #000; }
.choice-grid a:last-child::before { background: var(--glow); }
.choice-grid a:last-child:hover { border-color: #fff; box-shadow: 0 9px 0 var(--lamp); }
.agency-line { margin: 34px 0 0; padding: 0; color: #ebdfc8; font-size: 15px; font-weight: 700; }
.agency-line a { color: #fff; text-underline-offset: 4px; }

/* Inner pages: intro on the fog, a three-band painted rule under the title. */
.page-shell { max-width: 1180px; margin: auto; padding: 66px 32px 92px; }
.eyebrow { margin: 0 0 12px; color: var(--rust); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.intro h1 { margin: 0; max-width: 18ch; font: 400 clamp(38px, 5.4vw, 66px)/1.06 var(--title); color: var(--night); text-wrap: balance; }
.intro h1::after { content: ""; display: block; width: min(100%, 260px); height: 12px; margin-top: 20px; background: linear-gradient(180deg, #6d769c 0 4px, var(--oat) 4px 8px, var(--rust) 8px 12px); }
.intro-copy { margin: 22px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 680px; }

.options { margin-top: 55px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.option { min-width: 0; min-height: 247px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; border: 2px solid var(--night); border-radius: 6px; background: var(--card); box-shadow: 0 5px 0 var(--night); transition: transform .18s, border-color .18s; }
.option:hover { border-color: var(--lamp); transform: translateY(-2px); }
.option-number { color: var(--rust); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.option h2 { margin: 19px 0 7px; font: 400 clamp(24px, 2.7vw, 30px)/1.14 var(--title); }
.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: 6px; color: #fff; background: var(--night); font-weight: 700; font-size: 16px; line-height: 1.25; text-decoration: none; text-align: left; cursor: pointer; }
.option-action:hover { background: var(--lamp); }
.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: 60px; padding: 44px; border: 2px solid var(--night); border-radius: 6px; background: var(--card); box-shadow: 0 7px 0 var(--night); }
.question-heading h2 { margin: 0; font: 400 clamp(30px, 4vw, 44px)/1.12 var(--title); }
.question-heading > p:last-child { margin: 13px 0 0; color: var(--muted); }
.question-form { margin-top: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.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: 2px solid #6b7596; border-radius: 6px; padding: 12px 14px; color: var(--ink); background: #fff; font-weight: 400; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--night); outline: 3px solid var(--lamp); outline-offset: 1px; }
.form-grid input, .form-grid select { min-height: 50px; }
.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: 22px; min-width: 22px; height: 22px; min-height: 22px; margin: 2px 0 0; accent-color: var(--night); }
.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: 6px; padding: 13px 22px; color: #fff; background: var(--night); font-weight: 700; font-size: 17px; cursor: pointer; box-shadow: 0 4px 0 #000; }
.form-bottom button:hover { background: var(--lamp); }
.submit-note { max-width: 610px; margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.form-status { min-height: 22px; margin: 13px 0 0; color: var(--lamp); font-weight: 700; font-size: 16px; }

.product-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 38px 0 22px; }
.product-switch a { display: inline-flex; align-items: center; min-height: 46px; border: 2px solid var(--night); border-radius: 6px; padding: 8px 18px; background: var(--card); font-weight: 700; text-decoration: none; }
.product-switch a:hover { border-color: var(--lamp); }
.product-switch a[aria-current="page"] { border-color: var(--night); color: #fff; background: var(--night); }
.quote-form fieldset { min-width: 0; margin: 20px 0; padding: 30px; border: 2px solid var(--night); border-top: 8px solid var(--oat); border-radius: 0; background: var(--card); }
.quote-form legend { padding: 0 10px; font: 400 24px/1.2 var(--title); color: var(--night); }
.quote-form .form-grid { margin-top: 4px; }
.quote-submit { margin: 24px 0 55px; max-width: 720px; }
.quote-submit button, .quote-results button { min-height: 54px; border: 0; border-radius: 6px; padding: 13px 22px; color: #fff; background: var(--night); font-weight: 700; font-size: 17px; cursor: pointer; box-shadow: 0 4px 0 #000; }
.quote-submit button:hover, .quote-results button:hover { background: var(--lamp); }
.quote-submit button:disabled, .quote-results button:disabled { cursor: wait; opacity: .65; }
#quote-status { color: var(--lamp); font-weight: 700; }
.quote-results { margin: 30px 0 70px; padding: 28px; border: 2px solid var(--night); border-radius: 6px; background: var(--card); }
.quote-results h2 { margin: 0 0 16px; font: 400 32px/1.15 var(--title); }
.quote-results article { border-top: 2px solid var(--line); padding: 20px 0; }
.quote-results article h3 { margin: 0 0 5px; font: 400 24px/1.2 var(--title); }
.quote-results article p { margin: 4px 0 13px; }

.site-footer { border-top: 6px solid var(--oat); max-width: none; margin: 0; padding: 30px max(32px, calc((100% - 1116px) / 2)) 38px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; background: var(--umber); color: #e6dcc8; font-size: 15px; }
.site-footer p { margin: 0; }
.site-footer > p:first-child { color: #fff; font-weight: 700; }
.site-footer a { color: var(--glow); text-underline-offset: 4px; }
.site-footer .footer-note { flex-basis: 100%; }

/* Local board: the day's facts on their own cels over the fog. */
.local-board { background: var(--fog); color: var(--ink); }
.local-wrap { max-width: 1180px; margin: auto; padding: 56px 32px 80px; }
#local-board .local-wrap { padding-bottom: 20px; }
#city-notes .local-wrap { padding-top: 36px; }
.local-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 0 0 34px; border-bottom: 3px solid var(--night); }
.local-kicker, .local-card-kicker, .local-section-heading > span, .local-small-label { color: var(--oat-dark); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.local-kicker { margin: 0 0 16px; }
.local-kicker span { padding: 0 7px; color: var(--lamp); }
.local-intro h2 { margin: 0; font: 400 clamp(40px, 5.6vw, 68px)/1.04 var(--title); color: var(--night); }
.local-intro > div > p:last-child { max-width: 540px; margin: 18px 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: end; gap: 20px; margin: 60px 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.local-section-heading h3 { margin: 0; font: 400 clamp(29px, 3.5vw, 40px)/1.1 var(--title); color: var(--night); }
.local-section-heading > span { color: var(--muted); }
.local-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.local-card { min-width: 0; padding: 26px 28px; border: 1px solid var(--line); border-top: 6px solid var(--oat); border-radius: 0; background: #fff; box-shadow: 0 5px 0 #d3d8e6; }
.local-wide { grid-column: 1 / -1; border-top-color: var(--rust); }
.local-card h4 { margin: 7px 0 18px; font: 400 clamp(25px, 3vw, 32px)/1.14 var(--title); color: var(--night); }
.local-card-kicker { margin: 0; }
.local-card .local-copy { margin: 10px 0; color: #313a5a; font-size: 17px; }
.local-card .local-subtle, .local-subtle { display: block; color: var(--muted); font-size: 14px; }
.local-source { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.local-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--rust); font-size: 16px; font-weight: 700; text-underline-offset: 4px; }
.local-weather-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; padding: 13px 0 26px; border-bottom: 1px solid var(--line); }
.local-weather-lead > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px 22px; }
.local-big-temp { font: 400 clamp(76px, 12vw, 124px)/.9 var(--title); color: var(--night); }
.local-weather-condition { max-width: 200px; color: #313a5a; font-size: 18px; }
.local-weather-note { padding-bottom: 7px; display: flex; flex-direction: column; gap: 5px; color: #313a5a; 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: 1px solid var(--line); }
.local-day { flex: 0 0 150px; padding: 0 14px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.local-day:first-child { padding-left: 0; border-left: 0; }
.local-day strong { color: var(--ink); font-size: 15px; }
.local-day-temp { color: var(--rust); font: 400 24px/1.2 var(--title); }
.local-small-label { margin: 22px 0 14px; }
.local-hour-strip { gap: 9px; }
.local-hour { flex: 0 0 96px; padding: 11px 10px; border-radius: 6px; background: #e8ebf3; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.local-hour strong { color: var(--ink); font: 400 23px/1.2 var(--title); }
.local-big-number { margin: 16px 0 8px; color: var(--rust); font: 400 76px/1 var(--title); }
.local-radar { margin: 19px 0 0; overflow: hidden; border: 2px solid var(--night); border-radius: 6px; }
.local-radar img { display: block; width: 100%; height: auto; }
.local-radar figcaption { padding: 7px 10px; color: var(--muted); font-size: 13px; background: #fff; }
.local-alert, .local-advisory { display: flex; gap: 19px; padding: 22px 26px; margin-top: 21px; border: 2px solid var(--lamp); border-radius: 6px; background: #fff0eb; color: var(--ink); }
.local-alert-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lamp); 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(--oat); background: #fff6dc; }
.local-advisory-mark { flex: none; color: var(--oat-dark); font-size: 41px; line-height: 1; }
.local-advisory h3 { font: 400 clamp(21px, 2.5vw, 28px)/1.2 var(--title); }
.local-advisory-alert { border-color: var(--lamp); background: #fff0eb; }
.local-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.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-color: var(--oat); text-decoration-thickness: 2px; 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: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.local-lottery strong { font: 400 22px/1.2 var(--title); letter-spacing: .03em; }

@media (min-width: 851px) {
  .minimal-shell h1 { padding-right: 5%; }
}

@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; }
}

@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: 19px; }
  .brand-mark { width: 40px; height: 40px; font-size: 20px; }
  .header-link { margin-left: auto; font-size: 15px; white-space: normal; text-align: right; }
  .page-shell { padding: 48px 20px 65px; }
  .options { margin-top: 37px; grid-template-columns: 1fr; gap: 12px; }
  .option { min-height: 0; padding: 23px; }
  .option h2 { margin-top: 15px; }
  .option .option-action { margin-top: 20px; }
  .question-section { margin-top: 44px; padding: 26px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 19px; }
  .quote-form fieldset { padding: 24px 16px; }
  .site-footer { padding: 25px 20px 34px; }
  .minimal-shell { padding-top: 14px; }
  .minimal-shell h1 { max-width: 11ch; }
  .choice-grid { grid-template-columns: 1fr; gap: 14px; }
  .choice-grid a { min-height: 96px; padding: 38px 20px 18px; }
  .choice-grid a::before { top: 12px; width: 38px; height: 13px; }
  .choice-grid a:last-child { padding-top: 38px; }
  .local-wrap { padding: 44px 20px 60px; }
  .local-section-heading { margin-top: 46px; align-items: flex-start; flex-direction: column; gap: 7px; }
  .local-grid, .local-weather-lead, .local-news-list { grid-template-columns: 1fr; }
  .local-card { padding: 24px 20px; }
  .local-weather-lead { gap: 14px; }
  .local-alert, .local-advisory { padding: 20px 18px; gap: 12px; }
  .local-day { flex-basis: 130px; }
}

/* Motion: rotors turn slowly and the planes trail the scroll at different speeds; frozen for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .rotor { transform-box: view-box; animation: turn 48s linear infinite; }
  .plane-far .rotor { animation-duration: 72s; }
  .plane-near .rotor { animation-duration: 34s; }
  @keyframes turn { to { transform: rotate(360deg); } }
  @supports (animation-timeline: scroll()) {
    .plane-far { animation: trail-far linear both; animation-timeline: scroll(root); animation-range: 0 640px; }
    .plane-mid { animation: trail-mid linear both; animation-timeline: scroll(root); animation-range: 0 640px; }
    .plane-near { animation: trail-near linear both; animation-timeline: scroll(root); animation-range: 0 640px; }
    @keyframes trail-far { to { transform: translateY(26px); } }
    @keyframes trail-mid { to { transform: translateY(52px); } }
    @keyframes trail-near { to { transform: translateY(80px); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .choice-grid a, .option { transition: none; }
}
