@import url("/assets/fonts/fonts.css");

/* Tomorrowell landing — the product's own palette, both themes, zero dependencies.
   The demo forecast card copies the PWA's tokens by value (never by runtime import):
   the landing must stay a static site that works with no build and no JS. */

:root {
  --bg: #f3f6f1;
  --card: #fdfefc;
  --shadow: 0 1px 2px rgb(26 33 28 / 0.05), 0 10px 30px -14px rgb(26 33 28 / 0.18);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --surface: #edf3ec;
  --surface2: #f5f8f4;
  --border: #e3e8e1;
  --text: #1a211c;
  --muted: #606b5e;
  --accent: #2e8b57;
  --accent-wash: #e4efe7;
  --action: #7d5181;
  --action-wash: #f1e8f0;
  --caution: #a87c3d;
  /* The mark only. Lighter and yellower than the caution ochre, because the logo
     is light, not a warning — and the leaf is darker than --accent so the two
     never sit at the same lightness. */
  --sun: #e8a33d;
  --leaf: #1f6b42;
  --data: #1f5c3a;
}
/* Two selectors for one palette, the same pattern the app uses. `[data-theme]` is an
   explicit choice and has to beat the system; the media query covers everyone who never
   made one. Defining the dark palette only inside the media query would leave the toggle
   unable to override a system set to dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12160f;
    --card: #1a2016;
    --shadow: none;
    --surface: #1a2016;
    --surface2: #212a1c;
    --border: #2c3527;
    --text: #e8eee5;
    --muted: #9aa694;
    --accent: #5fbe8a;
    --accent-wash: #1e2b23;
    --action: #c48bb0;
    --action-wash: #2a1f28;
    --caution: #d0a468;
    --sun: #f0b355;
    --leaf: #63c48e;
    --data: #4a9a6f;
  }
}
:root[data-theme="dark"] {
  --bg: #12160f;
  --card: #1a2016;
  --shadow: none;
  --surface: #1a2016;
  --surface2: #212a1c;
  --border: #2c3527;
  --text: #e8eee5;
  --muted: #9aa694;
  --accent: #5fbe8a;
  --accent-wash: #1e2b23;
  --action: #c48bb0;
  --action-wash: #2a1f28;
  --caution: #d0a468;
  --sun: #f0b355;
  --leaf: #63c48e;
  --data: #4a9a6f;
}

* { box-sizing: border-box; }
/* Follows the choice, so form controls and scrollbars match the page rather than the
   system. Without these two rules a dark page keeps light scrollbars. */
html { color-scheme: light dark; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Onest, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
/* A link inside running text is underlined: its colour alone sits too close to the text
   around it (about 1.1:1) for anyone who cannot rely on hue. */
p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
img { max-width: 100%; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* nav — pinned to the top on every page and every width; it never scrolls away.
   The negative-margin/padding pair bleeds the background to the full viewport width
   while the content stays aligned with .wrap, so no page needs its HTML changed. */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  margin: 0 calc(50% - 50vw);
  padding: 14px calc(50vw - 50%);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--border); flex-wrap: nowrap;
}
/* anchors (#how, #pricing) must land below the pinned bar, not underneath it */
section[id], div[id] { scroll-margin-top: 76px; }
/* The wordmark, with the app's own sunrise beside it. `inline-flex` with `align-items`
   centres the mark against the letters; the old dot was an inline box sitting on the
   baseline, which left it riding low against the capital T. */
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; letter-spacing: -0.02em; font-size: 17px; color: var(--text);
}
.logo:hover { text-decoration: none; }
/* 48px. The rays are what makes this mark itself, and below roughly this size they merge
   into the leaves — so the mark gets the room it needs rather than being shrunk into a
   different, simpler logo. */
.logo-mark { width: 48px; height: 48px; flex: none; }
.cta-short { display: none; }
/* One line, always. Five section links plus two preference controls plus two actions is
   more than a 980px header holds at 18px gaps, and a menu that wraps to two rows pushes
   the CTA into a second line under itself. The gap tightens with the viewport instead. */
