/* Rocklin Insurance Policies: a white bench-notes sheet. Slate ink on cloud white; mint, rose and violet live only in hairline edges. */
@font-face { font-family: "Alegreya Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/alegreya-sans-300.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/alegreya-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/alegreya-sans-700.woff2) format("woff2"); }
@font-face { font-family: "Spline Sans Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/spline-sans-mono-500.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ink: #2a3540;
  --muted: #4b5966;
  --line: #8895a1;
  --hair: #d3dae0;
  --paper: #fcfdfe;
  --wash: #f4f6f8;
  --mint: #6fd3b0;
  --rose: #f0a0be;
  --violet: #9a7fe8;
  --violet-deep: #4c2fa3;
  --rose-deep: #a3304f;
  --accent: #4c2fa3;
  --accent-dark: #2a3540;
  --fringe: 0 2px 0 var(--mint), 0 4px 0 var(--rose), 0 6px 0 var(--violet);
  --sans: "Alegreya Sans", "Gill Sans", "Trebuchet MS", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 18px/1.6 var(--sans); overflow-x: clip; }
::selection { background: #d9ccff; color: var(--ink); }
a { color: var(--ink); text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--violet-deep); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--violet-deep); outline-offset: 3px; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--hair); background: var(--paper); }
.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: 18px; min-height: 44px; text-decoration: none; font-size: 17px; font-weight: 300; line-height: 1.2; color: var(--ink); }
.brand strong { display: block; font-size: 21px; font-weight: 700; letter-spacing: .005em; }
.brand-mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 5px; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; font: 500 18px/1 var(--mono); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--mint), 0 0 0 7px #fff, 0 0 0 8.5px var(--rose); }
.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; text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 6px; cursor: pointer; }
.header-link span { color: var(--violet-deep); }

