/* Hallmark · macrostructure: bespoke (sun-disc hero · alternating path rows · tool band · rail + article · town grid · quote band) · tone: playful-utilitarian · anchor hue: sun yellow ~45deg, meter blue ~225deg
 * Solar Sunny v2 · private pitch concept. One local font (Recursive: CASL for display, MONO for meter readouts); no network requests. */

@font-face {
  font-family: "Recursive";
  src: url("recursive.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sun: #FFC83D;
  --sun-pale: #FFF1C7;
  --ink: #1E1C17;
  --body: #2E323A;
  --muted: #4A5260;
  --meter: #1846C4;
  --paper: #FBFCFE;
  --sky: #E8EFF8;
  --haze: #B9C6DA;
  --rule: #C3CEDD;
  --white: #FFFFFF;
  --ink-deep: #0E0D0A;
  --alert: #B3261E;
  --halo-1: rgba(255, 255, 255, 0.35);
  --halo-2: rgba(255, 255, 255, 0.16);
  --ink-wash: rgba(30, 28, 23, 0.08);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --casual: "CASL" 1, "MONO" 0;
  --linear: "CASL" 0, "MONO" 0;
  --mono: "CASL" 0, "MONO" 1;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Recursive", ui-sans-serif, system-ui, sans-serif;
  font-variation-settings: var(--linear);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--meter); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { color: var(--ink); margin: 0; overflow-wrap: anywhere; min-width: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Focus: blue on light, ink on sun, sun on ink. */
:focus-visible { outline: 3px solid var(--meter); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .quote-band :focus-visible, .town-nav :focus-visible { outline-color: var(--ink); }
.concept-strip :focus-visible, .site-footer :focus-visible { outline-color: var(--sun); }
main:focus { outline: none; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--ink); color: var(--sun); padding: 12px 18px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; outline-color: var(--sun); }

/* ---------------------------------------------------------------- header */
.concept-strip {
  margin: 0; background: var(--ink); color: var(--haze);
  font-size: 0.875rem; line-height: 1.45; padding: 9px 0;
}
.concept-strip .wrap { display: block; }
.concept-strip strong { color: var(--white); font-weight: 650; }

.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none;
  font-variation-settings: var(--casual); font-weight: 850; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1;
}
.mark { width: 34px; height: 34px; color: var(--ink); flex: none; }
.mark-disc { fill: var(--sun); stroke: var(--ink); stroke-width: 2; }
.mark-tick { stroke: var(--ink); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 999px;
}
.nav-link:hover { background: var(--sky); }

.town-nav { background: var(--paper); border-top: 1px solid var(--rule); }
.town-nav ul { position: relative; list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.town-nav li { flex: none; }
.town-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  color: var(--body); font-weight: 550; text-decoration: none; border-radius: 999px; white-space: nowrap;
}
.town-nav a:hover { background: var(--sky); color: var(--ink); }
.town-nav a[aria-current="page"] { background: var(--ink); color: var(--sun); font-weight: 700; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink);
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
}
.btn-quote { background: var(--ink); color: var(--sun); }
.btn-quote:hover { background: var(--ink-deep); text-decoration: underline; text-decoration-color: var(--sun); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink-wash); }
.btn:active { background-color: var(--ink-deep); color: var(--sun); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; text-decoration: none; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }

/* ---------------------------------------------------------------- hero */
.hero { background: var(--sun); color: var(--body); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 32px 56px; align-items: center; padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(44px, 6vw, 76px); }
.kicker { margin: 0 0 10px; color: var(--ink); font-weight: 650; font-size: 1rem; }
.hero h1 {
  font-variation-settings: var(--casual); font-weight: 850;
  font-size: clamp(2.15rem, 1.15rem + 3.1vw, 3.8rem); line-height: 1.04; letter-spacing: -0.025em;
  max-width: 15ch; text-wrap: balance;
}
.hero .lead { margin: 18px 0 0; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem); line-height: 1.6; color: var(--body); max-width: 58ch; }
.proposition { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.proposition li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 600; line-height: 1.45; }
.proposition li::before {
  content: ""; position: absolute; left: 0; top: 0.12em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.6 10.4l2.9 2.9 5.6-6' fill='none' stroke='%23FFC83D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 0; }
.hero-actions + .proposition { margin-top: 22px; }

.hero-sun { position: relative; justify-self: center; width: min(100%, 500px); padding-bottom: 64px; }
.sun-disc {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 10px var(--halo-1), 0 0 0 22px var(--halo-2);
}
.hero-sun .ticket { position: absolute; left: -36px; bottom: 0; width: min(92%, 380px); }

