
@font-face {
  font-family: "OpenAI Sans";
  src: url("../fonts/OpenAISansVariable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --canvas: #fff;
  --ink: #000;
  --secondary: #666;
  --tertiary: #8f8f8f;
  --line: #e5e7eb;
  --soft: #f1f1f1;
  --card-radius: 6.08px;
  --pill-radius: 9999px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "OpenAI Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 2px solid #8a6048;
  outline-offset: 3px;
}
.site-header, .viewer-header {
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.mark { display: block; width: 24px; height: 24px; }
.mark svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.run-picker { display: inline-flex; align-items: center; gap: 10px; color: var(--secondary); font-size: 12px; font-weight: 500; }
.run-picker select {
  min-width: 220px;
  height: 34px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #000;
  font: 500 13px "OpenAI Sans", sans-serif;
}
.gallery-shell { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 120px; }
.eyebrow { margin: 0; color: var(--secondary); font-size: 13px; font-weight: 500; letter-spacing: .011em; text-transform: uppercase; }
.hero h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.run-summary { display: flex; justify-content: space-between; gap: 24px; margin-top: 20px; color: var(--secondary); font-size: 13px; }
.deck-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 24px; margin-top: 32px; }
.deck-card { min-width: 0; text-decoration: none; }
.thumbnail { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--card-radius); background: var(--soft); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 240ms ease, filter 240ms ease; }
.open-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 9px 13px;
  border-radius: var(--pill-radius);
  background: rgba(255,255,255,.94);
  color: #000;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.deck-card:hover .thumbnail img { transform: scale(1.015); filter: brightness(.94); }
.deck-card:hover .open-label, .deck-card:focus-visible .open-label { opacity: 1; transform: translateY(0); }
.card-meta { margin-top: 16px; color: var(--secondary); font-size: 13px; font-weight: 500; letter-spacing: .011em; text-transform: uppercase; }
.deck-card h2 { margin: 7px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.025em; line-height: 1.16; }
.deck-card p { margin: 10px 0 0; color: var(--secondary); font-size: 14px; line-height: 1.52; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 13px; }
.viewer-page { height: 100vh; height: 100dvh; overflow: hidden; background: #0b0b0b; }
.viewer-header {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 24px;
}
.deck-label, .text-button, .deck-neighbor {
  border: 0;
  background: transparent;
  color: #000;
  font: 500 13px "OpenAI Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.deck-label {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
}
.deck-label span { color: var(--secondary); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.deck-label strong { font-size: 14px; font-weight: 600; }
.viewer-title { min-width: 0; text-align: center; }
.viewer-title span { display: block; color: var(--secondary); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.viewer-title strong { display: block; overflow: hidden; margin-top: 2px; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.viewer-actions { display: flex; justify-self: end; align-items: center; gap: 18px; }
.viewer-actions .run-picker span { display: none; }
.viewer-actions .run-picker select { min-width: 190px; }
.viewer-main { height: calc(100vh - 64px); height: calc(100dvh - 64px); display: grid; grid-template-rows: minmax(0, 1fr) 52px; }
.deck-stage { position: relative; display: grid; min-height: 0; place-items: center; overflow: hidden; background: #0b0b0b; }
.deck-stage iframe { display: block; width: min(100%, calc((100vh - 116px) * 16 / 9)); max-height: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.deck-stage:fullscreen iframe { width: min(100vw, calc(100vh * 16 / 9)); max-height: 100vh; }
.stage-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--pill-radius);
  background: rgba(0,0,0,.56);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, opacity 160ms ease;
}
.stage-arrow:hover { background: rgba(0,0,0,.82); }
.stage-arrow:disabled { opacity: .2; cursor: default; }
.stage-arrow--previous { left: 20px; }
.stage-arrow--next { right: 20px; }
.viewer-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  border-top: 1px solid #292929;
  background: #111;
  color: #fff;
}
.viewer-controls .deck-neighbor, .viewer-controls .text-button { color: #fff; opacity: .72; }
.viewer-controls .deck-neighbor:hover, .viewer-controls .text-button:hover { opacity: 1; }
.slide-position { color: #aaa; font-size: 13px; font-variant-numeric: tabular-nums; }
.viewer-hint { margin: 0; color: #777; font-size: 12px; letter-spacing: .01em; }
.control-actions { display: flex; justify-self: end; align-items: center; gap: 24px; }
.prompt-dialog {
  width: min(780px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 64px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  color: #000;
}
.prompt-dialog::backdrop { background: rgba(0,0,0,.64); backdrop-filter: blur(5px); }
.prompt-dialog__header { display: flex; justify-content: space-between; gap: 24px; padding: 28px 28px 22px; border-bottom: 1px solid var(--line); }
.prompt-dialog__header h2 { margin: 7px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.close-button { align-self: start; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--pill-radius); background: #fff; font-size: 21px; cursor: pointer; }
.prompt-copy { margin: 0; padding: 28px; color: #333; font-size: 15px; line-height: 1.65; white-space: pre-wrap; }
@media (max-width: 1000px) {
  .deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .site-header { padding: 0 16px; }
  .site-header .run-picker span { display: none; }
  .site-header .run-picker select { min-width: 190px; }
  .gallery-shell { width: calc(100% - 32px); padding: 48px 0 80px; }
  .hero h1 { font-size: 36px; }
  .deck-grid { grid-template-columns: 1fr; gap: 52px; margin-top: 40px; }
  .site-footer { flex-direction: column; padding: 24px 16px; }
  .viewer-header { grid-template-columns: 48px minmax(0,1fr) auto; padding: 0 12px; }
  .deck-label { gap: 3px; }
  .deck-label span { font-size: 9px; }
  .deck-label strong { font-size: 12px; }
  .viewer-actions .run-picker select { width: 150px; min-width: 0; }
  .viewer-actions .text-button { font-size: 12px; }
  .stage-arrow { width: 38px; height: 38px; }
  .stage-arrow--previous { left: 8px; }
  .stage-arrow--next { right: 8px; }
  .viewer-controls { padding: 0 12px; }
  .viewer-controls .deck-neighbor { display: none; }
  .viewer-controls { grid-template-columns: 1fr auto; }
  .slide-position { justify-self: start; }
  .viewer-hint { display: none; }
}
