/* THE SHOWCASE PAGE (design/showcase/index.html) - the page's own look, never a design: every face on it is a frame of the
   real shells, dressed by its launch code's design. The gallery's palette (design/starters/index.html), so the two read as
   one place. Fits a 375 px phone with a 16 px gutter. */
:root {
  color-scheme: light;
  --ink: #1f2328;
  --muted: #57606a;
  --line: #d0d7de;
  --paper: #ffffff;
  --wash: #f6f8fa;
  --accent: #0969da;
  --accent-ink: #ffffff;
  --note: #fff8c5;
  --note-line: #e3c35a;
  --note-ink: #3b2f00;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

html, body { margin: 0; background: var(--wash); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

a { color: var(--accent); }

.top { background: var(--paper); border-bottom: 1px solid var(--line); padding: 32px 0 24px; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
h1 { margin: 0 0 10px; font-size: 34px; line-height: 1.15; letter-spacing: -.01em; }
.lede { margin: 0 0 12px; max-width: 780px; font-size: 18px; }
.note { margin: 0 0 12px; max-width: 780px; background: var(--note); border: 1px solid var(--note-line); border-radius: 8px; padding: 10px 14px; color: var(--note-ink); }
.runs { margin: 0 0 12px; padding-left: 20px; max-width: 780px; }
.runs li { margin: 2px 0; }
.small { margin: 0 0 12px; max-width: 780px; color: var(--muted); font-size: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0 0 12px; }
nav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
nav a { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--paper); }
nav a:hover, nav a:focus-visible { border-color: var(--accent); color: var(--accent); }

main { padding-top: 8px; padding-bottom: 48px; }

.look { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 24px; scroll-margin-top: 12px; }
.look.live { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.look-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.look-head h2 { margin: 0 0 4px; font-size: 26px; }
.essence { margin: 0; max-width: 760px; }

button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.start-both, .start { border: 0; border-radius: 999px; padding: 10px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.start-both:focus-visible, .start:focus-visible, .runner-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.faces { display: grid; grid-template-columns: minmax(0, 392px) minmax(0, 400px) minmax(0, 300px); gap: 24px; align-items: start; }
.face { min-width: 0; }
.face h3 { margin: 0 0 8px; font-size: 16px; }
.face-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.face-note.bad { color: #b42318; }

.stage { position: relative; min-height: 200px; }
.stage .poster { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--wash); }
.stage .start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); white-space: nowrap; }
.stage.mounted .poster, .stage.mounted .start { display: none; }

.runner-card { position: relative; display: block; color: inherit; text-decoration: none; }
.runner-card .poster { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--wash); }
.runner-card .open { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 999px; padding: 10px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); white-space: nowrap; }
.runner-card[aria-disabled="true"] { cursor: not-allowed; }
.runner-card[aria-disabled="true"] .open { opacity: .55; }

@media (max-width: 1180px) {
  .faces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  h1 { font-size: 28px; }
  .lede { font-size: 17px; }
  .look { padding: 16px; }
  .faces { grid-template-columns: minmax(0, 1fr); }
  .face { max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
