:root {
  color-scheme: light;
  --ink: #2b1a22;
  --muted: #5b4550;
  --brick: #241820;
  --brick-2: #33222b;
  --paper: #fbf1ec;
  --card: #fffaf7;
  --pink: #ff9cc2;
  --hot: #c4175f;
  --blue: #8fd0f0;
  --mint: #a6e3c4;
  --lilac: #cdb8f5;
  --yellow: #fbdc66;
  --line: #d9bfc8;
  --accent: #a3124d;
  --accent-dark: #86103f;
  --head: "Bagel Fat One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --text: "Figtree", "Trebuchet MS", Verdana, sans-serif;
}

@font-face { font-family: "Bagel Fat One"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/bagel-fat-one-400.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/figtree-400.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/figtree-700.woff2) format("woff2"); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--brick); font: 400 17px/1.6 var(--text); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 4px solid var(--hot); outline-offset: 3px; }
.alley :focus-visible, .site-header :focus-visible { outline-color: var(--yellow); }

/* ---------- header: the alley mouth ---------- */
.site-header { background: var(--brick); border-bottom: 4px solid var(--pink); color: #fff1ea; }
.header-inner { max-width: 1180px; margin: auto; padding: 18px 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: 17px; line-height: 1.2; }
.brand strong { display: block; font-family: var(--head); font-weight: 400; font-size: 21px; line-height: 1.1; letter-spacing: .01em; color: var(--pink); }
.brand-mark { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 3px solid var(--ink); border-radius: 50%; background: var(--pink); color: var(--ink); font-family: var(--head); font-weight: 400; font-size: 24px; line-height: 1; }
.header-link { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 0 2px; background: transparent; color: #fff1ea; white-space: nowrap; font-weight: 700; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 3px; text-underline-offset: 6px; cursor: pointer; }
.header-link span { color: var(--yellow); }

/* ---------- home: the alley wall ---------- */
.alley { background: var(--brick); color: #fff1ea; }
.alley-wall { border-bottom: 4px solid var(--ink); line-height: 0; background: var(--brick); }
.gumwall { display: block; width: 100%; height: clamp(150px, 20vw, 250px); }
.alley-floor { background: var(--brick-2); }
.minimal-shell { width: min(100% - 80px, 1040px); margin: auto; padding: clamp(40px, 6vh, 70px) 0 46px; display: flex; flex-direction: column; }
.minimal-shell h1 { margin: 0 0 54px; max-width: 14ch; color: #fff1ea; font-family: var(--head); font-weight: 400; font-size: clamp(44px, 7vw, 92px); line-height: 1.02; letter-spacing: .005em; text-wrap: balance; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 58px 54px; padding: 18px 14px 4px; }
.choice-grid a { --r: 16px; position: relative; isolation: isolate; min-height: 128px; padding: 24px 22px; display: flex; align-items: flex-end; border: 3px solid var(--ink); background: #fbf1ec; color: var(--ink); font-family: var(--head); font-weight: 400; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.15; text-decoration: none; transition: none; }
.choice-grid a::before { content: ""; position: absolute; z-index: -1; inset: calc(var(--r) * -1 - 3px); border: var(--r) solid; border-color: var(--pink) var(--mint) var(--lilac) var(--blue); outline: 3px solid var(--ink); transition: inset .35s cubic-bezier(.2, .8, .2, 1), border-width .35s cubic-bezier(.2, .8, .2, 1); }
.choice-grid a:nth-child(2)::before { border-color: var(--blue) var(--yellow) var(--pink) var(--mint); }
.choice-grid a:nth-child(3)::before { border-color: var(--yellow) var(--lilac) var(--blue) var(--pink); }
.choice-grid a:nth-child(4)::before { border-color: var(--mint) var(--pink) var(--yellow) var(--lilac); }
.choice-grid a:nth-child(5)::before { border-color: var(--lilac) var(--blue) var(--mint) var(--yellow); }
.choice-grid a:nth-child(6)::before { border-color: var(--pink) var(--yellow) var(--blue) var(--mint); }
.choice-grid a:hover, .choice-grid a:focus-visible { background: #fff; }
.choice-grid a:hover::before, .choice-grid a:focus-visible::before { --r: 24px; }
.agency-line { margin: 56px 0 0; color: #f4d9e3; font-size: 17px; font-weight: 700; }
.agency-line a { display: inline-block; padding: 8px 2px; color: var(--yellow); text-underline-offset: 4px; }

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

/* ---------- local board: the shelf cabinet ---------- */
.local-board { border-top: 4px solid var(--ink); background: #ece8fa; color: var(--ink); }
.local-wrap { max-width: 1180px; margin: auto; padding: 80px 32px 100px; }
.local-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 0 0 34px; border-bottom: 4px dotted var(--hot); }
.local-kicker, .local-card-kicker, .local-section-heading > span, .local-small-label { color: var(--accent-dark); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.local-kicker { margin: 0 0 16px; }
.local-kicker span { padding: 0 7px; }
.local-intro h2 { margin: 0; font-family: var(--head); font-weight: 400; font-size: clamp(40px, 6vw, 74px); line-height: 1.02; }
.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: 70px 0 26px; }
.local-section-heading h3 { margin: 0; font-family: var(--head); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; }
.local-section-heading > span { order: 2; padding: 6px 12px; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink); }
.local-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.local-card { min-width: 0; padding: 26px 26px; border: 12px solid; border-color: var(--pink) var(--mint) var(--lilac) var(--blue); outline: 3px solid var(--ink); background: var(--card); outline-offset: 0; position: relative; }
.local-card::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--ink); pointer-events: none; }
.local-grid > .local-card:nth-child(4n+2) { border-color: var(--blue) var(--yellow) var(--pink) var(--mint); }
.local-grid > .local-card:nth-child(4n+3) { border-color: var(--yellow) var(--lilac) var(--blue) var(--pink); }
.local-grid > .local-card:nth-child(4n+4) { border-color: var(--mint) var(--pink) var(--yellow) var(--lilac); }
.local-card h4 { margin: 6px 0 18px; font-family: var(--head); font-weight: 400; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.12; }
.local-card-kicker { margin: 0; }
.local-card .local-copy { margin: 10px 0; color: #3d2a33; }
.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: 3px dotted var(--line); color: var(--muted); font-size: 14px; font-weight: 700; }
.local-link { display: inline-block; margin-top: 8px; padding: 10px 0; color: var(--accent-dark); 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: 10px 0 24px; border-bottom: 3px dotted var(--line); }
.local-weather-lead > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px 22px; }
.local-big-temp { font-family: var(--head); font-weight: 400; font-size: clamp(76px, 12vw, 128px); line-height: .9; color: var(--accent-dark); }
.local-weather-condition { max-width: 200px; color: #3d2a33; font-size: 18px; }
.local-weather-note { padding-bottom: 7px; display: flex; flex-direction: column; gap: 5px; color: #3d2a33; 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: 20px 0; border-bottom: 3px dotted var(--line); }
.local-day { flex: 0 0 150px; padding: 0 14px; border-left: 3px dotted 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-color: transparent; }
.local-day strong { color: var(--ink); font-size: 16px; }
.local-day-temp { color: var(--accent-dark); font-family: var(--head); font-weight: 400; font-size: 24px; line-height: 1.1; }
.local-small-label { margin: 22px 0 12px; }
.local-hour-strip { gap: 10px; }
.local-hour { flex: 0 0 96px; padding: 11px 10px; border: 3px solid var(--ink); background: #e9f6fc; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--muted); }
.local-hour strong { color: var(--ink); font-size: 22px; }
.local-big-number { margin: 14px 0 8px; color: var(--accent-dark); font-family: var(--head); font-weight: 400; font-size: 76px; line-height: 1; }
.local-radar { margin: 18px 0 0; overflow: hidden; border: 6px solid var(--lilac); outline: 3px solid var(--ink); }
.local-radar img { display: block; width: 100%; height: auto; }
.local-radar figcaption { padding: 6px 9px; background: var(--card); color: var(--muted); font-size: 13px; }
.local-alert, .local-advisory { display: flex; gap: 18px; padding: 22px 24px; margin-top: 22px; border: 6px solid var(--hot); outline: 3px solid var(--ink); background: #ffe3ee; color: var(--ink); }
.local-alert-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 3px solid var(--ink); border-radius: 50%; background: var(--hot); 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(--mint); background: #e8f8ef; }
.local-advisory-mark { flex: none; color: var(--accent-dark); font-size: 40px; line-height: 1; }
.local-advisory h3 { font-family: var(--head); font-weight: 400; font-size: clamp(21px, 2.5vw, 28px); line-height: 1.2; }
.local-advisory-alert { border-color: var(--hot); background: #ffe3ee; }
.local-row { padding: 12px 0; border-bottom: 3px 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(--ink); font-size: 17px; font-weight: 700; line-height: 1.35; text-decoration-color: var(--hot); 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: 3px dotted var(--line); display: flex; flex-direction: column; gap: 5px; }
.local-lottery strong { font-family: var(--head); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: .03em; }

/* ---------- inner pages: quote and question ---------- */
.page-shell { max-width: 1180px; margin: auto; padding: 56px 32px 90px; }
.intro, .options, .question-section, .product-switch, .quote-form, .quote-results { }
body:has(.page-shell) { background: #ece8fa; }
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.intro h1 { margin: 0; max-width: 16ch; font-family: var(--head); font-weight: 400; font-size: clamp(40px, 6vw, 80px); line-height: 1.03; text-wrap: balance; }
.intro-copy { margin: 22px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); max-width: 670px; }

.options { margin-top: 55px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 34px; }
.option { min-width: 0; min-height: 247px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; border: 12px solid; border-color: var(--pink) var(--mint) var(--lilac) var(--blue); outline: 3px solid var(--ink); background: var(--card); }
.option h2 { margin: 12px 0 7px; font-family: var(--head); font-weight: 400; font-size: clamp(24px, 2.7vw, 30px); line-height: 1.12; }
.option p { margin: 0; color: var(--muted); font-size: 16px; max-width: 30ch; }
.option-number { color: var(--accent-dark); font-size: 15px; font-weight: 700; }
.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(--ink); color: #fff; background: var(--accent-dark); font-weight: 700; font-size: 16px; line-height: 1.25; text-decoration: none; text-align: left; cursor: pointer; }
.option-action:hover { background: var(--ink); }
.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: 40px; border: 12px solid; border-color: var(--pink) var(--mint) var(--lilac) var(--blue); outline: 3px solid var(--ink); background: var(--card); }
.question-heading h2 { margin: 0; font-family: var(--head); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.question-heading > p:last-child { margin: 13px 0 0; color: var(--muted); }
.question-form { margin-top: 34px; }
.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: 3px solid var(--ink); border-radius: 0; padding: 12px 14px; color: var(--ink); background: #fff; font-weight: 400; }
.form-grid input, .form-grid select { min-height: 50px; }
.form-grid textarea { min-height: 132px; resize: vertical; }
.form-grid input:focus-visible, .form-grid select:focus-visible, .form-grid textarea:focus-visible { outline: 4px solid var(--hot); outline-offset: 2px; }
.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: 10px; 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(--accent-dark); }
.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: 26px; }
.form-bottom button { min-height: 52px; display: inline-flex; align-items: center; gap: 12px; border: 3px solid var(--ink); border-radius: 0; padding: 12px 22px; color: #fff; background: var(--accent-dark); font-weight: 700; font-size: 17px; cursor: pointer; }
.form-bottom button:hover { background: var(--ink); }
.submit-note { max-width: 610px; margin: 17px 0 0; color: var(--muted); font-size: 15px; }
.form-status { min-height: 22px; margin: 13px 0 0; color: var(--accent-dark); font-weight: 700; font-size: 16px; }

.product-switch { display: flex; flex-wrap: wrap; gap: 12px; margin: 38px 0 22px; }
.product-switch a { display: inline-flex; align-items: center; min-height: 48px; border: 3px solid var(--ink); padding: 8px 18px; background: var(--card); font-weight: 700; text-decoration: none; }
.product-switch a:hover { background: var(--yellow); }
.product-switch a[aria-current="page"] { border-color: var(--ink); color: #fff; background: var(--accent-dark); }
.quote-form fieldset { min-width: 0; margin: 22px 0; padding: 30px; border: 12px solid; border-color: var(--pink) var(--mint) var(--lilac) var(--blue); outline: 3px solid var(--ink); background: var(--card); }
.quote-form fieldset:nth-of-type(2n) { border-color: var(--blue) var(--yellow) var(--pink) var(--mint); }
.quote-form legend { padding: 4px 12px; border: 3px solid var(--ink); background: var(--yellow); font-family: var(--head); font-weight: 400; font-size: 22px; line-height: 1.2; }
.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: 3px solid var(--ink); border-radius: 0; padding: 12px 22px; color: #fff; background: var(--accent-dark); font-weight: 700; font-size: 17px; cursor: pointer; }
.quote-submit button:hover, .quote-results button:hover { background: var(--ink); }
.quote-submit button:disabled, .quote-results button:disabled { cursor: wait; opacity: .6; }
#quote-status { color: var(--accent-dark); font-weight: 700; }
.quote-results { margin: 30px 0 70px; padding: 28px; border: 12px solid; border-color: var(--mint) var(--pink) var(--yellow) var(--lilac); outline: 3px solid var(--ink); background: var(--card); }
.quote-results h2 { margin: 0 0 16px; font-family: var(--head); font-weight: 400; font-size: 30px; line-height: 1.15; }
.quote-results article { border-top: 3px dotted var(--line); padding: 20px 0; }
.quote-results article h3 { margin: 0 0 5px; }
.quote-results article p { margin: 4px 0 13px; }

.site-footer { border-top: 4px solid var(--ink); max-width: 1180px; margin: auto; padding: 27px 32px 35px; 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: 700; }
.site-footer a { text-underline-offset: 4px; }
.site-footer .footer-note { flex-basis: 100%; }

@media (max-width: 850px) {
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 44px; }
  .local-intro { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 590px) {
  .header-inner { padding: 16px 20px; flex-wrap: wrap; gap: 8px 16px; }
  .brand { font-size: 15px; gap: 10px; }
  .brand strong { font-size: 19px; }
  .brand-mark { width: 44px; height: 44px; font-size: 22px; }
  .header-link { margin-left: auto; font-size: 15px; white-space: normal; text-align: right; }
  .page-shell { padding: 40px 28px 65px; }
  .options { margin-top: 37px; grid-template-columns: 1fr; gap: 34px; padding: 0 2px; }
  .option { min-height: 0; padding: 22px 18px; }
  .question-section { margin-top: 50px; padding: 24px 16px; border-width: 10px; }
  .form-grid { grid-template-columns: 1fr; gap: 19px; }
  .quote-form fieldset { padding: 22px 14px; border-width: 10px; }
  .quote-results { padding: 22px 14px; border-width: 10px; }
  .site-footer { padding: 25px 20px 34px; }
  .minimal-shell { width: min(100% - 64px, 1040px); padding-top: 38px; }
  .minimal-shell h1 { margin-bottom: 42px; }
  .choice-grid { grid-template-columns: 1fr; gap: 46px; padding: 14px 0 0; }
  .choice-grid a { min-height: 88px; padding: 20px 18px; }
  .local-wrap { padding: 56px 18px 72px; }
  .local-section-heading { margin-top: 50px; align-items: flex-start; flex-direction: column; gap: 9px; }
  .local-section-heading > span { order: 0; }
  .local-grid, .local-weather-lead, .local-news-list { grid-template-columns: 1fr; }
  .local-card { padding: 22px 16px; border-width: 10px; }
  .local-weather-lead { gap: 14px; }
  .local-alert, .local-advisory { padding: 20px 16px; gap: 12px; }
  .local-day { flex-basis: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .choice-grid a::before { transition: none; }
}
