/* seambo.app: one stylesheet, system fonts only, nothing loaded from another site. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1d1f1e;
  --muted: #5b605d;
  --line: #dedbd3;
  --accent: #0f5f58;
  --accent-ink: #ffffff;
  --seam: #0f5f58;
  --gap: #a07a14;
  --note-bg: #fff6dc;
  --note-line: #e3c766;
  --todo-bg: #ffe3e0;
  --todo-ink: #8a1c10;
  --bubble-in: #e9e9eb;
  --bubble-in-ink: #1d1f1e;
  --bubble-out: #0f5f58;
  --bubble-out-ink: #ffffff;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121514;
    --surface: #1a1e1c;
    --ink: #ecebe6;
    --muted: #a3a8a4;
    --line: #2f3532;
    --accent: #5cc4b8;
    --accent-ink: #0b1f1d;
    --seam: #5cc4b8;
    --gap: #d9b44a;
    --note-bg: #2b2614;
    --note-line: #7a6a2a;
    --todo-bg: #3a1714;
    --todo-ink: #ffb4aa;
    --bubble-in: #2a2f2c;
    --bubble-in-ink: #ecebe6;
    --bubble-out: #1f6f67;
    --bubble-out-ink: #ffffff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

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

/* Header: the name, and a stitched seam under it. */
.site-header { border-bottom: 2px dashed var(--seam); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 16px; }
.brand { font: 600 1.35rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.brand span { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

main { padding: 40px 0 56px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; margin: 44px 0 10px; }
h3 { font-size: 1.12rem; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
strong { font-weight: 650; }

.lede { font-size: 1.18rem; color: var(--muted); margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 0.92rem; }

/* "Draft, pending legal review" and other notices. */
.notice { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 8px; padding: 12px 16px; margin: 0 0 28px; font-size: 0.95rem; }
.notice strong { display: block; }

/* A value still to be filled in. scripts/check-site.mjs --release refuses to ship while one remains. */
.todo { background: var(--todo-bg); color: var(--todo-ink); border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* What works today: each part marked like a road on a map: solid is open (Live), dashed is built, dotted is planned. */
.status { list-style: none; padding: 0; margin: 0 0 14px; border-top: 1px solid var(--line); }
.status li { display: grid; grid-template-columns: 8.75rem 1fr; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.status .tag { font: 600 0.88rem/1.75 var(--sans); color: var(--muted); white-space: nowrap; }
.status .tag::before { content: ""; display: inline-block; width: 1.6rem; margin-right: 0.55rem; vertical-align: 0.3em; border-top: 3px solid var(--muted); }
.status .tag.live { color: var(--accent); }
.status .tag.live::before { border-top-color: var(--seam); }
.status .tag.built::before { border-top: 3px dashed var(--seam); }
.status .tag.progress::before { border-top: 3px dashed var(--muted); }
.status .tag.next::before { border-top: 3px dotted var(--muted); }
@media (max-width: 520px) { .status li { grid-template-columns: 1fr; } }

/* The map's language (docs/marketing/visuals.md), drawn in the page's colors so it follows light and dark mode: the teal stitch
   joins things, ochre marks what nobody knows yet. */
.g-ink { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.g-paper { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.g-sheet { fill: var(--bg); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.g-stitch { fill: none; stroke: var(--seam); stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; }
.g-road { fill: none; stroke: var(--seam); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.g-check { fill: none; stroke: var(--seam); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.g-gap { fill: none; stroke: var(--gap); stroke-width: 2.2; stroke-dasharray: 0.1 4.5; stroke-linecap: round; }
.g-fill { fill: var(--seam); }
.g-gapfill { fill: var(--gap); }
.g-q { fill: var(--gap); font: 700 15px var(--serif); }

/* What the map shows: a map's legend, each part with its symbol. */
.legend { list-style: none; padding: 0; }
.legend li { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; margin-bottom: 16px; }
.legend .glyph { width: 44px; height: 44px; margin-top: 2px; }

/* A drawing with its caption. */
.figure { margin: 6px 0 24px; }
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
/* The illustrations, drawn on paper: a sheet of the map laid on the page, dimmed a little at night. */
.figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
/* A tally: one mark per change, the earlier year muted. */
.tally svg { max-width: 420px; }
.g-tick { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.g-tick.then { stroke: var(--muted); }
.g-year { fill: var(--muted); font: 600 13px var(--sans); }
.g-count { fill: var(--ink); font: 700 22px var(--serif); }
@media (prefers-color-scheme: dark) { .figure img { filter: brightness(0.86); } }

/* Text messages, shown the way a phone shows them. */
.thread { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; margin: 0 0 18px; }
.thread .label { font-size: 0.82rem; color: var(--muted); margin: 0 0 10px; }
.bubble { max-width: 88%; padding: 9px 13px; border-radius: 18px; margin: 0 0 8px; font-size: 0.97rem; line-height: 1.45; overflow-wrap: anywhere; }
.bubble.in { background: var(--bubble-in); color: var(--bubble-in-ink); border-bottom-left-radius: 6px; }
.bubble.out { background: var(--bubble-out); color: var(--bubble-out-ink); margin-left: auto; border-bottom-right-radius: 6px; width: fit-content; }
.bubble.out + .label, .bubble.in + .label { margin-top: 14px; }

.cta { background: var(--surface); border: 2px dashed var(--seam); border-radius: 12px; padding: 18px 20px; margin: 0 0 22px; }
.cta p:last-child { margin-bottom: 0; }
.cta .big { font: 600 1.2rem/1.4 var(--serif); }

/* The email list's sign-up (/api/subscribe), and the confirm page's button (/api/confirm). */
.signup-card { background: var(--surface); border: 2px dashed var(--seam); border-radius: 12px; padding: 18px 20px 6px; margin: 0 0 36px; }
.signup-card h2 { margin: 0 0 6px; }
.signup label { font-weight: 600; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.signup input[type="email"] { flex: 1 1 16rem; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.signup button { font: 600 1rem/1 var(--sans); padding: 12px 18px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.signup button:hover { filter: brightness(1.08); }
.signup input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.signup .consent { display: flex; gap: 10px; align-items: flex-start; }
.signup .consent input { margin-top: 0.35em; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--accent); }
.signup .consent label { font-weight: 400; }
/* A field people never see: a bot that fills it is answered like a person, and nothing is sent. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

code, kbd { font-family: var(--mono); font-size: 0.92em; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--surface); }

.toc { border-left: 2px dashed var(--seam); padding-left: 16px; margin: 0 0 28px; font-size: 0.95rem; }
.toc ol { margin: 0; padding-left: 18px; }

table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 650; }
.table-scroll { overflow-x: auto; }

.site-footer { border-top: 2px dashed var(--seam); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { padding-top: 18px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--muted); }

@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
}
