@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,500;6..72,600&family=Source+Sans+3:wght@400;600&display=swap");

:root {
  --bg: #12161c;
  --panel: #1b222c;
  --panel-2: #232c38;
  --ink: #e7edf3;
  --muted: #c5d0db;
  --brass: #b8956a;
  --brass-2: #8c704c;
  --line: rgba(184, 149, 106, 0.45);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brass); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 0.85em; color: var(--muted); }

.sheet { display: grid; grid-template-columns: 92px minmax(0, 1fr); min-height: 100vh; max-width: 100%; }
.folio, .film, .board, .bench, .ring, .meters, .poster { min-width: 0; max-width: 100%; }
.spine {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #0d1116;
  border-right: 1px solid var(--line);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0;
  gap: 18px;
}
.stamp {
  width: 58px;
  height: 58px;
  border: 1px solid var(--brass);
  color: var(--brass);
  text-decoration: none;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 0.9;
  text-align: center;
}
.spine nav { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.spine nav a {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 3px;
}
.spine nav a.is-on { color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--brass);
  background: #161c24;
  cursor: pointer;
  place-items: center;
  align-content: center;
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brass);
}

.poster {
  position: relative;
  min-height: 92vh;
  padding: 8vh 7vw 8vh 5vw;
  display: grid;
  align-content: end;
  background: #0f141b;
}
.poster h1 { max-width: 12ch; position: relative; z-index: 2; }
.poster .slash {
  position: absolute;
  width: min(42vw, 520px);
  height: min(52vh, 460px);
  right: 6vw;
  top: 10vh;
  object-fit: cover;
  z-index: 1;
  filter: saturate(0.75);
}
.lede {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--ink);
}
.row-btns { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hot, .cold {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--brass);
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.04em;
}
.hot { background: var(--brass); color: #12161c; }
.cold { background: transparent; color: var(--brass); }
.hot:hover, .cold:hover { background: #d7c4a1; color: #12161c; }

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  background: var(--panel);
}
.meters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #161c24;
  border-bottom: 1px solid var(--line);
}
.meters article { padding: 26px 22px 20px; border-right: 1px solid var(--line); }
.meters article:last-child { border-right: 0; }
.meters b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 500;
  color: var(--brass);
  line-height: 0.95;
}
.meters span { color: var(--muted); }

.film article { overflow: hidden; }
.film article img { transition: transform 0.8s ease; }
.film article:hover img { transform: scale(1.07); }
.film a { display: inline-block; position: relative; }
.film a::after, .review-card a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.film article:hover a::after, .review-card:hover a::after { transform: scaleX(1); }
.poster { overflow: hidden; }
.poster .slash { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }
.wait { opacity: 0; transform: translateY(20px); }
.show { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
.review-card img, .crew article, .jobs article { transition: transform 0.45s ease, background 0.45s ease; }
.review-card:hover img { transform: scale(1.04); }
table tbody tr { transition: background 0.25s ease; }
table tbody tr:hover { background: rgba(184, 149, 106, 0.08); }
.hot { position: relative; overflow: hidden; }
.hot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-130%);
}
.hot:hover::before { animation: sheen 0.7s ease; }
@keyframes sheen { to { transform: translateX(130%); } }
.stamp { transition: background 0.3s ease, color 0.3s ease; }
.stamp:hover { background: var(--brass); color: #12161c; }
.ticker b {
  display: inline-block;
  font-weight: 400;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--brass);
  padding: 14px 0;
  animation: slide 48s linear infinite;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.film-label { margin: 42px 0 14px 6vw; }
.film {
  display: flex;
  overflow-x: auto;
  background: #0d1116;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-snap-type: x mandatory;
  max-width: 100%;
}
.film article {
  flex: 0 0 min(78vw, 420px);
  scroll-snap-align: start;
  border-right: 1px solid var(--line);
}
.film img { width: 100%; height: 230px; object-fit: cover; filter: saturate(0.8); }
.film div { padding: 16px 18px 20px; }
.film h3 { margin-bottom: 0.3em; }
.film a { font-weight: 600; }

.bench {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
  margin: 56px 6vw 20px;
}
.bench img { width: 100%; height: 420px; object-fit: cover; }
.bench form {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px 26px 16px;
}
.bench label { display: block; margin: 12px 0 6px; color: var(--ink); }
input, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #12161c;
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}
.score { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.huge { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 4.4rem); color: var(--brass); line-height: 1; }
.line { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid rgba(184,149,106,0.2); color: var(--muted); }

.board { margin: 48px 0 10px; }
.board h2 { margin-left: 6vw; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 14px 18px; font-size: 18px; border-bottom: 1px solid rgba(184,149,106,0.22); }
th { color: var(--brass); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; }
.board { overflow-x: auto; }
.dot { color: var(--brass); letter-spacing: 0.04em; }

.ring {
  margin: 48px 6vw;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--panel);
  border: 1px solid var(--line);
}
.ring img { height: 100%; min-height: 240px; object-fit: cover; }
.ring div { padding: 28px 28px 12px; }
.ring strong { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; color: var(--ink); display: block; }

