/* brooklinefuture.org — shared styles for the hand-written pages (home, about,
   forecast landing, writing). Tokens match the forecast documents' design system
   (docs/_build/shell_head.html) so the whole site reads as one place. */
:root {
  --paper: #fbfbf8;
  --paper-card: #ffffff;
  --border: #dcdbd5;
  --rule: #dcdbd5;
  --rule-heavy: #1c1c1a;
  --ink: #1c1c1a;
  --ink-muted: #4f4f4a;
  --ink-faint: #75756e;
  --pine: #1f3a5f;
  --pine-strong: #142843;
  --pine-tint: #e3e9f1;
  --copper: #9a4a2c;
  --elm: #447b46;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 40rem;
  --wide: 62rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151719;
    --paper-card: #1c1f22;
    --border: #2f3236;
    --rule: #2f3236;
    --rule-heavy: #e8e6e1;
    --ink: #e8e6e1;
    --ink-muted: #b9b7b0;
    --ink-faint: #8f8d86;
    --pine: #8fb0d8;
    --pine-strong: #b5cbe6;
    --pine-tint: #1d2a3a;
    --copper: #e0937a;
    --elm: #94bd8f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--pine); text-underline-offset: 0.15em; }
a:hover { color: var(--pine-strong); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }

.page { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }
.prose p, .prose li { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose li > p { margin: 0 0 0.4rem; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin: 2.5rem 0 0.8rem; text-wrap: balance; }
.prose h3, .prose h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.35; margin: 2rem 0 0.6rem; text-wrap: balance; }
.prose figure { margin: 1.5rem 0; }
.prose figure img { display: block; border: 1px solid var(--border); background: #fff; }
.prose figure.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; }
.prose figure.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }
.prose blockquote { margin: 1.2rem 0; padding-left: 1rem; border-left: 3px solid var(--pine); color: var(--ink-muted); }
.prose table { border-collapse: collapse; font-size: 0.9rem; margin: 0 0 1.2rem; display: block; overflow-x: auto; }
.prose td, .prose th { border-bottom: 1px solid var(--rule); padding: 0.4rem 0.7rem 0.4rem 0; text-align: left; vertical-align: top; }

h1.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 0.8rem;
}
.standfirst { font-style: italic; font-size: 1.25rem; line-height: 1.55; color: var(--ink-muted); max-width: var(--measure); margin: 0 0 1.5rem; }
.meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint); margin: 0 0 2rem; }

header.masthead { padding-block: 3rem 1.75rem; border-bottom: 3px solid var(--rule-heavy); margin-bottom: 2.5rem; }
main { padding-bottom: 4rem; }
section { margin: 0 0 3.5rem; }
.section-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  text-wrap: balance;
}

/* findings: three short statements with one number each */
.findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin: 0 0 1rem; }
.finding { border-top: 3px solid var(--rule-heavy); padding: 0.9rem 0 0.4rem; }
.finding .num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 2.2rem; font-weight: 700; color: var(--pine); line-height: 1.1; display: block; margin-bottom: 0.5rem; }
.finding p { margin: 0; font-size: 0.97rem; line-height: 1.55; }

/* reading path: the order is the point, so it is numbered */
.path { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0.75rem; }
.path > li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0 0.9rem; align-items: start; border-top: 1px solid var(--rule); padding: 1rem 0 0.4rem; }
.path > li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--pine); }
.path h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 0 0 0.2rem; }
.path h3 a { text-decoration: none; }
.path h3 a:hover { text-decoration: underline; }
.path p { margin: 0; color: var(--ink-muted); font-size: 0.97rem; }
.path .time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint); margin-left: 0.4rem; font-weight: 400; }

/* plain link lists for the "go deeper" material */
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.links li { padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule); }
.links li:last-child { border-bottom: 0; }
.links a { font-weight: 700; font-size: 1.12rem; }
.links span { display: block; color: var(--ink-muted); font-size: 1rem; }

.note { background: var(--paper-card); border: 1px solid var(--border); border-left: 3px solid var(--pine); border-radius: 0; padding: 1rem 1.2rem; font-size: 0.95rem; color: var(--ink-muted); max-width: var(--measure); }
.note p { margin: 0 0 0.6rem; } .note p:last-child { margin: 0; }

/* home / about */
.intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 48rem) { .intro { grid-template-columns: minmax(0, 1fr) 15rem; } }
.portrait { border-radius: 0; border: 1px solid var(--border); display: block; width: 100%; max-width: 15rem; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; border-top: 3px solid var(--rule-heavy); border-bottom: 1px solid var(--rule); padding-block: 1.5rem; }
@media (min-width: 48rem) { .feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; } }
.feature h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.6rem; }
.feature p { margin: 0 0 1rem; }
.button { display: inline-block; background: var(--pine); color: var(--paper); text-decoration: none; font-family: var(--font-mono); font-size: 0.92rem; font-weight: 600; padding: 0.6rem 1rem; border-radius: 0; }
.button:hover { background: var(--pine-strong); color: var(--paper); }
.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.posts li { padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); max-width: var(--measure); }
.posts a.t { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; text-decoration: none; color: var(--ink); line-height: 1.25; }
.posts a.t:hover { color: var(--pine); }
.posts p { margin: 0.4rem 0 0; color: var(--ink-muted); font-size: 0.97rem; }
.posts .meta { margin: 0.3rem 0 0; }
.posts .kind { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine); margin: 0 0 0.25rem; }

.reveal { font: inherit; color: var(--pine); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* labels and small print in Public Sans */
.meta, .path .time, .posts .meta, .site-foot, .note p:last-child button { font-family: var(--font-mono); }
.meta { font-size: 0.82rem; }
.finding p { font-size: 1.02rem; }
