/* ihasmail.org
   Palette lifted from the logo: the cat's orange (#F9A34B), the envelope's
   teal (#46CAC3) and the ink outline both are drawn in (#1C4053). Teal
   leads, orange is the highlight, and the ink becomes the dark ground.

   Dark is the base definition on :root, and it is what everybody gets
   until they say otherwise -- the system preference is deliberately not
   consulted. Light exists only under [data-theme="light"], which the
   toggle sets and localStorage remembers. No color is defined *only*
   inside that block, so a token can never go missing in the dark. */

:root {
  --bg: #0d2430;
  --bg-alt: #0a1c26;
  --surface: #12303e;
  --surface-raised: #163a4a;
  --border: #21505f;
  --border-strong: #2e6a7a;

  --text: #eaf6f6;
  --text-muted: #a3c3cb;
  --text-faint: #86aab4;

  --accent: #46cac3;
  --accent-hot: #6fdcd6;
  --accent-soft: #46cac3;
  --on-accent: #062028;

  --warm: #f9a34b;
  --warm-soft: #f9a34b;

  --tint: rgba(70, 202, 195, 0.10);
  --tint-warm: rgba(249, 163, 75, 0.12);
  --glow: rgba(70, 202, 195, 0.26);
  --shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.75);
  --code-bg: #0a1c26;

  --radius: 12px;
  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
}

:root[data-theme="light"] {
  --bg: #f6fbfb;
  --bg-alt: #eaf4f4;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #d2e3e5;
  --border-strong: #b3d0d3;

  --text: #10303d;
  --text-muted: #4a6b76;
  --text-faint: #57737c;

  /* Teal darkened for text and edges on a light ground, so it clears AA. */
  --accent: #0b6b67;
  --accent-hot: #095553;
  --accent-soft: #46cac3;
  --on-accent: #ffffff;

  /* Orange likewise darkened wherever it has to carry text. */
  --warm: #9c580c;
  --warm-soft: #f9a34b;

  --tint: rgba(11, 107, 103, 0.09);
  --tint-warm: rgba(156, 88, 12, 0.10);
  --glow: rgba(70, 202, 195, 0.22);
  --shadow: 0 18px 44px -26px rgba(16, 48, 61, 0.42);
  --code-bg: #edf6f6;
}

:root[data-theme="dark"] {
  --bg: #0d2430;
  --bg-alt: #0a1c26;
  --surface: #12303e;
  --surface-raised: #163a4a;
  --border: #21505f;
  --border-strong: #2e6a7a;

  --text: #eaf6f6;
  --text-muted: #a3c3cb;
  --text-faint: #86aab4;

  --accent: #46cac3;
  --accent-hot: #6fdcd6;
  --accent-soft: #46cac3;
  --on-accent: #062028;

  --warm: #f9a34b;
  --warm-soft: #f9a34b;

  --tint: rgba(70, 202, 195, 0.10);
  --tint-warm: rgba(249, 163, 75, 0.12);
  --glow: rgba(70, 202, 195, 0.26);
  --shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.75);
  --code-bg: #0a1c26;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
code, .mono { font-family: var(--mono); }
code { background: var(--code-bg); border-radius: 5px; padding: 1px 6px; font-size: 0.92em; }

/* A shell command is one thing, and inline `code` inside a paragraph breaks it
   wherever the line happens to end -- mid-flag, mid-path. These get their own
   block, keep their own line breaks, and scroll inside themselves rather than
   pushing the page sideways. */
