/* Posts: /posts/ and /posts/<slug>/. Same palette and type as the landing page. */
:root { --ink:#0e1116; --field:#161a21; --line:#2a2f38; --paper:#faf9f7; --body:#e4e5e8; --muted:#80868f; --accent:#d66a3a; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink); color: var(--paper); padding: 0 1.25rem;
  font: 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main, .top, .foot { max-width: 40rem; margin: 0 auto; }
a { color: var(--paper); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.top { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 0 0; }
.brand { line-height: 0; }
.brand img { width: 180px; height: auto; }
.nav, .date, label, button, th {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .14em; text-transform: uppercase;
}
.nav { font-size: .75rem; color: var(--muted); text-decoration: none; }
.nav:hover { color: var(--paper); }

.date, .post p.date { margin: 3.2rem 0 .6rem; font-size: .72rem; color: var(--muted); }
h1 { margin: 0 0 1.6rem; font-size: 2.1rem; line-height: 1.2; letter-spacing: -.01em; }
.post h2 { margin: 2.6rem 0 .8rem; font-size: 1.3rem; line-height: 1.3; }
.post p, .post li { color: var(--body); }
.post p { margin: 0 0 1.1rem; }
.post ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.post li { margin-bottom: .5rem; }
.post strong { color: var(--paper); }
.post em { color: var(--muted); }

.table { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.4; }
th { font-size: .62rem; font-weight: 600; color: var(--muted); text-align: left; background: var(--field); }
th, td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td { color: var(--body); }
td:first-child { color: var(--paper); font-weight: 600; }
th[style*="right"], td[style*="right"] { font-variant-numeric: tabular-nums; white-space: nowrap; }

.index-title { margin-top: 3.2rem; }
.index-sub { margin: -.8rem 0 1rem; color: var(--muted); }
.index { list-style: none; margin: 0; padding: 0; }
.index li { padding: 0 0 1.8rem; border-bottom: 1px solid var(--line); }
.index .date { margin: 1.8rem 0 .4rem; }
.index h2 { margin: 0 0 .5rem; font-size: 1.3rem; line-height: 1.3; }
.index h2 a { text-decoration: none; }
.index p { margin: 0; color: var(--body); }

/* Signup: a quiet band after the article, so the post stays the main thing on the page */
.signup { margin: 3.2rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid var(--line); }
.kicker {
  margin: 0 0 .5rem; font: 600 .68rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.signup h2 { margin: 0 0 .4rem; font-size: 1.05rem; line-height: 1.4; font-weight: 600; color: var(--paper); }
.pitch { margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row { display: flex; gap: .5rem; }
input[type=email] {
  flex: 1; min-width: 0; padding: .7rem .9rem; font-size: .95rem; color: var(--paper);
  background: var(--field); border: 1px solid var(--line); border-radius: 6px; outline: none;
}
input[type=email]:focus { border-color: var(--accent); }
button {
  flex: none; padding: .7rem 1.1rem; font-size: .7rem; font-weight: 700;
  color: #fff; background: var(--accent); border: 0; border-radius: 6px; cursor: pointer;
}
button:hover { background: #bf5a2e; }
button:disabled { opacity: .6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { margin: .8rem 0 0; font-size: .8rem; color: var(--muted); }
.note a { color: var(--muted); }
.err { color: #f0a07c; font-size: .85rem; margin: .5rem 0 0; min-height: 1.2em; }
.ts.show { margin-top: .9rem; }
.done { display: none; }
.done p { margin: 0; color: var(--body); font-size: .95rem; }
body.joined .signup form { display: none; }
body.joined .done.joined-msg { display: block; }

/* Floor Sheet page: confirmation line only after Kit's confirm redirect (?confirmed=1) */
.confirmed-note { display: none; margin: 2rem 0 0; padding: .8rem 1rem; border: 1px solid var(--accent); border-radius: 6px; font-size: .95rem; }
body.confirmed .confirmed-note { display: block; }

.foot { margin-top: 3rem; padding: 1.4rem 0 2.4rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.foot p { margin: 0 0 .4rem; }
.foot a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 17px; }
  h1 { font-size: 1.7rem; }
  .brand img { width: 150px; }
  .row { flex-direction: column; }
  button { padding: .8rem 1rem; }
  .date, .post p.date { margin-top: 2.4rem; }
  /* Tables become one card per row */
  .table { border: 0; border-radius: 0; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border: 1px solid var(--line); border-radius: 6px; margin-bottom: .6rem; padding: .55rem .8rem; background: var(--field); }
  td, tr:last-child td { border: 0; padding: .2rem 0 .2rem 45%; position: relative; text-align: right !important; }
  td::before {
    content: attr(data-label); position: absolute; left: 0; top: .2rem; max-width: 45%;
    color: var(--muted); font: 600 .6rem/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .14em; text-transform: uppercase; text-align: left;
  }
  tr td:first-child, tr:last-child td:first-child { padding-left: 0; text-align: left !important; }
  td:first-child { font-size: 1rem; padding-bottom: .35rem; }
  td:first-child::before { display: none; }
}

/* Newcomer pointer at the top of posts (2026-10-15) */
.post p.newbie { margin: 0 0 1.6rem; padding: .6rem .9rem; border-left: 3px solid var(--accent); background: var(--field, rgba(255,255,255,.03)); font-size: .9rem; color: var(--muted); }
.newbie a { color: var(--accent); }
/* Pages without a date line (Start here) */
.post > h1:first-child { margin-top: 3rem; }
@media (max-width: 600px) { .post > h1:first-child { margin-top: 2.2rem; } }

/* Hero banner styles live in hero.css (shared with the home page). */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 0 0 1.4rem; }
.paths .path { padding: 1.1rem 1.1rem .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.paths .path.maybe { border-style: dashed; }
.post .paths p { margin: 0 0 .6rem; font-size: 1rem; }
.post .paths p.num { display: inline-flex; width: 1.9rem; height: 1.9rem; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1rem; margin-bottom: .7rem; }
.post .paths h3 { margin: 0 0 .3rem; font-size: 1.45rem; line-height: 1.2; color: var(--paper); }
.post .paths p.big { font-size: 1.6rem; font-weight: 800; line-height: 1.2; color: var(--accent); }
.post .paths .maybe p.big { color: var(--body); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin: 0 0 1.6rem; }
.trio div { padding: 1.1rem; border-top: 3px solid var(--accent); background: var(--field); border-radius: 0 0 12px 12px; }
.trio b { display: block; color: var(--paper); font-size: 1.2rem; line-height: 1.25; }
.trio span { display: block; margin-top: .4rem; color: var(--body); font-size: 1rem; line-height: 1.4; }
.words { margin: 0 0 1.6rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; }
.words summary { cursor: pointer; font-weight: 700; color: var(--paper); }
.words ul { margin: .8rem 0 0; }
.post .words li { font-size: .95rem; }
@media (max-width: 600px) {
  .paths, .trio { grid-template-columns: 1fr; }
}

/* Latest posts list on pages (2026-10-15) */
.post ul.latest { list-style: none; padding: 0; }
.post ul.latest li { margin: 0 0 .8rem; }
.post ul.latest a { font-weight: 700; }
.post ul.latest span { display: block; font-size: .8rem; color: var(--muted); }

/* Next-cut line in the signup band (2026-10-16) */
.signup .pitch.next b { color: var(--accent); }

/* Sources page (2026-10-16) */
.post ul.sources { list-style: none; padding: 0; }
.post ul.sources li { margin: 0 0 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.post ul.sources li a { color: var(--muted); }

/* Per-page Sources list (2026-10-16) */
.page-sources { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.post .page-sources h2 { font-size: 1rem; margin: 0 0 .6rem; }
.post .page-sources li, .post .page-sources p { font-size: .85rem; color: var(--muted); }
.post .page-sources a { color: var(--muted); }
