:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --line: #e2e5ea;
  --text: #14171c;
  --muted: #666e7a;
  --accent: #2f5fe0;
  --accent-soft: rgba(47, 95, 224, 0.08);
  --warn: #a1590a;
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

/* Three columns so the company name is centred on the page, not centred in
 * whatever space the sign-out form leaves behind. */
/* Header and tray are one white block on the page, so the tray reads as bolted
 * to the header rather than floating on the background. */
.bar {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto 1fr;
  padding: 18px 24px;
}

.mark {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  grid-column: 2;
  justify-self: center;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
}

/* Holds two things now -- the nav and the sign-out -- so the gap separates
 * groups rather than the words inside one. */
.bar-end {
  align-items: center;
  display: flex;
  gap: 20px;
  grid-column: 3;
  justify-self: end;
  margin: 0;
}

@media (max-width: 560px) {
  .who {
    display: none;
  }
}

.who {
  color: var(--muted);
  font-size: 14px;
}

.linkish {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 0;
  text-decoration: underline;
}

.linkish:hover {
  color: var(--text);
}

main {
  margin: 0 auto;
  max-width: 760px;
  padding: 40px 24px 80px;
}

/* Room for the terminal, which is pinned to the bottom of the viewport. */
body:has(.console) main {
  padding-bottom: 300px;
}

.mark-slot {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
  grid-column: 2;
  justify-self: center;
}

.mark-line {
  align-items: center;
  display: flex;
  gap: 8px;
}

/* The arc, named, and the way back through it. A work-domain sign-in skips the
 * landing page, so this strip is the only place a founder learns the shape of
 * the run they are watching.
 *
 * Below the tray rather than inside the header: the company and the files it
 * has produced come first, and where the run has got to is the caption on them.
 * Kept once the plan lands, when it stops being a progress strip and becomes the
 * only navigation a three-beat page has. */
.spine {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px;
  justify-content: safe center;
  list-style: none;
  margin: 0 auto;
  max-width: 760px;
  padding: 16px 24px 0;
}

.spine li + li::before {
  color: var(--line);
  content: "\203A";
  margin-right: 8px;
}

.spine a {
  color: inherit;
  text-decoration: none;
}

.spine a:hover {
  text-decoration: underline;
}

.spine .done,
.spine .next {
  color: var(--muted);
}

.spine .done::after {
  content: " \2713";
}

.spine .now {
  color: var(--accent);
  font-weight: 600;
}

.spine .next {
  opacity: 0.6;
}

/* A beat that is not being worked is still worth going back to, so it stays a
 * link -- but it should not compete with the one that is. */
.spine .next a {
  cursor: default;
  pointer-events: none;
}

/* The document tray: bolted to the underside of the header, filling up as each
 * step commits a file. */
.tray {
  align-items: stretch;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0;
  justify-content: center;
  /* `safe` so a narrow screen scrolls from the first file rather than centring
   * the overflow and cutting the left edge off. */
  justify-content: safe center;
  overflow-x: auto;
  padding: 0 24px;
  scrollbar-width: none;
}

.tray.empty {
  display: none;
}

/* Shown only while the tray holds its first file. That is the moment "Zo Corp.
 * keeps your company as files" is legible, and the only moment it needs
 * saying -- the second file makes the point by itself. */
.tray-hint {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  padding: 9px 24px;
  text-align: center;
}

.tray .artifact {
  animation: land 0.42s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  padding: 10px 20px;
  text-align: left;
  white-space: nowrap;
}

.tray .artifact:first-child {
  border-left: 1px solid var(--line);
}

.tray .artifact:hover {
  background: var(--accent-soft);
}

.artifact-label {
  display: block;
  font-size: 14px;
}

.tray .artifact-name {
  color: var(--muted);
  display: block;
  font-family: var(--mono);
  font-size: 11px;
}

@keyframes land {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
}

/* The stage: what Zo Corp. is working out, in words, while it works it out. */
.stage-title {
  margin-bottom: 26px;
}