.nav .menu { display: flex; gap: clamp(10px, 1.6vw, 18px); font-size: 14px; white-space: nowrap; }
.nav .menu a { color: var(--muted); }
.nav .auth { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.nav .auth .in { font-size: 14px; color: var(--text); }
/* --- theme and language, in the header -------------------------------------------
   Both were reachable only from the footer, which on this page means scrolling past
   everything to change how everything reads. They belong where the reader already is.

   Grouped with .auth in one right-hand cluster: the nav is `space-between`, and a fourth
   direct child would have spread the row into four columns instead of three.

   Nothing shifts when JS is absent — the theme button is created by script, and the
   language link is a plain anchor that works without it. */
.nav .right { display: flex; align-items: center; gap: 12px; }
.prefs { display: flex; align-items: center; gap: 6px; }

.prefs button,
.prefs a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  /* 36px rather than 44: this rides in a sticky header, where a taller control eats the
     content it exists to help read. The targets stand apart from each other and from the
     screen edge, which is what the guideline protects against. */
  min-height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--bg); color: var(--text);
  font: inherit; font-size: 13px; line-height: 1; white-space: nowrap;
  cursor: pointer;
}
.prefs a { text-decoration: none; }
.prefs button:hover,
.prefs a:hover { background: var(--surface2); text-decoration: none; }
.prefs button:focus-visible,
.prefs a:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
/* Fixed box: without width and flex-shrink the icon stretches to the button's height. */
.prefs svg { width: 16px; height: 16px; flex: none; }

/* The full language name by default; the two-letter code is its narrow-screen stand-in,
   so exactly one of the pair shows at any width. */
.prefs .prefs-short { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; min-height: 44px; padding: 0 20px; font-weight: 600; font-size: 15px; }
/* Text in the card colour rather than white: on the dark theme's light plum, white text
   fell to about 2.6:1. */
.btn-primary { background: var(--action); color: var(--card); }
.btn-primary:hover { text-decoration: none; opacity: 0.92; }
.btn-secondary { border: 1px solid var(--border); color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
/* One row on a phone, always: the section links give way — they live in the page and
   the footer anyway — and the logo plus the two actions fit any width. After the base
   rules on purpose: the cascade must let these win. */
/* Between the full header and the phone layout there is a band where five section links,
   two preference controls and two actions technically fit but crowd each other. The
   sections live in the page and the footer as well, so they are the part that gives way
   first — the theme, the language and the two actions are the ones a header has to keep. */
@media (max-width: 1080px) {
  .prefs .prefs-label { display: none; }
  .prefs button, .prefs a { padding: 0 9px; }
  .prefs .prefs-short { display: inline; }
}
@media (max-width: 920px) {
  .nav .menu { display: none; }
}

@media (max-width: 680px) {
  .nav { padding-top: 10px; padding-bottom: 10px; }
  .nav .menu { display: none; }
  .nav .auth { gap: 8px; }
  .nav .auth .in { font-size: 13px; }
  .btn-sm { min-height: 34px; padding: 0 11px; font-size: 12.5px; white-space: nowrap; }
  .logo { font-size: 16px; gap: 8px; }
  .logo-mark { width: 38px; height: 38px; }
  .nav .right { gap: 8px; }
  .prefs { gap: 4px; }
  .prefs .prefs-label { display: none; }
  .prefs .prefs-short { display: inline; }
  .prefs button, .prefs a { padding: 0 8px; min-height: 34px; }
  /* The header CTA is the widest thing in the row and the only one that can shorten
     without losing meaning; at 375px the full wording pushed the page sideways. */
  .cta-full { display: none; }
  .cta-short { display: inline; }
}

/* The narrowest supported screen. The wordmark is the one thing in the header that
   repeats immediately below — the hero carries the name — so the mark stands alone rather
   than the page scrolling sideways. */
@media (max-width: 400px) {
  /* Hidden visually only: with display:none the logo link had no name for a screen reader. */
  .logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wrap { padding: 0 14px; }
}

/* --- type ---------------------------------------------------------------------------
   Headlines in Source Serif 4, everything else in Onest — the pairing the app uses. */
h1, h2, .display { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.micro { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- product shots ------------------------------------------------------------------
   Real screens from the app, one per theme. Both are in the page and the theme decides
   which shows, the same way it decides every colour; a <picture> would follow only the
   system and ignore the header's toggle. */
/* A light bezel in the page's own tones rather than a black device: the screen is the point,
   and a heavy dark outline drew the eye to the frame instead. */
.phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 390 / 844;
  border-radius: 40px; padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgb(26 33 28 / 0.04), 0 24px 48px -24px rgb(26 33 28 / 0.22);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { background: var(--surface2); box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.6); } }
:root[data-theme="dark"] .phone { background: var(--surface2); box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.6); }
.shot-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none !important; }
  :root:not([data-theme="light"]) .shot-dark { display: block !important; }
}
:root[data-theme="dark"] .shot-light { display: none !important; }
:root[data-theme="dark"] .shot-dark { display: block !important; }
.shot-label { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); white-space: nowrap; }

