/* Base reset */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: a sketchbook. Name across the top, drawings in justified rows like pages on a table,
   then one dark game screen for Limbz, then Owen in his own words. Ink, paper, one orange marker. */
:root {
  --paper: #eeefec;
  --sheet: #f9f9f6;
  --ink: #131415;
  --soft: #5c6063;
  --rule: #c9ccc8;
  --marker: #ff5a1f;        /* the fluorescent orange in his creature drawing */
  --marker-ink: #c23a06;    /* marker tone that reads as text on paper */
  /* Limbz screen: stays dark in both themes, it is a game screen */
  --g-bg: #101216; --g-panel: #181b21; --g-line: #2a2f38; --g-fg: #ecead9; --g-muted: #8f95a3;
  --g-go: #ff8a1f; --g-sky: #4fd3ff; --g-cash: #5ee36a; --g-shadow: #6a3300; --g-black: #000;
  --display: 'Dela Gothic One', 'Arial Black', Impact, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pixel: 'Press Start 2P', 'Courier New', monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131415; --sheet: #1c1e1f; --ink: #eeefec; --soft: #a1a5a6; --rule: #34383a;
    --marker: #ff6a33; --marker-ink: #ff8552; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131415; --sheet: #1c1e1f; --ink: #eeefec; --soft: #a1a5a6; --rule: #34383a;
  --marker: #ff6a33; --marker-ink: #ff8552; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
}
.wrap {
  max-width: 1240px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }

/* top bar */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-block: 20px; border-bottom: 2px solid var(--ink); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.top nav a { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding-block: 4px; }
.top nav a:hover { color: var(--marker-ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* hero */
.hero { padding-block: clamp(28px, 5vw, 56px) clamp(40px, 7vw, 88px); display: grid; gap: clamp(24px, 4vw, 44px); }
h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(46px, 7.6vw, 104px); line-height: 0.95; letter-spacing: -0.01em;
}
h1 span { display: inline-block; }
h1 .dot { color: var(--marker); }
.hero-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.lede { font-size: clamp(21px, 2.3vw, 29px); line-height: 1.28; font-weight: 500; max-width: 22ch; text-wrap: balance; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 15px; border-top: 1px solid var(--rule); padding-top: 16px; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); padding-top: 3px; }
.facts dd { margin: 0; }
.panel { border: 3px solid var(--ink); background: var(--sheet); box-shadow: 10px 10px 0 var(--marker); }
.panel img { display: block; width: 100%; height: auto; }
.panel video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: var(--g-black); }
.hero-reel { display: grid; gap: 22px; min-width: 0; }

/* section heads */
section { padding-block: clamp(40px, 7vw, 88px); border-top: 2px solid var(--ink); }
.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: clamp(20px, 3vw, 36px); }
h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 56px); line-height: 1; }

/* drawings: justified rows, every sheet in a row is the same height */
.rows { display: grid; gap: 16px; }
.row { display: flex; gap: 16px; align-items: stretch; }
.sheet { flex: var(--r) 1 0; min-width: 0; display: grid; gap: 8px; align-content: start; }
.sheet button { all: unset; display: block; cursor: zoom-in; border: 1px solid var(--rule); background: var(--sheet); }
.sheet button:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }
.sheet img { display: block; width: 100%; height: auto; }
.sheet figcaption { font-size: 14px; display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: space-between; }
.sheet figcaption span { font-family: var(--mono); font-size: 12px; color: var(--soft); letter-spacing: 0.04em; }
.pull { flex: 0.9 1 0; min-width: 0; display: grid; align-content: center; gap: 14px; padding: clamp(16px, 3vw, 40px); }
.pull p { font-family: var(--display); text-transform: uppercase; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.12; text-wrap: balance; }
.pull p em { font-style: normal; color: var(--marker-ink); }
@media (prefers-reduced-motion: no-preference) {
  .sheet button { transition: transform .15s ease, box-shadow .15s ease; }
  .sheet button:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
}

