/* Norwalk Insurance: a black-japanned treadle machine, gilt decals and red running stitch on paper-white. Dark region = newest drop; everything else thins to gray. */
@font-face { font-family: "Libre Caslon Display"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/libre-caslon-display-400.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"); }

:root {
  color-scheme: light;
  --ink: #17140f;
  --ink-2: #2a251d;
  --muted: #4b473f;
  --line: #c3c9c9;
  --paper: #f1f3f3;
  --paper-hi: #fbfdfd;
  --wash: #e1e5e5;
  --gilt: #d8ac45;
  --bronze: #7a5410;
  --thread: #a3301f;
  --thread-soft: #c9776b;
  --on-ink: #e9ecea;
  --accent: #17140f;
  --accent-dark: #17140f;
  --display: "Libre Caslon Display", "Baskerville", "Times New Roman", serif;
  --text: "Alegreya Sans", "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-color: var(--ink) var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1.1875rem/1.55 var(--text); overflow-x: clip; }
::selection { background: var(--ink); color: var(--gilt); }
a { color: var(--bronze); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--thread); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--thread); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

/* ---------- masthead: the japanned plate ---------- */
.site-header { border: 0; border-bottom: 3px double var(--gilt); background: var(--ink); color: var(--on-ink); }
.header-inner { width: min(100% - 40px, 1240px); max-width: none; margin: auto; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: var(--on-ink); text-decoration: none; font-size: 1.0625rem; line-height: 1.15; letter-spacing: .01em; }
.brand:hover { color: var(--gilt); }
.brand strong { display: block; font: 400 1.5rem/1.1 var(--display); color: var(--gilt); letter-spacing: .01em; }
.brand-mark { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 2px solid var(--gilt); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px var(--gilt); color: var(--gilt); font: 400 1.5rem/1 var(--display); }
.header-link { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--on-ink); white-space: nowrap; font-weight: 700; text-decoration: underline; text-decoration-color: var(--gilt); text-decoration-thickness: 2px; text-underline-offset: 6px; cursor: pointer; }
.header-link:hover { color: var(--gilt); }
.site-header :focus-visible, .minimal-shell :focus-visible, #city-notes :focus-visible { outline-color: var(--gilt); }
.site-header :focus-visible { outline-color: var(--gilt); }

