/* Elk Grove Insurance: the tack-room cubby wall of the Elk Grove Western Festival, drawn like a chaekgeori shelf screen.
   Every box is outlined, nothing casts a shadow, and each cubby is wider at its far (top) edge than at its near one. */
@font-face { font-family: "Rokkitt"; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/rokkitt-800.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/public-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/public-sans-700.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --wood: #2c1c12;
  --ink: #2c1c12;
  --muted: #4f3a2a;
  --line: #2c1c12;
  --oat: #ead9b4;
  --oat-hi: #f4e9cb;
  --bone: #fbf5e4;
  --saddle: #7c4120;
  --saddle-d: #4f2812;
  --blue: #1d4b8f;
  --blue-d: #153a70;
  --red: #a8261c;
  --yellow: #e2b32b;
  --paper: var(--oat);
  --accent: var(--blue);
  --accent-dark: var(--blue);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Rokkitt", Rockwell, "Roboto Slab", Georgia, serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lean: 18px; /* how far the near edge of a cubby is pulled in from the far edge */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  background-color: var(--oat);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8'><path d='M0 .5H8M.5 0V8' stroke='%237c4120' stroke-opacity='.07' fill='none'/></svg>");
  overflow-x: clip;
}
::selection { background: var(--blue); color: var(--bone); }
a { color: var(--blue-d); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; }

/* ---------- header: a leather-dark tack-room rail with a rosette for the mark ---------- */
.site-header { border: 0; border-bottom: 4px solid var(--saddle); background: var(--wood); color: var(--oat); }
.header-inner { width: min(100% - 32px, 1240px); max-width: none; margin: auto; padding: 12px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.brand { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; color: var(--oat); text-decoration: none; font-size: 1rem; letter-spacing: 0; line-height: 1.2; }
.brand:hover { color: var(--bone); }
.brand strong { display: block; font-size: 1.0625rem; font-weight: 700; }
.brand-mark { display: grid; place-items: center; flex: none; width: 42px; height: 42px; margin: 4px; border: 3px solid var(--bone); border-radius: 50%; background: var(--blue); outline: 4px dotted var(--blue); outline-offset: 1px; color: var(--bone); font: 800 1.55rem/1 var(--display); }
.header-link { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--yellow); white-space: nowrap; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; cursor: pointer; }
.header-link:hover { color: var(--bone); }
.header-link span { color: var(--yellow); }
.site-header :focus-visible { outline-color: var(--yellow); }

/* ---------- home: the cubby frieze, then the six quote boxes ---------- */
.frieze-wrap { width: min(100% - 32px, 1240px); margin: 26px auto 0; }
.frieze { display: block; width: 100%; height: clamp(128px, 20vw, 250px); }

.minimal-shell { width: min(100% - 32px, 1240px); min-height: 0; margin: 0 auto; padding: 30px 0 18px; display: block; }
.minimal-shell h1 { margin: 0 0 30px; font: 800 clamp(2.6rem, 6.4vw, 4.75rem)/.98 var(--display); letter-spacing: .005em; text-transform: uppercase; color: var(--wood); }
.minimal-shell h1::after { content: ""; display: block; width: min(100%, 11.5ch); height: 10px; margin-top: 14px; background: linear-gradient(90deg, var(--blue) 0 33%, var(--red) 33% 66%, var(--yellow) 66%); border: 3px solid var(--wood); }

/* the cabinet: its backing board is itself a little wider at the top */
.choice-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; padding: 36px 30px 30px; }
.choice-grid::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--saddle); background-image: linear-gradient(90deg, transparent 46px, rgba(44, 28, 18, .35) 46px 48px); background-size: 48px 100%; clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 26px 100%); }
.choice-grid a { position: relative; isolation: isolate; min-width: 0; min-height: 132px; padding: 22px calc(var(--lean) + 20px) 28px; display: flex; align-items: flex-end; color: var(--wood); font: 800 clamp(1.35rem, 2.1vw, 1.7rem)/1.1 var(--display); letter-spacing: .005em; text-decoration: none; transition: color .3s var(--ease); }
.choice-grid a::before, .choice-grid a::after { content: ""; position: absolute; z-index: -1; transition: clip-path .45s var(--ease), background-color .3s var(--ease); }
.choice-grid a::before { inset: 0; background: linear-gradient(var(--wood) calc(100% - 14px), var(--yellow) calc(100% - 14px) calc(100% - 3px), var(--wood) calc(100% - 3px)); clip-path: polygon(0 0, 100% 0, calc(100% - var(--lean)) 100%, var(--lean) 100%); }
.choice-grid a::after { inset: 0; background: var(--bone); clip-path: polygon(3px 3px, calc(100% - 3px) 3px, calc(100% - var(--lean) - 2px) calc(100% - 14px), calc(var(--lean) + 2px) calc(100% - 14px)); }
.choice-grid a:hover, .choice-grid a:focus-visible { --lean: 34px; color: var(--bone); outline: 0; }
.choice-grid a:hover::after, .choice-grid a:focus-visible::after { background: var(--blue); }
.choice-grid a:focus-visible::before { background: linear-gradient(var(--yellow) calc(100% - 14px), var(--yellow) calc(100% - 14px) calc(100% - 3px), var(--wood) calc(100% - 3px)); }
.choice-grid a:nth-child(3n+2)::after { background: var(--oat-hi); }
.choice-grid a:nth-child(3n+2):hover::after, .choice-grid a:nth-child(3n+2):focus-visible::after { background: var(--blue); }
.agency-line { margin: 26px 0 0; padding: 14px 0 0; border-top: 3px solid var(--wood); color: var(--muted); font-size: 1rem; font-weight: 700; }
.agency-line a { color: var(--blue-d); }