.foot {
  margin-top: 20px;
  padding: 28px 6vw 32px;
  border-top: 1px solid var(--line);
  background: #0d1116;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--brass); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.age {
  display: inline-block;
  border: 1px solid var(--brass);
  color: var(--brass);
  padding: 0 6px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.veil {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.72);
  display: none;
  place-items: center;
  z-index: 50;
  padding: 16px;
}
.veil.is-open { display: grid; }
.pop {
  background: var(--panel);
  border: 1px solid var(--brass);
  padding: 24px;
  width: min(480px, 100%);
  position: relative;
}
.pop h3, .pop p { color: var(--ink); }
.pop button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}
.ask {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: 16px;
  width: min(400px, calc(100% - 32px));
  background: #0d1116;
  border: 1px solid var(--line);
  padding: 16px;
}
.ask[hidden] { display: none !important; }
.ask .hot { background: var(--brass); color: #12161c; }

.mast {
  padding: 42px 6vw 28px;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 28px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.mast p, .mast a { color: var(--muted); }
.mast img { width: 200px; height: 200px; object-fit: cover; }
.crumb { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 6vw; }
.chip {
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
}
.chip.is-on, .chip:hover { border-color: var(--brass); color: var(--brass); }
.sorter { display: flex; justify-content: flex-end; gap: 10px; align-items: center; padding: 0 6vw 8px; color: var(--muted); }
.sorter select { width: auto; min-width: 220px; }

#review-grid { display: flex; flex-direction: column; }
.review-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 18px 6vw;
  align-items: center;
  border-bottom: 1px solid rgba(184,149,106,0.2);
  background: var(--bg);
}
.review-card:nth-child(even) { background: var(--panel); }
.review-card img { width: 220px; height: 140px; object-fit: cover; overflow: hidden; }
.tag {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--brass);
}
.term-popup { cursor: pointer; border-bottom: 1px solid var(--brass); color: var(--ink); }

.essay {
  width: min(740px, calc(100% - 12vw));
  margin: 36px 0 8px 12vw;
}
.essay img { margin: 12px 0 16px; max-height: 360px; width: 100%; object-fit: cover; }
[data-fold] { border-top: 1px solid var(--line); }
[data-fold] > button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  padding: 14px 0;
  cursor: pointer;
}
[data-fold] .fold-in { display: none; padding-bottom: 8px; }
[data-fold].is-open .fold-in { display: block; }
.formula {
  border-left: 2px solid var(--brass);
  padding: 8px 12px;
  font-family: var(--serif);
  color: var(--ink);
}

.shorts { display: grid; grid-template-columns: 1fr 1fr; }
.shorts article { padding: 20px 22px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }

#wiki-search { font-size: 1.2rem; }
.seek { padding: 20px 6vw 4px; }
#wiki-grid { columns: 2; column-gap: 36px; padding: 8px 6vw 28px; }
.wiki-card { break-inside: avoid; border-top: 1px solid var(--line); padding: 12px 0 8px; margin-bottom: 8px; }
.note { border-left: 2px solid var(--brass); padding: 4px 0 4px 14px; margin: 14px 0; }
.note p { color: var(--ink); }

.shift { width: min(680px, 88%); margin: 28px 6vw 28px auto; }
.jobs article {
  margin: 0 0 0 10vw;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  max-width: 720px;
}
.jobs article:nth-child(even) { margin: 0 8vw 0 auto; }

.duo {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  margin: 32px 6vw;
}
.duo img { height: 320px; width: 100%; object-fit: cover; }
.crew { display: grid; grid-template-columns: 1fr 1.2fr 0.9fr; gap: 18px; margin: 8px 6vw 24px; }
.crew article { background: var(--panel); padding: 18px 18px 8px; border-top: 2px solid var(--brass); }
.crew article:nth-child(2) { margin-top: 28px; background: var(--panel-2); }
.crew article:nth-child(3) { margin-top: 48px; }
.crew h3, .crew p { color: var(--ink); }
.crew p { color: var(--muted); }

@media (max-width: 1100px) {
  .sheet { grid-template-columns: 1fr; width: 100%; }
  .folio { width: 100%; overflow-x: hidden; }
  .spine {
    height: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .menu-btn {
    display: grid !important;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 80;
  }
  .spine nav { display: none; width: 100%; padding: 8px 0 4px; }
  .spine nav.is-open {
    display: flex;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 70;
    background: #0d1116;
    padding: 8px 18px 16px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .spine nav a { writing-mode: horizontal-tb; transform: none; font-size: 1.15rem; padding: 8px 0; }
  .poster { min-height: 0; padding: 24px 16px 32px; overflow: hidden; }
  .poster h1 { max-width: none; font-size: clamp(2rem, 10vw, 2.7rem); }
  .poster .slash { position: relative; width: 100%; max-width: 100%; height: 220px; right: auto; top: auto; margin-bottom: 16px; animation: none; transform: none; }
  .film { display: block; overflow: visible; }
  .film article { width: 100%; max-width: 100%; flex: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .board { overflow: visible; margin-left: 0; margin-right: 0; }
  table { min-width: 0; width: 100%; }
  thead { display: none; }
  tr { display: block; padding: 12px 16px 8px; border-bottom: 1px solid var(--line); }
  td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: auto; padding: 6px 0; border: 0; }
  td::before { content: attr(data-label); color: var(--brass); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
  .meters article { padding: 16px 12px; }
  .bench, .ring, .mast, .duo, .crew, .shorts, .review-card { grid-template-columns: 1fr; }
  .meters { grid-template-columns: 1fr 1fr; }
  .bench, .ring, .duo, .crew, .film-label, .essay, .jobs article, .jobs article:nth-child(even), .shift { margin-left: 16px; margin-right: 16px; }
  .bench img, .review-card img, .duo img { width: 100%; height: 200px; }
  .crew article, .crew article:nth-child(2), .crew article:nth-child(3) { margin-top: 0; }
  .mast, .chips, .seek, #wiki-grid, .review-card { padding-left: 16px; padding-right: 16px; }
  .sorter { flex-direction: column; align-items: stretch; padding-left: 16px; padding-right: 16px; }
  .sorter select { width: 100%; }
  #wiki-grid { columns: 1; }
  .board h2 { margin-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker b, .poster .slash, .hot::before { animation: none; }
  .wait { opacity: 1; transform: none; }
}