/* ---------- home: front of the machine ---------- */
.front { width: min(100% - 40px, 1240px); overflow-x: clip; margin: auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.minimal-shell { width: 100%; min-height: 0; margin: 0; padding: clamp(36px, 6vh, 72px) 0 clamp(36px, 6vh, 64px); display: flex; flex-direction: column; }
.minimal-shell h1 { margin: 0 0 clamp(24px, 4vw, 44px); font: 400 clamp(2.5rem, 7.4vw, 6.4rem)/.96 var(--display); letter-spacing: -.012em; color: var(--ink); max-width: 9ch; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: plate; }
.choice-grid a { position: relative; min-height: 112px; padding: 20px 26px 20px 28px; display: flex; align-items: flex-end; border: 0; border-radius: 4px; background: var(--ink); color: var(--on-ink); font: 700 clamp(1.1875rem, 1.9vw, 1.4rem)/1.18 var(--text); letter-spacing: .005em; text-decoration: none; box-shadow: inset 0 0 0 6px var(--ink), inset 0 0 0 7.500px var(--gilt); transition: background-color .2s, color .2s, box-shadow .2s; }
.choice-grid a::before { content: ""; position: absolute; top: 17px; left: 18px; width: 11px; height: 11px; background: var(--gilt); transform: rotate(45deg); }
.choice-grid a::after { content: ""; position: absolute; top: 22px; left: 36px; right: 20px; height: 0; border-top: 2px dotted var(--gilt); opacity: .75; }
.choice-grid a:nth-child(1) { grid-column: 1 / -1; min-height: 156px; font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.choice-grid a:nth-child(6) { grid-column: 1 / -1; min-height: 76px; padding-top: 22px; padding-bottom: 22px; }
.choice-grid a:hover { background: var(--ink-2); color: var(--gilt); box-shadow: inset 0 0 0 6px var(--ink-2), inset 0 0 0 9px var(--gilt); }
.choice-grid a:focus-visible { outline: 3px solid var(--thread); outline-offset: 4px; }
.agency-line { margin: 26px 0 0; padding: 14px 0 0; border-top: 2px dashed var(--thread-soft); color: var(--muted); font-size: 1.0625rem; font-weight: 700; }
.agency-line a { color: var(--bronze); }

.machine-wrap { position: relative; align-self: stretch; display: grid; align-content: center; padding: 20px 0; isolation: isolate; }
.machine { display: block; width: 100%; height: auto; max-height: 560px; }
.spool-row { width: min(100% - 40px, 1240px); margin: 0 auto; }
.spools { display: block; width: min(100%, 520px); height: auto; margin: 0; }

/* ---------- local board ---------- */
.local-board { border-top: 0; background: var(--paper); color: var(--ink); }
.local-wrap { max-width: 1280px; margin: auto; padding: clamp(48px, 7vw, 84px) 20px clamp(64px, 8vw, 100px); }
.local-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 0 0 34px; border-bottom: 3px double var(--ink); }
.local-kicker, .local-card-kicker, .local-section-heading > span, .local-small-label { color: var(--bronze); font-size: .9375rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.local-kicker { margin: 0 0 16px; }
.local-kicker span { padding: 0 7px; color: var(--thread); }
.local-intro h2 { margin: 0; font: 400 clamp(2.6rem, 6vw, 4.8rem)/1 var(--display); letter-spacing: -.01em; }
.local-intro > div > p:last-child { max-width: 540px; margin: 18px 0 0; color: var(--muted); font-size: 1.1875rem; }
.local-generated { flex: none; margin: 0 0 3px; color: var(--muted); font-size: .9375rem; font-weight: 700; }
.local-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: clamp(48px, 6vw, 68px) 0 22px; padding-bottom: 12px; border-bottom: 2px dashed var(--thread-soft); }
.local-section-heading h3 { margin: 0; font: 400 clamp(1.9rem, 3.5vw, 2.6rem)/1.05 var(--display); letter-spacing: -.005em; }
.local-section-heading > span { color: var(--bronze); }
.local-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.local-card { position: relative; min-width: 0; padding: 28px 30px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper-hi); box-shadow: 0 1px 0 var(--wash); }
.local-card::after { content: ""; position: absolute; inset: 5px; border: 1px dashed var(--thread-soft); border-radius: 2px; pointer-events: none; opacity: .65; }
.local-card h4 { margin: 8px 0 20px; font: 400 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--display); letter-spacing: 0; }
.local-card-kicker { margin: 0; }
.local-card .local-copy { margin: 10px 0; color: var(--muted); }
.local-card .local-subtle, .local-subtle { display: block; color: var(--muted); font-size: 1rem; }
.local-source { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; font-weight: 700; letter-spacing: .01em; }
.local-link { display: inline-block; margin-top: 11px; padding: 10px 0; color: var(--bronze); font-size: 1.0625rem; font-weight: 700; text-underline-offset: 4px; }
.local-link:hover { color: var(--thread); }
.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: 1px solid 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(5rem, 12vw, 8.5rem)/.85 var(--display); letter-spacing: -.03em; color: var(--ink); }
.local-weather-condition { max-width: 200px; color: var(--muted); font-size: 1.1875rem; }
.local-weather-note { padding-bottom: 7px; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 1.0625rem; }
.local-weather-note strong { color: var(--ink); font-size: 1.1875rem; }
.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(--line); }
.local-day { flex: 0 0 150px; padding: 2px 14px; border-left: 1px dashed var(--thread-soft); display: flex; flex-direction: column; gap: 5px; font-size: 1rem; color: var(--muted); line-height: 1.3; }
.local-day:first-child { border-left: 0; }
.local-day strong { color: var(--ink); font-size: 1.0625rem; }
.local-day-temp { color: var(--thread); font-size: 1.5rem; font-weight: 700; }
.local-small-label { margin: 22px 0 14px; }
.local-hour-strip { gap: 9px; }
.local-hour { flex: 0 0 96px; padding: 11px 10px; border-radius: 3px; background: var(--wash); display: flex; flex-direction: column; gap: 3px; font-size: .9375rem; color: var(--muted); }
.local-hour strong { color: var(--ink); font-size: 1.375rem; }
.local-big-number { margin: 16px 0 8px; color: var(--thread); font: 400 5rem/.95 var(--display); letter-spacing: -.02em; }
.local-radar { margin: 19px 0 0; overflow: hidden; border: 3px solid var(--ink); border-radius: 3px; background: var(--ink); }
.local-radar img { display: block; width: 100%; height: auto; }
.local-radar figcaption { padding: 7px 10px; background: var(--ink); color: var(--on-ink); font-size: .9375rem; }
.local-alert, .local-advisory { display: flex; gap: 18px; padding: 24px 26px; margin-top: 20px; border: 1px solid var(--thread); border-left: 8px solid var(--thread); border-radius: 3px; background: #fbeeea; color: var(--ink); }
.local-alert-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--thread); color: #fff; font-weight: 700; }
.local-alert h3, .local-advisory h3 { margin: 6px 0 9px; font-size: 1.25rem; line-height: 1.35; }
.local-alert p, .local-advisory p { margin-bottom: 0; }
.local-advisory { align-items: center; border: 1px solid var(--line); border-left: 8px solid var(--ink); background: var(--wash); }
.local-advisory-mark { flex: none; color: var(--bronze); font-size: 2.5rem; line-height: 1; }
.local-advisory h3 { font: 400 clamp(1.4rem, 2.5vw, 1.9rem)/1.2 var(--display); }
.local-advisory-alert { border-color: var(--thread); border-left-color: var(--thread); background: #fbeeea; }
.local-row { padding: 13px 0; border-bottom: 1px dashed 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: 1.125rem; font-weight: 700; line-height: 1.3; text-decoration-color: var(--thread-soft); text-underline-offset: 4px; }
.local-row-title:hover { color: var(--thread); }
.local-row-detail { display: block; margin-top: 4px; color: var(--muted); font-size: 1rem; }
.local-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 35px; }
.local-market-name { display: block; font-size: 1.1875rem; }
.local-lottery { padding: 12px 0; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; gap: 5px; }
.local-lottery strong { font-size: 1.375rem; letter-spacing: .04em; }

