/* The JS Legacy — site-work timeline.
   Dark editorial film treatment: near-black paper, warm off-white ink,
   one muted brass accent, Cormorant Garamond display type. Mobile first. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --bg-soft: #121213;
  --ink: #f2ece1;
  --muted: #a49c92;
  --dim: #746e66;
  --brass: #c8a86b;
  --line: rgba(242, 236, 225, .13);
  --line-strong: rgba(242, 236, 225, .26);
  --serif: "Cormorant Garamond", Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 44px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.page { padding-top: 60px; }
img { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--brass); }
p { margin: 0 0 1.1em; }
[hidden] { display: none !important; }
::selection { background: var(--brass); color: var(--bg); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--brass);
  color: var(--bg);
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------- top bar */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(11, 11, 12, .62), rgba(11, 11, 12, 0));
  transition: background .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 0 solid transparent;
}
body.scrolled .bar,
body.page .bar {
  background: rgba(11, 11, 12, .88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.bar-brand {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.bar-nav a {
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.bar-nav a:hover { color: var(--brass); }
.bar-date {
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}
body.past-hero .bar-date { opacity: 1; transform: none; }

/* ------------------------------------------------------------- home hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transform-origin: 54% 46%;
  animation: kenburns 20s var(--ease) both;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.015); }
  to { transform: scale(1.11); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(11, 11, 12, .68) 0%,
      rgba(11, 11, 12, .12) 28%,
      rgba(11, 11, 12, .34) 48%,
      rgba(11, 11, 12, .86) 80%,
      var(--bg) 100%),
    radial-gradient(110% 80% at 18% 100%, rgba(11, 11, 12, .55), transparent 62%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: clamp(56px, 11vh, 132px);
}
.overline {
  margin: 0 0 20px;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #e6dbc8;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .5);
}
.hero h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(54px, 10.5vw, 148px);
  line-height: .88;
  letter-spacing: -.025em;
  max-width: 11ch;
}
.hero-sub {
  display: flex;
  flex-wrap: wrap;
  gap: .35em .55em;
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--muted);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .65);
}
.hero-sub span { white-space: nowrap; }
.hero-sub span + span::before {
  content: "·";
  margin-right: .55em;
  color: var(--dim);
}
.cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(28px, 5vh, 54px);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: none;
}
.cue-line {
  display: block;
  width: 54px;
  height: 1px;
  background: var(--brass);
  opacity: .7;
}
.cue:hover .cue-line { width: 72px; }

/* ------------------------------------------------------------- search */
.find { padding-top: clamp(56px, 8vw, 104px); scroll-margin-top: 60px; }
.find-row {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 24px);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 14px;
  transition: border-color .3s;
}
.find:focus-within .find-row { border-bottom-color: var(--brass); }
.find label {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
}
.find input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 2.7vw, 30px);
  font-weight: 300;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.find input::placeholder { color: var(--dim); font-style: italic; opacity: 1; }
.find input::-webkit-search-cancel-button { filter: invert(.8); }
.find-note {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ------------------------------------------------------------- month jump */
.jump { padding-top: 26px; }
.jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jump a {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
}
.jump a:hover { color: var(--brass); }

/* ------------------------------------------------------------- chapters */
.chapters { padding-top: clamp(36px, 6vw, 72px); }
.noresults {
  display: none;
  padding: 40px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--muted);
}
.noresults.on { display: block; }

.chapter {
  padding: clamp(48px, 8vw, 108px) 0 clamp(8px, 2vw, 22px);
  border-top: 1px solid var(--line);
}
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 4.5vw, 56px);
}
.chapter-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 94px);
  line-height: .88;
  letter-spacing: -.02em;
}
.chapter-year {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .34em;
  font-variant: small-caps;
  text-transform: lowercase;
  color: var(--brass);
  margin-left: 14px;
  vertical-align: middle;
}
.chapter-stat {
  margin: 0;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

/* ------------------------------------------------------------- episodes */
.episodes { margin: 0; padding: 0; list-style: none; }
.episode {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: clamp(26px, 4vw, 46px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 76px;
}
.episode:first-child { border-top: 0; }
@media (min-width: 900px) {
  .episode {
    grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 76px);
    align-items: start;
  }
  .episode:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 190px);
  }
  .episode:nth-child(even) .ep-date { order: 2; text-align: right; }
  .episode:nth-child(even) .ep-main { order: 1; }
}
.ep-date { display: block; text-decoration: none; line-height: 1; color: var(--ink); }
.ep-num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 5.8vw, 78px);
  line-height: .82;
  letter-spacing: -.03em;
  transition: color .25s;
}
.ep-mon {
  display: block;
  margin-top: 10px;
  font-size: 9.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.ep-date:hover .ep-num { color: var(--brass); }
.ep-main { max-width: 840px; }
.ep-summary {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(19px, 2.05vw, 25px);
  font-weight: 400;
  line-height: 1.45;
  color: #e9e3d8;
}
.ep-thumbs {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: clamp(104px, 15vw, 174px);
  margin-top: clamp(14px, 2vw, 22px);
}
.ep-thumb {
  flex: 1 1 0;
  min-width: 0;
  max-width: clamp(96px, 11vw, 150px);
  height: 100%;
  display: block;
  line-height: 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.92);
  transition: opacity .35s;
}
.ep-thumb:only-child { max-width: clamp(180px, 22vw, 300px); }
.ep-thumb:first-child:nth-last-child(2),
.ep-thumb:first-child:nth-last-child(2) ~ .ep-thumb {
  max-width: clamp(150px, 17vw, 240px);
}
.ep-thumb:nth-child(2) { height: 64%; }
.ep-thumb:nth-child(3) { height: 84%; }
.ep-thumb:nth-child(4) { height: 70%; }
.ep-thumb:nth-child(5) { height: 92%; }
.ep-thumb:hover img { opacity: .78; }
.ep-none {
  margin: clamp(14px, 2vw, 22px) 0 0;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ------------------------------------------------------------- day hero */
.day-hero {
  position: relative;
  min-height: clamp(520px, 84svh, 880px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #050505;
}
.day-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
}
.day-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(11, 11, 12, .55) 0%,
      rgba(11, 11, 12, .05) 34%,
      rgba(11, 11, 12, .28) 64%,
      rgba(11, 11, 12, .92) 92%,
      var(--bg) 100%);
}
.day-hero--type {
  min-height: clamp(460px, 72svh, 760px);
  background:
    radial-gradient(120% 110% at 18% 0%, #191714 0%, #0d0d0e 52%, #0b0b0c 100%);
  border-bottom: 1px solid var(--line);
}
.day-hero--type::after { background: none; }
.day-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: clamp(30px, 6vh, 70px);
}
.day-title {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 2.4vw, 30px);
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  line-height: .78;
  letter-spacing: -.02em;
}
.day-num {
  font-size: clamp(104px, 17vw, 216px);
  line-height: .74;
  letter-spacing: -.045em;
}
.day-mon {
  font-size: clamp(24px, 3.3vw, 42px);
  line-height: 1.02;
  letter-spacing: .01em;
  padding-bottom: clamp(6px, 1.4vw, 16px);
  color: #e7e0d4;
}
.day-year {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--brass);
}