pre.cmd {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text);
  -webkit-overflow-scrolling: touch;
}
pre.cmd code {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; white-space: pre;
}
pre.cmd .c { color: var(--text-faint); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- brand ---- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand .mark { height: 40px; width: auto; display: block; }
.brand .wordmark { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 8px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--sans); transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hot); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--tint); }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---- hero ---- */
.hero {
  padding: 92px 0 84px; text-align: center;
  position: relative; overflow: hidden; border-top: none;
}
.hero::before {
  content: ""; position: absolute; inset: -45% -10% auto -10%; height: 540px;
  background: radial-gradient(ellipse at center, var(--glow), transparent 65%);
  pointer-events: none;
}
.hero .hero-mark {
  height: 132px; width: auto; margin: 0 auto 26px;
  display: block; position: relative;
  filter: drop-shadow(0 14px 30px rgba(16, 48, 61, 0.22));
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.035em;
  margin: 0 0 18px; position: relative; line-height: 1.08;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lede {
  max-width: 660px; margin: 0 auto 34px; color: var(--text-muted);
  font-size: 18.5px; position: relative;
}
.hero-ctas {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; position: relative;
}
.hero-ctas .btn { padding: 12px 26px; font-size: 15.5px; }

.badges {
  display: flex; gap: 10px; justify-content: center;
  margin-top: 30px; flex-wrap: wrap; position: relative;
}
.badge {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 100px; padding: 4px 13px;
  background: var(--surface);
}
.badge strong { color: var(--accent); font-weight: 600; }

/* ---- not found ---- */
/* 404.php reuses the hero shell -- same glow, same centered mark -- and only
   needs the page to fill the viewport, since it has no sections under it to
   stop the footer riding up. */
.notfound { min-height: calc(100vh - 240px); display: flex; align-items: center; }
.notfound .wrap { width: 100%; }
.notfound-path {
  font-family: var(--mono); font-size: 13px; color: var(--text-faint);
  margin: 0 0 30px; position: relative;
}
.notfound-path code {
  color: var(--text-muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px;
  word-break: break-all;
}
/* The badge row is links here rather than labels, so it has to say so. */
.notfound a.badge { text-decoration: none; transition: border-color .15s, color .15s; }
.notfound a.badge:hover { border-color: var(--accent); color: var(--accent); }

/* ---- section shell ---- */
section { padding: 88px 0; border-top: 1px solid var(--border); }
section.tinted { background: var(--bg-alt); }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase; margin: 0 0 12px;
}
h2.section-title {
  font-size: clamp(27px, 3.4vw, 37px); font-weight: 800;
  letter-spacing: -0.02em; margin: 0 0 14px;
}
p.section-sub {
  color: var(--text-muted); max-width: 660px;
  font-size: 16.5px; margin: 0 0 48px;
}
.section-head { text-align: center; margin: 0 auto; max-width: 740px; }
.section-head p.section-sub { margin-left: auto; margin-right: auto; }
main > section[id] { scroll-margin-top: 86px; }
/* A heading linked to directly, rather than a whole section: same sticky
   header to clear, and nothing above it to absorb the overlap. */
.legal h2[id] { scroll-margin-top: 86px; }

/* ---- feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
}
.card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--accent);
  margin-bottom: 16px;
}
.card .icon svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card.warm .icon { background: var(--tint-warm); color: var(--warm); }
.card h3 { font-size: 17px; margin: 0 0 8px; }
.card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.card p + p { margin-top: 10px; }

/* ---- screenshots ---- */
/* align-items: start so the portrait phone card doesn't stretch the
   landscape card beside it into a block of empty white. */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.shot {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.shot img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
/* The phone capture is only 500px wide -- stretching it to a full grid
   cell just makes it soft, so cap it and center it in the card instead. */
.shot.narrow { display: flex; flex-direction: column; align-items: center; }
.shot.narrow img { max-width: 340px; }
.shot.narrow .cap { width: 100%; border-top: 1px solid var(--border); }
.shot .cap { padding: 15px 18px; }
.shot .cap h4 { margin: 0 0 4px; font-size: 14.5px; }
.shot .cap p { margin: 0; color: var(--text-muted); font-size: 13.5px; }
.shot-note {
  text-align: center; color: var(--text-faint); font-size: 13.5px;
  margin: 28px auto 0; max-width: 640px; font-family: var(--mono);
}

/* ---- two columns ---- */
/* Running it, Safety and Sharing each set two blocks side by side. The rewrite
   on 2026-09-10 took this rule out with the sections it deleted, while three
   sections still used the class, so all of them stacked into one column on a
   desktop -- only the narrow-screen override below survived. */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
/* Grid items default to min-width:auto, so a wide child widens its track
   instead of wrapping, and takes the page sideways with it. */
.twocol > * { min-width: 0; }
.twocol h3 { font-size: 20px; margin: 0 0 12px; }
.twocol p { color: var(--text-muted); font-size: 15.5px; margin: 0 0 14px; }
/* `gap` separates the columns, not two of these stacked in one section. */
.twocol + .twocol { margin-top: 52px; }

/* ---- companion tools ---- */
/* Under the hero buttons: a sentence, not a third button. The two buttons are
   the page's own calls to action; this points further down the same page. */
.hero-note {
  margin: 22px auto 0; color: var(--text-muted); font-size: 15px; position: relative;
}
.hero-note a { color: var(--accent); }
.hero-note + .hero-note { margin-top: 6px; }

.companions { margin-top: 64px; scroll-margin-top: 86px; }
.companions > h3 { font-size: 22px; margin: 0 0 8px; text-align: center; }
.companions-sub {
  color: var(--text-muted); font-size: 15.5px; text-align: center;
  max-width: 640px; margin: 0 auto 26px;
}
.companion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* The whole card is the link: the target is the size of the thing described. */
a.card.companion {
  display: block; color: inherit; text-decoration: none;
  transition: border-color .15s;
}
a.card.companion:hover { border-color: var(--accent); }
a.card.companion:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card p.companion-when {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 6px;
}
.card.companion h4 { font-size: 19px; margin: 0 0 8px; }
.companion-more {
  display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14.5px;
  color: var(--accent);
}
.companion-more::after { content: " \2192"; }
@media (max-width: 860px) { .companion-grid { grid-template-columns: 1fr; } }

/* ---- check lists ---- */
ul.checks { list-style: none; padding: 0; margin: 18px 0 0; }
ul.checks li {
  padding-left: 27px; position: relative; margin-bottom: 11px;
  color: var(--text-muted); font-size: 15px;
}
ul.checks li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* ---- license band ---- */
.license-band {
  background: linear-gradient(135deg, var(--tint), transparent 70%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; display: flex; align-items: center; gap: 32px;
  justify-content: space-between; flex-wrap: wrap;
}
.license-band h3 { margin: 0 0 8px; font-size: 20px; }
.license-band p { margin: 0; color: var(--text-muted); font-size: 15px; max-width: 540px; }

/* ---- about + AI disclosure ----
   Two cards in one band. align-items: start so the short disclosure card
   does not stretch to the height of the About story beside it and end in a
   block of empty surface. minmax(0, ...) on both tracks because the prose
   carries <code> and long URLs that would otherwise push the grid wider
   than the wrap. */
.about-cols {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px; align-items: start;
}
.about-cols .panel {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 34px;
}
/* .prose centers itself at 780px, which is what this card is already doing
   for it -- let it fill the track instead. */
.about-cols .prose { max-width: none; margin: 0; }
.about-cols p:last-child { margin-bottom: 0; }

.disclosure {
  background: linear-gradient(135deg, var(--tint-warm), transparent 70%);
}
.disclosure .eyebrow { color: var(--warm); }
.disclosure h2 {
  font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 22px;
}
.disclosure h3 {
  font-size: 14px; margin: 0 0 7px; color: var(--text);
  letter-spacing: 0.01em;
}
.disclosure p { color: var(--text-muted); font-size: 14.8px; margin: 0 0 18px; }
.disclosure a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---- prose ---- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 800;
  letter-spacing: -0.02em; margin: 0 0 24px;
}
.prose p { color: var(--text-muted); font-size: 16.5px; margin: 0 0 20px; }
.prose p strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  margin: 32px 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  color: var(--text); font-size: 18px; font-style: normal;
}

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); padding: 46px 0; background: var(--bg-alt); }
footer .wrap {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 24px;
}
footer .brand { margin-bottom: 12px; }
footer .brand .mark { height: 36px; }
footer .copy { color: var(--text-faint); font-size: 12.5px; margin-top: 8px; max-width: 420px; }
footer .copy a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
footer .copy a:hover { color: var(--accent); }
footer .built-with { text-align: center; color: var(--text-faint); font-size: 12.5px; margin-top: 28px; padding: 0 24px; }
footer .built-with a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
footer .built-with a:hover { color: var(--accent); }
footer .links { display: flex; gap: 22px; font-size: 13.5px; color: var(--text-faint); flex-wrap: wrap; }
footer .links a { text-decoration: none; }
footer .links a:hover { color: var(--accent); }

