:root {
  color-scheme: dark;
  --paper: #161513;
  --surface: #1c1a18;
  --raised: #262421;
  --ink: #efe9de;
  --secondary: #bfb7ab;
  --muted: #a29a8e;
  --line: #efe9de22;
  --accent: #dfb778;
  --control: 8px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 12px; background: var(--surface); transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { width: min(100% - 64px, 1240px); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.wordmark { display: inline-flex; flex: none; align-items: center; gap: 8px; font: 20px/1 var(--serif); white-space: nowrap; }
.wordmark img { width: 32px; height: 32px; }
.wordmark b { font-weight: inherit; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { padding-block: 8px; border-bottom: 1px solid transparent; color: var(--secondary); font-size: 14px; }
nav a:hover, nav a[aria-current] { color: var(--ink); }
nav a[aria-current] { border-color: var(--accent); }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -.048em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.038em; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 14px; font-weight: 500; }
.intro { max-width: 40ch; margin: 16px 0 0; color: var(--secondary); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--control);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
}
.button:hover { background: var(--accent); }
.audition-cta { background: var(--accent); }
.audition-cta:hover { background: #efcc94; }
.site-header .nav-cta {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  color: var(--paper);
  white-space: nowrap;
}
.site-header .nav-cta[aria-current] { border-color: var(--accent); background: var(--raised); color: var(--accent); }
.text-link { display: inline-block; padding-block: 8px; color: var(--secondary); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--ink); }
.inline-link { text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--accent); }
.button, .text-link, nav a, .section-card { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(40px, 7vw, 92px) 32px;
}
.hero-description { max-width: 41ch; margin: 24px 0 0; color: var(--secondary); font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.hero-frame { min-width: 0; margin: 0; }
.hero-frame img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 67% center; border-radius: 12px; }
.hero-frame figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-top: 8px; color: var(--muted); font-size: 12px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 56px; padding: 24px 0; border-block: 1px solid var(--line); }
.fact dt { margin-bottom: 4px; font-size: 14px; }
.fact dd { font: 400 clamp(24px, 3vw, 36px)/1.1 var(--serif); letter-spacing: -.025em; }
.section {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 64px);
  margin: 24px 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.landing-audition { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.landing-audition, .audition-panel { border-left: 3px solid var(--accent); }
.landing-audition .audition-cta { margin-top: 16px; }
.video-steps { margin: 0; padding-left: 24px; }
.video-steps li { padding: 8px 0 8px 4px; }
.video-steps li::marker { color: var(--accent); }
.sample-script { margin-top: 16px; padding: 12px 16px; border-left: 2px solid var(--accent); background: var(--raised); }
.sample-script p { margin: 0; }
.sample-script p:first-child { margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.install-panel { scroll-margin-top: 16px; }
.store-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.store-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.store-button:disabled { opacity: 1; cursor: default; }
.store-button:not(:disabled) { cursor: pointer; }
.store-button:not(:disabled):hover { border-color: var(--accent); background: var(--raised); }
.store-button:focus-visible, .store-dialog button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.store-button svg { width: 28px; color: var(--accent); }
.store-button small { display: block; color: var(--muted); font-size: 12px; }
.store-button strong { display: block; font-size: 18px; font-weight: 600; }
.store-arrow { align-self: start; color: var(--muted); }
.store-button.android-download {
  grid-template-columns: 36px minmax(0, 1fr) 12px;
  gap: 8px;
  border-color: transparent;
  background: var(--accent);
  color: var(--paper);
}
.store-button.android-download:hover { background: #efcc94; }
.android-download .android-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: var(--control); background: var(--paper); }
.android-download svg { width: 24px; }
.android-download small, .android-download .store-arrow { color: var(--paper); }
.android-download strong { font-size: 16px; }
.android-download .store-arrow { align-self: center; }
.store-note { margin: 12px 0 0; color: var(--secondary); font-size: 14px; }
.store-note:not(:target) { display: none; }
.store-dialog {
  width: min(100% - 32px, 460px);
  padding: 24px;
  border: 1px solid var(--accent);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
}
.store-dialog::backdrop { background: #000a; }
.store-dialog h2 { font-size: clamp(26px, 5vw, 34px); }
.store-dialog p { margin: 12px 0 20px; color: var(--secondary); }
.store-dialog form { display: flex; justify-content: flex-end; }
.store-dialog button { border: 0; cursor: pointer; font-family: inherit; }
.contact-email { overflow-wrap: anywhere; }

.section-directory { margin: 56px 0 64px; }
.section-directory h2 { margin-bottom: 16px; }
.section-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.section-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  gap: 4px 12px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.section-card:hover, .section-card:target { border-color: var(--accent); }
.section-card h3 { font-size: 24px; line-height: 1.15; }
.featured-link { border-color: var(--accent); }
.featured-link h3 { color: var(--accent); }
.section-card p { grid-column: 2; margin: 0; color: var(--secondary); font-size: 14px; }
.section-arrow { grid-area: 1 / 3; color: var(--accent); font-size: 18px; }

.edition { display: flex; align-items: center; min-height: 64px; color: var(--muted); font-size: 14px; }
.edition a:hover { color: var(--ink); text-decoration: underline; }
.page-panel { margin-top: 0; }
.page-panel h1 { font-size: clamp(36px, 4.2vw, 56px); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 24px 0 48px; }
.credits { align-self: start; margin: 0; border-top: 1px solid var(--line); }
.credits div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--secondary); }
dd { margin: 0; font-weight: 500; }
dd span { color: var(--secondary); font-weight: 400; }

.audition-list, .chapters { margin: 0; border-top: 1px solid var(--line); }
.audition-list div, details { border-bottom: 1px solid var(--line); }
details:target summary { background: var(--raised); color: var(--accent); }
.audition-list div { position: relative; padding: 12px 0 12px 32px; }
.audition-list svg { position: absolute; top: 16px; left: 0; width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.audition-list dt { color: var(--ink); font-weight: 500; }
.audition-list dd { margin-top: 4px; color: var(--secondary); font-size: 15px; font-weight: 400; }
summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  padding: 16px 8px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary:hover, details[open] summary { background: var(--raised); }
.number { color: var(--muted); font-size: 13px; }
details[open] .number { color: var(--accent); }
summary i { justify-self: center; width: 8px; height: 8px; border: solid var(--muted); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
details[open] summary i { transform: rotate(135deg); }
.detail-copy { padding: 12px 16px 16px 52px; color: var(--secondary); }
.detail-copy p { margin: 0; }
.detail-copy strong { color: var(--ink); font-weight: 600; }
.detail-copy ul { padding-left: 20px; margin: 0; }
.detail-copy p + ul, .detail-copy ul + ul { margin-top: 8px; }
.detail-copy li + li { margin-top: 4px; }

.table-panel { align-self: start; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
thead th, tbody th { font-weight: 500; }
tbody th { width: 50%; }
td { color: var(--secondary); }
td strong { color: var(--ink); font-weight: 600; }

footer { margin-top: auto; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.footer-link, .back { color: var(--muted); font-size: 13px; }
.back { white-space: nowrap; }
.footer-link:hover, .back:hover { color: var(--ink); }

@media (max-width: 800px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { gap: 16px; }
  nav { gap: 16px; }
  .hero { gap: 24px; }
  .hero-description { font-size: 16px; }
  .section { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 12px; }
  nav { flex-wrap: wrap; justify-content: flex-start; gap: 8px 12px; }
  nav a { font-size: 13px; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .wordmark { font-size: 18px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 36px 24px; }
  h1 { font-size: clamp(36px, 9.5vw, 52px); }
  .hero-description { margin-top: 16px; }
  .hero-actions { margin-top: 20px; }
  .hero-frame img { aspect-ratio: 3 / 2; }
  .facts { gap: 12px; margin-bottom: 32px; padding: 16px 0; }
  .fact dt { font-size: 12px; }
  .fact dd { font-size: clamp(18px, 4.4vw, 24px); }
  .section { padding: 20px 16px; }
  .section-directory { margin: 40px 0; }
  .section-links { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .text-link, nav a, .section-card { transition: none; }
}
