/* Larum: shared tokens and the landing page. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-latin-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-grotesk-latin-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --paper: #F3F1EC;
  --ink: #16150F;
  --accent: #B0341C;
  --muted: #5A5852;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --max: 1100px;
  --gutter: 16px;
  --section: clamp(64px, 10vw, 120px);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: italic; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; background: var(--ink); color: var(--paper); padding: 8px 12px; }

/* Labels: small uppercase, accent */
.label {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.label-ink { color: var(--ink); }

/* The Treatise rule */
.rule { position: relative; height: 24px; }
.rule::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--ink); }
.rule span { position: absolute; }
.rule-sq { left: 21%; top: 6px; width: 10px; height: 10px; background: var(--ink); }
.rule-ci { left: 58%; top: 2px; width: 18px; height: 18px; border: 2px solid var(--accent); border-radius: 50%; background: var(--paper); }
.rule-tk { left: 82%; top: 0; width: 2px; height: 24px; background: var(--ink); }

/* Masthead */
.masthead { padding-top: 24px; display: grid; gap: 18px; }
.topline { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.display {
  font: 400 clamp(88px, 21vw, 220px)/0.82 var(--serif);
  letter-spacing: -0.02em;
  margin-left: -0.04em;
}
.masthead nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.masthead nav a { font: 600 12px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

/* Hero */
.hero { margin-top: 28px; display: grid; gap: 8px; }
.hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 38%; }
@media (min-width: 720px) { .hero img { aspect-ratio: 2.16 / 1; } }
.hero figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.tagline-wrap { margin-top: clamp(32px, 6vw, 64px); }
.tagline {
  font: 400 clamp(32px, 5.2vw, 58px)/1.08 var(--serif);
  max-width: 20ch;
  text-wrap: balance;
}

/* Sections */
.section { padding-top: var(--section); }
.section > h2.label { margin-bottom: 28px; }
.prose { display: grid; gap: 1em; max-width: 62ch; }
.lede { font: 400 clamp(24px, 3vw, 30px)/1.3 var(--serif); }

.about-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.7fr 1fr; gap: 64px; } }
.members { display: grid; gap: 28px; border-top: 2px solid var(--ink); padding-top: 18px; align-content: start; }
.member { display: grid; gap: 4px; }
.member h3 { font: 400 28px/1.1 var(--serif); }
.member .label { font-size: 11px; letter-spacing: 0.14em; }
.member p:last-child { font-size: 15px; }

/* Forthcoming */
.forthcoming { display: grid; gap: 14px; max-width: 46ch; }
.display-title { font: 400 clamp(56px, 10vw, 112px)/0.95 var(--serif); }
.forthcoming-summary { font: 400 clamp(22px, 2.6vw, 28px)/1.3 var(--serif); color: var(--ink); }

/* Releases */
.releases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
@media (min-width: 720px) { .releases { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 48px 24px; } }
.release { display: grid; gap: 8px; align-content: start; }
.release-cover { display: block; margin-bottom: 8px; }
.release-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.release-cover:hover img { opacity: .85; }
.release-meta { font-size: 11px; letter-spacing: 0.14em; }
.release h3 { font: 400 22px/1.15 var(--serif); }
.release h3 a { text-decoration: none; }
.release h3 a:hover { text-decoration: underline; }
.release-desc { font-size: 14px; line-height: 1.5; }
.release-formats { font-size: 13px; color: var(--muted); }