/* ---- footer: the permanent consent control ---- */
/* A <button> because it acts on this page rather than navigating, styled to
   sit in the link row without announcing itself as something different. */
footer .links .linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; font-size: 13.5px;
}
footer .links .linklike:hover { color: var(--accent); }
footer .links .linklike[hidden] { display: none; }

/* ---- consent banner ---- */
/* Fixed to the bottom, over the page rather than in front of it: a visitor
   who never answers must still be able to read every word here. Consent
   conditioned on access is not freely given, so a wall would not just be
   rude, it would fail to be consent at all. */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--surface-raised);
  border-top: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  padding: 18px 0;
}
.consent[hidden] { display: none; }
.consent-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 26px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.consent-text { flex: 1 1 460px; min-width: 0; }
.consent-title {
  font-size: 16px; font-weight: 700; margin: 0 0 6px;
  letter-spacing: -0.01em; color: var(--text);
}
.consent p { margin: 0 0 6px; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.consent p:last-child { margin-bottom: 0; }
.consent-current { color: var(--text-faint); font-style: italic; }
.consent-more a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}

/* Both buttons are deliberately identical in size, weight and color.
   Dressing Accept up as the primary action and leaving Decline a quiet
   outline is the dark pattern regulators name first, and equal prominence
   is the actual requirement -- so it is pinned here rather than left to
   whoever next edits the markup. */
.consent-actions { display: flex; gap: 12px; flex: 0 0 auto; }
.consent-actions .btn {
  padding: 11px 24px; font-size: 15px; min-width: 132px; justify-content: center;
}

@media (max-width: 640px) {
  .consent { padding: 16px 0; }
  .consent-inner { gap: 14px; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1 1 0; min-width: 0; }
}

/* ---- long-form document pages ---- */
/* Scoped to .legal, NOT to bare .prose. .prose is shared with the License
   and About sections, and defining these on .prose put a second rule set
   later in the file that quietly won the cascade against the first --
   headings there dropped from clamp(24px,3vw,32px)/800 to 21px/700 and body
   text from 16.5px to 15.5px, on a page nobody had touched. A long document
   does want different spacing from a marketing section, so the difference
   is real; it just has to be asked for by name. */
