@font-face {
  font-family: "MadInk";
  src:
    url("assets/fonts/MadInk.woff2") format("woff2"),
    url("assets/fonts/MadInk.woff") format("woff"),
    url("assets/fonts/MadInk.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk Regular";
  src: url("assets/fonts/space-grotesk-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #090909;
  --ink: #f4f1ea;
  --muted: #c8c2b6;
  --line: rgba(244, 241, 234, 0.2);
  --paper: #efeae0;
  --paper-ink: #141414;
  --header: 68px;
  --ui: "Space Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
  --display: "Akira Expanded", "Space Grotesk", sans-serif;
  --serif: "Iowan Old Style", Palatino, Georgia, serif;
  --script: "MadInk", "Iowan Old Style", Palatino, Georgia, serif;
  color-scheme: dark;
}

.type-madink {
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 6;
}

.skip:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header);
  padding: 0 18px;
  background: transparent;
}

.site-header.is-solid { background: rgba(9, 9, 9, 0.94); }

.brand img { height: 28px; width: auto; }

.nav-toggle {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#site-nav {
  display: none;
  position: fixed;
  inset: var(--header) 0 0 0;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  background: var(--bg);
}

#site-nav.is-open { display: flex; }

#site-nav a,
.chapter-link a,
.text-link,
.site-footer nav a,
.quiet a {
  font-family: var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

#site-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
}

#site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: #111;
}

.hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 62%;
}

@media (max-aspect-ratio: 1 / 1) {
  .hero-still { object-position: 78% 56%; }
}

@media (max-aspect-ratio: 3 / 5) {
  .hero-still { object-position: 72% 54%; }
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 20px 40px;
  background: linear-gradient(to top, rgba(9, 9, 9, 0.62) 0%, rgba(9, 9, 9, 0.22) 24%, rgba(9, 9, 9, 0) 48%);
}

.kicker,
.motto,
.when,
.where,
.chapter-label p,
.placeholder-flag,
.quiet,
.poster small,
.shelf span,
#stay-form label,
#stay-status,
.frame span,
#viewer-caption {
  font-family: var(--ui);
}

.kicker,
.chapter-label p,
.placeholder-flag,
.quiet,
.poster small,
#stay-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, .what, .poster span {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-synthesis: none;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}

h1 { font-size: clamp(40px, 7.6vw, 108px); }

h2 { font-size: clamp(28px, 6.4vw, 72px); }