/* ------------------------------------------------------------- day body */
.day-body { padding-top: clamp(38px, 6vw, 78px); }
.lede {
  max-width: 30ch;
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(25px, 3.4vw, 43px);
  line-height: 1.28;
  letter-spacing: -.005em;
  color: #efe9de;
}
.day-meta {
  margin: 0 0 clamp(34px, 5vw, 64px);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
}
.day-none {
  max-width: 44ch;
  padding: clamp(26px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 27px);
  color: var(--muted);
}

/* ------------------------------------------------------------- gallery */
.editorial { margin: 0; }
.shot { margin: 0; }
.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-soft);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: var(--ar, 1.4);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.94) contrast(1.01);
  transition: opacity .45s var(--ease), transform 1.1s var(--ease);
}
.shot-btn:hover img { opacity: .87; transform: scale(1.015); }
.feature {
  margin-bottom: clamp(10px, 1.6vw, 20px);
}
.tiles {
  columns: 2;
  column-gap: clamp(10px, 1.6vw, 20px);
}
.tiles .shot {
  break-inside: avoid;
  margin: 0 0 clamp(10px, 1.6vw, 20px);
}

/* ------------------------------------------------------------- lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 52px);
  background: rgba(5, 5, 5, .97);
}
.lb.on { display: flex; }
.lb img {
  max-width: 94vw;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lb-btn {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 11, 12, .55);
  color: var(--ink);
  font: 10px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 11px 16px;
  cursor: pointer;
}
.lb-btn:hover { border-color: var(--brass); color: var(--brass); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-cap {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
body.lbopen { overflow: hidden; }

/* ------------------------------------------------------------- pager */
.pager {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: clamp(52px, 9vw, 116px);
  padding-top: clamp(26px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.pager-spacer { flex: 1 1 auto; }
.pager-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.pager-next { margin-left: auto; text-align: right; }
.pager-label {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 50px);
  line-height: .95;
  letter-spacing: -.015em;
  transition: color .25s;
}
.pager-date {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.pager-link:hover .pager-label { color: var(--brass); }

/* ------------------------------------------------------------- page / about */
.page-head {
  padding: clamp(90px, 14vh, 170px) 0 clamp(42px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}
.page-head--tall { min-height: 62vh; display: flex; align-items: flex-end; }
.page-head h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 8.4vw, 112px);
  line-height: .9;
  letter-spacing: -.025em;
  max-width: 13ch;
}
.page-sub {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.page-cta { margin: 30px 0 0; }
.page-cta a {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--brass);
  text-decoration: none;
}
.prose { max-width: 760px; padding-top: clamp(40px, 6vw, 78px); }
.prose p, .prose li { color: #d9d3c9; font-size: 16px; line-height: 1.72; }
.prose h2 {
  margin: 46px 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -.01em;
}
.prose ul { padding-left: 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brass); }
.prose .facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 40px;
  border: 1px solid var(--line);
  background: var(--line);
}
.prose .facts div {
  padding: 18px 20px;
  background: var(--bg);
  font-size: 14px;
  line-height: 1.4;
}
.prose .facts span {
  display: block;
  margin-bottom: 6px;
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ------------------------------------------------------------- footer */
footer.site {
  margin-top: clamp(64px, 10vw, 130px);
  border-top: 1px solid var(--line);
  padding: 34px 0 56px;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px 28px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
footer.site p { margin: 0; }
.foot-brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--ink);
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--brass); }