.legal h2 {
  font-size: 21px; font-weight: 700; letter-spacing: -0.02em;
  margin: 36px 0 10px; color: var(--text);
}
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 20px; margin: 10px 0 18px; color: var(--text-muted); }
.legal li { margin-bottom: 8px; }
.legal code {
  font-family: var(--mono); font-size: 13px;
  background: var(--code-bg); padding: 2px 6px; border-radius: 5px; color: var(--text);
}
.legal .updated { color: var(--text-faint); font-size: 13px; margin-bottom: 26px; }
.legal table {
  width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 14.5px;
}
.legal th, .legal td {
  text-align: left; padding: 10px 12px; vertical-align: top;
  border-bottom: 1px solid var(--border); color: var(--text-muted);
}
.legal th { color: var(--text); font-weight: 600; }
/* A table of cookie names has no useful narrow layout, so it scrolls in its
   own box rather than pushing the page sideways on a phone. */
.legal .scroll-x { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .twocol { grid-template-columns: 1fr; gap: 32px; }
  .twocol + .twocol { margin-top: 32px; }
  .shots { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; gap: 20px; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .license-band { padding: 26px; }
  .about-cols .panel { padding: 26px 22px; }
  .hero { padding: 64px 0 56px; }
  footer .wrap { flex-direction: column; }
}

/* --- Screenshots carousel -------------------------------------------------
   The grid above is what ships in the markup and what a reader without
   JavaScript keeps. shots.js adds .is-carousel, and everything below only
   applies once it has. */
.shots.is-carousel { display: block; position: relative; }
.shots.is-carousel .shot { display: none; }
.shots.is-carousel .shot.is-current { display: block; }
.shots.is-carousel .shot { cursor: zoom-in; }
.shots.is-carousel .shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shots.is-carousel .shot.narrow img { max-width: 340px; }

.shots-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.shots-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  background: var(--surface-raised); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
}
.shots-nav:hover { border-color: var(--accent); color: var(--accent); }
.shots-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shots-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.shots-dots { display: flex; align-items: center; gap: 8px; }
.shots-dot {
  width: 8px; height: 8px; padding: 0; border-radius: 999px; cursor: pointer;
  background: var(--border); border: 0; transition: background .12s, transform .12s;
}
.shots-dot:hover { background: var(--text-faint); }
.shots-dot.is-current { background: var(--accent); transform: scale(1.35); }
.shots-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- The larger view ------------------------------------------------------ */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: clamp(12px, 4vw, 48px);
  background: rgba(0, 0, 0, .82);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1420px, 100%); max-height: 100%; display: flex; flex-direction: column; }
