/*
 * M37 LogBook — landing page. Dark only: the product is navy with amber ink,
 * and the page is the same room. Amber is spent on one thing, the ink of the
 * log — the line down the page, progress, the thing you click.
 */

/* Served from here, not a font CDN: a visitor's browser talks to nobody else.
   Both are variable fonts (SIL Open Font License), Latin subset. */
@font-face {
  font-family: "Big Shoulders Display"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/big-shoulders-display.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/figtree.woff2") format("woff2");
}

:root {
  --night: #0f1420;
  --deck: #151d2b;
  --panel: #1b2434;
  --raise: #222d40;
  --rule: #263149;
  --rule-strong: #3a4761;
  --chalk: #e7eaf1;
  --mist: #94a1b9;
  --faint: #64728d;
  --amber: #ffb020;
  --amber-dim: #7a5510;
  --ok: #4ade80;
  --bad: #ff6b6b;
  --t-update: #6aa9ff;
  --t-client: #ff8f6b;
  --t-decision: #b79bff;
  --t-blocker: #ff6b6b;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sans: "Figtree", "Avenir Next", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --spine: 104px;          /* where the log line runs, from the left of .day */
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--night); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { margin: 0; }
h2 {
  font: 800 clamp(38px, 4.6vw, 64px)/0.98 var(--display);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
p { margin: 0; }

/* --- buttons -------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border-radius: 10px; border: 1px solid var(--amber);
  background: var(--amber); color: var(--night);
  font: 600 15.5px/1 var(--sans); text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); background: #ffc04d; }
.button.ghost { background: none; color: var(--chalk); border-color: var(--rule-strong); }
.button.ghost:hover { border-color: var(--mist); background: none; }
.button.small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --- navigation ---------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: rgba(15, 20, 32, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38, 49, 73, .6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--mist); text-decoration: none; font-size: 14.5px; }
.nav nav a:hover { color: var(--chalk); }
@media (max-width: 720px) { .nav nav { display: none; } .nav .button { margin-left: auto; } }

/* --- hero ----------------------------------------------------------------------- */

.hero {
  max-width: 1280px; margin: 0 auto;
  min-height: calc(100vh - 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "title title" "copy board";
  align-items: center; column-gap: 64px; row-gap: 40px; align-content: center;
  padding: 56px var(--gutter) 96px;
}
.hero-title { grid-area: title; }
.hero-copy { grid-area: copy; align-self: start; margin-top: 28px; }
.hero-board { grid-area: board; }
.hero-title {
  font: 900 clamp(52px, 7.6vw, 124px)/0.9 var(--display);
  letter-spacing: -0.01em;
}
.hero-title .line { display: block; }
/* The day's work is the quieter line; what gets presented is the loud one. */
.hero-title .line:first-child { color: var(--mist); font-weight: 600; }
.lede { max-width: 34em; font-size: 19px; color: #c8cfdc; }
/* A split word is masked to rise into place; the mask leaves room for descenders. */
.hero-title .line > span, .closing h2 [data-word] > span { padding-bottom: .14em; margin-bottom: -.14em; }
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "copy" "board"; min-height: 0; padding-top: 40px; row-gap: 28px; }
}

/* The hero board: a small, honest copy of the product's own board. */
.hero-board {
  position: relative;
  padding: 18px; border-radius: 16px;
  background: var(--deck); border: 1px solid var(--rule);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8);
}
.hb-progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px; padding: 4px 6px 16px; }
.hb-progress b { grid-row: span 2; font: 800 44px/1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.hb-track { height: 12px; border-radius: 7px; background: var(--raise); overflow: hidden; }
.hb-track i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #f59e0b, var(--amber)); }
.hb-progress span { font-size: 12.5px; color: var(--mist); }
.hb-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hb-list { min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 10px; border-radius: 10px; background: #121927; border: 1px solid #1e2739; min-height: 260px; }
.hb-list.done { background: linear-gradient(180deg, rgba(74, 222, 128, .06), transparent 120px), #121927; }
.hb-list h3 { display: flex; justify-content: space-between; font: 600 12.5px/1.2 var(--sans); color: var(--mist); padding: 2px 2px 4px; }
.hb-list h3 em { font-style: normal; color: var(--faint); }
.mini-card {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 9px 10px; border-radius: 7px;
  background: var(--panel); border: 1px solid var(--rule);
  font-size: 13px; line-height: 1.3; color: var(--chalk);
}
.mini-card.is-done { color: var(--mist); text-decoration: line-through; text-decoration-color: var(--rule-strong); }
.mini-card.ghost-slot { background: none; border-style: dashed; min-height: 58px; }
.mini-card .who { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; background: #ef4444; color: var(--night); }
.mini-card .who.amber { background: #8b5cf6; }
.mini-card .tick { position: absolute; right: -7px; top: -7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--night); font-size: 11px; font-weight: 800; }

.chip { display: inline-block; padding: 1px 7px; border-radius: 20px; font-size: 10.5px; line-height: 1.6; border: 1px solid; }
.chip.client { color: #f59e0b; border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .1); }
.chip.bug { color: #ef4444; border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .1); }
.chip.deliv { color: #14b8a6; border-color: rgba(20, 184, 166, .45); background: rgba(20, 184, 166, .1); }
.prio { display: inline-flex; align-items: baseline; gap: 4px; padding: 1px 6px; border-radius: 4px; font: 700 10.5px/1.5 var(--mono); }
.prio em { font-style: normal; font-weight: 400; }
.prio.p0 { background: rgba(255, 107, 107, .16); color: var(--bad); }
.prio.p1 { background: rgba(255, 176, 32, .16); color: var(--amber); }

/* --- the day: one ruled line of ink down the page ---------------------------------- */

.day {
  position: relative;
  /* Nothing waiting to slide in may widen the page; clip keeps sticky working. */
  overflow-x: clip;
  max-width: 1280px; margin: 0 auto;
  padding: 0 var(--gutter) 40px calc(var(--gutter) + var(--spine) + 24px);
}
/* 12px wide and centred on the stamps' dots, which sit 0.5px past the spine column. */
.spine { position: absolute; left: calc(var(--gutter) + var(--spine) - 5.5px); top: 0; width: 12px; height: 100%; overflow: visible; pointer-events: none; }
.spine .spine-nib { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 176, 32, .8)); }
.spine path { fill: none; stroke-width: 2; stroke-linecap: round; }
.spine .spine-track { stroke: var(--rule); stroke-dasharray: 2 7; }
.spine .spine-ink { stroke: var(--amber); }

.entry {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 5vw, 72px);
  min-height: 72vh; padding: 10vh 0;
}
.entry-copy { position: relative; }
.entry-copy p { margin-top: 20px; max-width: 30em; color: #c3cad8; font-size: 18px; }

/* The time an entry happened, hung on the log line with a dot. */
.stamp {
  position: absolute; left: calc(-1 * (var(--spine) + 24px)); top: 22px;
  width: var(--spine); padding-right: 22px;
  text-align: right; font: 500 14px/1 var(--mono); color: var(--faint);
  font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.stamp::after {
  content: ""; position: absolute; right: -6px; top: 50%;
  width: 11px; height: 11px; margin-top: -6px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--rule-strong);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.stamp.lit { color: var(--amber); }
.stamp.lit::after { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 5px rgba(255, 176, 32, .15); }

/* Pinned entries hold the screen while the scroll plays them. */
.entry.pinned { display: block; min-height: 0; height: 320vh; padding: 0; }
.entry.pinned.short { height: 220vh; }
.entry.pinned .pin {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 5vw, 72px);
}

@media (max-width: 860px) {
  :root { --spine: 0px; }
  .day { padding-left: calc(var(--gutter) + 26px); }
  .spine { left: calc(var(--gutter) - 6.5px); }
  .entry, .entry.pinned .pin { grid-template-columns: minmax(0, 1fr); }
  .entry { min-height: 0; padding: 72px 0; }
  .stamp { position: static; display: block; width: auto; padding: 0; margin-bottom: 14px; text-align: left; }
  .stamp::after { right: auto; left: -32px; top: 7px; margin-top: 0; }
  .entry.pinned { height: auto; }
  .entry.pinned .pin { position: static; height: auto; padding: 72px 0; }
}

/* --- 09:30 standup ---------------------------------------------------------------------- */

.standup-deck { border-radius: 16px; background: var(--deck); border: 1px solid var(--rule); overflow: hidden; }
.sd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--rule); color: var(--mist); font-size: 14px; }
.sd-head b { font: 800 28px/1 var(--display); color: var(--amber); }
.sd-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sd-cols > div { padding: 16px 20px 22px; min-width: 0; }
.sd-cols > div + div { border-left: 1px solid var(--rule); }
.sd-cols h3 { display: flex; justify-content: space-between; gap: 8px; font: 600 14px/1.3 var(--sans); color: var(--chalk); margin-bottom: 12px; }
.sd-cols h3 em { font: 800 22px/1 var(--display); font-style: normal; color: var(--mist); }
.sd-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sd-cols li { display: flex; gap: 9px; font-size: 14px; line-height: 1.35; color: #c3cad8; }
.dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--mist); }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
@media (max-width: 640px) {
  .sd-cols { grid-template-columns: minmax(0, 1fr); }
  .sd-cols > div + div { border-left: 0; border-top: 1px solid var(--rule); }
}

/* --- 10:05 one card ---------------------------------------------------------------------- */

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex; align-items: baseline; gap: 12px;
  padding: 6px 0; font-size: 17px; color: var(--faint);
  transition: color .25s ease;
}
.steps li::before { content: counter(step); font: 500 13px/1 var(--mono); width: 18px; color: var(--faint); }
.steps li.on { color: var(--chalk); }
.steps li.on::before { color: var(--amber); }

.card-stage { position: relative; height: min(560px, 74vh); border-radius: 18px; background: #121927; border: 1px solid var(--rule); overflow: hidden; }
/* The three lists the card travels through; the one it is in is underlined. */
.stage-cols { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
.stage-cols span { position: relative; padding: 16px 18px 14px; font-size: 13.5px; font-weight: 600; color: var(--faint); transition: color .25s ease; }
.stage-cols span::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.stage-cols span.here { color: var(--chalk); }
.stage-cols span.here::after { transform: scaleX(1); }
.stage-cols span:last-child.here::after { background: var(--ok); }

.big-card {
  position: absolute; left: 52%; top: 84px; width: 45%;
  padding: 16px 16px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--rule-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.bc-labels { display: flex; gap: 6px; margin-bottom: 10px; }
.bc-title { display: flex; align-items: flex-start; gap: 10px; }
.bc-title h3 { flex: 1; font: 600 18px/1.3 var(--sans); }
.bc-tick { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: transparent; }
.big-card.done .bc-tick { background: var(--ok); border-color: var(--ok); color: var(--night); }
.bc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; }
.bc-jira { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 12.5px; color: #60a5fa; }
.bc-jira i { font-style: normal; font-size: 10px; }
.bc-who { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 2px 9px 2px 2px; border-radius: 20px; background: var(--raise); color: var(--mist); }
.bc-who i, .bc-comment > i, .people i {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  font: 700 9px/1 var(--mono); font-style: normal; color: var(--night); background: #8b5cf6;
}
.bc-check { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 7px; }
.bc-check li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #c3cad8; }
.bc-check li i { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--rule-strong); flex: none; display: grid; place-items: center; font-style: normal; font-size: 10px; color: var(--night); }
.bc-check li.checked { color: var(--faint); text-decoration: line-through; }
.bc-check li.checked i { background: var(--amber); border-color: var(--amber); }
.bc-check li.checked i::after { content: "✓"; font-weight: 800; }
.bc-comment {
  display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; padding: 10px; border-radius: 9px; background: var(--deck); border: 1px solid var(--rule);
  max-height: 120px; overflow: hidden; transition: max-height .4s ease, opacity .4s ease, margin .4s ease, padding .4s ease;
}
/* Until it is posted, the comment takes no room on the card. */
.big-card.quiet .bc-comment { max-height: 0; opacity: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.bc-comment > i { background: #0ea5e9; }
.bc-comment p { font-size: 13.5px; line-height: 1.45; color: #c3cad8; }
.bc-comment b { color: var(--chalk); margin-right: 4px; }
.bc-progress { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--mist); }
.bc-progress div { flex: 1; height: 8px; border-radius: 4px; background: var(--raise); overflow: hidden; }
.bc-progress div i { display: block; height: 100%; width: 100%; border-radius: 4px; background: var(--amber); transform-origin: left; }
.big-card.done .bc-progress div i { background: var(--ok); }
@media (max-width: 860px) {
  .card-stage { height: auto; padding: 56px 12px 12px; }
  .big-card { position: relative; left: 0; top: 0; width: 100%; }
}

/* --- 11:40 the ledger ------------------------------------------------------------------------ */

.ledger {
  list-style: none; margin: 0; padding: 10px 0;
  border-radius: 16px; background: var(--deck); border: 1px solid var(--rule);
}
/* Ruled like the page of a logbook: every entry sits on its own line. */
.led + .led { border-top: 1px solid var(--rule); }
.led {
  display: grid; grid-template-columns: 92px 50px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 14px; align-items: baseline;
  padding: 13px 20px 12px;
}
.led-type {
  grid-row: span 2; justify-self: start;
  padding: 2px 9px; border-radius: 20px; border: 1px solid currentColor;
  font-size: 12px; font-weight: 600;
}
.led[data-type="client"] .led-type { color: var(--t-client); }
.led[data-type="decision"] .led-type { color: var(--t-decision); }
.led[data-type="blocker"] .led-type { color: var(--t-blocker); }
.led[data-type="update"] .led-type { color: var(--t-update); }
.led time { font: 500 13px/1.4 var(--mono); color: var(--faint); }
.led p { font-size: 15px; line-height: 1.45; color: #c3cad8; }
.led p b { color: var(--chalk); font-weight: 600; }
.led-by { grid-column: 3; font-size: 12.5px; color: var(--faint); }
.led-rule { position: relative; margin: 8px 20px; height: 20px; }
.led-rule::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--amber); transform-origin: left; transform: scaleX(var(--rule-scale, 1)); }
.led-rule span { position: relative; float: right; padding-left: 10px; background: var(--deck); font-size: 12.5px; font-weight: 600; color: var(--amber); }
@media (max-width: 560px) {
  .led { grid-template-columns: auto minmax(0, 1fr); }
  .led-type { grid-row: auto; }
  .led p, .led-by { grid-column: 1 / -1; }
}

/* --- 14:00 the canvas -------------------------------------------------------------------------- */

.canvas-stage { position: relative; aspect-ratio: 600 / 340; border-radius: 18px; background: #121927; border: 1px solid var(--rule); overflow: hidden; }
.dots { position: absolute; inset: 14px; display: grid; grid-template-columns: repeat(24, 1fr); grid-template-rows: repeat(13, 1fr); place-items: center; }
.dots span { width: 3px; height: 3px; border-radius: 50%; background: #2b3850; }
.links { position: absolute; inset: 0; width: 100%; height: 100%; }
.links path { fill: none; stroke: var(--mist); stroke-width: 1.6; stroke-linecap: round; }
.note {
  position: absolute; width: 23%; padding: 12px 12px 18px; border-radius: 4px;
  font-size: clamp(11px, 1.15vw, 14px); line-height: 1.3; font-weight: 600; color: #3b2a07;
  background: #fde68a; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7);
}
.note.n1 { left: 4%; top: 13%; transform: rotate(-2deg); }
.note.n2 { left: 4%; top: 60%; transform: rotate(1.5deg); background: #fbcfe8; color: #4a1030; }
.note.n3 { right: 3%; top: 10%; width: 20%; transform: rotate(2deg); }
.note.mint { background: #a7f3d0; color: #07392a; }
.pinned-card { position: absolute; left: 53%; top: 42%; width: 25%; padding: 10px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--amber-dim); transform: translate(-50%, 0); }
.pinned-card .pc-list { display: block; font-size: 11px; color: var(--amber); margin-bottom: 4px; }
.pinned-card b { font-size: clamp(11px, 1.1vw, 13.5px); line-height: 1.3; font-weight: 600; }

/* --- 16:30 access --------------------------------------------------------------------------------- */

.access-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: center; }
.board-tile { display: flex; flex-direction: column; gap: 4px; padding: 26px 22px; border-radius: 16px; background: var(--deck); border: 1px solid var(--rule); }
.board-tile .lock { color: var(--amber); font-size: 12px; }
.board-tile b { font: 800 30px/1.05 var(--display); }
.board-tile span:last-child { font-size: 13.5px; color: var(--mist); }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.people li { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 12px; background: var(--deck); border: 1px solid var(--rule); font-size: 15px; }
.people li span { margin-left: auto; font-size: 12.5px; color: var(--mist); }
.people li.out { border-style: dashed; color: var(--faint); background: none; }
.people li.out i { background: var(--raise); color: var(--faint); }
.people li.out span { color: var(--bad); font-family: var(--mono); }
.people li:nth-child(2) i { background: #ef4444; }
.people li:nth-child(3) i { background: #0ea5e9; }
@media (max-width: 560px) { .access-stage { grid-template-columns: minmax(0, 1fr); } }

/* --- 17:45 dashboard ---------------------------------------------------------------------------- */

.dash-stage { padding: 20px; border-radius: 16px; background: var(--deck); border: 1px solid var(--rule); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tiles div { padding: 14px; border-radius: 12px; background: #121927; border: 1px solid #1e2739; }
.tiles span { display: block; font-size: 13px; color: var(--mist); }
.tiles b { display: block; margin-top: 4px; font: 800 38px/1 var(--display); font-variant-numeric: tabular-nums; }
.tiles b.bad { color: var(--bad); }
.boards { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.boards li { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 44px; align-items: center; gap: 14px; font-size: 14.5px; }
.boards li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boards li div { height: 10px; border-radius: 6px; background: var(--raise); overflow: hidden; }
.boards li div i { display: block; height: 100%; border-radius: 6px; background: var(--amber); }
.boards li em { font-style: normal; text-align: right; color: var(--mist); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boards li { grid-template-columns: minmax(0, 1fr) 44px; }
  .boards li div { grid-column: 1 / -1; grid-row: 2; }
}

/* --- 21:15 the phone -------------------------------------------------------------------------- */

.screens-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.screens-list li { padding: 5px 12px; border-radius: 20px; border: 1px solid var(--rule); font-size: 14px; color: var(--faint); transition: color .25s, border-color .25s; }
.screens-list li.on { color: var(--chalk); border-color: var(--amber); }
.phone {
  justify-self: center;
  width: min(300px, 70vw); aspect-ratio: 1290 / 2796;
  padding: 11px; border-radius: 48px;
  background: #1b2434; border: 1px solid var(--rule-strong);
  box-shadow: 0 60px 140px -50px rgba(0, 0, 0, .95), inset 0 0 0 2px #0f1420;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: var(--night); }
/* The screens sit side by side and the scroll swipes through them. */
.phone-screen .strip { display: flex; width: 500%; height: 100%; }
.phone-screen img { flex: 0 0 20%; width: 20%; height: 100%; object-fit: cover; }
.phone { transform-style: preserve-3d; }

/* --- closing ------------------------------------------------------------------------------------ */

.closing { max-width: 1280px; margin: 0 auto; padding: 18vh var(--gutter) 16vh; }
.closing h2 { font-size: clamp(56px, 8vw, 120px); line-height: .9; font-weight: 900; max-width: 9em; }
.closing p { margin-top: 24px; max-width: 32em; font-size: 19px; color: #c3cad8; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px var(--gutter); border-top: 1px solid var(--rule); font-size: 14px; color: var(--faint); }
.foot a { color: var(--mist); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entry.pinned { height: auto; }
  .entry.pinned .pin { position: static; height: auto; padding: 14vh 0; }
}

@media (max-width: 560px) {
  .hero-board { padding: 12px; }
  .hb-progress b { font-size: 36px; }
  .hb-lists { gap: 6px; }
  .hb-list { padding: 7px; min-height: 0; }
  .hb-list h3 { font-size: 11.5px; }
  .mini-card { padding: 7px; font-size: 12px; }
  .mini-card .chip { display: none; }
}


/* --- where you are in the day ---------------------------------------------- */

.clock {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin-left: auto; padding: 5px 12px; border-radius: 20px;
  border: 1px solid var(--rule); background: rgba(21, 29, 43, .7);
  font-size: 13px; color: var(--mist);
  opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease;
}
.clock.on { opacity: 1; transform: none; }
.clock b { font: 600 13px/1 var(--mono); color: var(--amber); font-variant-numeric: tabular-nums; }
.nav .clock + nav { margin-left: 20px; }
@media (max-width: 720px) { .clock { margin-left: auto; } .clock span { display: none; } .nav .clock ~ .button { margin-left: 10px; } }

/* --- the hero: a hint, and room for the board to tilt away ------------------ */

.hero { perspective: 1400px; position: relative; }
.hero-board { transform-origin: 50% 0; will-change: transform; }
.scroll-hint {
  position: absolute; left: var(--gutter); bottom: 34px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: var(--mist); text-decoration: none;
}
.scroll-hint i { position: relative; width: 2px; height: 34px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; border-radius: 2px; background: var(--amber); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
@media (max-width: 980px) { .scroll-hint { display: none; } }

/* --- the standup, presented one column at a time --------------------------- */

.sd-page { margin-left: 8px; font: 500 12px/1 var(--mono); font-style: normal; color: var(--faint); }
.sd-cols > div { position: relative; transition: opacity .35s ease, background .35s ease; }
.sd-cols > div::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .45s ease;
}
.standup-deck.presenting .sd-cols > div { opacity: .38; }
.standup-deck.presenting .sd-cols > div.now { opacity: 1; background: rgba(255, 176, 32, .04); }
.standup-deck.presenting .sd-cols > div.now::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .entry.pinned.short { height: auto; } }
@media (max-width: 860px) { .entry.pinned.short { height: auto; } }
#pocket .pin { perspective: 1400px; }
.nav .button { white-space: nowrap; }
@media (max-width: 860px) { .sd-page { display: none; } }
/* On a phone the icon is the brand; the room goes to the clock and the way in. */
@media (max-width: 480px) { .brand span { display: none; } .nav { gap: 12px; } }