/* city notes: the dark region at the foot, gilt on japan */
#city-notes { padding: 60px 0; background: var(--ink); color: var(--on-ink); border-top: 3px double var(--gilt); }
#city-notes .local-wrap { padding-top: 0; padding-bottom: 0; }
#city-notes .local-section-heading { border-bottom-color: var(--gilt); }
#city-notes .local-section-heading > span, #city-notes .local-card-kicker { color: var(--gilt); }
#city-notes .local-section-heading h3 { color: var(--on-ink); }
#city-notes .local-card { background: transparent; border-color: var(--gilt); }
#city-notes .local-card::after { border-color: rgba(216, 172, 69, .5); opacity: 1; }
#city-notes .local-card .local-copy { color: var(--on-ink); font-size: 1.25rem; max-width: 70ch; }
#city-notes a { color: var(--gilt); }

/* ---------- quote and question pages ---------- */
.page-shell { max-width: 1180px; margin: auto; padding: clamp(40px, 6vw, 72px) 20px clamp(56px, 8vw, 92px); }
.eyebrow { margin: 0 0 12px; color: var(--thread); font-size: 1rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.intro h1 { margin: 0; font: 400 clamp(2.8rem, 6.4vw, 5.2rem)/1 var(--display); letter-spacing: -.01em; }
.intro-copy { margin: 20px 0 0; color: var(--muted); font-size: clamp(1.1875rem, 2vw, 1.375rem); max-width: 670px; }

.options { margin-top: 55px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.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: var(--paper-hi); }
.option:hover { border-color: var(--ink); }
.option-number { color: var(--bronze); font-size: .9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.option h2 { margin: 19px 0 7px; font: 400 clamp(1.6rem, 2.7vw, 2rem)/1.12 var(--display); }
.option p { margin: 0; color: var(--muted); font-size: 1.0625rem; 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: var(--gilt); background: var(--ink); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; text-decoration: none; text-align: left; cursor: pointer; }
.option-action:hover { background: var(--ink-2); }
.option-action span { font-size: 1.25rem; line-height: 1; }
.option .option-note { margin-top: 7px; font-size: 1rem; color: var(--muted); }

.question-section { scroll-margin-top: 25px; margin-top: 56px; padding: clamp(24px, 4vw, 46px); border: 1px solid var(--line); border-radius: 4px; background: var(--paper-hi); position: relative; }
.question-section::after { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--thread-soft); border-radius: 2px; pointer-events: none; opacity: .65; }
.question-heading h2 { margin: 0; font: 400 clamp(2rem, 4vw, 2.8rem)/1.1 var(--display); }
.question-heading > p:last-child { margin: 13px 0 0; color: var(--muted); }
.question-form { position: relative; z-index: 1; margin-top: 8px; }
.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: 1.0625rem; color: var(--ink); }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; border: 2px solid var(--ink); border-radius: 3px; padding: 12px 14px; color: var(--ink); background: #fff; font-weight: 400; font-size: 1.125rem; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 3px solid var(--gilt); outline-offset: 0; border-color: var(--ink); box-shadow: 0 0 0 5px var(--ink); }
.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; min-height: 44px; }
.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(--ink); }
.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: 54px; display: inline-flex; align-items: center; gap: 12px; border: 0; border-radius: 3px; padding: 13px 24px; color: var(--gilt); background: var(--ink); font-weight: 700; font-size: 1.1875rem; cursor: pointer; box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4.500px var(--gilt); }
.form-bottom button:hover { background: var(--ink-2); color: #f0cd77; }
.submit-note { max-width: 610px; margin: 17px 0 0; color: var(--muted); font-size: 1rem; }
.form-status { min-height: 24px; margin: 13px 0 0; color: var(--thread); font-weight: 700; font-size: 1.0625rem; }

.product-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 20px; }
.product-switch a { display: inline-flex; align-items: center; min-height: 48px; border: 2px solid var(--ink); border-radius: 3px; padding: 8px 20px; background: var(--paper-hi); color: var(--ink); font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.product-switch a:hover { background: var(--wash); color: var(--ink); }
.product-switch a[aria-current="page"] { border-color: var(--ink); color: var(--gilt); background: var(--ink); }
.quote-form fieldset { position: relative; min-width: 0; margin: 22px 0; padding: 30px 28px 28px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper-hi); }
.quote-form legend { padding: 4px 16px 5px; margin-left: 6px; background: var(--ink); color: var(--gilt); font: 400 1.5rem/1.2 var(--display); letter-spacing: .01em; border-radius: 2px; }
.quote-form .form-grid { margin-top: 4px; }
.quote-submit { margin: 22px 0 55px; max-width: 720px; }
.quote-submit button, .quote-results button { min-height: 54px; border: 0; border-radius: 3px; padding: 13px 24px; color: var(--gilt); background: var(--ink); font-weight: 700; font-size: 1.1875rem; cursor: pointer; box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4.500px var(--gilt); }
.quote-submit button:hover, .quote-results button:hover { background: var(--ink-2); color: #f0cd77; }
.quote-submit button:disabled, .quote-results button:disabled { cursor: wait; opacity: .65; }
#quote-status { color: var(--thread); font-weight: 700; }
.quote-results { margin: 30px 0 70px; padding: 28px; border: 1px solid var(--ink); border-top: 6px solid var(--ink); border-radius: 4px; background: var(--paper-hi); }
.quote-results h2 { margin: 0 0 16px; font: 400 clamp(1.9rem, 3vw, 2.5rem)/1.1 var(--display); }
.quote-results article { border-top: 2px dashed var(--thread-soft); padding: 20px 0; }
.quote-results article h3 { margin: 0 0 5px; font: 400 1.6rem/1.15 var(--display); }
.quote-results article p { margin: 4px 0 13px; }

.site-footer { border-top: 3px double var(--gilt); max-width: none; margin: 0; padding: 30px max(20px, calc((100% - 1180px) / 2)) 38px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; background: var(--ink); color: var(--on-ink); font-size: 1.0625rem; }
.site-footer p { margin: 0; }
.site-footer > p:first-child { color: var(--on-ink); font-weight: 700; }
.site-footer a { color: var(--gilt); text-underline-offset: 4px; }
.site-footer a:hover { color: #f0cd77; }
.site-footer :focus-visible { outline-color: var(--gilt); }
.site-footer .footer-note { flex-basis: 100%; }

@media (max-width: 960px) {
  .front { grid-template-columns: minmax(0, 1fr); }
  .minimal-shell h1 { max-width: none; }
  .machine-wrap { max-width: 460px; justify-self: center; width: 100%; }
}

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

@media (max-width: 590px) {
  .header-inner { padding: 12px 0; }
  .brand { font-size: .9375rem; gap: 10px; }
  .brand strong { font-size: 1.3rem; }
  .brand-mark { width: 42px; height: 42px; font-size: 1.3rem; }
  .header-link { margin-left: auto; font-size: 1rem; white-space: normal; text-align: right; }
  .choice-grid { grid-template-columns: 1fr; gap: 11px; }
  .choice-grid a, .choice-grid a:nth-child(1), .choice-grid a:nth-child(6) { grid-column: auto; min-height: 84px; font-size: 1.25rem; }
  .choice-grid a:nth-child(1) { min-height: 110px; }
  .options { margin-top: 37px; grid-template-columns: 1fr; gap: 12px; }
  .option { min-height: 0; padding: 23px; }
  .option .option-action { margin-top: 20px; }
  .question-section { padding: 26px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 19px; }
  .quote-form fieldset { padding: 26px 16px 22px; }
  .local-wrap { padding: 52px 20px 64px; }
  .local-section-heading { 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 20px; }
  .local-weather-lead { gap: 14px; }
  .local-alert, .local-advisory { padding: 22px 18px; gap: 12px; }
  .local-day { flex-basis: 130px; }
  #city-notes { padding: 44px 0; }
  .site-footer { padding: 26px 20px 34px; }
}

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