.lightbox img {
  display: block; max-width: 100%; max-height: calc(100vh - 160px);
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.lightbox figcaption { color: #fff; text-align: center; font-size: 14px; padding: 14px 4px 0; }
.lightbox-close, .lightbox-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; flex: none;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; cursor: pointer;
}
.lightbox-close { position: absolute; top: 16px; right: 16px; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 700px) {
  /* No room for arrows either side of the picture; the dots and swipe-sized
     targets under it are enough. */
  .lightbox-nav { position: absolute; bottom: 18px; }
  .lightbox-nav.prev { left: 18px; }
  .lightbox-nav.next { right: 18px; }
  .lightbox figcaption { padding-bottom: 68px; }
}

/* --- Feature tiles --------------------------------------------------------
   The section ships as the card grid above and stays one without JavaScript.
   features.js adds .is-deck, and everything here hangs off that. */
.grid.is-deck { grid-template-columns: repeat(4, 1fr); gap: 14px; }

.tile {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 14px; text-align: left; cursor: pointer;
  background: var(--surface-raised); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: 14.5px; line-height: 1.35;
  transition: border-color .12s, background .12s, transform .12s;
}
.tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile.is-open { border-color: var(--accent); background: var(--surface); }
.tile .icon { flex: none; margin: 0; width: 30px; height: 30px; }
/* The tile clones the card's icon (features.js), which puts the same <svg>
   outside `.card .icon` -- where every paint property it had was set. Without
   these it falls back to the SVG default of a solid black fill, which is what
   the tiles rendered until 2026-09-10. Size here, paint from the same values
   the card uses. */
.tile .icon svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tile-label { flex: 1 1 auto; font-weight: 550; }
.tile-chev { flex: none; color: var(--text-faint); display: inline-flex; transition: transform .16s; }
.tile-chev svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile.is-open .tile-chev { transform: rotate(180deg); color: var(--accent); }

/* Spans every column, so opening one never leaves the row ragged. */
/* The open panel takes the emphasis the stylesheet already uses for a picked
   state -- accent border over an accent tint, the same pairing as a ghost
   button under the pointer. The tint is translucent, so it is laid over an
   opaque surface rather than over whatever the section happens to be. */
.tile-panel {
  grid-column: 1 / -1; position: relative;
  background: linear-gradient(var(--tint), var(--tint)), var(--surface-raised);
  border: 1px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 0 0 3px var(--tint);
  padding: 20px 52px 20px 22px;
  opacity: 0; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease;
}
.tile-panel.is-in { opacity: 1; transform: none; }
.tile-panel[hidden] { display: none; }
.tile-panel h3 { margin: 0 0 8px; font-size: 16px; color: var(--accent); }
.tile-panel p { margin: 0; color: var(--text-muted); max-width: 68ch; }
.tile-panel p + p { margin-top: 10px; }
.tile-panel-close {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; cursor: pointer;
  background: transparent; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 999px;
}
.tile-panel-close:hover { color: var(--accent); border-color: var(--accent); }
.tile-panel-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile-panel-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 1040px) { .grid.is-deck { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .grid.is-deck { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid.is-deck { grid-template-columns: 1fr; } }
/* ---------------------------------------------------------------------------
   Archivo, self-hosted, for headings.

   Google's CSS would pull the files from fonts.gstatic.com on every visit,
   which hands a third party the IP address of everyone who reads the page --
   and privacy.php promises the opposite. The two files are in fonts/, with
   their OFL license. Taken from inbuxa.org, which took this layout from here.
   --------------------------------------------------------------------------- */

:root {
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/archivo-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/archivo-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Site-wide, unlike inbuxa.org, which scopes this to its front page because
   that site's privacy and 404 pages were designed against the system stack.
   This site's were not: one face everywhere is the simpler promise. */
h1, h2, h3, h4 { font-family: var(--display); }

/* ---- the inbuxa bar ----
   One line above the header on every page. Warm on teal so it reads as news
   rather than as more navigation; the whole bar is the link. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.stack-bar {
  position: relative; z-index: 21;
  background: linear-gradient(90deg, var(--tint-warm), var(--tint) 55%, var(--tint-warm)), var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.stack-bar a {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 42px; padding: 7px 0;
  color: var(--text-muted); text-decoration: none; font-size: 14px; line-height: 1.4;
}
.stack-bar .stack-new {
  flex: none; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--warm); border: 1px solid color-mix(in srgb, var(--warm) 45%, transparent);
  background: var(--tint-warm); border-radius: 999px; padding: 2px 9px;
}
.stack-bar b.inbuxa { color: var(--warm); font-weight: 800; }
.stack-bar .stack-go {
  flex: none; font-weight: 700; color: var(--accent); white-space: nowrap;
  border-bottom: 1px solid transparent; transition: border-color .15s, color .15s;
}
.stack-bar .stack-go span { display: inline-block; transition: transform .15s; }
.stack-bar a:hover .stack-go { color: var(--accent-hot); border-bottom-color: currentColor; }
.stack-bar a:hover .stack-go span { transform: translateX(3px); }
.stack-bar a:hover { color: var(--text); }
.stack-bar .stack-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.stack-bar .stack-short { display: none; }
/* One line at every width: the long sentence below a laptop's width is the
   short one, and on a phone the arrow is the only call to action. */
@media (max-width: 760px) {
  .stack-bar .stack-full { display: none; }
  .stack-bar .stack-short { display: inline; }
}
@media (max-width: 420px) {
  .stack-bar a { gap: 8px; font-size: 13px; }
  .stack-bar .stack-go { font-size: 0; }
  .stack-bar .stack-go span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .stack-bar .stack-go span { transition: none; } }


/* =========================================================================
   THE SHELL -- the same top bar and sidebar as coffeylabs.org and
   jcoffey.dev, in this site's colors. The rules below come across from
   there unchanged in shape; these tokens map their names onto this
   palette, so the only colors written here are the tile tints.
   ========================================================================= */
:root {
  --ground: var(--bg); --ground-alt: var(--bg-alt); --chrome: var(--bg-alt);
  --surface-2: var(--surface-raised); --raised: var(--surface-raised);
  --ink: var(--text); --ink-soft: var(--text-muted); --ink-faint: var(--text-faint);
  --line: var(--border); --line-strong: var(--border-strong);
  --accent-ink: var(--on-accent);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  --font-sans: var(--sans); --font-mono: var(--mono); --font-display: var(--display);
  --radius-sm: 8px; --top-h: 62px; --side-w: 16.5rem;
  --tone-teal: #46cac3; --tone-orange: #f9a34b; --tone-sky: #6cc3f2; --tone-violet: #b79cf6;
  --tone-amber: #f2c14e; --tone-emerald: #5fd49a; --tone-slate: #a3c3cb;
  --tone-mix: 16%;
}
:root[data-theme="light"] {
  --shadow-lg: 0 30px 60px -30px rgba(16, 48, 61, 0.35);
  --tone-teal: #0b6b67; --tone-orange: #b0600c; --tone-sky: #1f77ad; --tone-violet: #6a48b8;
  --tone-amber: #8f6a00; --tone-emerald: #1f7a4c; --tone-slate: #4a6b76;
  --tone-mix: 12%;
}
html { color-scheme: dark; scroll-padding-top: calc(var(--top-h) + 12px); }
:root[data-theme="light"] { color-scheme: light; }
.tone-teal { --t: var(--tone-teal); } .tone-orange { --t: var(--tone-orange); }
.tone-sky { --t: var(--tone-sky); } .tone-violet { --t: var(--tone-violet); }
.tone-amber { --t: var(--tone-amber); } .tone-emerald { --t: var(--tone-emerald); }
.tone-slate { --t: var(--tone-slate); }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 90; background: var(--accent); color: var(--on-accent); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 0; }
.side-item-note .side-text { display: flex; flex-direction: column; line-height: 1.25; }
.side-item-note .side-text small { font-size: 11.5px; color: var(--text-faint); font-weight: 400; }
.side-item-note b.inbuxa { color: var(--warm); }
/* The offset under the top bar is html's scroll-padding-top alone. The older
   per-element scroll-margins added to it and landed every jump 144px down. */
main > section[id], .companions, .legal h2[id] { scroll-margin-top: 0; }

.itile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  color: var(--t, var(--accent));
  background: color-mix(in oklab, var(--t, var(--accent)) var(--tone-mix), transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--t, var(--accent)) 18%, transparent);
}
.itile-sm { width: 1.5rem; height: 1.5rem; border-radius: 6px; font-size: 0.85rem; }
.itile-md { width: 1.85rem; height: 1.85rem; border-radius: 8px; font-size: 1rem; }
.itile-lg { width: 3rem; height: 3rem; border-radius: 12px; font-size: 1.45rem; }
.itile-letter { font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem; }
.itile-md.itile-letter { font-size: 0.85rem; }
.itile-lg.itile-letter { font-size: 1.3rem; }