.motto {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.actions { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 22px; }

.actions a,
.chapter-link a,
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.chapter {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.chapter.rotation,
.chapter.yearbook {
  width: 100%;
  margin: 0;
  padding-left: max(18px, calc((100% - 1120px) / 2));
  padding-right: max(18px, calc((100% - 1120px) / 2));
  background: var(--paper);
  color: var(--paper-ink);
  color-scheme: light;
}

.chapter.rotation .chapter-label p,
.chapter.yearbook .chapter-label p,
.chapter.rotation .placeholder-flag,
.chapter.yearbook .lede {
  color: #5e584e;
}

.chapter.rotation .actions a,
.chapter.rotation .text-link,
.chapter.yearbook .chapter-link a,
.chapter.rotation button {
  color: var(--paper-ink);
  border-color: var(--paper-ink);
}

.chapter.sessions {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.chapter.sessions .chapter-label,
.chapter.sessions .quiet {
  width: min(1120px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

.chapter.sessions .chapter-label h2 {
  align-self: stretch;
  text-align: center;
}

.chapter-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 28px;
}

.chapter-label p { margin: 0 0 8px; }

.bill {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.bill a {
  display: grid;
  gap: 4px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.when { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.what { font-size: clamp(28px, 6vw, 48px); }

.where { color: var(--muted); font-size: 16px; }

.chapter-link { margin: 22px 0 0; }

.playlist {
  display: grid;
  gap: 22px;
  align-items: center;
}

.playlist-art {
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: cover;
  background: #e4ded2;
}

.playlist-name {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-synthesis: none;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.playlist-spotify-title,
.playlist-tagline { margin: 0 0 12px; }

.playlist-spotify-title {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5e584e;
}

.playlist-tagline { font-style: italic; }

.playlist-copy p:last-of-type { max-width: 36rem; margin: 0; }

.playlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  margin-top: 20px;
}

.playlist-actions button,
.stay-row button,
.viewer-bar button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.playlist-actions button { padding: 0 14px; }

.playlist-player { min-width: 0; }

.playlist-player iframe {
  display: block;
  width: 100%;
  max-width: 720px;
  height: 352px;
  border: 0;
  background: #111;
}

.posters { display: grid; gap: 18px; align-items: start; }

.poster {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.poster img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #111;
}

.poster span {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: #090909;
  font-size: clamp(22px, 4vw, 32px);
}

.poster span a { text-decoration: none; }

.poster-play {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.poster-play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -8px;
}

.poster iframe {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.poster.is-playing .poster-play { display: none; }

.poster-note {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  z-index: 3;
  margin: 0;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poster-note:empty { display: none; }

.poster small { font-family: var(--ui); font-weight: 500; }

.poster-play::before,
.poster-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}

.poster-play::before {
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: rgba(9, 9, 9, 0.72);
}

.poster-play::after {
  width: 0;
  height: 0;
  margin-left: -6px;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #fff;
}

.quiet { margin: 16px 0 0; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tile {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #e4ded2;
  overflow: hidden;
  cursor: pointer;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lede {
  max-width: 38rem;
  margin-top: 0;
  font-family: var(--script);
  font-size: 22px;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.35;
}

.stay { display: grid; gap: 32px; }

.stay-copy p { max-width: 36rem; }

#stay-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#stay-form input[type="email"],
#stay-form input[type="text"] {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-bottom: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0 0 8px;
}

#stay-form label.stay-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 16px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.stay-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.stay-row { display: flex; }

.stay-row button { padding: 0 16px; }

.stay-row button[disabled] { opacity: 0.55; }

.stay-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#stay-status { margin: 10px 0 0; max-width: 36rem; }

.shelf { text-decoration: none; }

.shelf img { width: min(100%, 280px); aspect-ratio: 4 / 5; object-fit: cover; }

.shelf span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 20px 48px;
}

.site-footer img { height: 26px; width: auto; margin-bottom: 18px; }

.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; }

.site-footer nav a { min-height: 36px; display: inline-flex; align-items: center; font-size: 12px; }

.site-footer p { color: var(--muted); font-size: 14px; }

.paper-page {
  background: var(--paper);
  color: var(--paper-ink);
  color-scheme: light;
}

.paper-page .site-header {
  color: var(--ink);
  height: auto;
  flex-wrap: wrap;
}

.paper-page .chapter-label a,
.paper-page .quiet a { color: var(--paper-ink); }

html:has(body.paper-page) { scroll-padding-top: calc(var(--header) + 16px); }

.yearbook-page {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: calc(var(--header) + 36px) 0 72px;
}

.yearbook-page > * { scroll-margin-top: calc(var(--header) + 16px); }

.yearbook-page h1 { font-size: clamp(32px, 6vw, 76px); max-width: 16ch; }

#viewer {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 18px 18px 24px;
  border: 0;
  background: #070707;
  color: var(--ink);
}

#viewer::backdrop { background: #070707; }

.viewer-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.viewer-bar button { padding: 0 14px; }

#viewer-close { margin-left: auto; }

#viewer figure {
  margin: 18px 0 0;
  min-height: 0;
}

#viewer img {
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #000;
}

#viewer figcaption {
  margin-top: 12px;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

#viewer button:disabled { opacity: 0.35; }

.bill a:hover .what,
.poster:hover span,
.shelf:hover span { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 900px) {
  .chapter-label {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .chapter.sessions .chapter-label {
    position: relative;
    justify-content: center;
  }

  .chapter.sessions .chapter-label p {
    position: absolute;
    left: 0;
    bottom: 0;
  }

  .nav-toggle { display: none; }

  #site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0;
    background: transparent;
  }

  #site-nav a { min-height: 44px; font-size: 11px; }

  .hero-copy { padding: 48px 48px 64px; }

  .playlist {
    grid-template-columns: 300px 1fr;
    gap: 48px;
  }

  .playlist-art { width: 300px; }

  .playlist-player { grid-column: 1 / -1; }

  .bill a {
    grid-template-columns: 150px 1fr auto;
    align-items: baseline;
    gap: 24px;
  }

  .posters { grid-template-columns: 1fr 1fr; }

  .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }

  .stay { grid-template-columns: 1.2fr 0.8fr; align-items: end; }

  .site-footer nav { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.yearbook-page .collection {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
}

.yearbook-page .collection button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--paper-ink);
  background: transparent;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.yearbook-page .collection button[aria-pressed="true"] {
  background: var(--paper-ink);
  color: var(--paper);
}

.yearbook-page .event { margin-top: 48px; }

.yearbook-page .year-label {
  margin: 22px 0 12px;
  font-family: var(--ui);
  color: #5e584e;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.yearbook-page .masonry {
  columns: 2;
  column-gap: 16px;
}

.yearbook-page .shot {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  break-inside: avoid;
  background: transparent;
  color: inherit;
  text-align: left;
  vertical-align: top;
  cursor: pointer;
}

.yearbook-page .shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #e7e1d6;
  object-fit: contain;
}

.yearbook-page .shot span {
  display: block;
  margin-top: 8px;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.paper-page #viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 12px 16px 16px;
}

body.paper-page #viewer figure {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

body.paper-page #viewer img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

@media (min-width: 900px) {
  .lede { font-size: 26px; }
}

@media (max-width: 519px) {
  .yearbook-page .masonry { columns: 1; }
}

@media (min-width: 1100px) {
  .yearbook-page .masonry { columns: 3; }
}