/* --- hero ----------------------------------------------------------------------------- */
.hero {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding: 64px 0 80px;
}
body { overflow-x: clip; }
.hero h1 { font-size: clamp(38px, 5.6vw, 60px); line-height: 1.04; margin: 0; }
.hero .sub { color: var(--muted); font-size: 17.5px; line-height: 1.6; margin: 20px 0 0; max-width: 44ch; }
.ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .micro { margin: 18px 0 0; max-width: 46ch; }
.hero-art { position: relative; display: flex; justify-content: center; padding-bottom: 40px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 64px; }
  .hero-art .phone { max-width: 260px; }
}

/* The three steps and the install hint under the hero CTAs: an icon in its metric's tint
   with a two-word label, read in a glance. Tints as in the app (MetricIcon). */
.ic { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 28px; height: 28px; }
.ic-sm svg { width: 15px; height: 15px; }
.ic-action { background: var(--action-wash); color: var(--action); }
.ic-data { background: var(--accent-wash); color: var(--data); }
.ic-accent { background: var(--surface); color: var(--sun); }
.steps3 { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 440px; }
.steps3 li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.35; }
.install { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 14px; color: var(--muted); }

/* Hero result: a photo, an arrow, what it was recognised as and tomorrow's number. */
.flow { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 8px; }
.mini { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); min-width: 0; }
.plate { aspect-ratio: 1; border-radius: 16px; position: relative; overflow: hidden; background: var(--surface2); }
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plate .frame { position: absolute; inset: 12%; border: 2px solid #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12); }
.res b { font-size: 15px; line-height: 1.3; }
.res .micro { line-height: 1.4; }
.chip { align-self: flex-start; padding: 2px 10px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--border); font-size: 13px; }
.macro { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; }
.tomorrow { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.tomorrow b { font-family: var(--serif); font-size: 24px; color: var(--action); line-height: 1; }
.arrow { color: var(--muted); font-size: 22px; text-align: center; }
.flow figcaption { grid-column: 1 / -1; text-align: center; margin-top: 8px; }
.flow figcaption a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); }
@media (min-width: 761px) { .hero:has(.flow) { grid-template-columns: 1fr 1fr; } .res b { font-size: 17px; } .tomorrow b { font-size: 28px; } }
@media (max-width: 400px) { .mini { padding: 10px; border-radius: 18px; } .flow { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 4px; } }

/* Real screens, each with one caption: what replaced the text cards. */
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.screens figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.screens .phone { max-width: 220px; border-radius: 32px; padding: 5px; }
.screens .phone img { border-radius: 27px; }
.screens figcaption { font-size: 16px; font-weight: 600; text-align: center; line-height: 1.35; }
.screens-note { margin: 20px 0 0; text-align: center; }
@media (max-width: 900px) { .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 420px) { .screens { gap: 14px; row-gap: 32px; } .screens figcaption { font-size: 14.5px; } }

/* --- trust strip ---------------------------------------------------------------------- */
/* Four plain facts in a row, separated by a hairline: they are reassurance, not features,
   and dressing each as a card with an icon made them compete with the sections below. */
.strip { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 14px; color: var(--muted); }

/* --- sections ------------------------------------------------------------------------- */
section.land { padding: 88px 0 0; }
section.land h2 { font-size: clamp(30px, 4.2vw, 42px); line-height: 1.1; margin: 0; max-width: 22ch; }
.land > .lead, .land .lead { color: var(--muted); font-size: 17px; margin: 14px 0 0; max-width: 58ch; }
.land-head { margin-bottom: 36px; }
@media (max-width: 600px) { section.land { padding-top: 64px; } }

/* How it works: three steps, numbered because they are a sequence. */
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { background: var(--card); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; }
.step .num { grid-row: span 2; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--action); font-weight: 500; }
.step h3 { font-size: 18px; font-weight: 600; margin: 2px 0 0; line-height: 1.3; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* A feature row: one product screen beside what it shows. Alternates sides. */
.feature { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.feature.flip .feature-art { order: 2; }
.feature-art { display: flex; justify-content: center; padding-bottom: 36px; position: relative; }
.feature-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.points { display: flex; flex-direction: column; gap: 20px; margin: 4px 0 0; padding: 0; list-style: none; }
.points li { display: block; padding-left: 18px; border-left: 2px solid var(--accent-wash); }
.points h3 { font-size: 17.5px; font-weight: 600; margin: 2px 0 4px; line-height: 1.3; }
.points p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.aside { background: var(--surface2); border-radius: 16px; padding: 16px 18px; font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }
@media (max-width: 820px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-art { order: 0; }
  .feature-art .phone { max-width: 260px; }
}

/* Trust: a quiet tinted band. */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; background: var(--surface); border-radius: 28px; padding: 40px; }
.trust div { display: flex; flex-direction: column; gap: 10px; }
.trust h3 { font-size: 18px; font-weight: 600; margin: 4px 0 0; }
.trust p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; } }

