@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Literata:opsz,wght@7..72,500;7..72,700&display=swap");

:root {
  --bg: #f1e6d6;
  --ink: #1c2430;
  --mute: #5a6573;
  --clay: #9c3b2e;
  --side: 260px;
  --d: "Literata", Georgia, serif;
  --b: "Atkinson Hyperlegible", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--b);
  line-height: 1.6;
  overflow-x: hidden;
}
body.is-locked, body.nav-open { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 80; background: #fff; padding: 8px; }

.layout {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  padding: 28px 22px;
  border-right: 1px solid rgba(28, 36, 48, 0.16);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: color-mix(in srgb, var(--bg) 88%, #fff);
  overflow: auto;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; flex-shrink: 0; }
.brand b { font-family: var(--d); font-size: 1.05rem; line-height: 1.15; display: block; }
.brand small { display: block; color: var(--mute); font-size: 0.75rem; }
nav.stack { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
nav.stack a { padding: 4px 0; }
nav.stack a[aria-current="page"] { color: var(--clay); }
.side-end { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.side .acts { display: flex; flex-direction: column; gap: 8px; }
.player-name { font-family: var(--d); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 12px; border: 1px solid var(--ink);
  background: transparent; font: inherit; cursor: pointer;
}
.btn-fill { background: var(--clay); color: #f1e6d6; border-color: var(--clay); }

.work { min-width: 0; }

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(56vh, 520px);
  border-bottom: 1px solid rgba(28, 36, 48, 0.16);
}
.band.flip .shot { order: 2; }
.band.flip .copy { order: 1; }
.band .shot {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 520px;
  object-fit: cover;
}
.copy {
  padding: 48px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.num { color: var(--clay); font-family: var(--d); font-size: 2.2rem; margin: 0 0 8px; }
h1, h2 { font-family: var(--d); line-height: 1.1; margin: 0 0 0.45em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.mute { color: var(--mute); max-width: 36ch; }

.base { padding: 40px 6vw 50px; font-size: 0.88rem; color: var(--mute); }
.base nav { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 10px 0; }
.age {
  display: inline-flex; width: 28px; height: 28px; border: 1px solid var(--ink);
  align-items: center; justify-content: center; font-weight: 800; margin-right: 6px; font-size: 0.75rem;
}
.burger {
  display: none; border: 1px solid var(--ink); background: transparent;
  width: 40px; height: 40px; cursor: pointer; flex-shrink: 0; align-items: center; justify-content: center;
}

.overlay {
  position: fixed; inset: 0; background: rgba(28, 36, 48, 0.4);
  display: none; align-items: center; justify-content: center; z-index: 70; padding: 20px;
}
.overlay.is-open { display: flex; }
.modal, .age-box {
  width: min(430px, 100%); background: #f8efe4; border: 1px solid var(--ink); padding: 22px; position: relative;
}
.close-x {
  position: absolute; right: 10px; top: 10px; width: 34px; height: 34px;
  border: 1px solid var(--ink); background: transparent; cursor: pointer;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 36px 14px 0; border: 1px solid var(--ink); }
.tabs button { border: 0; background: transparent; min-height: 38px; font: inherit; font-weight: 700; cursor: pointer; }
.tabs button.is-on { background: var(--clay); color: #f1e6d6; }
.field { display: grid; gap: 6px; margin-bottom: 10px; }
.field span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.field input { min-height: 42px; border: 1px solid var(--ink); background: #fff; padding: 0 10px; font: inherit; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.marks { display: flex; gap: 6px; margin: 8px 0; }
.mark { width: 36px; height: 36px; border: 1px solid var(--ink); background: #fff; cursor: pointer; font-weight: 800; }
.mark:has(input:checked) { background: var(--clay); color: #fff; border-color: var(--clay); }
.mark input { display: none; }
.consent { display: flex; gap: 8px; font-size: 0.88rem; }
.auth-error { color: var(--clay); font-size: 0.86rem; }
.switch-line { margin-top: 12px; text-align: center; }
.switch-line button { background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.cookie-bar {
  position: fixed; left: calc(var(--side) + 16px); right: 16px; bottom: 16px; z-index: 60;
  background: #f8efe4; border: 1px solid var(--ink); padding: 12px 14px;
  display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap;
}
.prose { padding: 8vh 8vw 12vh; max-width: 68ch; }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side {
    height: auto;
    position: sticky;
    top: 0;
    z-index: 40;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(28, 36, 48, 0.16);
  }
  .brand { flex: 1; min-width: 0; }
  .burger { display: inline-flex; }
  nav.stack { display: none; flex-basis: 100%; padding-top: 8px; }
  nav.stack.is-open { display: flex; }
  .side-end { margin-top: 0; margin-left: auto; }
  .side .acts { flex-direction: row; flex-wrap: wrap; }
  .band, .band.flip { grid-template-columns: 1fr; min-height: 0; }
  .band.flip .shot, .band.flip .copy { order: 0; }
  .band .shot { min-height: 200px; max-height: 240px; }
  .copy { padding: 28px 20px 36px; }
  .cookie-bar { left: 12px; }
}
@media (max-width: 480px) {
  .side .acts [data-open-auth="login"] { display: none; }
  .brand small { display: none; }
  .brand b { font-size: 0.92rem; }
}
