:root {
  color-scheme: light;
  --ground: #f1dba4;
  --ground-deep: #e6c97f;
  --card: #ffffff;
  --ink: #2b1a17;
  --plum: #3b1230;
  --muted: #5e4538;
  --line: #d8bd82;
  --field: #8a6a45;
  --action: #a8123d;
  --action-dark: #86102f;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ground); font: 400 17px/1.55 "Nunito", "Trebuchet MS", sans-serif; }
a { color: var(--action); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }

@font-face { font-family: "Bree Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/bree-serif-400.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/nunito-400.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/nunito-700.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/nunito-800.woff2) format("woff2"); }

/* ---- Home: the quote choices sit beside the pie ---- */
.kitchen { width: min(100% - 40px, 1180px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 20px clamp(24px, 4vw, 64px); align-items: center; padding: clamp(28px, 5vh, 56px) 0 clamp(24px, 4vh, 40px); }
.kitchen-pie { justify-self: center; width: 100%; max-width: 400px; }
.pie-art { display: block; width: 100%; height: auto; }
.band-wrap { height: 36px; overflow: hidden; line-height: 0; }
.lattice-band { display: block; width: 100%; height: 100%; }

.minimal-shell { display: flex; flex-direction: column; }
.minimal-shell h1 { margin: 0 0 28px; color: var(--plum); font-family: "Bree Serif", Georgia, serif; font-weight: 400; font-size: 64px; line-height: 1.04; letter-spacing: -.01em; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice-grid a { min-height: 96px; padding: 18px 18px 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 2px solid transparent; border-radius: 28px; background: var(--card); color: var(--plum); font-size: clamp(18px, 1.7vw, 21px); font-weight: 800; line-height: 1.22; text-decoration: none; box-shadow: 0 6px 0 var(--ground-deep), 0 14px 26px #5a3a0f1f; transition: transform .35s var(--spring), border-color .2s, box-shadow .35s var(--spring); }
.choice-grid a::after { content: "\2192" / ""; flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--action); color: #fff; font-size: 24px; font-weight: 800; line-height: 1; }
.choice-grid a:hover { border-color: var(--action); transform: translateY(-3px); }
.choice-grid a:active { transform: scale(.96); box-shadow: 0 2px 0 var(--ground-deep), 0 4px 10px #5a3a0f1f; }
.choice-grid a[style] { justify-content: space-between !important; text-align: left !important; align-items: center !important; }
.agency-line { margin: 26px 0 0; color: var(--muted); font-size: 15px; font-weight: 700; }
.agency-line a { color: var(--action); }

/* ---- Local board: white cards on the warm ground ---- */
.local-board { border-top: 0; background: transparent; color: var(--ink); }
.local-wrap { max-width: 1180px; margin: auto; padding: 56px 24px 72px; }
.local-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 0 0 30px; border-bottom: 3px dotted var(--field); }
.local-kicker, .local-card-kicker, .local-section-heading > span, .local-small-label { color: var(--plum); font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.local-kicker { margin: 0 0 14px; }
.local-kicker span { padding: 0 7px; }
.local-intro h2 { margin: 0; color: var(--plum); font: 400 clamp(38px, 5.4vw, 66px)/1.04 "Bree Serif", Georgia, serif; }
.local-intro > div > p:last-child { max-width: 540px; margin: 16px 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: 56px 0 18px; }
.local-section-heading h3 { margin: 0; color: var(--plum); font: 400 clamp(28px, 3.4vw, 40px)/1.08 "Bree Serif", Georgia, serif; }
.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: 30px 30px 28px; border: 0; border-radius: 28px; background: var(--card); box-shadow: 0 6px 0 var(--ground-deep), 0 14px 26px #5a3a0f14; }
.local-card h4 { margin: 6px 0 18px; color: var(--plum); font: 400 clamp(25px, 2.7vw, 32px)/1.12 "Bree Serif", Georgia, serif; }
.local-card-kicker { margin: 0; }
.local-card .local-copy { margin: 10px 0; color: var(--ink); }
.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: 2px dotted 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(--action); font-size: 16px; font-weight: 800; 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: 10px 0 24px; border-bottom: 2px dotted var(--line); }
.local-weather-lead > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px 22px; }
.local-big-temp { color: var(--plum); font: 400 clamp(76px, 11vw, 124px)/.9 "Bree Serif", Georgia, serif; }
.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: 10px; padding: 22px 0; border-bottom: 2px dotted var(--line); }
.local-day { flex: 0 0 150px; padding: 14px 14px; border-left: 0; border-radius: 20px; background: #fbf1d6; display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); line-height: 1.3; }
.local-day:first-child { padding-left: 14px; border-left: 0; }
.local-day strong { color: var(--ink); font-size: 15px; }
.local-day-temp { color: var(--plum); font-size: 22px; font-weight: 800; }
.local-small-label { margin: 22px 0 12px; }
.local-hour-strip { gap: 10px; }
.local-hour { flex: 0 0 96px; padding: 12px 10px; border-radius: 18px; background: #fbf1d6; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.local-hour strong { color: var(--plum); font-size: 22px; }
.local-big-number { margin: 14px 0 8px; color: var(--plum); font: 400 76px/1 "Bree Serif", Georgia, serif; }
.local-radar { margin: 18px 0 0; overflow: hidden; border: 4px solid #23478a; border-radius: 22px; background: #fff; }
.local-radar img { display: block; width: 100%; height: auto; }
.local-radar figcaption { padding: 8px 12px; color: var(--muted); font-size: 13px; background: #fff; }
.local-alert, .local-advisory { display: flex; gap: 19px; padding: 24px 27px; margin-top: 20px; border: 3px solid var(--plum); border-radius: 28px; background: #fff; color: var(--ink); }
.local-alert-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--plum); color: #fff; font-weight: 800; }
.local-alert h3, .local-advisory h3 { margin: 6px 0 8px; color: var(--plum); font-size: 20px; line-height: 1.35; }
.local-alert p, .local-advisory p { margin-bottom: 0; }
.local-advisory { align-items: center; border-color: var(--field); background: #fff; }
.local-advisory-mark { flex: none; color: var(--plum); font-size: 41px; line-height: 1; }
.local-advisory h3 { font: 400 clamp(21px, 2.4vw, 27px)/1.2 "Bree Serif", Georgia, serif; }
.local-advisory-alert { border-color: var(--plum); background: #fff; }
.local-row { padding: 12px 0; border-bottom: 2px dotted 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(--action); font-size: 17px; font-weight: 800; line-height: 1.35; text-decoration-color: #d4a0b0; 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: 2px dotted var(--line); display: flex; flex-direction: column; gap: 5px; }
.local-lottery strong { color: var(--plum); font-size: 21px; letter-spacing: .03em; }

/* ---- Header ---- */
.site-header { border-bottom: 0; background: var(--card); border-radius: 0 0 32px 32px; box-shadow: 0 6px 0 var(--ground-deep), 0 14px 26px #5a3a0f14; }
.header-inner { max-width: 1180px; margin: auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: var(--plum); text-decoration: none; font-size: 16px; font-weight: 700; line-height: 1.25; }
.brand strong { display: block; font-size: 19px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--action); color: #fff; font: 400 25px/1 "Bree Serif", Georgia, serif; }
.header-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--action); border-radius: 999px; background: transparent; color: var(--action); white-space: nowrap; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .35s var(--spring); }
.header-link:active { transform: scale(.95); }
.header-link span { color: var(--action); }

/* ---- Quote and question pages ---- */
.page-shell { max-width: 1180px; margin: auto; padding: 48px 24px 80px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 16px; font-weight: 800; }
.intro h1 { margin: 0; color: var(--plum); font-family: "Bree Serif", Georgia, serif; font-weight: 400; font-size: 58px; line-height: 1.05; }
.intro-copy { margin: 18px 0 0; color: var(--ink); font-size: clamp(18px, 2vw, 21px); max-width: 670px; }

.options { margin-top: 48px; 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: 0; border-radius: 28px; background: var(--card); box-shadow: 0 6px 0 var(--ground-deep); transition: transform .35s var(--spring); }
.option:hover { transform: translateY(-3px); }
.option-number { color: var(--muted); font-size: 14px; font-weight: 800; }
.option h2 { margin: 16px 0 7px; color: var(--plum); font: 400 clamp(24px, 2.6vw, 30px)/1.12 "Bree Serif", Georgia, serif; }
.option p { margin: 0; color: var(--muted); font-size: 16px; max-width: 30ch; }
.option .option-action { margin-top: auto; padding: 12px 18px; min-height: 48px; width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-radius: 999px; color: #fff; background: var(--action); font-weight: 800; font-size: 16px; line-height: 1.25; text-decoration: none; text-align: left; cursor: pointer; }
.option-action:hover { background: var(--action-dark); }
.option-action span { font-size: 20px; line-height: 1; }
.option .option-note { margin-top: 8px; font-size: 14px; color: var(--muted); }

.question-section { scroll-margin-top: 25px; margin-top: 56px; padding: 40px; border: 0; border-radius: 32px; background: var(--card); box-shadow: 0 6px 0 var(--ground-deep), 0 14px 26px #5a3a0f14; }
.question-heading h2 { margin: 0; color: var(--plum); font: 400 clamp(30px, 4vw, 42px)/1.12 "Bree Serif", Georgia, serif; }
.question-heading > p:last-child { margin: 12px 0 0; color: var(--muted); }
.question-form { margin-top: 32px; }
.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; color: var(--plum); font-weight: 800; font-size: 16px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; border: 2px solid var(--field); border-radius: 18px; padding: 12px 16px; color: var(--ink); background: #fff; font-weight: 400; }
.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: center; gap: 12px; min-height: 44px; font-weight: 700; color: var(--ink); }
.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: 0; padding: 0; accent-color: var(--action); }
.quote-form > fieldset > .checkbox-row { margin-top: 20px; }
.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: 26px; }
.form-bottom button { min-height: 54px; display: inline-flex; align-items: center; gap: 12px; border: 0; border-radius: 999px; padding: 13px 28px; color: #fff; background: var(--action); font-weight: 800; cursor: pointer; transition: transform .35s var(--spring), background .2s; }
.form-bottom button:hover { background: var(--action-dark); }
.form-bottom button:active, .quote-submit button:active, .quote-results button:active, .product-switch a:active, .option .option-action:active { transform: scale(.96); }
.form-bottom button:disabled { background: #cdbfa9; color: #53463a; cursor: wait; }
.submit-note { max-width: 610px; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.form-status { min-height: 22px; margin: 12px 0 0; color: var(--plum); font-weight: 800; font-size: 16px; }

.product-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 20px; }
.product-switch a { display: inline-flex; align-items: center; min-height: 48px; border: 2px solid var(--action); border-radius: 999px; padding: 8px 22px; background: #fff; color: var(--action); font-weight: 800; text-decoration: none; transition: transform .35s var(--spring); }
.product-switch a[aria-current="page"] { border-color: var(--action); color: #fff; background: var(--action); }
.quote-form fieldset { min-width: 0; margin: 18px 0; padding: 28px; border: 0; border-radius: 28px; background: var(--card); box-shadow: 0 6px 0 var(--ground-deep), 0 14px 26px #5a3a0f14; }
.quote-form legend { padding: 8px 18px; border-radius: 999px; background: var(--plum); color: #fff; font: 400 20px/1.2 "Bree Serif", Georgia, serif; }
.quote-form .form-grid { margin-top: 8px; }
.quote-submit { margin: 22px 0 55px; max-width: 720px; }
.quote-submit button, .quote-results button { min-height: 54px; border: 0; border-radius: 999px; padding: 13px 28px; color: #fff; background: var(--action); font-weight: 800; cursor: pointer; transition: transform .35s var(--spring), background .2s; }
.quote-submit button:hover, .quote-results button:hover { background: var(--action-dark); }
.quote-submit button:disabled, .quote-results button:disabled { background: #cdbfa9; color: #53463a; cursor: wait; opacity: 1; }
#quote-status { color: var(--plum); font-weight: 800; }
.quote-results { margin: 30px 0 70px; padding: 28px; border: 0; border-radius: 28px; background: var(--card); box-shadow: 0 6px 0 var(--ground-deep), 0 14px 26px #5a3a0f14; }
.quote-results h2 { margin: 0 0 16px; color: var(--plum); font: 400 30px/1.15 "Bree Serif", Georgia, serif; }
.quote-results article { border-top: 2px dotted var(--line); padding: 20px 0; }
.quote-results article h3 { margin: 0 0 5px; color: var(--plum); }
.quote-results article p { margin: 4px 0 13px; }

.site-footer { border-top: 0; max-width: 1180px; margin: auto; padding: 27px 24px 40px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; }
.site-footer p { margin: 0; }
.site-footer > p:first-child { color: var(--ink); font-weight: 800; }
.site-footer a { color: var(--action); text-underline-offset: 4px; }
.site-footer .footer-note { flex-basis: 100%; }

@media (min-width: 851px) {
  .home-shell .agency-line { margin: 26px 0 0; }
  .home-shell + .local-board .local-wrap { padding-top: 40px; }
}

@media (max-width: 850px) {
  .minimal-shell h1 { font-size: 48px; }
  .intro h1 { font-size: 44px; }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kitchen { grid-template-columns: 1fr; }
  .kitchen-pie { order: -1; max-width: 230px; }
  .local-intro { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 590px) {
  .header-inner { padding: 14px 18px; flex-wrap: wrap; gap: 10px 16px; }
  .brand { font-size: 14px; gap: 10px; }
  .brand strong { font-size: 17px; }
  .header-link { margin-left: auto; font-size: 15px; white-space: normal; text-align: center; padding: 6px 16px; }
  .kitchen-pie { max-width: 170px; }
  .page-shell { padding: 38px 18px 60px; }
  .options { margin-top: 32px; grid-template-columns: 1fr; gap: 12px; }
  .option { min-height: 0; padding: 23px; }
  .option .option-action { margin-top: 20px; }
  .question-section { margin-top: 40px; padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 19px; }
  .quote-form fieldset { padding: 22px 18px; }
  .site-footer { padding: 25px 18px 34px; }
  .choice-grid { grid-template-columns: 1fr; gap: 12px; }
  .choice-grid a { min-height: 80px; padding: 16px 16px 16px 22px; }
  .local-wrap { padding: 40px 18px 60px; }
  .local-section-heading { margin-top: 44px; align-items: flex-start; flex-direction: column; gap: 6px; }
  .local-grid, .local-weather-lead, .local-news-list { grid-template-columns: 1fr; }
  .local-card { padding: 24px 21px; }
  .local-weather-lead { gap: 14px; }
  .local-alert, .local-advisory { padding: 22px 19px; gap: 12px; }
  .local-day { flex-basis: 130px; }
}

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