/* HONEY B — THE PROGRAMME
   Editorial broadsheet × concert programme. Newsprint & ink only. */

:root {
  --paper: #f6f4ee;
  --ink: #101010;
  --ink-soft: #3c3c38;
  --hairline: rgba(16, 16, 16, 0.8);
  /* accents — all monochrome by default; themes diverge them */
  --display: var(--ink);   /* big Anton headlines */
  --accent: var(--ink);    /* italic serif interjections */
  --hi: var(--ink);        /* links & hovers */
  --inverse-bg: var(--ink);   /* ticker / cronlog blocks */
  --inverse-fg: var(--paper);
  --anton: "Anton", "Arial Black", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(18px, 4vw, 56px);
}

/* INK — the negative print */
:root[data-theme="ink"] {
  --paper: #101010;
  --ink: #f6f4ee;
  --ink-soft: #b5b3ab;
  --hairline: rgba(246, 244, 238, 0.75);
  --inverse-bg: #f6f4ee;
  --inverse-fg: #101010;
}

/* MUTANT — monkey mutant colorway */
:root[data-theme="mutant"] {
  --paper: #1b1410;       /* swamp dark */
  --ink: #e9e2cf;         /* bone */
  --ink-soft: #b3a88e;
  --hairline: rgba(209, 122, 46, 0.6);
  --display: #d17a2e;     /* fur orange */
  --accent: #d16a95;      /* hat pink */
  --hi: #cdd66a;          /* sandal acid */
  --inverse-bg: #d17a2e;
  --inverse-fg: #1b1410;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

/* film grain, very faint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono { font-family: var(--mono); }

a { color: var(--ink); }

.rule { border-top: 1px solid var(--hairline); }
.rule--double {
  border-top: 3px solid var(--hairline);
  position: relative;
}
.rule--double::after {
  content: "";
  display: block;
  border-top: 1px solid var(--hairline);
  margin-top: 3px;
}

/* ================= MASTHEAD ================= */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  padding: 14px var(--gutter) 0;
}
.masthead__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
}
.masthead__brand {
  font-family: var(--anton);
  font-size: 20px;
  letter-spacing: 0.08em;
}
.masthead__mid {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
}
.masthead__right {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.masthead__clock {
  font-size: 12px;
  letter-spacing: 0.08em;
}
.themeswitch {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--hairline);
}
.themeswitch button {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  background: none;
  border: none;
  border-right: 1px solid var(--hairline);
  color: var(--ink);
  cursor: pointer;
}
.themeswitch button:last-child { border-right: none; }
.themeswitch button.on,
.themeswitch button:hover {
  background: var(--inverse-bg);
  color: var(--inverse-fg);
}

