/* /plan: the progress deck, in the same "Groundtruth at night" language as the
   landing page. Data first, long-form text second. Tokens from tokens.css. */

.top { border-bottom: 2px solid var(--ink); background: var(--ground); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; align-items: center; padding-block: 0.7rem; }
.top .logo { font-size: 22px; }
.brand { margin: 0; font-family: var(--font-data); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.top nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.3rem; font-family: var(--font-data); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--ink); border-color: var(--flag); }
section[id] { scroll-margin-top: 4.5rem; }

main > section { padding-block: 64px 0.5rem; position: relative; }
main > section:first-child { padding-top: 48px; }
.prose { max-width: 38rem; color: var(--ink-2); }
h2 { font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4.4vw, 46px); line-height: .98; letter-spacing: .015em; margin-bottom: 1rem; max-width: 24em; text-wrap: balance; }
h2::before { content: ""; display: inline-block; width: 5px; height: .78em; background: var(--flag); margin-right: 14px; transform: skewX(-14deg); vertical-align: -.04em; }
h2.mini { font-size: 1.5rem; margin: 2.4rem 0 0.6rem; }
h2.mini::before { display: none; }

.lead h1 { font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 7.4vw, 92px); line-height: .92; letter-spacing: .005em; max-width: 14em; margin-bottom: 1.2rem; text-wrap: balance; }
.lead h1 .big { color: var(--flag); }
.headline { font-size: 1.1rem; font-weight: 500; max-width: 44rem; line-height: 1.5; color: var(--ink-2); }
.headline a { color: var(--ink); }
.headline a:hover { color: var(--flag); }
.rail-cap { font-size: 0.88rem; color: var(--ink-3); margin: 1.5rem 0 0.5rem; }
.quote { border-left: 4px solid var(--flag); padding-left: 1rem; font-size: 1.02rem; }

