:root {
  --paper: #f7f1e8;
  --surface: #fffaf3;
  --sand: #e9ddcf;
  --line: #cfc2b2;
  --muted: #6f6257;
  --ink: #181411;
  --copper: #a56a43;
  --copper-strong: #8f5935;
  --green: #2f5b56;
  --serif: Spectral, 'Iowan Old Style', Georgia, serif;
  --mono: ui-monospace, 'IBM Plex Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 'Source Sans 3',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
a {
  color: var(--copper-strong);
}
.eyebrow {
  font: 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.caption {
  font: 500 clamp(1.6rem, 3.4vw, 2.6rem) / 1.1 var(--serif);
  letter-spacing: -0.015em;
  margin: 0.3em 0 0;
  max-width: 34ch;
}
.btn {
  font: 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 10px 16px;
  min-height: 40px;
  cursor: pointer;
}
.btn:hover {
  border-color: var(--copper);
}
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--copper-strong);
  outline-offset: 3px;
}

/* full-screen scene */
.stage {
  position: fixed;
  inset: 0;
}
.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hud {
  position: absolute;
  left: clamp(16px, 4vw, 48px);
  right: clamp(16px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.hud.top {
  top: clamp(16px, 3vw, 32px);
  align-items: flex-start;
}
.hud.bottom {
  bottom: clamp(16px, 3vw, 40px);
}

/* gallery */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 32px) 64px;
}
.page h1 {
  font: 500 clamp(2.4rem, 6vw, 4.2rem) / 1.02 var(--serif);
  letter-spacing: -0.02em;
  margin: 0.2em 0 0.25em;
}
.lede {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 40px;
}
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card canvas {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  background: var(--surface);
}
.card .meta {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card h2 {
  font: 500 1.35rem / 1.2 var(--serif);
  letter-spacing: -0.01em;
  margin: 0;
}
.card .row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