/* ---------- the local board: shelf-screen cards, outlined, wider at the top ---------- */
.local-board { border-top: 4px solid var(--wood); border-bottom: 0; background: var(--oat-hi); color: var(--wood); }
.local-wrap { max-width: 1240px; margin: auto; padding: 72px 16px 96px; }
.local-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 0 0 30px; border-bottom: 4px solid var(--wood); }
.local-kicker, .local-card-kicker, .local-section-heading > span, .local-small-label { color: var(--saddle-d); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.local-kicker { margin: 0 0 14px; }
.local-kicker span { padding: 0 7px; color: var(--red); }
.local-intro h2 { font: 800 clamp(2.7rem, 6vw, 4.6rem)/.98 var(--display); letter-spacing: .005em; text-transform: uppercase; }
.local-intro > div > p:last-child { max-width: 540px; margin: 18px 0 0; color: var(--muted); font-size: 1.0625rem; }
.local-generated { flex: none; margin: 0 0 3px; color: var(--muted); font-size: .875rem; font-weight: 700; }
.local-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 60px 0 22px; padding-bottom: 12px; border-bottom: 3px solid var(--wood); }
.local-section-heading h3 { font: 800 clamp(1.9rem, 3.6vw, 2.7rem)/1.02 var(--display); letter-spacing: .005em; text-transform: uppercase; }
.local-section-heading > span { color: var(--saddle-d); }
.local-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.local-card { position: relative; isolation: isolate; min-width: 0; padding: 28px 30px 38px; }
.local-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--wood) calc(100% - 14px), var(--saddle) calc(100% - 14px) calc(100% - 3px), var(--wood) calc(100% - 3px)); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 14px 100%); }
.local-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bone); clip-path: polygon(3px 3px, calc(100% - 3px) 3px, calc(100% - 16px) calc(100% - 14px), 16px calc(100% - 14px)); }
.local-card h4 { margin: 6px 0 18px; font: 800 clamp(1.7rem, 3vw, 2.2rem)/1.05 var(--display); letter-spacing: .005em; text-transform: uppercase; }
.local-card-kicker { margin: 0; }
.local-card .local-copy { margin: 10px 0; color: var(--wood); }
.local-card .local-subtle, .local-subtle { display: block; color: var(--muted); font-size: .9375rem; }
.local-source { margin: 24px 0 0; padding-top: 14px; border-top: 2px solid var(--wood); color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .01em; }
.local-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--blue-d); font-size: 1rem; 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: 2px solid var(--wood); }
.local-weather-lead > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px 22px; }
.local-big-temp { color: var(--blue); font: 800 clamp(5rem, 12vw, 8.5rem)/.82 var(--display); }
.local-weather-condition { max-width: 200px; color: var(--wood); font-size: 1.0625rem; font-weight: 700; }
.local-weather-note { padding-bottom: 7px; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 1rem; }
.local-weather-note strong { color: var(--wood); font-size: 1.0625rem; }
.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 solid var(--wood); }
.local-day { flex: 0 0 150px; padding: 0 14px; border-left: 2px solid var(--wood); display: flex; flex-direction: column; gap: 5px; font-size: .875rem; color: var(--muted); line-height: 1.3; }
.local-day:first-child { border-left-color: transparent; }
.local-day strong { color: var(--wood); font-size: .9375rem; }
.local-day-temp { color: var(--red); font: 800 1.6rem/1 var(--display); }
.local-small-label { margin: 22px 0 12px; }
.local-hour-strip { gap: 9px; padding-bottom: 6px; }
.local-hour { flex: 0 0 96px; padding: 11px 10px; border: 2px solid var(--wood); background: var(--oat-hi); display: flex; flex-direction: column; gap: 3px; font-size: .8125rem; color: var(--muted); }
.local-hour strong { color: var(--wood); font: 800 1.45rem/1 var(--display); }
.local-big-number { margin: 14px 0 8px; color: var(--red); font: 800 4.8rem/.92 var(--display); }
.local-radar { margin: 19px 0 0; overflow: hidden; border: 3px solid var(--wood); background: var(--bone); }
.local-radar img { display: block; width: 100%; height: auto; }
.local-radar figcaption { padding: 6px 9px; color: var(--muted); font-size: .8125rem; }
.local-alert, .local-advisory { display: flex; gap: 19px; padding: 22px 26px; margin-top: 22px; border: 3px solid var(--wood); border-bottom-width: 10px; border-bottom-color: var(--red); background: #f7dcd2; color: var(--wood); }
.local-alert-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 3px solid var(--wood); border-radius: 50%; background: var(--red); color: var(--bone); font-weight: 800; }
.local-alert h3, .local-advisory h3 { margin: 6px 0 8px; font-size: 1.2rem; line-height: 1.35; }
.local-alert p, .local-advisory p { margin-bottom: 0; }
.local-advisory { align-items: center; border-bottom-color: var(--yellow); background: #f4e5ae; }
.local-advisory-mark { flex: none; color: var(--saddle-d); font-size: 2.6rem; line-height: 1; }
.local-advisory h3 { font: 800 clamp(1.4rem, 2.6vw, 1.9rem)/1.1 var(--display); text-transform: uppercase; }
.local-advisory-alert { border-bottom-color: var(--red); background: #f7dcd2; }
.local-row { padding: 12px 0; border-bottom: 2px solid var(--wood); }
.local-row:first-of-type { padding-top: 0; }
.local-row:last-of-type { border-bottom: 0; }
.local-row-title { display: block; color: var(--blue-d); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.local-row-title:hover { color: var(--red); }
.local-row-detail { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; }
.local-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 35px; }
.local-market-name { display: block; font-size: 1.0625rem; }
.local-lottery { padding: 12px 0; border-bottom: 2px solid var(--wood); display: flex; flex-direction: column; gap: 5px; }
.local-lottery strong { font: 800 1.45rem/1.1 var(--display); letter-spacing: .03em; }

/* ---------- quote and question pages ---------- */
.page-shell { width: min(100% - 32px, 1240px); max-width: none; margin: auto; padding: 48px 0 80px; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border: 3px solid var(--wood); background: var(--yellow); color: var(--wood); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.intro h1 { font: 800 clamp(2.8rem, 7vw, 5rem)/.98 var(--display); letter-spacing: .005em; text-transform: uppercase; color: var(--wood); }
.intro h1::after { content: ""; display: block; width: min(100%, 9ch); height: 10px; margin-top: 14px; background: linear-gradient(90deg, var(--blue) 0 33%, var(--red) 33% 66%, var(--yellow) 66%); border: 3px solid var(--wood); }
.intro-copy { margin: 22px 0 0; color: var(--muted); font-size: clamp(1.0625rem, 2vw, 1.25rem); max-width: 670px; }

.options { margin-top: 48px; 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(--wood); border-bottom-width: 12px; border-bottom-color: var(--saddle); background: var(--bone); }
.option-number { color: var(--saddle-d); font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.option h2 { margin: 16px 0 8px; font: 800 clamp(1.6rem, 2.7vw, 2rem)/1.05 var(--display); text-transform: uppercase; }
.option p { margin: 0; color: var(--muted); font-size: 1rem; 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(--wood); color: var(--bone); background: var(--blue); font-weight: 700; font-size: 1rem; line-height: 1.25; text-decoration: none; text-align: left; cursor: pointer; }
.option-action:hover { background: var(--red); color: var(--bone); }
.option-action span { font-size: 1.2rem; line-height: 1; }
.option .option-note { margin-top: 7px; font-size: .875rem; color: var(--muted); }

.question-section { scroll-margin-top: 25px; margin-top: 44px; padding: 40px 36px 46px; border: 3px solid var(--wood); border-bottom-width: 14px; border-bottom-color: var(--saddle); background: var(--bone); }
.question-heading h2 { font: 800 clamp(2rem, 4vw, 2.8rem)/1.05 var(--display); text-transform: uppercase; }
.question-heading > p:last-child { margin: 13px 0 0; color: var(--muted); }
.question-form { margin-top: 6px; }
.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: 1rem; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; border: 3px solid var(--wood); border-radius: 0; padding: 12px 14px; color: var(--wood); background: var(--oat-hi); font-weight: 400; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { background: #fff; outline: 3px solid var(--blue); outline-offset: 2px; }
.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: 24px; min-width: 24px; height: 24px; min-height: 24px; margin: 1px 0 0; accent-color: var(--blue); }
.quote-form > fieldset > .checkbox-row { margin-top: 24px; }
.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, .quote-submit button, .quote-results button { min-height: 52px; display: inline-flex; align-items: center; gap: 12px; border: 3px solid var(--wood); border-bottom-width: 8px; border-bottom-color: var(--wood); border-radius: 0; padding: 10px 22px; color: var(--bone); background: var(--blue); font-weight: 700; font-size: 1.0625rem; cursor: pointer; }
.form-bottom button:hover, .quote-submit button:hover, .quote-results button:hover { background: var(--red); }
.quote-submit button:disabled, .quote-results button:disabled { cursor: wait; opacity: .65; }
.submit-note { max-width: 610px; margin: 17px 0 0; color: var(--muted); font-size: .9375rem; }
.form-status, #quote-status { min-height: 22px; margin: 13px 0 0; color: var(--blue-d); font-weight: 700; }

.product-switch { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 22px; }
.product-switch a { display: inline-flex; align-items: center; min-height: 48px; border: 3px solid var(--wood); border-bottom-width: 8px; border-bottom-color: var(--saddle); padding: 6px 20px; background: var(--bone); color: var(--wood); font: 800 1.2rem/1 var(--display); text-transform: uppercase; text-decoration: none; }
.product-switch a:hover { background: var(--oat-hi); color: var(--red); }
.product-switch a[aria-current="page"] { border-color: var(--wood); border-bottom-color: var(--yellow); color: var(--bone); background: var(--blue); }
.quote-form fieldset { min-width: 0; margin: 26px 0; padding: 34px 30px 32px; border: 3px solid var(--wood); border-bottom-width: 14px; border-bottom-color: var(--saddle); background: var(--bone); }
.quote-form legend { padding: 6px 16px; border: 3px solid var(--wood); background: var(--saddle); color: var(--bone); font: 800 1.35rem/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.quote-form .form-grid { margin-top: 4px; }
.quote-submit { margin: 22px 0 55px; max-width: 720px; }
.quote-results { margin: 30px 0 70px; padding: 28px; border: 3px solid var(--wood); border-bottom-width: 14px; border-bottom-color: var(--saddle); background: var(--bone); }
.quote-results h2 { margin: 0 0 16px; font: 800 clamp(1.9rem, 3.4vw, 2.6rem)/1.05 var(--display); text-transform: uppercase; }
.quote-results article { border-top: 3px solid var(--wood); padding: 20px 0; }
.quote-results article h3 { margin: 0 0 5px; font: 800 1.5rem/1.1 var(--display); }
.quote-results article p { margin: 4px 0 13px; }

.site-footer { width: min(100% - 32px, 1240px); max-width: none; margin: auto; padding: 22px 0 40px; border-top: 4px solid var(--wood); display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .9375rem; }
.site-footer p { margin: 0; }
.site-footer > p:first-child { color: var(--wood); font-weight: 700; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; 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)); }
  .local-intro { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 590px) {
  .header-inner { padding: 10px 0; }
  .brand { font-size: .875rem; gap: 12px; }
  .brand strong { font-size: 1rem; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.35rem; }
  .header-link { margin-left: auto; font-size: .9375rem; white-space: normal; text-align: right; }
  .frieze-wrap { margin-top: 18px; }
  .minimal-shell { padding-top: 24px; }
  .minimal-shell h1 { margin-bottom: 22px; }
  .page-shell { padding: 34px 0 60px; }
  .options { margin-top: 37px; grid-template-columns: 1fr; gap: 18px; }
  .option { min-height: 0; padding: 23px; }
  .question-section { margin-top: 36px; padding: 26px 18px 34px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .quote-form fieldset { padding: 28px 16px 26px; }
  .choice-grid { grid-template-columns: 1fr; gap: 20px; padding: 26px 20px 24px; --lean: 12px; }
  .choice-grid::before { clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 12px 100%); }
  .choice-grid a { min-height: 92px; padding: 16px calc(var(--lean) + 16px) 24px; }
  .choice-grid a:hover, .choice-grid a:focus-visible { --lean: 20px; }
  .local-wrap { padding: 54px 16px 72px; }
  .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 22px 34px; }
  .local-weather-lead { gap: 14px; }
  .local-alert, .local-advisory { padding: 20px 18px; gap: 12px; }
  .local-day { flex-basis: 128px; }
}

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