@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #16150f;
  --ink-2: #57544a;
  --line: #e7e4da;
  --wash: #f7f6f1;
  --signal: #ffd21f;
  --signal-deep: #f2bd00;
  --on-signal-2: #5b4a00;
  --ok: #17703c;
  --ok-wash: #e6f3ea;
  --warn: #9a5300;
  --warn-fill: #e08a00;
  --late: #b3261a;
  --late-wash: #fbe9e6;

  --display: "Bricolage Grotesque", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--ink);
}
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

h1, h2 { font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 96; text-wrap: balance; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
}
.top-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 12px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -0.03em; }
.mark { width: 24px; height: 24px; }
.top-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 16px; }
.top-nav a:not(.btn) { text-decoration: none; }
.top-nav a:not(.btn):hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { background: #000; box-shadow: 0 6px 16px -6px rgb(22 21 15 / 0.55); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* Hero */
.hero { max-width: 960px; margin: 0 auto; padding: clamp(32px, 6vh, 80px) var(--gutter) clamp(30px, 5vh, 52px); text-align: center; }
h1 { font-size: clamp(2.75rem, min(7.4vw, 11vh), 5.5rem); line-height: 0.98; letter-spacing: -0.028em; }
.lede { max-width: 34em; margin: 22px auto 0; font-size: clamp(1.06rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* Join form */
.join { max-width: 500px; margin: 28px auto 0; }
.join-row {
  display: flex; gap: 6px; padding: 6px;
  border: 1px solid #cfcbbd; border-radius: 999px; background: var(--paper);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.join-row:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--signal); }
.join-row.bad { border-color: var(--late); box-shadow: 0 0 0 4px var(--late-wash); }
.join input[type="email"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font-size: 17px; outline: none; }
.join input::placeholder { color: #6b675b; opacity: 1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join-note { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); }
.join-note.err { color: var(--late); font-weight: 500; }

.thanks { max-width: 520px; margin: 34px auto 0; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--wash); text-align: left; }
.thanks-head { font: 600 26px/1.1 var(--display); letter-spacing: -0.025em; }
.thanks-mail { margin-top: 8px; padding: 10px 14px; border-radius: 10px; background: var(--signal); font-weight: 600; font-size: 15.5px; }
.thanks-mail[hidden] { display: none; }
.thanks-sub { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.thanks fieldset { margin-top: 20px; }
.thanks legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips span { display: block; padding: 8px 15px; border: 1px solid #cfcbbd; border-radius: 999px; background: var(--paper); font-size: 15px; font-weight: 500; transition: background-color 0.15s, border-color 0.15s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--signal); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.thanks .btn { margin-top: 22px; }
.thanks-done { margin-top: 18px; font-weight: 600; color: var(--ok); }

/* Yellow field with the demonstration */
.field {
  max-width: calc(var(--max) + 2 * var(--gutter) - 16px);
  margin: 0 auto; padding: clamp(22px, 2.6vw, 32px) clamp(14px, 4vw, 56px) clamp(24px, 3.5vw, 40px);
  background: var(--signal); border-radius: clamp(20px, 3vw, 36px);
  width: calc(100% - 16px);
}
.field-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; margin-bottom: 16px; }
.field-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -0.022em; }
.field-head p { max-width: 34em; font-size: 15.5px; color: var(--on-signal-2); }

.window {
  background: var(--paper); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 0 rgb(22 21 15 / 0.08), 0 30px 60px -30px rgb(60 45 0 / 0.55), 0 12px 24px -16px rgb(60 45 0 / 0.35);
}
.window-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.chan { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan span { color: var(--ink-2); font-weight: 400; margin-right: 1px; }
.tag { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.window-body { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; height: clamp(420px, 46vw, 500px); }

.clocks { display: flex; flex-direction: column; padding: 16px 18px 18px; border-right: 1px solid var(--line); background: var(--wash); min-height: 0; }
.clocks-title { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.clock-list { display: grid; gap: 10px; }
.clock { padding: 13px 14px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease); }
.clock-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.clock-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.clock-reg { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.clock-time { margin-top: 6px; font: 600 26px/1.1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; transition: color 0.4s var(--ease); }
.clock-sub { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar { height: 6px; margin-top: 10px; border-radius: 3px; background: #ebe8dd; overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--used, 0) * 1%); background: var(--ink); border-radius: 3px; transition: background-color 0.4s var(--ease); }
.clock.s-warn .bar i { background: var(--warn-fill); }
.clock.s-warn .clock-time { color: var(--warn); }
.clock.s-late .bar i { background: var(--late); }
.clock.s-late .clock-time { color: var(--late); }
.clock.s-late { border-color: #e9b6ae; background: #fffafa; }
.clock.s-filed .bar i { background: var(--ok); }
.clock.s-filed .clock-time { color: var(--ok); font-size: 20px; line-height: 1.35; }
.clock.s-filed { background: var(--ok-wash); border-color: #c4e0cd; }
.clock.s-missed .clock-time { color: var(--late); }
.clocks-foot { margin-top: auto; padding-top: 12px; font-size: 12.5px; color: var(--ink-2); }

.thread { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; overflow: hidden; padding: 0 20px 18px; }
.thread::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 56px; background: linear-gradient(var(--paper), transparent); z-index: 1; pointer-events: none; }
.msgs { display: flex; flex-direction: column; gap: 14px; }
.msg { display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; }
.msg[hidden] { display: none; }
.msg.in { animation: msg-in 0.32s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.av { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em; }
.av-i { background: #e6e2d4; color: var(--ink); }
.av-j { background: var(--ink-2); color: #fff; }
.av-a { background: var(--ink); }
.av-a svg { width: 20px; height: 20px; }
.msg-head { display: flex; align-items: baseline; gap: 8px; }
.msg-who { font-weight: 700; }
.msg-role { font-size: 12.5px; color: var(--ink-2); }
.msg-at { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.msg code, .verbs code { font: 500 0.92em/1 var(--mono); background: var(--wash); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.msg .at { background: #fff3bf; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.msg-body.is-warn, .msg-body.is-late, .msg-body.is-ok { margin-top: 4px; padding: 8px 12px; border-radius: 10px; }
.msg-body.is-warn { background: #fff6dc; }
.msg-body.is-late { background: var(--late-wash); }
.msg-body.is-ok { background: var(--ok-wash); }
.msg-body b { font-weight: 700; }

.noscript { margin-top: 14px; font-size: 15px; }

.scrub { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 8px 18px; margin-top: clamp(18px, 2.4vw, 26px); font-size: 15px; }
.scrub label { font-weight: 600; }
.scrub output { min-width: 6.6em; font-weight: 600; font-variant-numeric: tabular-nums; }
.scrub-track { position: relative; padding-bottom: 18px; }
.scrub input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; background: transparent; cursor: grab; }
.scrub input[type="range"]:active { cursor: grabbing; }
.scrub input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--ink) calc(var(--p, 0) * 1%), rgb(22 21 15 / 0.22) 0); }
.scrub input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgb(22 21 15 / 0.22); }
.scrub input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
.scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 2px 6px rgb(22 21 15 / 0.4); }
.scrub input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 2px 6px rgb(22 21 15 / 0.4); }
.scrub input[type="range"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 999px; }
.scrub-marks { position: absolute; left: 12px; right: 12px; bottom: 0; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--on-signal-2); font-variant-numeric: tabular-nums; }
.scrub-marks span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.replay { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.replay svg { width: 15px; height: 15px; }
.replay:hover { background: var(--ink); color: var(--signal); }

/* Regimes */
.regimes, .does, .cross, .close { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.regimes { padding-top: clamp(80px, 11vw, 144px); }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2, .does h2, .quiet h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.03; letter-spacing: -0.024em; }
.section-head p { color: var(--ink-2); max-width: 34em; text-wrap: pretty; }

.grid { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.35; }
.grid thead th { padding: 0 14px 12px; text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.grid thead th.t { width: 13%; }
.grid thead th:first-child, .grid tbody th { padding-left: 0; }
.grid tbody th { padding: 20px 14px 20px 0; text-align: left; font: 600 23px/1.1 var(--display); letter-spacing: -0.025em; white-space: nowrap; vertical-align: middle; }
.grid tbody th span { display: block; margin-top: 4px; font: 400 13px/1 var(--sans); letter-spacing: 0; color: var(--ink-2); }
.grid td { padding: 14px; vertical-align: middle; border-left: 1px solid var(--line); }
.grid tbody tr { border-bottom: 1px solid var(--line); }
.grid td:nth-child(2) { color: var(--ink-2); border-left: 0; max-width: 17em; }
.grid td.due { position: relative; padding-left: 34px; font-weight: 600; }
.grid td.due::before { content: ""; position: absolute; left: 14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 1.5px var(--ink); }
.grid td.none::after { content: ""; display: block; width: 14px; height: 1px; background: #cfcbbd; margin: 0 auto; }
.fine { max-width: 34em; margin-top: 22px; font-size: 14.5px; color: var(--ink-2); text-wrap: pretty; }

/* What it does */
.does { padding-top: clamp(80px, 11vw, 144px); display: grid; grid-template-columns: 1fr 1.35fr; gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.does h2 { position: sticky; top: 96px; }
.verbs > div { display: grid; grid-template-columns: 11.5em 1fr; gap: 6px 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.verbs > div:first-child { border-top-color: var(--ink); }
.verbs > div:last-child { border-bottom: 1px solid var(--line); }
.verbs dt { font-weight: 600; }
.verbs dd { color: var(--ink-2); text-wrap: pretty; max-width: 34em; }

/* Dark section */
.quiet { margin-top: clamp(80px, 11vw, 144px); background: var(--ink); color: #f4f2ea; }
.quiet ::selection { background: var(--signal); color: var(--ink); }
.quiet-inner { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gutter); }
.quiet h2 { max-width: 15em; }
.quiet-lede { max-width: 36em; margin-top: 22px; color: #bdb9aa; font-size: 1.1rem; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(32px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); }
.ledger h3 { font: 600 15px/1 var(--sans); padding-bottom: 14px; border-bottom: 1px solid #4a473c; }
.ledger h3:first-child { color: #f4f2ea; }
.ledger li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid #33312a; font-size: 1.1rem; }
.ledger li svg { flex: none; width: 18px; height: 18px; color: var(--signal); }
.ledger .not li { color: #bdb9aa; }
.ledger .not li svg { color: #8e8a7b; }

/* Cross link */
.cross { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.cross p { max-width: 46em; color: var(--ink-2); }
.cross strong { color: var(--ink); font-weight: 600; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* Close */
.close { padding-top: clamp(88px, 12vw, 160px); padding-bottom: clamp(88px, 12vw, 160px); text-align: center; }
.close h2 { max-width: 13em; margin: 0 auto; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.028em; }
.close .join { margin-top: 36px; }

.foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 32px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.foot .brand { color: var(--ink); font-size: 20px; }
.foot .mark { width: 20px; height: 20px; }
.foot p { max-width: 52em; }
.copy { white-space: nowrap; }

/* Tablet and phone */
@media (max-width: 900px) {
  .window-body { grid-template-columns: 1fr; height: auto; }
  .clocks { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .clock-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .clock { padding: 10px 11px 11px; }
  .clock-top { display: block; }
  .clock-name { font-size: 13.5px; }
  .clock-reg { display: block; margin-top: 1px; }
  .clock-time { font-size: 19px; }
  .clock.s-filed .clock-time { font-size: 15px; }
  .clocks-foot { display: none; }
  .thread { height: 330px; padding: 0 14px 14px; }
  .section-head, .does, .ledger { grid-template-columns: 1fr; }
  .does h2 { position: static; }
  .scrub { grid-template-columns: 1fr auto; }
  .scrub output { text-align: right; min-width: 0; }
  .scrub-track { grid-column: 1 / -1; }
  .replay { grid-column: 1 / -1; justify-self: start; }
  .foot { grid-template-columns: 1fr; }

  .grid, .grid tbody, .grid tr, .grid th, .grid td { display: block; }
  .grid thead { display: none; }
  .grid tbody tr { display: grid; grid-template-columns: 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .grid tbody tr:first-child { border-top: 1px solid var(--ink); }
  .grid tbody th { padding: 0; display: flex; align-items: baseline; gap: 10px; }
  .grid tbody th span { margin: 0; }
  .grid td { border: 0; padding: 0; max-width: none; }
  .grid td:nth-child(2) { margin: 6px 0 14px; max-width: none; }
  .grid td.none { display: none; }
  .grid td.due { display: grid; grid-template-columns: 5.2em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 400; }
  .grid td.due::before { content: attr(data-l); position: static; width: auto; height: auto; margin: 0; border-radius: 0; background: none; box-shadow: none; font-weight: 700; font-variant-numeric: tabular-nums; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top-nav a:not(.btn) { display: none; }
  .hero { padding-top: 36px; }
  .join-row { flex-direction: column; border-radius: 22px; padding: 8px; gap: 8px; }
  .join input[type="email"] { min-height: 48px; text-align: center; }
  .field { width: 100%; border-radius: 0; padding-left: 12px; padding-right: 12px; }
  .field-head p { font-size: 14.5px; }
  .clock-list { grid-template-columns: 1fr; }
  .clock { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; }
  .clock-top { grid-column: 1; }
  .clock-time { grid-column: 2; grid-row: 1; margin: 0; text-align: right; }
  .clock-sub { grid-column: 1 / -1; }
  .bar { grid-column: 1 / -1; margin-top: 6px; }
  .clock.s-filed .clock-time { max-width: 9em; font-size: 14px; }
  .thread { height: 340px; }
  .msg { font-size: 14.5px; }
  .verbs > div { grid-template-columns: 1fr; }
  .ledger li { font-size: 1rem; }
  .copy { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
