@font-face {
  font-family: "Tenor Sans";
  src: url("/assets/fonts/tenor-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --muted: #666;
  --line: #e5e5e5;
  --panel: #f5f5f5;
  --max: 980px;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 var(--gutter);
  background: #fff;
  color: var(--ink);
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .strip:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 300; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 16px; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; padding: 8px 12px; background: #fff; }

.site-header, main, .site-footer { max-width: var(--max); margin: 0 auto; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 24px;
  padding: 10px 0 14px;
}
.wordmark {
  padding: 6px 0;
  font-family: "Tenor Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: 1px;
}
.wordmark:hover { text-decoration: none; }
.site-header ul { display: flex; gap: 0 56px; }
.site-header nav a { display: block; padding: 12px 0; }
.site-header nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

main { min-height: 62vh; padding-bottom: 56px; }

/* Type */
.page-title { margin: 6px 0 14px; font-size: 22px; line-height: 1.3; }
h2 { margin: 44px 0 10px; font-size: 18px; line-height: 1.35; }
.lede { max-width: 64ch; margin-bottom: 24px; }
.prose { max-width: 66ch; }
.prose h2 { margin-top: 34px; }
.lede a, .prose a, .intro a, .plate-meta a, h2 a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.email:hover { font-style: italic; }

/* Breadcrumb */
.crumbs { margin: -6px 0 2px; color: var(--muted); font-size: 13px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a, .crumbs [aria-current] { display: inline-block; padding: 12px 0; }

/* Home */
.intro { max-width: 720px; margin: 4px 0 20px; }
.intro h1 { margin-bottom: 12px; font-size: 22px; line-height: 1.35; }
.intro p { margin-bottom: 8px; }
.strip {
  display: flex;
  gap: 20px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 6px var(--gutter) 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.strip figure { flex: 0 0 auto; margin: 0; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.strip img { width: auto; max-width: none; height: min(62vh, 620px); }
.strip figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }

/* Tiles */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
.tile { display: block; }
.tile-img { display: block; aspect-ratio: 215 / 160; overflow: hidden; background: var(--panel); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-text { display: grid; place-items: center; width: 100%; height: 100%; padding: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.tile-note { color: var(--muted); }
.tile-label { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; }
.grid-wide { grid-template-columns: minmax(0, 480px); }
.grid-wide .tile-img { aspect-ratio: 16 / 9; }

/* News site cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
.card { display: block; }
.card:hover { text-decoration: none; }
.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-img { display: block; aspect-ratio: 800 / 556; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-title { margin-top: 10px; font-size: 16px; line-height: 1.4; }
.card-text, .card-domain { display: block; font-size: 14px; line-height: 1.5; }
.card-text { color: var(--muted); }
.card-domain { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Series index */
.index { columns: 3 240px; column-gap: 28px; font-size: 15px; }
.index li { display: flex; gap: 10px; padding: 4px 0; break-inside: avoid; }
.index .n { flex: 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.index li > span:not(.n) { color: var(--muted); }
.index .here > span:not(.n) { color: var(--ink); font-weight: 500; }
.plate-more { margin-top: 56px; padding-top: 4px; border-top: 1px solid var(--line); text-align: left; }
.plate-more h2 { margin-top: 26px; }

/* Single plate */
.pager { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 6px; }
.pager a, .pager-gap { display: grid; place-items: center; width: 48px; height: 48px; }
.pager a:hover { color: var(--muted); }
.pager-index svg { fill: currentColor; }
.pager-arrow { fill: none; stroke: currentColor; stroke-width: 1.3; }
.plate { text-align: center; }
.plate figure { margin: 0 0 14px; }
.plate img { width: auto; max-height: min(735px, 82vh); margin: 0 auto; }
.plate h1 { font-size: 16px; line-height: 1.45; }
.plate-caption { margin: 2px 0 0; font-size: 15px; }
.plate-pair { display: flex; justify-content: space-between; gap: 16px; max-width: 720px; margin: 4px auto 0; }
.plate-meta { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.plate-missing {
  display: grid;
  place-items: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  aspect-ratio: 3 / 2;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
}
.plate-missing p { margin: 0; }
.video { position: relative; max-width: var(--max); margin: 0 auto 14px; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video-play img { width: 100%; max-height: none; height: 100%; object-fit: cover; }
.video-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.video-icon { position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(0, 0, 0, 0.65); }
.video-icon::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -14px 0 0 -8px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.video-play:hover .video-icon { background: #000; }

/* Skateboarding gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; align-items: end; }
.gallery figure { margin: 0; }
.gallery img { width: auto; max-height: 570px; margin: 0 auto; }
.gallery figcaption { margin-top: 8px; font-size: 13px; text-align: center; }

/* CV */
.cv h2 { margin: 26px 0 2px; color: var(--muted); font-size: 16px; }
.cv-year { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.cv ul { max-width: 76ch; font-size: 15px; }
.cv li { padding: 1px 0; }
.cv-download { margin-bottom: 6px; font-size: 15px; }
.cv-download a { display: inline-block; padding: 6px 0; color: var(--muted); }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 20px;
  padding: 16px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer p { margin: 0; padding: 6px 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer a { display: inline-block; padding: 6px 0; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .strip img { width: auto; max-width: 88vw; height: auto; max-height: 64vh; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .site-header { padding-top: 6px; }
  .site-header ul { gap: 0 30px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .grid-wide { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .index { columns: 1; }
  .index li { padding: 9px 0; }
  .plate-pair { flex-direction: column; gap: 0; }
}

@media print {
  .site-header nav, .site-footer nav, .pager, .skip { display: none; }
}