.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9px;
  background: transparent; border: 0; color: var(--ink-soft); font-size: 1.1rem;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn-sm { width: 1.85rem; height: 1.85rem; font-size: 0.98rem; }


/* =========================================================================
   SHELL
   The body is the grid. Every page's markup is header, aside, main, footer
   in that order (from nav.php and footer.php), and the grid places them, so
   no page needed a wrapper element to get a sidebar. Fixed and absolute
   children (the skip link, scrim, dialog, consent banner) and <script>s take
   no cell.
   ========================================================================= */
body {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  grid-template-rows: auto var(--top-h) 1fr auto;
  min-height: 100vh;
  transition: grid-template-columns .2s ease;
}
html.rail { --side-w: 4.5rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 90;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 0.8rem;
  padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---- top bar ---- */
.topbar {
  grid-column: 1 / -1; grid-row: 2;
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  height: var(--top-h); padding: 0 1rem 0 1.1rem;
  background: color-mix(in oklab, var(--chrome) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
/* The brand keeps its own mark and wordmark (see ---- nav ---- above);
   only its size changes to fit the bar. */
.topbar .brand .mark { height: 34px; }
.topbar .brand .wordmark { font-size: 19px; }
.topbar .btn-sm { padding: 7px 14px; font-size: 13.5px; }
/* Sponsor: a ghost button like its neighbors, with the heart in GitHub
   Sponsors' pink as the only accent. It is the first header button to go
   when space runs short; the footer link stays at every width. */
.btn-sponsor { gap: 6px; }
.btn-sponsor .i { width: 15px; height: 15px; fill: none; stroke: #db61a2; stroke-width: 2; }
.btn-sponsor:hover .i { fill: #db61a2; }
@media (max-width: 1180px) { .topbar .btn-sponsor { display: none; } }

/* The jump box: the console's search field, centred in the bar. */
.jump {
  flex: 1 1 auto; max-width: 30rem; margin: 0 auto;
  display: flex; align-items: center; gap: 0.6rem;
  height: 2.35rem; padding: 0 0.5rem 0 0.8rem;
  background: var(--ground); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink-faint); font-size: 0.88rem; text-align: left;
  transition: border-color .15s, background .15s;
}
.jump[hidden] { display: none; }
.jump:hover { border-color: var(--line-strong); background: var(--surface); }
.jump .i { font-size: 1rem; }
.jump-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd {
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft);
  background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 0.05rem 0.4rem;
}
.topbar-end { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; flex: none; }
.jump:not([hidden]) + .topbar-end { margin-left: 0; }

/* The segmented theme control: the console's section switcher. */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 10px; border: 1px solid var(--line); }
.seg button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 1.75rem; border: 0; border-radius: 7px;
  background: transparent; color: var(--ink-faint); font-size: 0.95rem;
  transition: background .15s, color .15s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
:root[data-theme="light"] .seg button[aria-pressed="true"] { background: var(--ground); }

.nav-toggle { display: none; }
.nav-toggle .ex { display: none; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }
.nav-toggle[aria-expanded="true"] .ex { display: block; }

/* ---- sidebar ---- */
.sidebar {
  grid-column: 1; grid-row: 3 / 5;
  position: sticky; top: var(--top-h); align-self: start;
  height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h));
  display: flex; flex-direction: column; gap: 0.35rem;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
  padding: 0.6rem 0.6rem 0.9rem;
  background: var(--chrome); border-right: 1px solid var(--line);
  z-index: 30;
}
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 0.35rem 0.5rem 0.25rem; min-height: 2.2rem; }
.side-label {
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-item {
  display: flex; align-items: center; gap: 0.7rem;
  min-height: 2.6rem; padding: 0.3rem 0.45rem; border-radius: 10px;
  text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; font-weight: 500;
  transition: background .12s, color .12s;
}
.side-item:hover { background: var(--surface-2); color: var(--ink); }
.side-item.here { background: var(--tint); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.side-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item .out { font-size: 0.85rem; color: var(--ink-faint); }

.side-group, .side-group-static { margin-top: 0.6rem; }
.side-group-static > .side-label { display: block; padding: 0.35rem 0.5rem 0.4rem; }
.side-group summary {
  display: flex; align-items: center; justify-content: space-between;
  list-style: none; cursor: pointer; padding: 0.35rem 0.5rem 0.4rem; border-radius: 8px;
}
.side-group summary::-webkit-details-marker { display: none; }
.side-group summary:hover .side-label { color: var(--ink-soft); }
.side-group .chev { font-size: 0.85rem; color: var(--ink-faint); transition: transform .2s; }
.side-group:not([open]) .chev { transform: rotate(-90deg); }
.side-sub { display: flex; flex-direction: column; gap: 1px; margin: 0 0 0 1.35rem; padding-left: 0.55rem; border-left: 1px solid var(--line); }
.side-subitem {
  display: flex; align-items: center; gap: 0.55rem;
  min-height: 2.1rem; padding: 0.2rem 0.45rem; border-radius: 8px;
  text-decoration: none; color: var(--ink-soft); font-size: 0.86rem;
  transition: background .12s, color .12s;
}
.side-subitem:hover { background: var(--surface-2); color: var(--ink); }
.side-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--ink-faint); opacity: 0.7; }
.side-dot.live { background: var(--live); opacity: 1; box-shadow: 0 0 0 3px color-mix(in oklab, var(--live) 18%, transparent); }