/* ---- home sheet ---- */
.bench { background: var(--paper); border-bottom: 1px solid var(--hair); overflow: hidden; display: flex; justify-content: center; }
.bench-art { display: block; flex: none; width: max(100%, 760px); max-width: 1500px; height: auto; }
.minimal-shell { width: min(100% - 40px, 1080px); min-height: calc(100vh - 89px); margin: auto; padding: clamp(36px, 6vh, 70px) 0 38px; display: flex; flex-direction: column; }
.minimal-shell h1 { margin: 10px 0 44px; max-width: 12ch; font: 300 clamp(48px, 8vw, 104px)/.98 var(--sans); letter-spacing: -.025em; color: var(--ink); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.choice-grid a { position: relative; min-height: 136px; padding: 26px 22px 20px; display: flex; align-items: flex-end; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: clamp(21px, 2.3vw, 27px); font-weight: 400; line-height: 1.15; text-decoration: none; box-shadow: var(--fringe); transition: transform .2s, box-shadow .2s, border-color .2s; }
.choice-grid a::before { content: ""; position: absolute; top: 16px; left: 18px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--mint), 0 0 0 5.5px #fff, 0 0 0 7px var(--violet); }
.choice-grid a:hover { border-color: var(--violet-deep); color: var(--violet-deep); transform: translateY(-2px); box-shadow: 0 3px 0 var(--mint), 0 6px 0 var(--rose), 0 9px 0 var(--violet); }
.agency-line { margin: auto 0 0; padding-top: 62px; color: var(--muted); font: 500 14px/1.6 var(--mono); letter-spacing: .01em; }
.agency-line a { display: inline-block; padding: 8px 2px; font-weight: 500; }

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

/* ---- local board ---- */
.local-board { border-top: 1px solid var(--hair); background: var(--paper); color: var(--ink); }
.local-wrap { max-width: 1180px; margin: auto; padding: 86px 32px 110px; }
.local-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 0 0 38px; border-bottom: 1px solid var(--line); box-shadow: 0 2px 0 var(--mint), 0 4px 0 var(--rose), 0 6px 0 var(--violet); margin-bottom: 8px; }
.local-kicker, .local-card-kicker, .local-section-heading > span, .local-small-label { color: var(--violet-deep); font: 500 14px/1.5 var(--mono); letter-spacing: 0; text-transform: none; }
.local-kicker { margin: 0 0 18px; }
.local-kicker span { padding: 0 7px; }
.local-intro h2 { margin: 0; font: 300 clamp(44px, 6.4vw, 84px)/1 var(--sans); letter-spacing: -.025em; }
.local-intro > div > p:last-child { max-width: 540px; margin: 20px 0 0; color: var(--muted); font-size: 19px; }
.local-generated { flex: none; margin: 0 0 3px; color: var(--muted); font: 500 13px/1.5 var(--mono); }
.local-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 72px 0 24px; }
.local-section-heading h3 { margin: 0; font: 300 clamp(32px, 3.8vw, 46px)/1.05 var(--sans); letter-spacing: -.02em; }
.local-section-heading > span { color: var(--muted); }
.local-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
.local-card { min-width: 0; padding: 28px 29px; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: var(--fringe); }
.local-card h4 { margin: 7px 0 21px; font: 300 clamp(28px, 3vw, 37px)/1.08 var(--sans); letter-spacing: -.015em; }
.local-card-kicker { margin: 0; }
.local-card .local-copy { margin: 10px 0; max-width: 56ch; color: var(--ink); }
.local-card .local-subtle, .local-subtle { display: block; color: var(--muted); font-size: 16px; }
.local-source { margin: 27px 0 0; padding-top: 16px; border-top: 1px solid var(--hair); color: var(--muted); font: 500 12.5px/1.55 var(--mono); }
.local-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--violet-deep); font-size: 17px; 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: 13px 0 27px; border-bottom: 1px solid var(--hair); }
.local-weather-lead > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px 22px; }
.local-big-temp { font: 300 clamp(88px, 13vw, 150px)/.82 var(--sans); letter-spacing: -.05em; }
.local-weather-condition { max-width: 200px; color: var(--muted); font-size: 20px; }
.local-weather-note { padding-bottom: 7px; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 17px; }
.local-weather-note strong { color: var(--ink); font-size: 19px; }
.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(--hair); }
.local-day { flex: 0 0 150px; padding: 0 14px; border-left: 1px solid var(--hair); display: flex; flex-direction: column; gap: 5px; font-size: 15px; color: var(--muted); line-height: 1.3; }
.local-day:first-child { padding-left: 0; border-left: 0; }
.local-day strong { color: var(--ink); font-size: 16px; }
.local-day-temp { color: var(--violet-deep); font: 500 20px/1.3 var(--mono); }
.local-small-label { margin: 23px 0 14px; }
.local-hour-strip { gap: 9px; }
.local-hour { flex: 0 0 94px; padding: 11px 10px; border: 0; border-bottom: 2px solid var(--violet); border-radius: 0; background: transparent; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--muted); }
.local-hour strong { color: var(--ink); font: 500 20px/1.3 var(--mono); }
.local-big-number { margin: 16px 0 8px; color: var(--violet-deep); font: 300 84px/.95 var(--sans); letter-spacing: -.04em; }
.local-radar { margin: 19px 0 0; overflow: hidden; border: 1px solid var(--ink); border-radius: 3px; box-shadow: 0 2px 0 var(--mint), 0 4px 0 var(--violet); }
.local-radar img { display: block; width: 100%; height: auto; }
.local-radar figcaption { padding: 7px 10px; color: var(--muted); font: 500 12px/1.5 var(--mono); }
.local-alert, .local-advisory { display: flex; gap: 19px; padding: 24px 27px; margin-top: 21px; border: 1px solid var(--rose-deep); border-left-width: 6px; border-radius: 4px; background: #fff; }
.local-alert-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--rose-deep); color: #fff; font-weight: 700; }
.local-alert h3, .local-advisory h3 { margin: 7px 0 9px; font-size: 21px; line-height: 1.3; }
.local-alert p, .local-advisory p { margin-bottom: 0; }
.local-advisory { align-items: center; border-color: var(--line); border-left-color: var(--violet-deep); background: var(--wash); }
.local-advisory-mark { flex: none; color: var(--violet-deep); font-size: 38px; line-height: 1; }
.local-advisory h3 { font: 400 clamp(22px, 2.5vw, 30px)/1.2 var(--sans); }
.local-advisory-alert { border-color: var(--rose-deep); background: #fff4f7; }
.local-row { padding: 13px 0; border-bottom: 1px solid var(--hair); }
.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: 18px; font-weight: 700; line-height: 1.35; text-decoration-color: var(--violet); text-underline-offset: 4px; }
.local-row-detail { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.local-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 35px; }
.local-market-name { display: block; font-size: 19px; }
.local-lottery { padding: 12px 0; border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 5px; }
.local-lottery strong { font: 500 20px/1.4 var(--mono); letter-spacing: .03em; }

/* ---- quote and question pages ---- */
.page-shell { max-width: 1180px; margin: auto; padding: 68px 32px 92px; }
.eyebrow { margin: 0 0 14px; padding-left: 14px; border-left: 3px solid var(--violet); color: var(--violet-deep); font: 500 15px/1.4 var(--mono); letter-spacing: 0; text-transform: none; }
.intro h1 { margin: 0; font: 300 clamp(46px, 6.4vw, 88px)/1 var(--sans); letter-spacing: -.025em; }
.intro-copy { margin: 24px 0 0; color: var(--muted); font-size: clamp(19px, 2vw, 22px); max-width: 680px; }

