@font-face { font-family: "Patrick Hand"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/patrick-hand-400.woff2) format("woff2"); }
@font-face { font-family: "Andika"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/andika-400.woff2) format("woff2"); }
@font-face { font-family: "Andika"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/andika-700.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ink: #3a2a1c;
  --muted: #5a4634;
  --line: #6b4a2f;
  --paper: #ffffff;
  --azure: #bfe3ee;
  --brick: #a63a26;
  --brick-dark: #86291a;
  --bus: #f2b705;
  --grass: #3f7d2e;
  --water: #2f6f9f;
  --tint-bus: #fff0bd;
  --tint-grass: #e0efd0;
  --tint-water: #d9ecf5;
  --tint-brick: #fbe0d6;
  --hand: "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive;
  --body: "Andika", "Trebuchet MS", Verdana, sans-serif;
  --sceneh: clamp(250px, 31vw, 440px);
  --h1: clamp(40px, 5.2vw, 74px);
  --accent: var(--brick);
  --accent-dark: var(--brick-dark);
}

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

/* ---- the spread: header, cutaway scene, six buildings, road ---- */
.spread { position: relative; background: var(--paper); }
.scene { height: var(--sceneh); border-bottom: 3px solid var(--line); background: var(--azure); }
.scene-art, .road-art { display: block; width: 100%; height: 100%; }
.road { height: 74px; margin-top: 40px; border-top: 3px solid var(--line); border-bottom: 3px solid var(--line); }

