/* Relay website. Early-2000s minimal: white paper, black ink, 1px black rules, square corners,
   Times New Roman for text, Courier for labels. No shadows, gradients or rounded corners. */
:root {
  --ink: #000;
  --paper: #fff;
  --muted: #555;
  --rule: 1px solid var(--ink);
  --serif: "Times New Roman", Times, "Liberation Serif", serif;
  --mono: "Courier New", Courier, "Liberation Mono", monospace;
  --page: 1180px;
  --gutter: 40px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 19px/1.45 var(--serif);
}
a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img { display: block; max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: 0.82em; }
h1, h2, h3 { font-weight: normal; margin: 0; }
h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.5px; }
h2 { font-size: 34px; line-height: 1.15; }
h3 { font-size: 22px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); border: var(--rule); padding: 4px 8px; z-index: 10; }

/* ---------- page frame ---------- */
.frame { max-width: var(--page); margin: 0 auto 40px; border-left: var(--rule); border-right: var(--rule); border-bottom: var(--rule); }

.top { display: flex; align-items: stretch; border-bottom: var(--rule); border-top: var(--rule); min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-right: var(--rule); text-decoration: none; font-size: 30px; }
.top nav { display: flex; margin-left: auto; }
.top nav a { display: flex; align-items: center; padding: 0 16px; border-left: var(--rule); text-decoration: none; font-size: 17px; }
.top nav a:hover, .top nav a[aria-current="page"] { text-decoration: underline; }
.top nav a.cta { background: var(--ink); color: var(--paper); }

section { border-bottom: var(--rule); padding: 40px var(--gutter); }
section:last-of-type { border-bottom: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 22px; }
.section-head .label { font: 13px/1 var(--mono); border: var(--rule); padding: 3px 6px; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 40px; align-items: start; }
.kicker { display: inline-block; font: 13px/1.3 var(--mono); border: var(--rule); padding: 3px 8px; margin-bottom: 14px; }
.lede { font-size: 21px; line-height: 1.4; margin: 22px 0 24px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: var(--rule); text-decoration: none; font: 18px var(--serif); background: var(--paper); color: var(--ink); cursor: pointer; }
.btn:hover { text-decoration: underline; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn .os { font: 12px var(--mono); }
.fine { font-size: 15px; color: var(--muted); }

/* ---------- dithered painting ---------- */
.art { margin: 0; border: var(--rule); background: var(--paper); }
.art img { width: 600px; max-width: 100%; height: auto; aspect-ratio: 3 / 2; border-bottom: var(--rule); image-rendering: pixelated; }
.art figcaption { padding: 7px 9px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.art figcaption cite { font-style: italic; color: var(--ink); }

/* ---------- app window (example data) ---------- */
.window { border: var(--rule); }
.window-bar { display: flex; align-items: center; gap: 6px; border-bottom: var(--rule); padding: 3px 6px 3px 10px; font: 13px var(--mono); }
.window-bar .title { margin-right: auto; }
.window-bar .ctl { width: 15px; height: 15px; border: var(--rule); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; }
.window-bar .example { font-style: italic; border: var(--rule); padding: 0 5px; margin-left: 4px; }
.window-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.sidebar { border-right: var(--rule); padding: 10px 12px; }
.sidebar .name { font-size: 30px; margin-bottom: 8px; }
.sidebar .new { font-size: 15px; border: var(--rule); padding: 3px 10px; display: inline-block; margin-bottom: 12px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; border-top: var(--rule); font-size: 16px; }
.sidebar li { padding: 5px 0; border-bottom: 1px solid #bbb; }
.sidebar li.on { font-weight: bold; }
.tabs { display: flex; border-bottom: var(--rule); }
.tabs span { padding: 5px 12px; border-right: var(--rule); font-size: 16px; }
.tabs span.on { background: var(--ink); color: var(--paper); }
.agents { padding: 12px; }
.agents .count { font-size: 16px; margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { border: 2px solid var(--ink); padding: 8px 11px; font-size: 15px; line-height: 1.35; }
.card .row { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; }
.card .who { color: var(--muted); font-size: 13px; }
.card .num { color: var(--muted); font-size: 13px; }
.card.queued { border-style: dashed; border-width: 1px; }
.card.queued .row span:last-child { font-style: italic; }

/* ---------- steps and boxes ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: var(--rule); }
.steps li { padding: 14px 14px 16px; border-right: var(--rule); }
.steps li:last-child { border-right: 0; }
.steps .n { font: 13px var(--mono); border: var(--rule); padding: 1px 6px; display: inline-block; margin-bottom: 10px; }
.steps h3 { margin-bottom: 6px; }
.steps p { font-size: 16px; margin: 0; }

.boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: var(--rule); }
.boxes > div { padding: 16px 18px; border-right: var(--rule); }
.boxes > div:last-child { border-right: 0; }
.boxes h3 { margin-bottom: 8px; }
.boxes p { font-size: 17px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 40px; align-items: start; }

/* receipts table */
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { border: var(--rule); padding: 6px 9px; text-align: left; vertical-align: top; }
th { font-weight: normal; font-family: var(--mono); font-size: 13px; }
td.num, th.num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* ---------- setup page ---------- */
.steps-list { margin: 0; padding-left: 26px; }
.steps-list li { margin-bottom: 14px; }
pre { margin: 8px 0 0; border: var(--rule); padding: 10px 12px; overflow-x: auto; font: 14px/1.45 var(--mono); background: var(--paper); }
.box { border: var(--rule); padding: 16px 18px; }
.box + .box { margin-top: 16px; }
.note { border: var(--rule); border-left-width: 6px; padding: 10px 14px; font-size: 16px; }

/* waitlist */
.waitlist form { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 10px; }
.waitlist input { font: 18px var(--serif); border: var(--rule); padding: 7px 10px; min-width: 260px; background: var(--paper); color: var(--ink); border-radius: 0; }
.waitlist input:disabled, .btn:disabled { color: var(--muted); border-color: var(--muted); cursor: not-allowed; text-decoration: none; }
.btn.solid:disabled { background: var(--muted); color: var(--paper); }

/* ---------- footer ---------- */
footer { border-top: var(--rule); padding: 18px var(--gutter) 26px; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--muted); }
footer .grow { margin-right: auto; }

/* ---------- narrow screens ---------- */
@media (max-width: 1100px) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); }
  .art { max-width: 600px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { border-right: 0; border-bottom: var(--rule); }
  .steps li:last-child { border-bottom: 0; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  body { font-size: 18px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .top { flex-wrap: wrap; }
  .brand { border-right: 0; padding: 10px 16px; }
  .top nav { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-top: var(--rule); }
  .top nav a { padding: 9px 14px; border-left: 0; border-right: var(--rule); border-bottom: var(--rule); font-size: 16px; }
  .top nav a:nth-child(2n) { border-right: 0; }
  .top nav a.cta { grid-column: 1 / -1; border-right: 0; border-bottom: 0; justify-content: center; }
  .boxes { grid-template-columns: minmax(0, 1fr); }
  .boxes > div { border-right: 0; border-bottom: var(--rule); }
  .boxes > div:last-child { border-bottom: 0; }
  .window-body { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards .card:nth-child(n+5) { display: none; }
  .cards::after { content: "+ 4 more agents on a wider screen"; font-size: 14px; color: var(--muted); }
  .window-bar { white-space: nowrap; }
  .window-bar .title { overflow: hidden; text-overflow: ellipsis; }
  .window-bar .ctl { display: none; }
  .tabs { overflow-x: auto; }
  .waitlist input { min-width: 0; flex: 1 1 200px; }
}