/* the build-order rail */
.rail { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.rail a {
  display: grid; place-items: center;
  min-width: 2.55rem; height: 2.55rem; padding: 0 0.4rem;
  font-family: var(--font-data); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; color: var(--ink-2);
  border: 1.5px solid var(--ink-3);
}
.rail .done a { background: var(--tide); border-color: var(--tide); color: var(--abyss); }
.rail .doing a { border-color: var(--tide); color: var(--tide); background: var(--tide-wash); }
.rail .next a { border: 3px solid var(--flag); color: var(--flag); background: var(--flag-wash); }
.rail a:hover { outline: 2px solid var(--ink); outline-offset: 2px; }

/* tasks */
.tasklist { margin-top: 1.4rem; border-top: 2px solid var(--ink); }
.task { border-bottom: 1px solid var(--rule); }
.task > summary {
  list-style: none; cursor: pointer;
  display: grid; gap: 0.15rem 0.9rem; align-items: baseline;
  grid-template-columns: 2.6rem 1fr;
  padding: 0.85rem 0.2rem;
}
.task > summary::-webkit-details-marker { display: none; }
.task > summary:hover { background: var(--ground-2); }
.tid { font-family: var(--font-data); font-weight: 600; font-size: 1rem; color: var(--ink-3); }
.ttitle { font-weight: 600; line-height: 1.3; }
.scope {
  grid-column: 2; justify-self: start;
  font-family: var(--font-data); font-size: 11px; letter-spacing: .06em; color: var(--ink-2);
  border: 1px solid var(--ink-3); padding: 0 0.45rem;
}
.tstat { grid-column: 2; font-family: var(--font-data); font-size: 11px; letter-spacing: .04em; color: var(--ink-2); display: flex; align-items: center; gap: 0.6rem; }
.meter { display: inline-block; width: 5.5rem; height: 0.5rem; background: var(--ground-3); position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--tide); }
.task.next .meter i { background: var(--flag-fill); }
.task.done .tid { color: var(--tide); }
.task.next { background: var(--flag-wash); box-shadow: inset 4px 0 0 var(--flag-fill); }
.task.next .tid { color: var(--flag); }
.tbody { padding: 0 0.2rem 1.1rem 3.5rem; }
.steps { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.steps li { display: flex; gap: 0.6rem; padding: 0.2rem 0; line-height: 1.4; color: var(--ink); }
.steps li::before { content: ""; flex: none; width: 0.8rem; height: 0.8rem; margin-top: 0.3rem; border: 1.5px solid var(--ink-3); }
.steps li.done::before { background: var(--tide); border-color: var(--tide); }
.steps li.done { color: var(--ink-2); }
.commit { margin: 0.8rem 0 0; font-size: 0.88rem; color: var(--ink-2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 40rem) { .tbody { padding-left: 0.4rem; } }

/* stages */
.subs { list-style: none; margin: 1.4rem 0 0; padding: 0; border-top: 2px solid var(--ink); max-width: 54rem; }
.sub { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.sub h3 { font-weight: 800; text-transform: uppercase; font-size: 28px; letter-spacing: .02em; margin: 0; }
.sub p { margin: 0.35rem 0 0; color: var(--ink-2); }
.shead { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: center; }
.badge { font-family: var(--font-data); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--ink-3); color: var(--ink-2); padding: 4px 10px; }
.badge.live { border-color: var(--flag); color: var(--flag); }
.sbullets { margin-top: 0.7rem; }
.sbullets > summary { cursor: pointer; font-family: var(--font-data); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tide); }
.sbullets ul { margin: 0.6rem 0 0; padding-left: 1.2rem; font-size: 0.95rem; color: var(--ink-2); }
.sbullets li { margin-bottom: 0.4rem; }
.muted { color: var(--ink-2); }
.small { font-size: 0.92rem; }
.later { margin-top: 1.2rem; max-width: 54rem; }

/* decisions */
.decisions { list-style: none; margin: 1.4rem 0 0; padding: 0; max-width: 54rem; border-top: 2px solid var(--ink); }
.decisions li {
  display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 0.9rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule); counter-increment: none;
}
.decisions li::before { content: attr(value); grid-row: 1 / span 3; font-family: var(--font-data); font-weight: 600; color: var(--ink-3); }
.decisions li > * { grid-column: 2; }
.decisions h3 { font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 0.25rem; }
.decisions p { margin: 0 0 0.4rem; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.decisions .why { color: var(--ink-3); font-size: 0.95rem; }
.decisions strong { color: var(--ink); }

/* tables */
table.data { width: 100%; max-width: 54rem; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.97rem; border-top: 2px solid var(--ink); }
table.data caption { text-align: left; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem 0.7rem 0; border-bottom: 1px solid var(--rule); line-height: 1.45; color: var(--ink-2); }
table.data thead th { font-family: var(--font-data); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
table.data tbody th { font-weight: 600; color: var(--ink); }
table.data .num { font-family: var(--font-data); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 40rem) {
  table.data.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.data.stack tr { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
  table.data.stack th, table.data.stack td { display: block; border: none; padding: 0.2rem 0; }
  table.data.stack td::before { content: attr(data-label) ": "; font-family: var(--font-data); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); }
  table.data.stack tbody th { font-size: 1.05rem; }
}

/* A1 rules */
.sub-h { font-size: 28px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin: 2rem 0 0.8rem; }
.rule { border-bottom: 1px solid var(--rule); max-width: 54rem; }
.rule:first-of-type { border-top: 2px solid var(--ink); }
.rule > summary { cursor: pointer; padding: 0.7rem 0; font-weight: 600; display: flex; gap: 0.9rem; list-style: none; }
.rule > summary::-webkit-details-marker { display: none; }
.rule > summary:hover { background: var(--ground-2); }
.rn { font-family: var(--font-data); color: var(--ink-3); flex: none; width: 1.7rem; }
.rule p { margin: 0 0 0.9rem 2.6rem; font-size: 0.97rem; color: var(--ink-2); }
@media (max-width: 40rem) { .rule p { margin-left: 0; } }

/* The nav wraps on a phone; do not pin it there. */
@media (max-width: 48rem) {
  .top { position: static; }
  .top nav { margin-left: 0; }
  section[id] { scroll-margin-top: 1rem; }
}