/* reel */
.reel { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 4vw, 48px); align-items: end; }
.reel video, .screen video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: var(--g-black); }
.reel .frame { border: 3px solid var(--ink); }
.reel p { max-width: 34ch; }

/* Limbz */
.limbz { background: var(--g-bg); color: var(--g-fg); border-top: 0; }
.limbz .label { color: var(--g-muted); }
.limbz .label b { color: var(--g-cash); font-weight: 500; }
.limbz h2 { font-family: var(--pixel); color: var(--g-go); text-shadow: 4px 4px 0 var(--g-shadow); font-size: clamp(26px, 5vw, 48px); letter-spacing: 0.02em; }
.limbz-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.screen { border: 2px solid var(--g-line); box-shadow: 0 0 0 6px var(--g-panel); background: var(--g-black); }
.hud { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; font-family: var(--mono); font-size: 13px; color: var(--g-muted); padding: 18px 2px 0; }
.hud .now { font-family: var(--pixel); font-size: 12px; color: var(--g-fg); line-height: 1.7; }
.hud .num { font-variant-numeric: tabular-nums; }
.limbz-copy { display: grid; gap: 16px; min-width: 0; font-size: 16px; }
.limbz-copy p { max-width: 40ch; }
.limbz-copy .said { color: var(--g-go); font-weight: 500; font-size: 19px; line-height: 1.35; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.stack li { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--g-line); padding: 5px 9px; color: var(--g-fg); }
.rack { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.clip { all: unset; cursor: pointer; display: grid; gap: 8px; align-content: start; background: var(--g-panel); border: 2px solid var(--g-line); padding: 6px; color: var(--g-fg); }
.clip:hover, .clip:focus-visible { border-color: var(--g-sky); }
.clip[aria-current="true"] { border-color: var(--g-go); box-shadow: 4px 4px 0 var(--g-go); }
.clip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--g-black); }
.clip .t { font-family: var(--pixel); font-size: 8px; line-height: 1.7; }
.clip[aria-current="true"] .t { color: var(--g-go); }
.clip .m { font-family: var(--mono); font-size: 12px; color: var(--g-muted); font-variant-numeric: tabular-nums; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.words { display: grid; gap: 18px; max-width: 60ch; }
.words .big { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.28; font-weight: 500; text-wrap: balance; }
.side { display: grid; gap: 22px; min-width: 0; }
.side dl { display: grid; gap: 14px; margin: 0; }
.side dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.side dd { margin: 2px 0 0; border-bottom: 1px solid var(--rule); padding-bottom: 14px; }

/* field photos */
.field { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.field img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); }
.field .lead { grid-column: span 2; grid-row: span 2; }
.cap { margin-top: 14px; font-size: 14px; color: var(--soft); max-width: 60ch; }

footer { border-top: 2px solid var(--ink); padding-block: 22px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }

/* lightbox */
dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; color: var(--g-fg); }
dialog::backdrop { background: rgba(10, 11, 12, 0.92); }
dialog figure { display: grid; gap: 10px; justify-items: center; }
dialog img { display: block; max-width: 96vw; max-height: 84vh; width: auto; height: auto; }
dialog figcaption { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
dialog button { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--g-fg); color: var(--g-bg); border: 0; padding: 8px 14px; cursor: pointer; }

@media (max-width: 860px) {
  .hero-row, .reel, .limbz-grid, .about { grid-template-columns: minmax(0, 1fr); }
  .panel { box-shadow: 6px 6px 0 var(--marker); margin-right: 6px; }
  .rack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lede { max-width: 26ch; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .row { flex-wrap: wrap; }
  .row .sheet { flex: 1 1 100%; }
  .row .sheet.half { flex: 1 1 calc(50% - 8px); }
  .pull { flex: 1 1 100%; padding: 12px 0; }
  .rack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