.side-foot { margin-top: auto; display: flex; gap: 1rem; padding: 0.9rem 0.6rem 0.1rem; border-top: 1px solid var(--line); }
.side-foot a { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-faint); text-decoration: none; }
.side-foot a:hover, .side-foot a.here { color: var(--accent); }

/* ---- rail: the sidebar folded to its tiles ---- */
html.rail .sidebar { padding-left: 0.5rem; padding-right: 0.5rem; scrollbar-width: none; }
html.rail .side-text, html.rail .side-item .out, html.rail .side-dot,
html.rail .side-label, html.rail .side-foot, html.rail .side-group .chev { display: none; }
html.rail .side-head { justify-content: center; padding: 0.35rem 0; }
html.rail .side-item, html.rail .side-subitem { justify-content: center; padding: 0.3rem; }
html.rail .side-sub { margin: 0; padding: 0; border: 0; }
html.rail .side-group summary { justify-content: center; padding: 0.2rem; height: 0.6rem; }
html.rail .side-group summary::after { content: ""; width: 1.4rem; height: 1px; background: var(--line); }
html.rail .side-group-static { border-top: 1px solid var(--line); padding-top: 0.5rem; }
html.rail .rail-toggle .i { transform: scaleX(-1); }

.scrim { display: none; }

/* ---- main + footer ---- */
main { grid-column: 2; grid-row: 3; min-width: 0; }
.stack-bar { grid-column: 1 / -1; grid-row: 1; }
body > footer { grid-column: 2; grid-row: 4; min-width: 0; }

/* ---- phones and small tablets: the sidebar becomes a drawer ---- */
@media (max-width: 900px) {
  body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto var(--top-h) auto 1fr auto; }
  html.rail { --side-w: 16.5rem; }
  .topbar { padding: 0 0.6rem; gap: 0.5rem; }
  .nav-toggle { display: inline-flex; }
  .rail-toggle { display: none !important; }
  .jump { max-width: none; }
  .jump-label, .jump kbd { display: none; }
  .jump { flex: 0 0 auto; width: 2.35rem; padding: 0; justify-content: center; margin: 0 0 0 auto; }
  .topbar .btn-sm { display: none; }

  /* With scripting off the sidebar is simply a block above the page: every
     link reachable, nothing to open. The drawer only exists behind html.js. */
  .sidebar { grid-column: 1; grid-row: 3; position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  main { grid-column: 1; grid-row: 4; }
  body > footer { grid-column: 1; grid-row: 5; }

  /* Full height and UNDER the top bar (z 35 against its 40), padded down
     past it, rather than starting at the bar's bottom edge: the bar stays
     on top with the close button in reach whatever the viewport does. */
  html.js .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(18rem, 86vw);
    height: auto; padding-top: calc(var(--top-h) + 0.6rem);
    border-right: 1px solid var(--line); border-bottom: 0;
    transform: translateX(-102%); transition: transform .22s ease, visibility .22s;
    visibility: hidden; z-index: 35; box-shadow: var(--shadow-lg);
  }
  html.js .sidebar[data-open="true"] { transform: none; visibility: visible; }
  html.js .scrim:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(4, 8, 14, 0.55); z-index: 34; }
  .topbar { background: var(--chrome); }
  /* The rail is a wide-screen idea; a phone always gets the full drawer. */
  html.rail .side-text, html.rail .side-item .out, html.rail .side-dot,
  html.rail .side-label, html.rail .side-group .chev { display: revert; }
  html.rail .side-foot { display: flex; }
  html.rail .side-item, html.rail .side-subitem { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  body, html.js .sidebar { transition: none; }
}


