/* Schibsted Grotesk and Instrument Sans (both OFL), served from here.

   Ours, not Google's -- see `partials/head.html`. Shared by `/v2.css` (the
   home, start and code pages) and `/site.css` (every other page, through
   `theme.css`), so the faces are declared once. */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/static/fonts/schibsted-grotesk-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/static/fonts/schibsted-grotesk-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/static/fonts/schibsted-grotesk-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/static/fonts/schibsted-grotesk-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/static/fonts/schibsted-grotesk-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/static/fonts/schibsted-grotesk-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-600.woff2") format("woff2"); }

/* The new design (owner: "iets te nerdie" about the one before it).

   ONE FILE, SERVED AS /v2.css, AND NOT A PART OF `stylesheet.ORDER`. The old
   pages keep their own cascade untouched while this one is looked at on its
   preview address; nothing here can reach them and nothing there reaches
   here.

   The fonts are ours (static/fonts/), for the reason `partials/head.html`
   gives: a visitor's address does not go to a third country to draw a
   headline. */

:root {
  --ink: #0E1116;
  --panel: #151A21;
  --line: #222A33;
  --line-strong: #3A4654;
  --text: #E9EDF2;
  --text-soft: #C7D0DA;
  --muted: #AEB8C4;
  --faint: #8E9AA8;
  --accent: #7FE0EC;
  --bad: #FF9B8A;
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --wide: 1160px;
  --gutter: 32px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--text); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.v2-skip {
  position: absolute; left: 16px; top: -64px; z-index: 10;
  background: var(--accent); color: var(--ink); font-weight: 600;
  padding: 12px 18px; border-radius: 8px; text-decoration: none;
}
.v2-skip:focus { top: 16px; color: var(--ink); }

.v2-wrap { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.v2-band { border-top: 1px solid var(--line); }
.v2-band > .v2-wrap { padding-top: 96px; padding-bottom: 96px; }
.v2-stack { display: flex; flex-direction: column; gap: 48px; }

.v2-display { font-family: var(--display); font-weight: 600; }
.v2-eyebrow {
  color: var(--accent); font-weight: 600; font-size: 15px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.v2-h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.015em;
}
.v2-lede { color: var(--muted); font-size: 19px; }
.v2-intro { display: flex; flex-direction: column; gap: 16px; max-width: 60ch; }

.v2-btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--ink); border: 0; border-radius: 8px;
  font: inherit; font-weight: 600; padding: 12px 22px;
}
.v2-btn:hover { color: var(--ink); background: #A5ECF4; }
.v2-btn-lg { font-size: 18px; padding: 16px 28px; min-height: 52px; }

/* ── header ─────────────────────────────────────────────────────────────── */
.v2-header {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px 32px;
  padding-top: 28px; padding-bottom: 28px;
}
.v2-mark {
  font-family: var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: 0.14em; text-decoration: none; color: var(--text);
}
.v2-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.v2-nav > a:not(.v2-btn) { text-decoration: none; color: var(--muted); padding: 10px 0; }
.v2-nav > a:not(.v2-btn):hover { color: var(--accent); }
.v2-langs { display: flex; gap: 4px; font-size: 15px; letter-spacing: 0.04em; }
.v2-langs a { color: var(--faint); text-decoration: none; padding: 10px 6px; }
.v2-langs a[aria-current="true"] { color: var(--text); font-weight: 600; }
.v2-langs a:hover { color: var(--accent); }

/* ── hero ───────────────────────────────────────────────────────────────── */
.v2-hero { display: flex; flex-direction: column; gap: 32px; padding-top: 96px; padding-bottom: 112px; }
.v2-hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(44px, 6.4vw, 88px); line-height: 1.04;
  letter-spacing: -0.02em; max-width: 15ch;
}
.v2-hero-lede { max-width: 62ch; font-size: 21px; line-height: 1.55; color: var(--text-soft); }
.v2-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; color: var(--muted); }

/* ── what I build ───────────────────────────────────────────────────────── */
.v2-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.v2-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
}
.v2-card h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; }
.v2-card p { color: var(--muted); }

