@font-face { font-family: 'Saira Condensed'; font-weight: 400; font-display: swap; src: url(fonts/saira-condensed-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Saira Condensed'; font-weight: 500; font-display: swap; src: url(fonts/saira-condensed-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Saira Condensed'; font-weight: 700; font-display: swap; src: url(fonts/saira-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Saira Condensed'; font-weight: 800; font-display: swap; src: url(fonts/saira-condensed-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cascadia Code'; font-weight: 300; font-display: swap; src: url(fonts/cascadia-code-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cascadia Code'; font-weight: 400; font-display: swap; src: url(fonts/cascadia-code-latin-400-normal.woff2) format('woff2'); }

:root {
  color-scheme: light;
  /* one ruling ink, as printed on the form set */
  --ink: #0a1a5c;
  --ink-hover: #142b86;
  --ink-soft: #3b4a85;
  --carbon: #13236e;
  --paper: #f8f8f6;
  --ground: #ffffff;
  --canary: #f7e986;
  --canary-edge: #e3d26a;
  --pink: #f7b8c8;
  --pink-edge: #e39fb2;
  --lift: 0 calc(var(--u) * 3) calc(var(--u) * 10) rgb(10 26 92 / 0.12);
  --cond: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --mono: 'Cascadia Code', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --u: calc(100vw / 2752);
  --gutter: max(16px, calc(var(--u) * 77));
  --rule: max(2px, calc(var(--u) * 5));
  --rule-heavy: max(3px, calc(var(--u) * 8));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--cond);
  font-weight: 500;
  font-size: clamp(18px, calc(var(--u) * 46), 22px);
  line-height: 1.45;
  overflow-x: hidden;
}
::selection { background: var(--canary); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
code, pre, textarea, input { font-variant-numeric: tabular-nums; }
h1, h2, h3, p { margin: 0; }
html { scrollbar-color: var(--ink-soft) var(--paper); }

.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 8px; }

/* ---------- The form set (first viewport) ---------- */

.set { position: relative; height: calc(var(--u) * 1536); overflow: hidden; }
.sheet { position: absolute; }
.sheet-pink { left: calc(var(--u) * 117); top: calc(var(--u) * 150); right: 0; bottom: 0; background: var(--pink); box-shadow: inset 0 calc(var(--u) * 2) 0 var(--pink-edge); }
.sheet-canary { left: calc(var(--u) * 48); top: calc(var(--u) * 1100); width: calc(var(--u) * 2558); height: calc(var(--u) * 267); background: var(--canary); box-shadow: 0 calc(var(--u) * 2) calc(var(--u) * 6) rgb(10 26 92 / 0.10); }
.sheet-top { left: 0; top: 0; width: calc(var(--u) * 2666); height: calc(var(--u) * 1187); background: var(--paper); box-shadow: var(--lift); }

.strip { position: absolute; inset: 0 auto auto 0; width: calc(var(--u) * 2425); height: calc(var(--u) * 163); border-bottom: var(--rule) solid var(--ink); }
.form-no {
  position: absolute; left: calc(var(--u) * 77); top: calc(var(--u) * 33);
  font-weight: 800; font-size: calc(var(--u) * 95); line-height: 1; letter-spacing: -0.01em;
  text-box: trim-both cap alphabetic;
}
.strip::after { content: ''; position: absolute; left: calc(var(--u) * 299); top: 0; width: var(--rule); height: 100%; background: var(--ink); }
.wordmark {
  position: absolute; left: calc(var(--u) * 344); top: calc(var(--u) * 27);
  font-weight: 700; font-size: calc(var(--u) * 106); line-height: 1; text-decoration: none; letter-spacing: -0.005em;
  text-box: trim-both cap alphabetic;
}
.nav { position: absolute; left: calc(var(--u) * 929); top: calc(var(--u) * 47); width: calc(var(--u) * 1462); display: flex; justify-content: space-between; }
.nav a {
  font-size: calc(var(--u) * 73); line-height: 1; text-decoration: none; font-weight: 400;
  text-box: trim-both cap alphabetic;
  padding-block: calc(var(--u) * 14); margin-block: calc(var(--u) * -14);
}
.nav a:hover { text-decoration: underline; }
.menu-toggle { display: none; }

.headline {
  position: absolute; left: calc(var(--u) * 77); top: calc(var(--u) * 241);
  font-weight: 700; font-size: calc(var(--u) * 162); line-height: 1; letter-spacing: -0.012em; white-space: nowrap;
  text-box: trim-both cap alphabetic;
}

.tagline {
  position: absolute; left: calc(var(--u) * 77); top: calc(var(--u) * 428); max-width: calc(var(--u) * 2300);
  font-weight: 500; font-size: calc(var(--u) * 44); line-height: 1; color: var(--ink-soft);
  text-box: trim-both cap alphabetic;
}

.box { border: var(--rule-heavy) solid var(--ink); background: var(--paper); }
.box-label { display: block; border-bottom: var(--rule) solid var(--ink); font-weight: 500; line-height: 1; }
.entry {
  display: block; width: 100%; border: 0; margin: 0; background: transparent; color: var(--carbon);
  font-family: var(--mono); font-weight: 300; resize: none; caret-color: var(--ink);
}
.entry:focus { outline: none; }
.box:focus-within { outline: 3px solid var(--canary-edge); outline-offset: 4px; }

.prompt { position: absolute; left: calc(var(--u) * 83); top: calc(var(--u) * 520); width: calc(var(--u) * 2299); height: calc(var(--u) * 442); border: 0; background: transparent; }
.prompt::before { content: ''; position: absolute; inset: 0; border: var(--rule-heavy) solid var(--ink); pointer-events: none; }
.prompt .box-label { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--u) * 111); padding: calc(var(--u) * 33) calc(var(--u) * 46) 0; font-size: calc(var(--u) * 73); }
.prompt .entry { position: absolute; left: calc(var(--u) * 46); right: calc(var(--u) * 46); top: calc(var(--u) * 128); bottom: calc(var(--u) * 24); font-size: calc(var(--u) * 56); line-height: 1.5; letter-spacing: 0.01em; }
.prompt .submit { position: absolute; left: 0; top: calc(var(--u) * 488); width: calc(var(--u) * 743); height: calc(var(--u) * 134); font-size: calc(var(--u) * 86); }

.submit {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--cond); font-weight: 700; line-height: 1; letter-spacing: -0.005em;
  transition: background-color 160ms ease-out;
}
.submit:hover { background: var(--ink-hover); }
.submit:active { transform: translateY(1px); }