.stage-title:has(+ .deal) {
  margin-bottom: 12px;
}

/* Said before the machine starts. The founder is watching work they did not
 * ask for and cannot yet name, so the screen states the outcome and how long
 * it takes before any of it scrolls past. */
.deal {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 54ch;
}

.findings {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.findings li {
  animation: land 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  border-left: 2px solid var(--accent);
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 14px;
  padding-left: 16px;
}

/* The newest finding is the one being read; the ones behind it fade back so the
 * eye lands on top rather than scanning for what changed. */
.findings li + li {
  color: var(--muted);
  font-size: 16px;
}

.findings li + li + li ~ li {
  opacity: 0.72;
}

@media (prefers-reduced-motion: reduce) {
  .tray .artifact,
  .findings li {
    animation: none;
  }
}

/* The way out when a run was lost with the process that started it. Quiet,
 * because it only appears once waiting has stopped being reasonable. */
.stalled {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
}

/* The run, as one page that grows a section per beat. It used to be a single
 * slot that swapped its contents on a poll -- so a founder three lines into what
 * Zo Corp. had worked out about their company had it replaced by a goal, mid
 * sentence, by a timer. Nothing here is ever taken away again. */
.beat {
  scroll-margin-top: 20px;
}

.beat + .beat {
  border-top: 1px solid var(--line);
  margin-top: 46px;
  padding-top: 42px;
}

.beat-title {
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 26px;
}

.beat-title:has(+ .deal) {
  margin-bottom: 12px;
}

/* The settled goal, once it is settled: still the loudest line in its beat, but
 * no longer a decision waiting on anybody. */
.beat-title.settled {
  margin-bottom: 18px;
}

/* What Zo Corp. made of the company, on the page. This is the beat that did not
 * exist: research would finish, drop COMPANY.md into the tray, and move straight
 * on to picking a goal -- having read the founder's whole company and said
 * nothing about it. */
.record {
  border-left: 2px solid var(--line);
  color: var(--text);
  margin: 0 0 34px;
  padding-left: 22px;
}

.record > :first-child {
  margin-top: 0;
}

.record > :last-child {
  margin-bottom: 0;
}

/* A record worth reading runs to a couple of thousand words, and all of it above
 * the goal would bury the goal. The opening is the summary -- what the company
 * is, who it is for -- so that much is shown and the rest is one click away.
 * `app.js` only clamps when there is actually something past the fold, and with
 * no script at all the whole thing simply shows. */
.record.clamped {
  max-height: 19em;
  overflow: hidden;
  position: relative;
}

.record.clamped::after {
  background: linear-gradient(to bottom, rgba(245, 246, 248, 0), var(--bg));
  bottom: 0;
  content: "";
  height: 6em;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.record-more {
  display: block;
  margin: 0 0 34px 22px;
}

/* The founder's answer to the reading. Offered, never waited on: the goal step
 * is already running underneath this by the time the box appears. */
.correct {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
}

.correct label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.correct .fine {
  margin: 0 0 14px;
  max-width: 60ch;
}

.correct textarea {
  background: var(--bg);
  margin-bottom: 14px;
}

.correct button {
  margin-bottom: 14px;
}

.correct .fine:last-child {
  margin: 0;
}

.wrong-company {
  margin: 26px 0 0;
}

/* The link and the invitation belong to the company rather than to any one beat,
 * so they sit past the last of them. */
.run-end {
  border-top: 1px solid var(--line);
  margin-top: 46px;
  padding-top: 34px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 32px;
}

.narrow {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

h2.quiet {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  margin: 0 0 24px;
}

.fine {
  color: var(--muted);
  font-size: 14px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

input[type="email"],
input[type="text"],
textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: block;
  font: inherit;
  margin-bottom: 18px;
  padding: 11px 13px;
  width: 100%;
}

textarea {
  line-height: 1.5;
  resize: vertical;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
}

button[type="submit"] {
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 11px 18px;
}

button[type="submit"]:hover {
  filter: brightness(1.08);
}

button[disabled] {
  cursor: default;
  opacity: 0.6;
}

.notice {
  background: rgba(161, 89, 10, 0.07);
  border: 1px solid rgba(161, 89, 10, 0.28);
  border-radius: 8px;
  color: var(--warn);
  margin-bottom: 20px;
  padding: 12px 16px;
}

.notice p {
  margin: 0;
}

.choice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  gap: 14px;
  font-weight: 400;
  margin-bottom: 12px;
  padding: 18px;
}

.choice:hover {
  border-color: #c8cdd6;
}

.choice:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.choice input {
  accent-color: var(--accent);
  margin-top: 5px;
}

.choice-body {
  display: block;
}

.choice-goal {
  font-size: 16px;
  font-weight: 600;
}

.choice-metric {
  color: var(--text);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 8px;
}

.choice-why {
  color: var(--muted);
  display: block;
  font-size: 14px;
  margin-top: 6px;
}

/* The goal and the one thing Zo Corp. could not read, side by side. Research
 * only ever sees a company's account of itself; the column on the right is the
 * account from inside, which is why it sits level with the goal rather than
 * under it. Stacks below 900px, goal first. */
.decided {
  display: grid;
  gap: 34px;
}

/* Two columns only when there is a second one. A guest is never asked what is
 * in the way, so their goal takes the full width rather than sitting next to a
 * gap where the question would have been. */
.decided:has(.from-you) {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

@media (max-width: 900px) {
  .decided:has(.from-you) {
    grid-template-columns: 1fr;
  }
}

.from-you {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}

@media (max-width: 900px) {
  .from-you {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 26px 0 0;
  }
}

.from-you h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 10px;
}

.from-you .fine {
  margin-bottom: 18px;
}

/* Their own words back, so a redrawn goal is visibly an answer to them. */
.said {
  border-left: 2px solid var(--line);
  color: var(--muted);
  margin: 0 0 18px;
  padding-left: 14px;
  white-space: pre-wrap;
}

/* The goal, as a decision already made. The alternatives are an override, so
 * they are folded away rather than lined up beside it as a menu. */
.decision {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.decision-metric {
  border-left: 2px solid var(--accent);
  font-family: var(--mono);
  font-size: 15px;
  margin: 0 0 14px;
  padding-left: 14px;
}

.decision-why {
  color: var(--muted);
  margin: 0 0 22px;
}

.alternatives {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 16px;
}

.alternatives > summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  list-style: none;
}

.alternatives > summary::-webkit-details-marker {
  display: none;
}

.alternatives > summary::before {
  content: "› ";
  display: inline-block;
  transition: transform 0.2s ease;
}

.alternatives[open] > summary::before {
  transform: rotate(90deg);
}

.alternatives > summary:hover {
  color: var(--text);
}

button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

button.secondary:hover {
  border-color: var(--accent);
  filter: none;
}

/* The tracker: the goal, the number that settles it, and the nine days. */
.tracker-head {
  align-items: start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.tracker-head h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

/* The number, given the weight it deserves: it is the whole sprint. */
.gauge {
  align-items: baseline;
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
  padding: 16px 20px;
}

.gauge-metric {
  color: var(--muted);
  font-size: 14px;
  order: 2;
  width: 100%;
}

.gauge-target {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.gauge-by {
  color: var(--muted);
  font-size: 14px;
}

/* One play icon, drawn rather than a glyph so it sits on the baseline at any
 * size and takes the colour of whatever it is inside. */
.run-icon {
  border-color: transparent transparent transparent currentColor;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  display: inline-block;
}

.run-all {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex: none;
  font: inherit;
  font-weight: 600;
  gap: 10px;
  padding: 11px 18px;
}

.run-all:hover {
  filter: brightness(1.08);
}

.days {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.days li {
  align-items: center;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: auto auto 1fr;
  padding: 11px 12px;
  transition: background 0.16s ease;
}

.days li:hover {
  background: rgba(20, 23, 28, 0.035);
}

/* The line down the days, so nine of them read as one run rather than nine
 * unrelated rows. */
.days li + li {
  position: relative;
}

.days li + li::before {
  background: var(--line);
  content: "";
  height: 11px;
  left: 21px;
  position: absolute;
  top: -6px;
  width: 1px;
}

.days form {
  display: flex;
  margin: 0;
}

.day-number {
  color: #98a0ad;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.day-work {
  font-size: 15px;
  line-height: 1.45;
}

/* Nobody but the founder runs a day, so the public list carries no play button
 * and the row -- with the line threading it -- closes up to match. */
.days.plain li {
  grid-template-columns: auto 1fr;
}

.days.plain li + li::before {
  left: 19px;
}

/* The permalink, phrased as the product speaking: the company has an address
 * now. It sits under the tracker because it is what the run produced, not a
 * share widget bolted to the corner of one. */
/* The rule and the space above it belong to `.run-end`, which is what separates
 * the company's own address from the last beat of the run. */
.lives-at {
  align-items: baseline;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 10px;
  margin: 0;
}

.permalink {
  font-family: var(--mono);
  font-size: 14px;
  word-break: break-all;
}

.copy {
  flex: none;
}

/* Directly under the link, because it is the other half of the same sentence:
 * that was read access, this is commit access. */
.invite {
  display: block;
  margin: 14px 0 0;
}

.invite label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.invite-row {
  display: flex;
  gap: 10px;
}

.invite-row input[type="email"] {
  margin-bottom: 8px;
}

.invite-row button {
  flex: none;
  height: 45px;
}

.invite .fine {
  display: block;
}

/* On the public page, under the company name: whoever opened the link should
 * know straight away that they are reading a record and cannot change it. */
.public-note {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.provenance {
  color: var(--muted);
  font-size: 14px;
  margin: 32px 0 0;
}

.artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.artifact {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 12px 16px;
  text-align: left;
}

.artifact:hover {
  border-color: var(--accent);
}

.artifact-name {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
}

/* The terminal. Pinned to the bottom so the machine detail is always visible
 * under whatever the founder is being shown -- the log is not a footer, it is
 * the thing running. */
.console {
  --console-bg: #17191f;
  --console-text: #e6e8ec;
  --console-muted: #9aa1ac;
  background: var(--console-bg);
  border-top: 1px solid var(--console-bg);
  bottom: 0;
  display: flex;
  flex-direction: column;
  left: 0;
  max-height: 260px;
  position: fixed;
  right: 0;
  z-index: 5;
}

.console.shut {
  max-height: 41px;
}

.console-head {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex: none;
  justify-content: space-between;
  padding: 10px 20px;
}

.console-title {
  color: var(--console-muted);
  font-family: var(--mono);
  font-size: 12px;
}

.console-toggle {
  background: none;
  border: 0;
  color: var(--console-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 4px;
}

.console.shut .console-toggle {
  transform: rotate(180deg);
}

/* The terminal is the most alien thing on the page to a founder who does not
 * write code. Naming it turns it from a warning into a window. */
.console-hint {
  color: var(--console-muted);
  flex: none;
  font-size: 12px;
  margin: 0;
  padding: 10px 20px 0;
}

/* Collapsed, the panel is only as tall as its header, and this would hang out
 * the bottom of it. */
.console.shut .console-hint {
  display: none;
}

.console .log {
  flex: 1;
  font-family: var(--mono);
  font-size: 12.5px;
  list-style: none;
  margin: 0;
  overflow-y: auto;
  padding: 12px 20px 16px;
  scrollbar-width: thin;
}

.console .log li {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2px 0;
}

.console .log li.command {
  padding-top: 8px;
}

.prompt {
  color: #7ec27a;
  white-space: nowrap;
}

.log li.command .command {
  color: var(--console-text);
}

.out {
  color: var(--console-muted);
}

.log li.err .out {
  color: #f0a35e;
}

.by {
  color: #767d89;
  margin-left: auto;
}

/* Modals. One backdrop, one sheet, no library. */
.modal {
  align-items: center;
  background: rgba(20, 23, 28, 0.38);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 10;
}

.modal[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.sheet {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  max-height: 82vh;
  max-width: 760px;
  width: 100%;
}

.sheet-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 20px;
}

.sheet-title {
  font-family: var(--mono);
  font-size: 14px;
}

.close {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
}

.close:hover {
  color: var(--text);
}

.sheet .prose,
.sheet .offer {
  overflow-y: auto;
  padding: 20px;
}

/* The checkout panel. Reads as a finished payment screen -- but it takes no
 * card, and the screen straight after says Zo Corp. collects by hand. */
.checkout {
  max-width: 420px;
}

.line-item {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.line-what {
  font-size: 17px;
  margin: 4px 0 0;
}

.amount {
  border-bottom: 1px solid var(--line);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 10px 0 18px;
  padding-bottom: 18px;
}

.price-note {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  margin-left: 8px;
}

.included {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.included li {
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0 5px 22px;
  position: relative;
}

.included li::before {
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  content: "";
  height: 8px;
  left: 2px;
  position: absolute;
  top: 9px;
  transform: rotate(45deg);
  width: 4px;
}

.want {
  width: 100%;
}

.booked {
  text-align: center;
}

.booked .line-what {
  margin-bottom: 18px;
}

.tick-mark {
  border: 2px solid var(--accent);
  border-radius: 50%;
  height: 46px;
  margin: 6px auto 18px;
  position: relative;
  width: 46px;
}

.tick-mark::after {
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  content: "";
  height: 17px;
  left: 17px;
  position: absolute;
  top: 10px;
  transform: rotate(45deg);
  width: 9px;
}

.want {
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  margin-top: 8px;
  padding: 11px 18px;
}

.want:hover {
  filter: brightness(1.08);
}

.working {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
}

.working::after {
  animation: dots 1.4s steps(4, end) infinite;
  content: "";
}

@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}

@media (prefers-reduced-motion: reduce) {
  .working::after {
    animation: none;
    content: "...";
  }
}

/* Sign-in: Google button, then a divider before the email fallback. */
.gbox {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
  min-height: 44px;
}

.or {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  gap: 14px;
  margin: 22px 0;
}

.or::before,
.or::after {
  background: var(--line);
  content: "";
  flex: 1;
  height: 1px;
}

.prose {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.prose h1,
.prose h2 {
  font-size: 16px;
  letter-spacing: 0;
  margin: 26px 0 8px;
}

.prose h1:first-child,
.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  color: var(--muted);
  font-size: 14px;
  margin: 20px 0 6px;
}

.prose p,
.prose li {
  color: #3d434d;
  font-size: 15px;
}

.prose ul,
.prose ol {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--text);
}

.prose code {
  background: rgba(20, 23, 28, 0.06);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
  padding: 1px 5px;
}

.log {
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  width: 100%;
}

.log td {
  border-top: 1px solid var(--line);
  padding: 9px 12px 9px 0;
  vertical-align: top;
}

.log tr:first-child td {
  border-top: 0;
}

.log .sha {
  color: var(--accent);
  white-space: nowrap;
  width: 1%;
}

.log .author {
  color: var(--muted);
  white-space: nowrap;
  width: 1%;
}

.devbox {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
}

.devlink {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
}

@media (max-width: 560px) {
  .panel {
    padding: 22px;
  }

  main {
    padding: 24px 16px 60px;
  }

  .log .author {
    display: none;
  }
}

/* ---- The doorway, the writing ------------------------------------------ */

/* The nav sits in the right-hand column alongside the sign-out, muted so it
 * never competes with the mark in the middle. */
.nav {
  align-items: center;
  display: flex;
  font-size: 14px;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Was the sign-out form itself; it is now the group that holds the nav and the
 * sign-out, so they share column three instead of both claiming it. */
.signout {
  align-items: center;
  display: flex;
  gap: 12px;
  margin: 0;
}

/* main is 760px because that is a column of prose. The sign-in page is two
 * columns, so it says so rather than everything else getting wider. */
main.wide {
  max-width: 1040px;
}

/* The doorway is meant to be one screen and it was not: a 62px header, main's
 * 40/80 padding and a 60vh floor on the grid stacked up past the viewport on a
 * laptop, so a page whose content fits comfortably still scrolled.
 *
 * Measured rather than guessed at. The body becomes a column, main takes
 * whatever the header leaves, and the doorway centres inside that -- so the
 * page is exactly one viewport tall whatever height the header happens to be,
 * and scrolls only when the content genuinely does not fit. */
body:has(.doorway) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(.doorway) main {
  align-items: center;
  display: flex;
  flex: 1;
  padding-bottom: 28px;
  padding-top: 28px;
}

.doorway {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr 460px;
  width: 100%;
}

.pitch h1 {
  font-size: 38px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 20px;
}

/* Bullets rather than a paragraph, so each claim is read on its own. The
 * marker is drawn rather than a list-style disc, which sits too high against
 * text this size. */
.claims {
  list-style: none;
  margin: 0;
  max-width: 32em;
  padding: 0;
}

.claims li {
  font-size: 17px;
  padding-left: 22px;
  position: relative;
}

.claims li + li {
  margin-top: 14px;
}

.claims li::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 2px;
  position: absolute;
  top: 0.62em;
  width: 6px;
}

/* The panel centres itself inside 460px of main; here it is already in its own
 * 460px column and the auto margins would do nothing but confuse the grid. */
.doorway .panel {
  margin-bottom: 0;
  width: 100%;
}

@media (max-width: 900px) {
  /* Stacked, the two columns are genuinely taller than a phone screen, so the
   * page goes back to being an ordinary scrolling one. */
  body:has(.doorway) main {
    align-items: start;
    padding-top: 40px;
  }

  .doorway {
    gap: 34px;
    grid-template-columns: 1fr;
  }

  .pitch h1 {
    font-size: 30px;
  }

  /* Stacked, the pitch reads as the page's heading and the form follows it,
   * which is the right order on a phone anyway. */
  .doorway .panel {
    margin-left: auto;
    margin-right: auto;
    max-width: 460px;
  }
}

.writing .lede {
  margin-bottom: 34px;
}

.posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.posts li + li {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
}

.posts a {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.posts a:hover {
  text-decoration: underline;
}

.posts .fine {
  margin: 6px 0 0;
  max-width: 46em;
}

.post h1 {
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 26px;
}

/* .prose is shaped for the artifact modal -- a rule above it and headings sized
 * to sit inside a small panel. An essay is the page, so it is reset here rather
 * than the modal being loosened. */
.post .prose {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.post .prose p {
  margin: 0 0 20px;
  max-width: 34em;
}

.post .prose h1,
.post .prose h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 34px 0 12px;
}

.post .prose strong {
  font-weight: 600;
}

.post .prose em {
  color: var(--muted);
}

.post-end {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 44px;
  padding-top: 26px;
}

.post-end .go {
  font-weight: 600;
  margin-left: auto;
}

/* Signed in, the right-hand column carries the nav, the address and the
 * sign-out. That is too much for a phone, so the nav gives up its second link
 * before anything starts wrapping. */
@media (max-width: 560px) {
  .bar-end {
    gap: 12px;
  }

  .nav {
    gap: 12px;
  }

  .nav a + a {
    display: none;
  }
}

/* The arrow is decoration, so it is hidden from a screen reader -- "left arrow
 * About" is noise when the link already says where it goes. Nudged down a
 * fraction because the glyph sits high in the line box. */
.back span {
  display: inline-block;
  transform: translateY(-0.5px);
  transition: transform 0.12s ease;
}

.back:hover span {
  transform: translateY(-0.5px) translateX(-3px);
}