/* What is inside. */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.tile { background: var(--card); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.tile h3 { font-size: 17.5px; font-weight: 600; margin: 4px 0 0; line-height: 1.3; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* How we calculate: four plain statements in two columns, ruled like a methods section. */
.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; max-width: 920px; }
.method div { padding: 22px 0; border-top: 1px solid var(--border); }
.method h3 { font-size: 17.5px; font-weight: 600; margin: 0 0 6px; }
.method p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
@media (max-width: 760px) { .method { grid-template-columns: 1fr; } }

/* --- pricing -------------------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; max-width: 440px; } }
.price { background: var(--card); border-radius: 24px; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.price.plus { background: var(--action-wash); box-shadow: 0 0 0 2px var(--action), var(--shadow); }
.price .pn { font-size: 17px; font-weight: 600; color: var(--text); }
.price.plus .pn { color: var(--action); }
.price.max .pn { color: var(--leaf); }
.price .pv { font-family: var(--serif); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.price .pv span { font-family: Onest, system-ui, sans-serif; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price li { font-size: 14.5px; color: var(--text); padding-left: 26px; position: relative; line-height: 1.5; }
.price li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 99px; background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e8b57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.price li.off { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--border); }
.price li.off::before { background: var(--surface2); }
.price .btn { margin-top: auto; }
.price ul + .btn { margin-top: 18px; }
.price-note { margin: 18px 0 0; max-width: 70ch; }

/* --- FAQ ------------------------------------------------------------------------------ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 16.5px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--action); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; border-radius: 8px; }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 64ch; }

/* --- about + closing CTA -------------------------------------------------------------- */
.closing { margin-top: 88px; border-radius: 32px; padding: 56px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; background: var(--surface); }
.closing h2 { font-size: clamp(28px, 4vw, 40px); margin: 0; max-width: 20ch; }
.closing p { color: var(--muted); margin: 0; max-width: 56ch; font-size: 16px; }
@media (max-width: 600px) { .closing { padding: 40px 22px; border-radius: 24px; } }
footer { margin-top: 64px; }

/* about + prose pages */
.prose { max-width: 68ch; padding: 40px 0 60px; }
.prose h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.prose h2 { font-size: 19px; font-weight: 650; margin-top: 30px; }
.prose p, .prose li { color: var(--text); font-size: 15px; line-height: 1.7; }
.prose .lead { color: var(--muted); }
.draft {
  border: 1px solid var(--caution); color: var(--caution); border-radius: 10px;
  padding: 10px 14px; font-size: 13px; margin: 18px 0;
}

/* footer */
footer { padding: 26px 0 40px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 12.5px; color: var(--muted); align-items: center; }
footer .links { display: flex; flex-wrap: wrap; gap: 16px; }
footer .links a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); }
footer .full { flex-basis: 100%; }

/* The mark closing the footer, the way it opens the header. 40px: large enough for the
   rays to read, small enough not to compete with the legal lines beside it. */
.foot-mark { width: 40px; height: 40px; flex: none; }

/* --- blog ------------------------------------------------------------------------------
   One column of text at a reading measure, in the same fonts and tokens as the rest of the
   site. Body text is a step larger than the legal pages: these are read, not consulted. */
.article { max-width: 65ch; padding: 40px 0 64px; }
.article h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 40px); font-weight: 600; line-height: 1.12; margin: 10px 0 8px; }
.article h2 { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.25; margin: 36px 0 8px; }
.article h3 { font-size: 17.5px; font-weight: 600; margin: 26px 0 6px; }
.article p, .article li { font-size: 17px; line-height: 1.7; }
.article ul, .article ol { padding-left: 1.3em; }
.article li + li { margin-top: 6px; }
.article .lead { font-size: 18px; color: var(--muted); }
.article .meta { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.article .crumb { font-size: 14px; margin: 0; }
.article .crumb a { text-decoration: none; }
.article .sources-h { font-family: Onest, system-ui, sans-serif; font-size: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); }
.article .sources li { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.article .sources a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.article .note { margin-top: 18px; }
.post-list { list-style: none; padding: 0 !important; margin: 32px 0 0; display: flex; flex-direction: column; }
.post-list li { padding: 22px 0; border-top: 1px solid var(--border); margin: 0 !important; }
.post-list h2 { margin: 0 0 6px; font-size: 22px; }
.post-list h2 a { color: var(--text); }
.post-list p { margin: 0 0 6px; color: var(--muted); font-size: 16px; }
.post-list .meta { margin: 0; font-size: 13.5px; }
.tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--caution); border-radius: 99px; color: var(--caution); font-family: Onest, system-ui, sans-serif; font-size: 12.5px; font-weight: 500; letter-spacing: 0; }
.nav .menu a[aria-current="page"] { color: var(--text); }