/* ---------------------------------------------------------------- meter ticket */
.ticket { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px 12px; color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; font-weight: 700; font-size: 0.95rem; line-height: 1.35; }
.ticket-tag { font-weight: 500; font-size: 0.8125rem; color: var(--muted); }
.ticket-row { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 6px 0; }
.ticket-name { font-size: 0.875rem; font-weight: 600; color: var(--body); }
.bar { display: block; height: 14px; width: var(--w, 100%); max-width: 100%; border-radius: 3px; }
.bar-promise { background: var(--sun); box-shadow: inset 0 0 0 1.5px var(--ink); }
.bar-measured { background: var(--meter); }
.readout { font-variation-settings: var(--mono); font-weight: 600; font-size: 0.875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket-total { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed var(--rule); font-size: 0.95rem; font-weight: 600; }
.readout-lg { font-size: 1.75rem; font-weight: 700; color: var(--meter); margin-right: 4px; letter-spacing: -0.02em; }

/* ---------------------------------------------------------------- two lines of work */
.lines { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.band-title {
  font-variation-settings: var(--casual); font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 26ch;
}
.band-note { color: var(--muted); font-size: 0.95rem; max-width: 70ch; margin: 14px 0 0; }
.line-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: center; margin-top: clamp(32px, 5vw, 56px); }
.line-row-flip .line-photo { order: 2; }
.line-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; }
.line-key { margin: 0 0 4px; font-variation-settings: var(--mono); font-weight: 600; font-size: 0.95rem; color: var(--meter); }
.line-copy h3 { font-variation-settings: var(--casual); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -0.015em; }
.line-copy > p { margin: 12px 0 0; max-width: 56ch; }
.line-points { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.line-points li { padding: 10px 14px; background: var(--sky); border-radius: 12px; line-height: 1.5; }
.line-points b { color: var(--ink); }
.line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 20px 0 0; }

/* ---------------------------------------------------------------- promise check */
.check-band { background: var(--sky); padding: clamp(48px, 6vw, 84px) 0; }
.check-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 56px; align-items: start; }
.check-intro h2 { font-variation-settings: var(--casual); font-weight: 850; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em; }
.check-intro p { margin: 14px 0 0; max-width: 46ch; }
.check-intro .check-method { font-size: 0.9rem; color: var(--muted); }
.check-tool { background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; padding: clamp(18px, 3vw, 28px); }
.check-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.field { display: grid; gap: 4px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 650; color: var(--ink); font-size: 0.95rem; }
.field label span { font-weight: 450; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 8px 12px; font: inherit; color: var(--ink);
  background: var(--white); border: 2px solid var(--muted); border-radius: 10px;
}
.field input:hover, .field select:hover { border-color: var(--ink); }
.field input:disabled, .field select:disabled { background: var(--sky); color: var(--muted); cursor: not-allowed; }
.field input { font-variation-settings: var(--mono); font-size: 1rem; }
.field input:focus-visible, .field select:focus-visible { border-color: var(--meter); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--alert); }
.hint { margin: 0; font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }
.check-result { margin-top: 20px; display: grid; gap: 14px; }
.ticket-live { box-shadow: none; background: var(--sun-pale); }
.check-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.check-facts div { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; }
.check-facts dt { font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.check-facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 650; line-height: 1.35; font-size: 0.95rem; }
.check-read { margin: 0; color: var(--body); }
.check-error { margin: 0; color: var(--alert); font-weight: 650; }

/* ---------------------------------------------------------------- reading */
.reading { padding: clamp(48px, 6vw, 88px) 0; }
.reading-grid { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.reading-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.toc { border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); }
.toc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px; cursor: pointer; font-weight: 750; color: var(--ink); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); flex: none; }
.toc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.toc summary > span:first-child { white-space: nowrap; }
.toc-count { margin-left: auto; font-weight: 500; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.toc ol { list-style: none; margin: 0; padding: 0 8px 10px; counter-reset: none; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 10px; color: var(--body); text-decoration: none; font-size: 0.925rem; line-height: 1.35; }
.toc a:hover { background: var(--sky); color: var(--ink); }
.toc a.is-here { background: var(--sun-pale); color: var(--ink); font-weight: 650; }

.editorial { max-width: 70ch; min-width: 0; }
.editorial > *:first-child { margin-top: 0; }
.editorial h2 {
  font-variation-settings: var(--casual); font-weight: 800;
  font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.15rem); line-height: 1.15; letter-spacing: -0.018em;
  margin: 2.6em 0 0.6em; scroll-margin-top: 20px; text-wrap: balance;
}
.editorial h3 { font-weight: 750; font-size: 1.2rem; line-height: 1.3; margin: 1.8em 0 0.4em; scroll-margin-top: 20px; }
.editorial p { margin: 0 0 1.05em; }
.editorial ul, .editorial ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.editorial li { margin: 0.35em 0; }
.editorial li::marker { color: var(--meter); font-weight: 700; }
.editorial strong { color: var(--ink); font-weight: 700; }
.editorial blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--sun-pale); border: 2px solid var(--ink); border-radius: 16px; color: var(--ink); }
.editorial blockquote p:last-child { margin-bottom: 0; }
.table-scroll { margin: 1.4em 0 1.6em; overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--white); }
.table-scroll:focus-visible { outline-offset: 2px; }
.editorial table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.editorial th, .editorial td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--rule); min-width: 9rem; }
.editorial th { background: var(--sky); color: var(--ink); font-weight: 700; }
.editorial tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- town guides */
.town-guides { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--rule); }
.town-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.town-list a {
  display: grid; align-content: start; gap: 8px; height: 100%; min-height: 150px; padding: 20px;
  border: 2px solid var(--ink); border-radius: 20px; color: var(--body); text-decoration: none; background: var(--paper);
}
.town-list a:hover { background: var(--sun-pale); }
.town-name { font-variation-settings: var(--casual); font-weight: 800; font-size: 1.4rem; color: var(--ink); line-height: 1.15; }
.town-topic { font-size: 0.95rem; line-height: 1.45; }
.town-pending { color: var(--muted); font-style: normal; }