.stub {
  position: absolute; left: calc(var(--u) * 2425); top: 0; width: calc(var(--u) * 241); height: 100%;
  text-decoration: none; display: flex; align-items: center; justify-content: center;
}
.stub::before, .stub::after { content: ''; position: absolute; top: 0; bottom: 0; width: 0; border-left: var(--rule) dashed var(--ink); }
.stub::before { left: calc(var(--u) * 9); }
.stub::after { left: calc(var(--u) * 52); }
.stub span {
  position: absolute; left: calc(var(--u) * 127); bottom: calc(var(--u) * 58);
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font-size: calc(var(--u) * 62); font-weight: 500; line-height: 1; letter-spacing: -0.005em;
}
.stub:hover span { text-decoration: underline; }

.copy { position: absolute; display: flex; align-items: center; }
.copy-label { font-weight: 700; line-height: 1; white-space: nowrap; }
.copy-entry { flex: 1; min-width: 0; font-family: var(--mono); font-weight: 300; color: var(--carbon); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.copy-server { left: calc(var(--u) * 129); top: calc(var(--u) * 1187); height: calc(var(--u) * 180); right: calc(var(--u) * 186); }
.copy-server .copy-label { font-size: calc(var(--u) * 76); width: calc(var(--u) * 791); }
.copy-server .copy-entry { font-size: calc(var(--u) * 55); letter-spacing: 0; }
.copy-agent { left: calc(var(--u) * 198); top: calc(var(--u) * 1367); height: calc(var(--u) * 169); right: calc(var(--u) * 60); }
.copy-agent .copy-label { font-size: calc(var(--u) * 75); width: calc(var(--u) * 757); }
.copy-agent .copy-entry { font-size: calc(var(--u) * 55); letter-spacing: 0; }
.copy-entry.is-pressing { animation: press 420ms cubic-bezier(.16, 1, .3, 1); }
@keyframes press { from { opacity: 0.35; filter: blur(1.2px); } to { opacity: 1; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .copy-entry.is-pressing { animation: none; } }

/* ---------- Parts below the set ---------- */

main { padding: 0 var(--gutter); }
.part { max-width: 1240px; padding-block: clamp(72px, 9vw, 140px) 0; }
.part-title { font-weight: 700; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -0.012em; max-width: 18ch; text-wrap: balance; }
.lede { margin-top: clamp(18px, 2vw, 28px); max-width: 62ch; color: var(--ink); font-size: clamp(19px, 1.5vw, 23px); }
.note { margin-top: 14px; font-size: 16px; color: var(--ink-soft); max-width: 70ch; }
code.inline { font-family: var(--mono); font-size: 0.82em; font-weight: 400; color: var(--carbon); }

.demo { margin-top: clamp(32px, 4vw, 56px); max-width: 980px; padding-bottom: 20px; }
.demo .box-label { padding: 16px 22px 14px; font-size: clamp(20px, 1.6vw, 26px); }
.demo .entry { padding: 16px 22px; font-size: clamp(20px, 1.8vw, 28px); }
.demo .note { padding: 0 22px; }
.demo-copies { display: grid; border-top: var(--rule) solid var(--ink); }
.demo-copy { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; align-items: center; gap: 16px; padding: 14px 22px; min-height: 64px; }
.demo-browser { background: var(--paper); border-bottom: var(--rule) dashed var(--ink); }
.demo-server { background: var(--canary); }
.demo-copy .copy-label { font-size: clamp(18px, 1.4vw, 22px); }
.demo-copy .copy-entry { white-space: normal; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; }

.ruled { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; border-top: var(--rule-heavy) solid var(--ink); }
.ruled > li { border-bottom: var(--rule) solid var(--ink); }
.starts > li, .licences > li {
  display: grid; grid-template-columns: 44px minmax(160px, 260px) 1fr auto; align-items: baseline; gap: 8px 28px; padding: 26px 0;
}
.tick { width: 26px; height: 26px; border: var(--rule) solid var(--ink); align-self: center; position: relative; }
.ruled h3 { font-weight: 700; font-size: clamp(24px, 2.1vw, 32px); line-height: 1.1; }
.ruled p { max-width: 56ch; }
.row-action { font-weight: 700; white-space: nowrap; padding-block: 10px; }
.row-action::after { content: ''; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.4em; border-top: 0.11em solid currentColor; border-right: 0.11em solid currentColor; transform: translateY(-0.08em) rotate(45deg); }
.row-action:hover { color: var(--ink-hover); }
.is-picked .tick::after { content: ''; position: absolute; left: 6px; top: 1px; width: 8px; height: 15px; border: solid var(--ink); border-width: 0 4px 4px 0; transform: rotate(45deg); }
.is-picked { background: linear-gradient(var(--canary), var(--canary)) no-repeat 0 0 / 100% 100%; margin-inline: calc(var(--gutter) * -0.35); padding-inline: calc(var(--gutter) * 0.35) !important; }

.part-agent { max-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: 0; }
.agent-sheet { background: var(--pink); padding: clamp(48px, 6vw, 96px) var(--gutter); }
.agent-sheet > * { max-width: 1240px; }
.code {
  margin: clamp(28px, 3vw, 44px) 0 0; max-width: 980px; overflow-x: auto;
  background: var(--paper); border: var(--rule-heavy) solid var(--ink); padding: 22px 26px;
  font-family: var(--mono); font-weight: 400; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: var(--carbon);
}
.code-reply { display: block; margin-top: 14px; padding-top: 14px; border-top: var(--rule) dashed var(--ink); color: var(--ink); font-weight: 400; white-space: pre-wrap; }

.packages > li { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: 6px 28px; padding: 18px 0; align-items: baseline; }
.packages code.inline { font-size: 0.9em; }
.pkg-pair { display: inline-flex; flex-wrap: wrap; gap: 0 0.9em; }

.sign { max-width: 1240px; padding-block: clamp(96px, 11vw, 168px) clamp(64px, 7vw, 104px); }
.sign-title { font-weight: 700; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -0.012em; max-width: 16ch; text-wrap: balance; }
.sign-line { margin-top: clamp(32px, 4vw, 48px); padding-top: 22px; border-top: var(--rule-heavy) solid var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; max-width: 980px; }
.sign-line .submit { font-size: clamp(24px, 2.2vw, 34px); padding: 18px 30px; min-height: 56px; }
.text-link { font-weight: 700; padding-block: 10px; }

.foot { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding: 22px var(--gutter) 28px; border-top: var(--rule) dashed var(--ink); color: var(--ink-soft); font-size: 17px; }
.form-no-sm { font-weight: 800; color: var(--ink); }
.foot nav { display: flex; gap: 24px; margin-left: auto; }
.foot a { color: var(--ink); padding-block: 8px; }

/* ---------- Narrow screens: the set stacks, every part still a part ---------- */

@media (max-width: 959px) {
  :root { --u: 1px; --gutter: 16px; --rule: 2px; --rule-heavy: 3px; }
  .set { height: auto; overflow: visible; padding-bottom: 0; }
  .sheet-pink, .sheet-canary { display: none; }
  .sheet-top { position: relative; width: auto; height: auto; box-shadow: none; padding: 0 16px 28px; }
  .strip { position: relative; width: auto; height: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; padding: 12px 0; margin: 0 -16px; padding-inline: 16px; }
  .strip::after { display: none; }
  .form-no { position: static; font-size: 26px; padding-right: 14px; border-right: 2px solid var(--ink); text-box: none; line-height: 1.2; }
  .wordmark { position: static; font-size: 30px; text-box: none; line-height: 1.2; }
  .menu-toggle {
    display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 14px;
    font: 700 19px/1 var(--cond); color: var(--ink); background: transparent; border: 2px solid var(--ink); cursor: pointer;
  }
  .nav { position: static; width: 100%; display: none; flex-direction: column; padding: 8px 0 4px; }
  .nav.is-open { display: flex; }
  .nav a { font-size: 22px; text-box: none; padding: 11px 0; margin: 0; border-top: 1px solid rgb(10 26 92 / 0.25); }
  .headline { position: static; margin-top: 28px; white-space: normal; font-size: clamp(44px, 13vw, 76px); line-height: 0.98; text-box: none; text-wrap: balance; }
  .tagline { position: static; max-width: none; margin-top: 14px; font-size: 18px; line-height: 1.4; text-box: none; }
  .prompt { position: relative; left: auto; top: auto; width: auto; height: auto; margin-top: 22px; }
  .prompt .box-label { position: static; height: auto; padding: 12px 16px 10px; font-size: 21px; }
  .prompt .entry { position: static; padding: 12px 16px 16px; font-size: 17px; min-height: 96px; }
  .prompt .submit { position: relative; top: auto; width: 100%; height: auto; min-height: 56px; font-size: 25px; margin-top: 0; }
  .prompt::before { bottom: 0; }
  .prompt .entry { border-bottom: 0; }
  .stub { position: relative; left: auto; width: auto; height: auto; display: block; margin-top: 22px; padding: 16px 0 0; }
  .stub::before, .stub::after { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 0; border-left: 0; border-top: 2px dashed var(--ink); }
  .stub::after { top: 5px; }
  .stub span { position: static; writing-mode: horizontal-tb; transform: none; margin: 0; font-size: 20px; text-decoration: underline; }
  .copy { position: relative; left: auto; right: auto; top: auto; height: auto; display: block; padding: 14px 16px 16px; }
  .copy-server { background: var(--canary); }
  .copy-agent { background: var(--pink); }
  .copy .copy-label { display: block; width: auto; font-size: 19px; }
  .copy .copy-entry { display: block; margin-top: 6px; font-size: 15px; white-space: normal; line-height: 1.4; }
  .starts > li, .licences > li { grid-template-columns: 34px 1fr; padding: 22px 0; }
  .starts > li p, .licences > li p, .starts .row-action, .licences .row-action { grid-column: 2; }
  .packages > li { grid-template-columns: 1fr; }
  .code { background: linear-gradient(to left, var(--paper) 18px, transparent 48px) right / 48px 100% no-repeat local, linear-gradient(to left, rgb(10 26 92 / 0.18), transparent 14px) right / 14px 100% no-repeat scroll, var(--paper); }
  .demo-copy { grid-template-columns: 1fr; gap: 4px; }
  .foot nav { margin-left: 0; }
}