.options { margin-top: 55px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.option { min-width: 0; min-height: 247px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: var(--fringe); }
.option-number { color: var(--violet-deep); font: 500 14px/1.4 var(--mono); }
.option h2 { margin: 19px 0 7px; font: 300 clamp(26px, 2.8vw, 34px)/1.1 var(--sans); }
.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: 3px; color: #fff; background: var(--ink); font-weight: 700; font-size: 17px; line-height: 1.25; text-decoration: none; text-align: left; cursor: pointer; }
.option-action:hover { background: var(--violet-deep); color: #fff; }
.option-action span { font-size: 19px; line-height: 1; }
.option .option-note { margin-top: 7px; font-size: 15px; color: var(--muted); }

.question-section { scroll-margin-top: 25px; margin-top: 70px; padding: 46px; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: var(--fringe); }
.question-heading h2 { margin: 0; font: 300 clamp(32px, 4.2vw, 50px)/1.08 var(--sans); letter-spacing: -.02em; }
.question-heading > p:last-child { margin: 13px 0 0; color: var(--muted); }
.question-form { margin-top: 38px; }
.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: 17px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 3px; 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(--violet-deep); box-shadow: 0 0 0 1px var(--violet-deep); }
.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(--violet-deep); }
.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 { min-height: 54px; display: inline-flex; align-items: center; gap: 12px; border: 0; border-radius: 3px; padding: 13px 24px; color: #fff; background: var(--ink); font-weight: 700; font-size: 18px; cursor: pointer; box-shadow: var(--fringe); margin-bottom: 8px; }
.form-bottom button:hover { background: var(--violet-deep); }
.submit-note { max-width: 62ch; margin: 17px 0 0; color: var(--muted); font-size: 16px; }
.form-status { min-height: 22px; margin: 13px 0 0; color: var(--violet-deep); font-weight: 700; font-size: 17px; }

.product-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 22px; }
.product-switch a { display: inline-flex; align-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 3px; padding: 10px 20px; background: #fff; font-weight: 700; text-decoration: none; }
.product-switch a:hover { border-color: var(--violet-deep); }
.product-switch a[aria-current="page"] { border-color: var(--ink); color: #fff; background: var(--ink); box-shadow: 0 2px 0 var(--mint), 0 4px 0 var(--rose), 0 6px 0 var(--violet); }
.quote-form fieldset { min-width: 0; margin: 22px 0; padding: 30px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.quote-form legend { padding: 0 10px; font: 400 26px/1.2 var(--sans); }
.quote-form .form-grid { margin-top: 4px; }
.quote-submit { margin: 26px 0 55px; max-width: 740px; }
.quote-submit button, .quote-results button { min-height: 54px; border: 0; border-radius: 3px; padding: 13px 24px; color: #fff; background: var(--ink); font-weight: 700; font-size: 18px; cursor: pointer; box-shadow: var(--fringe); margin-bottom: 8px; }
.quote-submit button:hover, .quote-results button:hover { background: var(--violet-deep); }
.quote-submit button:disabled, .quote-results button:disabled { cursor: wait; opacity: .6; }
#quote-status { color: var(--violet-deep); font-weight: 700; }
.quote-results { margin: 30px 0 70px; padding: 28px; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: var(--fringe); }
.quote-results h2 { margin: 0 0 16px; font: 300 36px/1.1 var(--sans); }
.quote-results article { border-top: 1px solid var(--hair); padding: 20px 0; }
.quote-results article h3 { margin: 0 0 5px; font-weight: 700; }
.quote-results article p { margin: 4px 0 13px; }

.site-footer { border-top: 1px solid var(--hair); max-width: 1180px; margin: auto; padding: 27px 32px 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 26px; color: var(--muted); font-size: 16px; }
.site-footer p { margin: 0; }
.site-footer > p:first-child { color: var(--ink); 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) {
  body { font-size: 17px; }
  .header-inner { padding: 14px 20px; flex-wrap: wrap; gap: 4px 16px; }
  .brand { font-size: 15px; gap: 14px; }
  .brand strong { font-size: 19px; }
  .brand-mark { width: 38px; height: 38px; font-size: 16px; }
  .header-link { margin-left: auto; font-size: 16px; white-space: normal; text-align: right; }
  .bench-art { width: 820px; }
  .page-shell { padding: 46px 20px 65px; }
  .options { margin-top: 37px; grid-template-columns: 1fr; gap: 20px; }
  .option { min-height: 0; padding: 23px; }
  .option h2 { margin-top: 15px; }
  .option .option-action { margin-top: 20px; }
  .question-section { margin-top: 50px; padding: 27px 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .quote-form fieldset { padding: 22px 18px; }
  .site-footer { padding: 25px 20px 34px; }
  .minimal-shell { min-height: 0; padding-top: 34px; }
  .minimal-shell h1 { margin-bottom: 34px; }
  .choice-grid { grid-template-columns: 1fr; gap: 22px; }
  .choice-grid a { min-height: 104px; padding: 24px 20px 18px; }
  .local-wrap { padding: 60px 20px 75px; }
  .local-section-heading { margin-top: 54px; 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 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 { transition: none; }
  .choice-grid a:hover { transform: none; }
}
