:root {
  color-scheme: light;
  --ink: #102d2a;
  --paper: #fff9e9;
  --cream: #f5e5bc;
  --gold: #d49a43;
  --leaf: #496d54;
  --mist: #e8efe7;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 45, 42, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -10%, rgba(212, 154, 67, 0.25), transparent 30rem),
    linear-gradient(180deg, #f8edce 0, var(--paper) 28rem, #f4f0e4 100%);
  font-family: ui-rounded, "Nunito Sans", "Avenir Next", system-ui, sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }

button { touch-action: manipulation; }

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 34px;
  text-align: center;
}

.eyebrow, .kicker {
  margin: 0 0 8px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 8vw, 5.25rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
}

.intro {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.resume-card, .player-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(16, 45, 42, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.resume-card { margin-bottom: 20px; }

.resume-card img, .player-art-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  border-radius: 19px;
  object-fit: cover;
  background: var(--mist);
}

.is-hidden { display: none !important; }

.start-panel { margin: 20px 0; }

.button {
  min-height: 52px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.button-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(16, 45, 42, 0.2);
}

.button-primary:hover { background: #17423d; }
.button-primary:focus-visible, .play-toggle:focus-visible, .scene-button:focus-visible, input:focus-visible {
  outline: 4px solid rgba(212, 154, 67, 0.55);
  outline-offset: 3px;
}

.button-wide { width: 100%; }
.muted, .status { color: #5e6d68; }

.player-panel { margin: 20px 0 54px; }

.controls {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
}

.play-toggle {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--gold);
  cursor: pointer;
  font-size: 1.25rem;
}

.timeline-wrap { flex: 1; min-width: 0; }

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.status { min-height: 1.5em; margin: 12px 0 0; }

.section-heading { max-width: 620px; margin-bottom: 22px; }

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scene-button {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(16, 45, 42, 0.1);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 24px rgba(16, 45, 42, 0.08);
}

.scene-button img {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  background: var(--mist);
}

.scene-button span {
  display: block;
  padding: 14px 16px 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.scene-button:hover { transform: translateY(-2px); }

footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 54px 20px 34px;
  color: #5e6d68;
  font-size: 0.9rem;
}

footer a { color: inherit; }

@media (max-width: 720px) {
  .hero { padding-top: 48px; }
  .resume-card, .player-panel { grid-template-columns: 1fr; padding: 18px; border-radius: 22px; }
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 420px) {
  .shell { width: min(100% - 20px, 1040px); }
  .scene-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-button:hover { transform: none; }
}