/* ── work that is live ──────────────────────────────────────────────────── */
.v2-work { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.v2-work article { display: flex; flex-direction: column; gap: 20px; }
.v2-shot {
  aspect-ratio: 16 / 10; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; display: flex; align-items: center;
  justify-content: center; text-decoration: none;
}
.v2-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.v2-shot span { font-family: var(--display); font-weight: 600; font-size: 34px; color: var(--line-strong); letter-spacing: -0.01em; }
.v2-work-text { display: flex; flex-direction: column; gap: 10px; }
.v2-work-text h3 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; }
.v2-work-text p { color: var(--muted); }
.v2-link {
  align-self: flex-start; padding: 10px 0; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-underline-offset: 5px;
}

/* ── one point of contact ───────────────────────────────────────────────── */
.v2-about { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; }
.v2-about > h2 { flex: 1 1 280px; }
.v2-about > div {
  flex: 2 1 420px; display: flex; flex-direction: column; gap: 20px;
  max-width: 62ch; font-size: 19px; color: var(--text-soft);
}

/* ── closing band ───────────────────────────────────────────────────────── */
.v2-close { background: var(--panel); }
.v2-close > .v2-wrap {
  padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 32px 48px;
}
.v2-close-text { display: flex; flex-direction: column; gap: 12px; max-width: 46ch; }
.v2-close-text h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.v2-footer > .v2-wrap {
  padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 24px 48px; color: var(--muted); font-size: 16px;
}
.v2-footer-id { display: flex; flex-direction: column; gap: 8px; }
.v2-footer-id .v2-mark { font-size: 17px; }
.v2-footer nav { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; }
.v2-footer nav a { color: var(--muted); padding: 10px 0; }
.v2-footer nav a:hover { color: var(--accent); }

/* ── the start page ─────────────────────────────────────────────────────── */
.v2-start {
  display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: flex-start;
  padding-top: 56px; padding-bottom: 96px;
}
.v2-start-form { flex: 1 1 420px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.v2-start-head { display: flex; flex-direction: column; gap: 14px; }
.v2-start-head h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.015em;
}
.v2-start-head .v2-lede { max-width: 52ch; }
.v2-form {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
}
.v2-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.v2-field label { font-weight: 500; }
.v2-field label span { color: var(--faint); font-weight: 400; }
.v2-field input {
  font: inherit; color: var(--text); background: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 13px 14px; min-height: 48px; width: 100%;
}
.v2-field input:focus-visible { outline-offset: 1px; }
.v2-field input.is-bad { border-color: var(--bad); }
.v2-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; align-items: end; }
.v2-hint { color: var(--faint); font-size: 15px; }
.v2-error { color: var(--bad); font-size: 15px; }
.v2-form .v2-btn { align-self: flex-start; }
/* The field no person sees (`intake/gate.py`): off the page, not hidden —
   the scripts that fill forms skip what is `display: none`. */
.v2-extra { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.v2-steps { flex: 1 1 360px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.v2-steps h2 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.15; }
.v2-steps li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.v2-steps li:last-child { border-bottom: 1px solid var(--line); }
.v2-steps li > span {
  flex: 0 0 auto; min-width: 28px; font-family: var(--display);
  font-weight: 600; color: var(--accent); font-size: 20px;
}
.v2-steps li > div { display: flex; flex-direction: column; gap: 6px; }
.v2-steps h3 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; }
.v2-steps p { color: var(--muted); }

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .v2-band > .v2-wrap { padding-top: 64px; padding-bottom: 64px; }
  .v2-hero { padding-top: 56px; padding-bottom: 72px; }
  .v2-hero-lede { font-size: 19px; }
  .v2-card, .v2-form { padding: 24px; }
  .v2-nav { gap: 4px 20px; }
}

/* ── the code page ──────────────────────────────────────────────────────── */
.v2-narrow { flex: 0 1 560px; margin: 0 auto; }
.v2-field input.v2-code { font-size: 24px; letter-spacing: 0.3em; max-width: 12ch; }
.v2-ways-out { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.v2-textbtn {
  font: inherit; background: none; border: 0; padding: 10px 0; cursor: pointer;
  color: var(--muted); text-decoration: underline; text-underline-offset: 5px;
}
.v2-textbtn:hover { color: var(--accent); }
