@font-face { font-family: "Archivo"; src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }

:root { --paper: #F3F2EE; --ink: #111312; --ink-2: #55595F; --hair: #D9D8D2;
  --gutter: 48px; --max: 1344px; --ease-ui: cubic-bezier(0.2, 0, 0, 1);
  --sans: "Archivo", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace; }
@media (max-width: 1023px) { :root { --gutter: 32px; } }
@media (max-width: 767px)  { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/24px var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font: 500 12px/16px var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; }

.top { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 4px 24px;
  font-weight: 500; font-size: 14px; line-height: 20px; }
.who { margin: 0; }
.who a { position: relative; text-decoration: underline; text-decoration-color: var(--ink-2); text-underline-offset: 4px; }
.who a::after { content: ""; position: absolute; inset: 50% 0 auto; height: 44px; transform: translateY(-50%); }   /* a 44 px target; the focus ring stays on the name */
.who a:hover { text-decoration-color: var(--ink); }
.role { font-weight: 400; color: var(--ink-2); white-space: nowrap; }   /* at 320 the title drops whole to its own line */
.top-links { display: flex; gap: 24px; }
.out, .foot a { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; white-space: nowrap; }
.out:hover { text-decoration: underline; text-underline-offset: 4px; }

.intro { padding-top: 96px; }
h1 { margin: 0; font: 500 64px/64px var(--sans); font-stretch: 125%; letter-spacing: -0.02em; }
.sub { margin: 24px 0 0; max-width: 44ch; font-size: 18px; line-height: 28px; color: var(--ink-2); text-wrap: balance; }

.demos { list-style: none; margin: 72px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 72px 32px; }
.demo--lead { grid-column: 1 / -1; }
.card { display: block; border-radius: 2px; }
.card:focus-visible { outline-offset: 12px; }
.preview { aspect-ratio: 16 / 10; border: 1px solid var(--hair); border-radius: 2px;
  overflow: hidden; background: #05070A; }
.preview video { width: 100%; height: 100%; object-fit: cover; }
.row { margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto;
  align-items: baseline; gap: 16px; }
.idx, .year, .tags, .next { color: var(--ink-2); }
.title { margin: 0; font: 500 28px/32px var(--sans); font-stretch: 125%; letter-spacing: -0.01em; }
.arrow { display: inline-block; transition: transform 120ms var(--ease-ui); }
.card:hover .arrow, .card:focus-visible .arrow { transform: translateX(4px); }
.line { margin: 8px 0 0; color: var(--ink-2); max-width: 90ch; text-wrap: pretty; }
.tags { margin: 12px 0 0; font-size: 14px; line-height: 20px; }
.next { margin: 72px 0 0; }

.foot { margin-top: 96px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 32px; border-top: 1px solid var(--hair); font-size: 14px; line-height: 20px;
  color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* Lead card: preview and meta side by side so the title shows on the first screen. */
@media (min-width: 1024px) {
  .intro { padding-top: 64px; }
  .demos { margin-top: 56px; }
  .demo--lead .card { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
  .demo--lead .row { margin-top: 0; }
}
@media (max-width: 1023px) {
  h1 { font-size: 48px; line-height: 48px; }
  .demos { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  /* Phone: name and title first, the three links on their own row with 44 px targets. */
  .top { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; }   /* 12: the name's target ends where the links' begin */
  .top-links { gap: 20px; margin-left: 0; }
  .top-links .out { min-height: 44px; }
  h1 { font-size: 36px; line-height: 38px; }
  .intro { padding-top: 64px; }
  .sub { font-size: 16px; line-height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .arrow { transition: none; } }