/* =========================================================================
   JUMP PALETTE
   ========================================================================= */
.palette {
  width: min(36rem, calc(100vw - 2rem)); max-height: min(28rem, 70vh);
  margin: 12vh auto auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--raised); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
.palette::backdrop { background: rgba(4, 8, 14, 0.6); backdrop-filter: blur(2px); }
.palette-box { display: flex; flex-direction: column; max-height: inherit; }
.palette-input { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink-faint); }
.palette-input .i { font-size: 1.1rem; }
.palette-input input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1rem; color: var(--ink);
}
.palette-list { list-style: none; margin: 0; padding: 0.4rem; overflow-y: auto; }
.palette-list li {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.6rem; border-radius: 9px; cursor: pointer;
}
.palette-list li[aria-selected="true"] { background: var(--tint); }
.palette-list .pl-name { font-weight: 600; font-size: 0.92rem; }
.palette-list .pl-note { color: var(--ink-faint); font-size: 0.8rem; margin-left: auto; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.palette-list .pl-empty { color: var(--ink-faint); cursor: default; justify-content: center; padding: 1.2rem; }


/* =========================================================================
   PAGE -- the sections, brought into the card style of the sibling sites.
   ========================================================================= */

/* The hero, split: words left, the inbox right, a faint grid behind. */
.hero-split { text-align: left; padding: 72px 0 80px; }
.hero-split::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 30% 25%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 30% 25%, #000 25%, transparent 75%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
@media (max-width: 1200px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-split h1 { font-size: clamp(38px, 5.2vw, 64px); margin-bottom: 18px; }
.hero-split p.lede { margin: 0 0 30px; max-width: 560px; }
.hero-split .hero-ctas, .hero-split .badges { justify-content: flex-start; }
.hero-split .hero-note { margin-left: 0; }
.release-note {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 14px 5px 6px;
}
.release-note a { color: var(--accent); text-decoration: none; }
.release-mark { height: 22px; width: auto; }

.hero-shot { position: relative; }
.window {
  border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.02);
  transform: perspective(1600px) rotateY(-4deg); transform-origin: left center;
}
@media (max-width: 1200px) { .window { transform: none; } }
@media (prefers-reduced-motion: reduce) { .window { transform: none; } }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-raised); }
.window-bar .lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.window-bar .lamp.on { background: var(--accent); }
.window-name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--text-faint); margin-left: 6px; }
.window img { display: block; width: 100%; height: auto; }
.window .shot-light { display: none; }
:root[data-theme="light"] .window .shot-light { display: block; }
:root[data-theme="light"] .window .shot-dark { display: none; }
/* The cat, peeking over the window's corner. */
.hero-cat {
  position: absolute; width: auto; height: 86px; right: -10px; top: -58px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}
@media (max-width: 560px) { .hero-cat { height: 64px; top: -42px; right: 4px; } }
.hero-shot-note { margin: 14px 0 0; font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.hero-shot-note a { color: var(--accent); }

/* Sections: heads to the left, like every sibling site; cards lifted. */
section { padding: 76px 0; }
.section-head { text-align: left; margin: 0 0 40px; max-width: 760px; }
.section-head p.section-sub { margin-left: 0; margin-right: 0; margin-bottom: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }
h2.section-title { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.03em; line-height: 1.08; }
.card, .shot, .about-cols .panel, .tile, .tile-panel { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 10px 28px -14px rgba(0, 0, 0, 0.55); }
:root[data-theme="light"] .card, :root[data-theme="light"] .shot, :root[data-theme="light"] .about-cols .panel, :root[data-theme="light"] .tile {
  box-shadow: 0 1px 2px rgba(16, 48, 61, 0.05), 0 8px 22px -12px rgba(16, 48, 61, 0.18);
}
.card { transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--border-strong); }
.companions > h3, .companions-sub { text-align: left; margin-left: 0; }
.shot-note { text-align: left; margin-left: 0; }
.twocol { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 32px; }
section.tinted .twocol { background: var(--surface-raised); }
@media (max-width: 560px) { .twocol { padding: 22px 20px; } }
/* Prose shares the heads' left edge now that they are left-aligned. */
.prose { margin-left: 0; margin-right: 0; }