/* ================= HERO ================= */
.hero {
  padding: clamp(40px, 7vh, 90px) var(--gutter) clamp(30px, 5vh, 60px);
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.32em;
  margin-bottom: 18px;
}
.hero__title {
  font-weight: 400;
  line-height: 0.92;
}
.hero__big {
  display: block;
  font-family: var(--anton);
  font-size: clamp(64px, 17vw, 240px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--display);
}
.hero__serif {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 5.5vw, 76px);
  color: var(--accent);
  margin: 0.02em 0 0.02em clamp(8px, 12vw, 220px);
  position: relative;
  z-index: 2;
}
.hero__big--tail { margin-left: clamp(0px, 6vw, 120px); }
.hero__sub {
  max-width: 58ch;
  margin-top: 34px;
  font-size: clamp(17px, 1.7vw, 21px);
}
.hero__sub a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.hero__intro {
  max-width: 66ch;
  margin-top: 34px;
}
.hero__promise {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1;
  color: var(--accent);
}
.hero__intro .hero__sub { margin-top: 16px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  padding: 10px 16px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.button:hover { transform: translateY(-2px); }
.button--solid,
.button:hover { background: var(--inverse-bg); color: var(--inverse-fg); }
.hero__roles {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.hero__roles a { color: var(--hi); }

/* ================= TICKER ================= */
.ticker {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  white-space: nowrap;
  background: var(--inverse-bg);
  color: var(--inverse-fg);
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  animation: tick 36s linear infinite;
}
.ticker__track i { font-style: normal; font-size: 8px; }
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= OFFER ================= */
.offer {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(36px, 7vw, 110px);
  padding: clamp(70px, 11vh, 140px) var(--gutter);
  border-bottom: 1px solid var(--hairline);
}
.offer__intro h2 {
  font-family: var(--anton);
  font-size: clamp(48px, 7vw, 102px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  color: var(--display);
}
.offer__intro h2 i {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--accent);
}
.offer__intro > p:last-child { max-width: 36ch; margin-top: 24px; }
.offer__grid { display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
.offer__card {
  border-top: 1px solid var(--hairline);
  padding: 20px 22px 28px 0;
}
.offer__card:nth-child(even) { border-left: 1px solid var(--hairline); padding-left: 22px; }
.offer__num {
  display: block;
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.16em;
}
.offer__card h3 {
  font-family: var(--anton);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--display);
}
.offer__card p { margin-top: 14px; font-size: 16px; line-height: 1.5; }

/* ================= CASEWORK ================= */
.casework { padding: clamp(70px, 11vh, 140px) var(--gutter) 0; }
.casework__grid { border-top: 3px solid var(--hairline); }
.case {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding: clamp(32px, 6vh, 72px) 0;
  border-bottom: 1px solid var(--hairline);
}
.case--reverse .case__media { order: 2; }
.case--reverse .case__copy { order: 1; }
.case__media {
  border: 1px solid var(--hairline);
  padding: 8px;
  background: var(--paper);
  overflow: hidden;
}
.case__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.case:hover .case__media img,
:root[data-theme="mutant"] .case__media img { filter: none; transform: scale(1.015); }
.case__eyebrow {
  display: block;
  margin-bottom: 15px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.case__copy h3 {
  font-family: var(--anton);
  font-size: clamp(34px, 4.8vw, 70px);
  line-height: 0.98;
  color: var(--display);
}
.case__copy > p { max-width: 48ch; margin-top: 20px; }
.case__facts { margin-top: 30px; }
.case__facts > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  border-top: 1px solid var(--hairline);
  padding: 9px 0;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.case__facts dt { color: var(--ink-soft); }
.case__facts dd { margin: 0; }
.case__machine {
  display: grid;
  gap: 14px;
  min-height: 380px;
  align-content: center;
  border: 1px solid var(--hairline);
  padding: clamp(24px, 4vw, 54px);
  background: var(--inverse-bg);
  color: var(--inverse-fg);
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.08em;
}
.case__machine strong {
  margin-top: 24px;
  border-top: 1px solid currentColor;
  padding-top: 18px;
  font-family: var(--anton);
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* ================= PROGRAMME / TOC ================= */
.programme {
  padding: clamp(50px, 8vh, 100px) var(--gutter);
}
.section-label {
  font-size: 12px;
  letter-spacing: 0.32em;
  margin-bottom: 26px;
}
.toc { display: block; }
.toc__row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.toc__row:last-child { border-bottom: 1px solid var(--hairline); }
.toc__row:hover { background: var(--inverse-bg); color: var(--inverse-fg); padding-left: 12px; }
.toc__row:hover .toc__name { color: inherit; }
.toc__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--accent);
}
.toc__name {
  font-family: var(--anton);
  font-size: clamp(22px, 3.6vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--display);
}
.toc__tempo { font-size: 12px; letter-spacing: 0.14em; }

/* ================= MOVEMENTS ================= */
.movement {
  padding: clamp(50px, 9vh, 110px) var(--gutter) 0;
}
.staff {
  display: grid;
  gap: 7px;
  margin-bottom: clamp(30px, 5vh, 54px);
}
.staff i {
  display: block;
  height: 1px;
  background: var(--hairline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.staff.on i { transform: scaleX(1); }
.staff i:nth-child(2) { transition-delay: 0.07s; }
.staff i:nth-child(3) { transition-delay: 0.14s; }
.staff i:nth-child(4) { transition-delay: 0.21s; }
.staff i:nth-child(5) { transition-delay: 0.28s; }

.movement__head {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 40px);
}
.movement__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(54px, 9vw, 130px);
  line-height: 0.8;
  color: var(--accent);
}
.movement__head h2 {
  font-family: var(--anton);
  font-size: clamp(38px, 7vw, 96px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--display);
}
.movement__tempo {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.3em;
}
.movement__body {
  max-width: 66ch;
  margin: clamp(24px, 4vh, 44px) 0 0 clamp(0px, 12vw, 170px);
}
.movement__body p { margin-bottom: 20px; }
.movement__body a,
.hero__sub a {
  color: var(--hi);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* photo strip — dithered newsprint */
.photostrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(30px, 5vh, 56px);
}
.dither {
  position: relative;
  border: 1px solid var(--hairline);
  padding: 8px 8px 6px;
  background: var(--paper);
}
.dither img,
.dither canvas {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.dither img { filter: grayscale(1) contrast(1.05); }
:root[data-theme="mutant"] .dither img { filter: none; }
.dither canvas {
  position: absolute;
  top: 8px;
  left: 8px;
  width: calc(100% - 16px);
  height: auto;
  aspect-ratio: 4 / 3;
  transition: opacity 0.35s ease;
}
.dither:hover canvas { opacity: 0; }
.dither figcaption {
  padding-top: 7px;
  font-size: 10px;
  letter-spacing: 0.22em;
}

/* encore cron log */
.movement--encore .movement__num { font-size: clamp(54px, 9vw, 110px); }
.cronlog {
  margin: clamp(26px, 4vh, 44px) 0 0 clamp(0px, 12vw, 170px);
  max-width: 560px;
  border: 1px solid var(--hairline);
  padding: 18px 20px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: var(--inverse-bg);
  color: var(--inverse-fg);
}

/* ================= RECORDS ================= */
.records {
  padding: clamp(60px, 10vh, 120px) var(--gutter) 0;
}
.records__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
}
.records h3 {
  font-family: var(--anton);
  font-size: clamp(24px, 3vw, 38px);
  text-transform: uppercase;
  border-bottom: 3px solid var(--hairline);
  padding-bottom: 10px;
  margin-bottom: 4px;
  color: var(--display);
}
.records table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.records td {
  border-bottom: 1px solid var(--hairline);
  padding: 12px 10px 12px 0;
  vertical-align: baseline;
}
.records td:first-child { font-weight: 500; white-space: nowrap; padding-right: 16px; }
.records td:last-child { text-align: right; font-size: 12px; white-space: nowrap; }

/* ================= THE REEL ================= */
.reel {
  padding: clamp(60px, 10vh, 120px) var(--gutter) 0;
}
.reel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.reel__cell {
  border: 1px solid var(--hairline);
  padding: 8px 8px 6px;
}
.reel__cell video,
.reel__cell img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.3s ease;
}
.reel__cell video { cursor: pointer; }
.reel__cell:hover video,
.reel__cell:hover img,
.reel__cell video.playing,
:root[data-theme="mutant"] .reel__cell video,
:root[data-theme="mutant"] .reel__cell img {
  filter: none;
}
.reel__cell figcaption {
  padding-top: 7px;
  font-size: 10px;
  letter-spacing: 0.22em;
}
.reel__cell figcaption a {
  color: var(--hi);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
.reel__note {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.reel__note a { color: var(--hi); }

/* ================= FINALE ================= */
.finale {
  margin-top: clamp(70px, 12vh, 140px);
  padding: 0 var(--gutter) 46px;
}
.finale__kicker {
  font-size: 12px;
  letter-spacing: 0.32em;
  margin: 26px 0 8px;
}
.finale__title {
  display: block;
  text-decoration: none;
  font-family: var(--anton);
  font-size: clamp(52px, 11.5vw, 170px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--display);
}
.finale__title span { display: block; }
.finale__title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
}
.finale__title:hover {
  -webkit-text-stroke: 2px var(--display);
  color: transparent;
}
.finale__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 40px;
  font-size: 12px;
  letter-spacing: 0.16em;
}
.finale__links a {
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
}
.finale__links a:hover { background: var(--inverse-bg); color: var(--inverse-fg); }
.finale__foot {
  margin-top: 44px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .masthead__mid { display: none; }
  .masthead__right { gap: 8px; }
  .masthead__clock { display: none; }
  .hero { padding-top: 34px; }
  .kicker { font-size: 9px; line-height: 1.6; }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__roles { line-height: 1.6; }
  .offer { grid-template-columns: 1fr; gap: 44px; }
  .offer__grid { grid-template-columns: 1fr; }
  .offer__card,
  .offer__card:nth-child(even) { border-left: 0; padding: 18px 0 24px; }
  .offer__num { margin-bottom: 20px; }
  .case { grid-template-columns: 1fr; gap: 28px; }
  .case--reverse .case__media,
  .case--reverse .case__copy { order: initial; }
  .case__machine { min-height: 300px; }
  .toc__row { grid-template-columns: 40px 1fr; }
  .toc__tempo { grid-column: 2; }
  .photostrip { grid-template-columns: 1fr 1fr; }
  .reel__grid { grid-template-columns: 1fr; }
  .records__cols { grid-template-columns: 1fr; }
  .movement__body, .cronlog { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .staff i { transform: scaleX(1); transition: none; }
  .button,
  .case__media img { transition: none; }
}