/* Press */
.press-featured { display: grid; gap: 40px; }
@media (min-width: 900px) { .press-featured { grid-template-columns: 1fr 1fr; gap: 56px 64px; } }
.press-item { display: grid; gap: 12px; align-content: start; border-top: 2px solid var(--ink); padding-top: 18px; }
.press-item blockquote p, .press-feature { font: 400 clamp(24px, 2.8vw, 32px)/1.2 var(--serif); text-wrap: pretty; }
.press-item figcaption { font: 600 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.press-item figcaption a { text-decoration: none; }
.press-item figcaption a:hover { text-decoration: underline; }
.press-more { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 900px) { .press-more { grid-template-columns: 1fr 1fr; gap: 64px; } }
.press-more h3 { margin-bottom: 14px; }
.further, .also { display: grid; gap: 12px; font-size: 15px; }
.further-quote { font: 400 21px/1.3 var(--serif); }
.further-cite { display: block; font-size: 13px; color: var(--muted); }
.also strong { font-weight: 600; }

/* Live */
.live-upcoming { border-top: 2px solid var(--ink); padding-top: 18px; max-width: 720px; }
.live-upcoming .live-year { color: var(--accent); }
.live-year { font: 400 30px/1.1 var(--serif); margin-bottom: 10px; }
.residency { margin-top: 24px; max-width: 62ch; font: 400 22px/1.35 var(--serif); }
.live-past { margin-top: 56px; }
@media (min-width: 900px) { .live-past { columns: 2; column-gap: 64px; } }
.live-group { break-inside: avoid; padding-bottom: 36px; }
.live-note { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.shows { display: grid; }
.shows li { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(22, 21, 15, 0.16); font-size: 15px; }
.show-date { font-variant-numeric: tabular-nums; color: var(--muted); }
.show-info strong { font-weight: 600; }
.show-status { font: 600 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.shows li.is-cancelled .show-info { text-decoration: line-through; }
.collaborators { margin-top: 56px; max-width: 62ch; display: grid; gap: 10px; }
.collaborators p { font: 400 22px/1.35 var(--serif); }

/* Contact */
.rule-section { margin-bottom: 40px; }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr 0.8fr; gap: 48px; align-items: start; } }
.contact-list { display: grid; gap: 18px; }
.contact-list dt { font: 600 12px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list dd { font: 400 clamp(22px, 2.6vw, 28px)/1.2 var(--serif); overflow-wrap: anywhere; }
.contact-actions { display: grid; gap: 12px; }
.button {
  display: inline-block; border: 0; cursor: pointer; padding: 14px 20px; background: var(--ink); color: var(--paper);
  font: 600 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
.button:hover { background: var(--accent); color: var(--paper); }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button-ghost:hover { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.listen { display: grid; gap: 6px; margin-top: 12px; }

/* Footer */
.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: var(--section); padding-top: 18px; padding-bottom: 32px; position: relative;
  font: 600 11px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.footer::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 2px; background: var(--ink); }

/* Listening page */
.masthead-small { gap: 14px; }
.embargo { margin-top: 32px; padding: 14px 0; border-block: 2px solid var(--ink); font-size: 15px; }
.embargo .label { margin-right: 8px; }
.listen-hero { display: grid; gap: 32px; padding-top: clamp(32px, 6vw, 64px); align-items: start; }
@media (min-width: 900px) { .listen-hero { grid-template-columns: 460px 1fr; gap: 56px; } }
.listen-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.listen-intro { display: grid; gap: 16px; align-content: start; }
.listen-meta { font-size: 12px; }
.tagline-small { font: 400 clamp(22px, 2.6vw, 28px)/1.25 var(--serif); }
.player iframe { display: block; width: 100%; border: 0; background: var(--paper); }
.listen-grid { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 900px) { .listen-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.listen-grid h3 { margin-bottom: 12px; }
.listen-side { display: grid; gap: 32px; align-content: start; }
.tracks { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.tracks li { display: grid; grid-template-columns: 2em 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(22, 21, 15, 0.16); }
.track-n, .track-d { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.track-t { font: 400 22px/1.2 var(--serif); }
.track-note { font: 400 14px/1.4 var(--sans); color: var(--muted); }
.tracks-total { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* Listening page: site audio player (the tracklist is the player) */
.ap { --ap-progress: 0; }
.ap-bar { display: grid; grid-template-columns: 52px 1fr; grid-template-areas: 'toggle now' 'seek seek'; gap: 14px 16px; align-items: center; padding: 18px 0 20px; border-top: 2px solid var(--ink); }
.ap-toggle {
  grid-area: toggle; width: 52px; height: 52px; border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center; background: var(--accent); color: var(--paper); cursor: pointer;
}
.ap-toggle:hover { background: var(--ink); }
.ap-toggle:focus-visible, .ap-track:focus-visible, .ap-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ap svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.ap-toggle svg:last-child, .ap.is-playing .ap-toggle svg:first-child { display: none; }
.ap.is-playing .ap-toggle svg:last-child { display: block; }
.ap-now { grid-area: now; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-width: 0; }
.ap-title { font: 400 26px/1.15 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The seek bar is the Treatise rule: 2px line, the knob a hollow accent circle. */
.ap-seek { grid-area: seek; position: relative; height: 24px; cursor: pointer; touch-action: none; }
.ap-line, .ap-fill { position: absolute; left: 0; top: 11px; height: 2px; }
.ap-line { right: 0; background: rgba(22, 21, 15, 0.22); }
.ap-fill { width: calc(var(--ap-progress) * 100%); background: var(--ink); }
.ap-knob {
  position: absolute; top: 3px; left: calc(var(--ap-progress) * (100% - 18px));
  width: 18px; height: 18px; box-sizing: border-box; border: 2px solid var(--accent); border-radius: 50%; background: var(--paper);
}
.ap-tracks { border-top: 1px solid rgba(22, 21, 15, 0.16); }
.ap-tracks li { display: block; padding: 0; }
.ap-track {
  width: 100%; display: grid; grid-template-columns: 2em 1fr auto; gap: 12px; align-items: baseline;
  padding: 10px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.ap-track:hover .track-t, .ap-track.is-current .track-t { color: var(--accent); }
.ap-icon { display: none; color: var(--accent); }
.ap-icon svg { width: 13px; height: 13px; }
.ap-icon svg:last-child { display: none; }
.ap-track:hover .ap-num, .ap-track.is-current .ap-num { display: none; }
.ap-track:hover .ap-icon, .ap-track.is-current .ap-icon { display: inline-block; }
.ap.is-playing .ap-track.is-current .ap-icon svg:first-child { display: none; }
.ap.is-playing .ap-track.is-current .ap-icon svg:last-child { display: block; }
/* Without JavaScript nothing plays, so hide the transport and keep the plain list. */
.ap:not(.is-ready) .ap-bar { display: none; }
.ap:not(.is-ready) .ap-track { cursor: default; }