.minimal-shell { width: min(100% - 40px, 1040px); min-height: 0; margin: 0 auto; padding: 30px 0 0; display: flex; flex-direction: column; position: relative; z-index: 2; }
.minimal-shell h1 { margin: 0 0 30px; font: 400 clamp(40px, 5.2vw, 74px)/1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; letter-spacing: .005em; color: var(--ink); }
@media (min-width: 861px) {
  .minimal-shell { margin-top: calc(-1 * var(--sceneh)); padding-top: 16px; }
  .minimal-shell h1 { margin-bottom: calc(var(--sceneh) - var(--h1) - 16px + 46px); }
}

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 24px; }
.choice-grid a { position: relative; min-height: 132px; padding: 24px 22px 20px; display: flex; align-items: flex-end; border: 3px solid var(--line); border-radius: 4px 4px 6px 6px; background: var(--brick); color: #fff; font: 400 clamp(25px, 2.6vw, 31px)/1.1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; text-decoration: none; transform-origin: 0 100%; transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 0 0 var(--line); }
.choice-grid a::before { content: ""; position: absolute; left: -9px; right: -9px; top: -26px; height: 24px; background: var(--roof, #7c2819); border: 3px solid var(--line); clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); }
.choice-grid a::after { content: ""; position: absolute; right: 18px; top: 16px; width: 30px; height: 26px; border: 3px solid var(--line); border-radius: 3px; background: var(--azure); box-shadow: inset 0 -10px 0 #fff6dc; }
.choice-grid a:hover, .choice-grid a:focus-visible { transform: perspective(700px) rotateY(-9deg) translateY(-3px); box-shadow: 8px 8px 0 var(--line); }
.choice-grid a:hover::after, .choice-grid a:focus-visible::after { background: var(--bus); box-shadow: none; }
.choice-grid a:nth-child(1) { background: var(--brick); --roof: #7c2819; }
.choice-grid a:nth-child(2) { background: var(--bus); color: var(--ink); --roof: #d99c00; }
.choice-grid a:nth-child(3) { background: var(--grass); --roof: #2d5c20; }
.choice-grid a:nth-child(4) { background: var(--water); --roof: #214f73; }
.choice-grid a:nth-child(5) { background: var(--brick); --roof: #7c2819; }
.choice-grid a:nth-child(6) { background: var(--bus); color: var(--ink); --roof: #d99c00; }
.choice-grid a:nth-child(2)::after, .choice-grid a:nth-child(6)::after { background: #fff6dc; }
.agency-line { align-self: flex-start; margin: 46px 0 0; padding: 12px 20px; border: 3px solid var(--line); border-radius: 6px; background: var(--ink); color: #fff6dc; font: 700 16px/1.4 "Andika", "Trebuchet MS", Verdana, sans-serif; }
.agency-line a { color: var(--bus); text-underline-offset: 4px; display: inline-block; padding: 8px 0; }

/* ---- header: azure strip ---- */
.site-header { border-bottom: 0; background: var(--azure); }
.header-inner { max-width: 1180px; margin: auto; padding: 14px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; text-decoration: none; font: 400 19px/1.15 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.brand strong { display: block; font: 400 25px/1.1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.brand-mark { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 3px solid var(--line); border-radius: 50%; background: var(--bus); color: var(--ink); font: 400 28px/1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.header-link { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--ink); white-space: nowrap; font-weight: 700; font-size: 16px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; }
.header-link span { color: var(--brick); }

/* ---- quote and question pages ---- */
.page-shell { max-width: 1180px; margin: auto; padding: 54px 32px 86px; }
.eyebrow { display: inline-block; margin: 0 0 16px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font: 700 15px/1.3 "Andika", "Trebuchet MS", Verdana, sans-serif; }
.intro h1 { margin: 0; font: 400 clamp(46px, 6vw, 78px)/1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; color: var(--ink); }
.intro-copy { margin: 20px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 670px; }

.options { margin-top: 55px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.option { min-width: 0; min-height: 247px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; border: 3px solid var(--line); border-radius: 8px; background: var(--tint-bus); transition: transform .25s, box-shadow .25s; }
.option:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--line); }
.option-number { color: var(--brick-dark); font-size: 14px; font-weight: 700; }
.option h2 { margin: 16px 0 7px; font: 400 clamp(27px, 3vw, 34px)/1.1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.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: 3px solid var(--line); border-radius: 8px; color: #fff; background: var(--brick-dark); font: 400 22px/1.2 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; text-decoration: none; text-align: left; cursor: pointer; }
.option-action:hover { background: #6b2013; }
.option-action span { font-size: 22px; line-height: 1; }
.option .option-note { margin-top: 7px; font-size: 14px; color: var(--muted); }

.question-section { position: relative; scroll-margin-top: 25px; margin-top: 70px; padding: 58px 46px 46px; border: 3px solid var(--line); border-radius: 12px; background: #ffffff; }
.question-section::before { content: ""; position: absolute; left: -3px; right: -3px; top: -3px; height: 24px; border: 3px solid var(--line); border-radius: 12px 12px 0 0; background: var(--bus); }
.question-heading h2 { margin: 0; font: 400 clamp(34px, 4vw, 46px)/1.1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.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: 22px 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: 2px solid var(--line); border-radius: 6px; padding: 12px 14px; color: var(--ink); background: #fff; font-weight: 400; font-size: 17px; }
.form-grid input, .form-grid select { min-height: 50px; }
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--water); outline: 3px solid var(--water); outline-offset: 1px; }
.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: 1px 0 0; accent-color: var(--grass); }
.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: 3px solid var(--line); border-radius: 8px; padding: 10px 22px; color: #fff; background: var(--brick); box-shadow: 4px 4px 0 var(--line); font: 400 25px/1.1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.form-bottom button:hover { background: var(--brick-dark); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.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(--brick-dark); font-weight: 700; font-size: 16px; }

.product-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 20px; }
.product-switch a { display: inline-flex; align-items: center; min-height: 46px; border: 3px solid var(--line); border-radius: 8px; padding: 6px 18px; background: #fff; font: 400 23px/1.1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; text-decoration: none; }
.product-switch a:hover { background: var(--tint-bus); }
.product-switch a[aria-current="page"] { border-color: var(--line); color: var(--ink); background: var(--bus); box-shadow: 3px 3px 0 var(--line); }
.quote-form fieldset { min-width: 0; margin: 24px 0; padding: 30px 28px 28px; border: 3px solid var(--line); border-radius: 10px; background: #ffffff; }
.quote-form legend { padding: 2px 16px 4px; border: 3px solid var(--line); border-radius: 8px; background: var(--bus); color: var(--ink); font: 400 28px/1.15 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.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: 3px solid var(--line); border-radius: 8px; padding: 10px 22px; color: #fff; background: var(--brick); box-shadow: 4px 4px 0 var(--line); font: 400 25px/1.1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; cursor: pointer; }
.quote-submit button:hover, .quote-results button:hover { background: var(--brick-dark); }
.quote-submit button:disabled, .quote-results button:disabled { cursor: wait; opacity: .65; }
#quote-status { color: var(--brick-dark); font-weight: 700; }
.quote-results { margin: 30px 0 70px; padding: 28px; border: 3px solid var(--line); border-radius: 10px; background: var(--tint-grass); }
.quote-results h2 { margin: 0 0 16px; font: 400 36px/1.1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.quote-results article { border-top: 2px dashed var(--line); padding: 20px 0; }
.quote-results article h3 { margin: 0 0 5px; font: 400 28px/1.1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.quote-results article p { margin: 4px 0 13px; }

.site-footer { max-width: none; margin: 0; padding: 28px max(32px, calc((100% - 1116px) / 2)) 36px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; border-top: 3px solid var(--line); background: var(--ink); color: #fff6dc; font-size: 15px; }
.site-footer p { margin: 0; }
.site-footer > p:first-child { color: #fff; font-weight: 700; }
.site-footer a { color: var(--bus); text-underline-offset: 4px; display: inline-block; padding: 10px 0; }
.site-footer .footer-note { flex-basis: 100%; }

/* ---- the local board: the same street, one district per section ---- */
.local-board { border-top: 0; background: var(--paper); color: var(--ink); }
.local-wrap { max-width: 1180px; margin: auto; padding: 66px 32px 96px; }
.local-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 0 0 34px; border-bottom: 3px solid var(--line); }
.local-kicker, .local-card-kicker, .local-section-heading > span, .local-small-label { color: var(--brick-dark); font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.local-kicker { margin: 0 0 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.local-kicker span { padding: 0 4px; color: var(--brick-dark); }
.local-intro h2 { margin: 0; font: 400 clamp(44px, 6vw, 72px)/1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.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; flex-direction: column; align-items: flex-start; gap: 10px; margin: 60px 0 22px; }
.local-section-heading h3 { margin: 0; padding-bottom: 8px; border-bottom: 5px solid var(--bus); font: 400 clamp(34px, 3.8vw, 46px)/1.05 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.local-section-heading > span { display: inline-block; padding: 6px 12px; border: 2px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.local-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.local-card { min-width: 0; padding: 26px 28px; border: 3px solid var(--line); border-radius: 10px; background: var(--tint-bus); box-shadow: 6px 6px 0 rgba(107, 74, 47, .22); }
.local-grid > .local-card:nth-child(4n+2) { background: var(--tint-grass); }
.local-grid > .local-card:nth-child(4n+3) { background: var(--tint-water); }
.local-grid > .local-card:nth-child(4n+4) { background: var(--tint-brick); }
.local-card h4 { margin: 7px 0 18px; font: 400 clamp(30px, 3.2vw, 38px)/1.1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.local-card-kicker { margin: 0; color: #7a2a18; }
.local-card .local-copy { margin: 10px 0; color: var(--ink); max-width: 60ch; }
.local-card .local-subtle, .local-subtle { display: block; color: var(--muted); font-size: 15px; }
.local-source { margin: 24px 0 0; padding-top: 14px; border-top: 2px dashed var(--line); color: var(--muted); font-size: 14px; font-weight: 700; }
.local-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: #7a2a18; font-size: 16px; font-weight: 700; 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: 12px 0 26px; border-bottom: 2px dashed 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(84px, 12vw, 138px)/.85 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; color: var(--brick-dark); }
.local-weather-condition { max-width: 200px; color: var(--ink); font-size: 18px; }
.local-weather-note { padding-bottom: 7px; display: flex; flex-direction: column; gap: 5px; color: var(--ink); 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: 2px dashed var(--line); }
.local-day { flex: 0 0 160px; padding: 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.local-day:first-child { border-left: 0; }
.local-day strong { color: var(--ink); font-size: 16px; }
.local-day-temp { color: var(--brick-dark); font: 400 28px/1.1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.local-small-label { margin: 22px 0 14px; color: var(--ink); }
.local-hour-strip { gap: 10px; padding-bottom: 6px; }
.local-hour { flex: 0 0 96px; padding: 11px 10px; border: 0; border-top: 4px solid var(--bus); border-radius: 0; background: #fff; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--muted); }
.local-hour strong { color: var(--ink); font: 400 28px/1.1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.local-big-number { margin: 16px 0 8px; color: var(--brick-dark); font: 400 84px/.95 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.local-radar { margin: 19px 0 0; overflow: hidden; border: 3px solid var(--line); border-radius: 8px; background: #fff; }
.local-radar img { display: block; width: 100%; height: auto; }
.local-radar figcaption { padding: 7px 10px; border-top: 2px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; }
.local-alert, .local-advisory { display: flex; gap: 19px; padding: 22px 26px; margin-top: 21px; border: 3px solid var(--brick); border-radius: 10px; background: var(--tint-brick); color: var(--ink); }
.local-alert-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 3px solid var(--line); border-radius: 50%; background: var(--brick-dark); color: #fff; font-weight: 700; }
.local-alert h3, .local-advisory h3 { margin: 7px 0 9px; font: 400 26px/1.2 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.local-alert p, .local-advisory p { margin-bottom: 0; }
.local-advisory { align-items: center; border-color: var(--grass); background: var(--tint-grass); }
.local-advisory-mark { flex: none; color: var(--grass); font-size: 41px; line-height: 1; }
.local-advisory h3 { font: 400 clamp(25px, 2.6vw, 31px)/1.2 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; }
.local-advisory-alert { border-color: var(--brick); background: var(--tint-brick); }
.local-row { padding: 13px 0; border-bottom: 2px dashed rgba(107, 74, 47, .45); }
.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.4; text-decoration-color: var(--brick); 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: 2px dashed rgba(107, 74, 47, .45); display: flex; flex-direction: column; gap: 5px; }
.local-lottery strong { font: 400 28px/1.1 "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive; letter-spacing: .04em; }

@media (max-width: 860px) {
  .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; }
  .scene { height: clamp(220px, 46vw, 300px); }
}

@media (max-width: 590px) {
  .header-inner { padding: 12px 20px; flex-wrap: wrap; gap: 4px 16px; }
  .brand { font-size: 16px; gap: 10px; }
  .brand strong { font-size: 22px; }
  .brand-mark { width: 42px; height: 42px; font-size: 25px; }
  .header-link { margin-left: auto; font-size: 15px; white-space: normal; text-align: right; }
  .page-shell { padding: 40px 20px 65px; }
  .options { margin-top: 37px; grid-template-columns: 1fr; gap: 14px; }
  .option { min-height: 0; padding: 23px; }
  .question-section { margin-top: 58px; padding: 50px 20px 28px; }
  .form-grid { grid-template-columns: 1fr; gap: 19px; }
  .quote-form fieldset { padding: 24px 16px 22px; }
  .site-footer { padding: 25px 20px 34px; }
  .minimal-shell { padding-top: 26px; }
  .minimal-shell h1 { margin-bottom: 38px; }
  .choice-grid { grid-template-columns: 1fr; gap: 42px; }
  .choice-grid a { min-height: 92px; padding: 20px; }
  .scene { height: 230px; }
  .road { height: 60px; }
  .local-wrap { padding: 52px 20px 75px; }
  .local-section-heading { margin-top: 48px; }
  .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 17px; gap: 12px; }
  .local-day { flex-basis: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .choice-grid a, .option, .form-bottom button { transition: none; }
  .choice-grid a:hover, .choice-grid a:focus-visible { transform: none; }
}

/* Version 1.5 · Modesto · site 295 */
