:root {
  --paper: #fbf7f1;           /* warm off-white, a nod to the brief's "warm, relaxing" */
  --ink: #1f1b16;
  --soft: #6b6258;
  --line: #e9e1d5;
  --tint: #f3ece2;
  --accent: #d9620b;          /* satsuma orange, the only accent */
  --accent-soft: #f8e3d1;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Work Sans", system-ui, sans-serif;
  --page: 1000px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #15120f; --ink: #efe9e1; --soft: #a69d92; --line: #2c2620; --tint: #1f1a16;
    --accent: #f08a3a; --accent-soft: #3a2616; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
::selection { background: var(--accent-soft); }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.wrap { max-width: var(--page); margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }

/* Header */
.top { padding-top: 96px; padding-bottom: 40px; }
h1 { font: 600 clamp(44px, 7vw, 76px)/1 var(--serif); margin: 0; letter-spacing: -.02em; }
.role { font: italic 400 clamp(20px, 2.4vw, 25px)/1.3 var(--serif); color: var(--soft); margin: 12px 0 28px; }
.intro { font-size: 19px; line-height: 1.6; max-width: 58ch; margin: 0 0 22px; }
.contact { font-size: 15.5px; color: var(--soft); margin: 0; }
.contact a { color: var(--ink); }

/* Sections: hierarchy from size and space, no rules or boxes */
section { margin-top: 72px; }
#showreel { margin-top: 0; }
h2 { font: 600 30px/1.15 var(--serif); margin: 0 0 22px; letter-spacing: -.01em; }

/* Showreel, wider than the text column */
.reel { margin: 0; }
.reel video { width: 100%; display: block; background: #000; border-radius: 12px; aspect-ratio: 16 / 9; }
.reel figcaption { font-size: 15px; color: var(--soft); margin-top: 10px; }

/* Music */
.tracks { list-style: none; margin: 0 -12px; padding: 0; }
/* Two columns, filled row by row (left, right, left, right...) so the first picks sit at the top */
@media (min-width: 760px) {
  .tracks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
}
.track { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; transition: background .15s; }
.track:hover, .track.playing, .track.paused { background: var(--tint); }
.tplay { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent-soft); cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .15s; }
.tplay span { width: 0; height: 0; border-left: 11px solid var(--accent); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 4px; }
.tplay:hover { transform: scale(1.06); }
.track.playing .tplay { background: var(--accent); }
.track.playing .tplay span { width: 11px; height: 13px; border: 0; margin: 0; border-left: 3.5px solid #fff; border-right: 3.5px solid #fff; }
.tinfo { min-width: 0; }
.ttitle { display: block; font-weight: 500; line-height: 1.35; }
.tgame { display: block; font-size: 14px; color: var(--soft); }
.tblurb { display: block; font-size: 14.5px; margin-top: 3px; max-width: 60ch; }
.tblurb.tags { font: italic 400 15px/1.35 var(--serif); color: var(--soft); margin-top: 2px; }
.tbar { height: 3px; background: var(--line); margin-top: 7px; border-radius: 2px; cursor: pointer; visibility: hidden; }
.track.playing .tbar, .track.paused .tbar { visibility: visible; }
.tbar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; }
.tlen { font-size: 14px; color: var(--soft); font-variant-numeric: tabular-nums; align-self: start; padding-top: 2px; }

/* Sound-design clips (unused for now) */
.videos { display: grid; gap: 28px; }
.video { margin: 0; }
.video video { width: 100%; display: block; background: #000; border-radius: 12px; aspect-ratio: 16 / 9; }
.video figcaption { font-size: 15px; color: var(--soft); margin-top: 8px; }
.video figcaption b { color: var(--ink); font-weight: 500; }

/* Credits: the game art does the visual work */
.credits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px 22px; }
@media (max-width: 900px) { .credits { grid-template-columns: repeat(4, 1fr); } }
.credits li { min-width: 0; }
.credits img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18%; display: block; margin-bottom: 11px; box-shadow: 0 1px 2px rgb(60 40 20 / .08); transition: transform .2s; }
.credits li:hover img { transform: translateY(-3px); }
.credits b { display: block; font-weight: 500; line-height: 1.3; }
.credits span { display: block; font-size: 14px; line-height: 1.4; color: var(--soft); margin-top: 2px; }

.foot { padding-top: 80px; padding-bottom: 56px; font-size: 14px; color: var(--soft); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top { padding-top: 56px; }
  .intro { font-size: 17.5px; }
  section { margin-top: 52px; }
  h2 { font-size: 26px; }
  .tracks { margin: 0 -8px; }
  .track { padding: 10px 8px; }
  .credits { grid-template-columns: repeat(3, 1fr); gap: 22px 14px; }
  .credits span { font-size: 13px; }
}