/* ------------------------------------------------------------- motion */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px) scale(.96);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
  transition:
    opacity .7s var(--ease),
    transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

@media (max-width: 760px) {
  .hero h1 { max-width: 9ch; }
  .hero-inner { padding-bottom: 15vh; }
  .chapter-head { align-items: flex-end; }
  .chapter-year { display: block; margin: 10px 0 0; }
  .ep-thumbs { height: 104px; }
  .day-body { padding-top: 34px; }
  .lede { max-width: none; }
  .pager { gap: 12px; }
}
@media (max-width: 560px) {
  .hero-sub span:last-child { flex-basis: 100%; }
  .hero-sub span:last-child::before { content: none; }
}
@media (max-width: 430px) {
  .bar { height: 54px; }
  body.page { padding-top: 54px; }
  .bar-brand { font-size: 17px; }
  .hero h1 { font-size: clamp(48px, 15vw, 74px); }
  .day-num { font-size: 96px; }
  .day-mon { font-size: 21px; }
  .find label { display: none; }
  .ep-thumbs { height: 88px; }
  .prose .facts { grid-template-columns: 1fr; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img { animation: none; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .bar, .bar-date, .shot img, .ep-thumb img, .cue-line, .ep-num { transition: none; }
  .shot-btn:hover img { transform: none; }
}