/* ---------------------------------------------------------------- quote */
.quote-band { background: var(--sun); padding: clamp(48px, 6vw, 88px) 0; scroll-margin-top: 0; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 28px 56px; align-items: start; }
.quote-intro h2 { font-variation-settings: var(--casual); font-weight: 850; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem); line-height: 1.05; letter-spacing: -0.02em; }
.quote-intro p { margin: 14px 0 0; max-width: 46ch; color: var(--body); }
.quote-tool { background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.quote-tool .btn { justify-self: start; }
.quote-result:empty { display: none; }
.quote-result { border-top: 2px dashed var(--rule); padding-top: 16px; }
.quote-result h3 { font-variation-settings: var(--casual); font-weight: 800; font-size: 1.3rem; line-height: 1.25; }
.quote-result ol { margin: 12px 0; padding-left: 1.4em; }
.quote-result li { margin: 6px 0; }
.quote-result li::marker { color: var(--meter); font-weight: 700; }
.quote-result p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------------------------------------------------------------- town pages */
.hero-town .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.town-card { background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; padding: 18px; box-shadow: 6px 6px 0 var(--ink); }
.town-card-title { margin: 0 0 8px; font-variation-settings: var(--casual); font-weight: 800; color: var(--ink); font-size: 1.2rem; line-height: 1.25; }
.town-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.town-card a { display: grid; gap: 2px; padding: 10px 12px; min-height: 44px; border-radius: 12px; color: var(--body); text-decoration: none; line-height: 1.35; }
.town-card a:hover { background: var(--sky); }
.town-card b { color: var(--meter); font-weight: 750; }
.hero-placeholder h1 { max-width: 18ch; }

.next-band { background: var(--sky); padding: clamp(44px, 6vw, 80px) 0; }
.next-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.next-list a { display: grid; gap: 8px; height: 100%; padding: 22px; background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; color: var(--body); text-decoration: none; }
.next-list a:hover { background: var(--sun-pale); }
.next-name { font-variation-settings: var(--casual); font-weight: 800; font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.next-action { justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--sun); font-weight: 700; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--haze); padding: 48px 0 56px; font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px 48px; }
.site-footer .brand { color: var(--white); }
.site-footer .mark { color: var(--sun); }
.site-footer .mark-disc { stroke: var(--sun); }
.site-footer .mark-tick { stroke: var(--ink); }
.footer-brand p { margin: 12px 0 0; max-width: 36ch; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav a[aria-current="page"] { color: var(--sun); }
.footer-notes p { margin: 0 0 12px; line-height: 1.55; }
.footer-notes strong { color: var(--white); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .reading-grid { grid-template-columns: minmax(0, 1fr); }
  .reading-side { position: static; max-height: none; overflow: visible; }
  .editorial { max-width: 72ch; }
  .town-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-notes { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid, .hero-town .hero-grid, .check-grid, .quote-grid, .line-row { grid-template-columns: minmax(0, 1fr); }
  .line-row-flip .line-photo { order: 0; }
  .hero-sun { width: min(100%, 420px); padding-bottom: 0; }
  .hero-sun .ticket { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -56px; }
  .hero h1 { max-width: 20ch; }
}
@media (max-width: 640px) {
  body { font-size: 1.03rem; }
  .masthead-row { padding-top: 8px; padding-bottom: 8px; }
  .main-nav { width: 100%; }
  .main-nav ul { gap: 4px; }
  .main-nav .nav-guides { display: none; }
  .main-nav li:last-child { margin-left: auto; }
  .nav-link { padding: 0 10px; }
  .main-nav .btn { min-height: 44px; padding: 0 16px; }
  .check-fields, .check-facts, .next-list, .town-list { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .ticket-row { grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: 8px; }
  .town-list a { min-height: 0; }
}
@media (max-width: 380px) {
  .main-nav li:last-child { margin-left: 0; width: 100%; }
  .main-nav .btn { width: 100%; }
  .brand { font-size: 1.35rem; }
}
