/* Oswald, a condensed face, for headings and dates; the system face for
   reading. SIL Open Font Licence, fonts/OFL.txt. */
@font-face {
  font-family: "Oswald";
  src: url("/fonts/oswald.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

/* Colour roles, swapped whole for dark mode. */
:root {
  --display: "Oswald", "Helvetica Neue Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
  --surface-0: #f4f3f0;
  --surface-1: #fcfcfb;
  --line: #e2e1dc;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --accent: #d95926;
  --pass: #2f9e5b;
  --fail: #d6402b;
  --idle: #a3a29b;
  /* The dark blocks: near-black by day, a deep orange that white reads on at night */
  --block: #121211;
  --block-ink: #f0efec;
  --block-ink-2: #c3c2b7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-0: #121211;
    --surface-1: #1a1a19;
    --line: #2e2e2b;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --accent: #eb6834;
    --pass: #4cc47c;
    --fail: #f0654f;
    --idle: #6d6c66;
    --block: #b8461c;
    --block-ink: #fff;
    --block-ink-2: #fff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-0: #121211;
  --surface-1: #1a1a19;
  --line: #2e2e2b;
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --accent: #eb6834;
  --pass: #4cc47c;
  --fail: #f0654f;
  --idle: #6d6c66;
  --block: #b8461c;
  --block-ink: #fff;
  --block-ink-2: #fff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; }
a { color: var(--accent); }
code { font: 0.85em var(--mono); background: var(--surface-0); padding: 1px 5px; border-radius: 5px; }
.small { color: var(--ink-2); font-size: 14px; margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* The opening: the name huge on the left, the gig board on the right. */
.hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 64px 16px 56px;
}
/* Sized for eight letters across the narrower hero column */
.hero h1 {
  font-size: clamp(60px, 9.5vw, 124px); line-height: 0.86; margin: 22px 0 18px;
  font-weight: 600; letter-spacing: -0.015em; text-transform: uppercase;
}
.tagline { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 500px; }

.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.button {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 10px; padding: 9px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button.secondary { color: var(--ink); background: var(--surface-1); border-color: var(--line); }
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }

.pill {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 20px 0 0; padding: 7px 16px;
  border-radius: 18px; background: var(--surface-1); border: 1px solid var(--line); color: var(--ink-2); font-size: 15px;
}
.pill span {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; color: var(--accent);
}
.pill b { color: var(--ink); font-weight: 600; }

.button.inverse { color: var(--block); background: var(--block-ink); border-color: var(--block-ink); }

/* The gig board: every date, lit like a departures board, grouped by year.
   Gigs already played dim; the next one takes the accent. */
.board {
  background: var(--surface-1); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 8px 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}
.board h2, .section-title {
  font-size: 15px; margin: 0 0 8px; padding: 0 14px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2);
}
.board h3 { font: 13px var(--mono); color: var(--accent); margin: 14px 0 2px; padding: 0 14px; }
.board ol { list-style: none; margin: 0; padding: 0; }
.gig-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px;
  padding: 9px 14px; border-radius: 9px; text-decoration: none; color: var(--ink);
  transition: background 0.15s ease;
}
.gig + .gig .gig-row { border-top: 1px solid var(--line); border-radius: 0; }
.gig-row time { font: 13px var(--mono); color: var(--ink-2); text-transform: uppercase; }
.gig-row time b { display: block; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1; color: var(--ink); }
.gig-what b { display: block; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.15; }
.gig-what span, .gig-where { color: var(--ink-2); font-size: 14px; }
.gig-where { text-align: right; }
a.gig-row:hover { background: var(--surface-0); }
a.gig-row:hover .gig-what b { color: var(--accent); }
.gig.played .gig-row { opacity: 0.6; }
.gig.next time, .gig.next time b { color: var(--accent); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 36px; }
}
@media (max-width: 480px) {
  .gig-row { grid-template-columns: 52px minmax(0, 1fr); }
  .gig-where { grid-column: 2; text-align: left; }
}

.section-title { padding: 0; margin: 0 0 14px; scroll-margin-top: 24px; }

/* Cards of different widths, the latest mix dark across the top. Link cards
   stretch their heading link over the whole card; player cards hold embeds
   instead, so they keep their own clicks. */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 56px; }
.feature {
  position: relative; background: var(--surface-1); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 22px; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.feature h3 { font-size: 26px; line-height: 1.1; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.02em; }
.feature p { margin: 0; color: var(--ink-2); }
.feature.link:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); }
.feature.link h3 a { color: var(--ink); text-decoration: none; }
.feature.link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.feature.link:hover h3 a { color: var(--accent); }
.feature.wide { grid-column: span 2; }
.feature.wide h3 { font-size: 32px; }
.feature.wide p { font-size: 18px; max-width: 620px; }
.feature.dark {
  grid-column: 1 / -1; background: var(--block); border-color: var(--block); color: var(--block-ink);
  padding: 36px 38px;
}
.feature.dark h3 { font-size: clamp(44px, 7vw, 80px); line-height: 0.95; margin-bottom: 20px; }
/* After the wide and dark paragraph sizes, so the label stays small on every card */
.feature p.kicker { font: 12px var(--mono); color: var(--accent); margin: 0 0 6px; letter-spacing: 0.02em; }
.feature.dark p.kicker { color: var(--block-ink-2); opacity: 0.8; font-size: 14px; }
.player iframe { display: block; width: 100%; border: 0; border-radius: 8px; }
.feature.full { grid-column: 1 / -1; }
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.mixcloud { height: 120px; }
.tidal { height: 120px; color-scheme: light dark; }
@media (max-width: 820px) {
  .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
  .feature.dark { padding: 26px 22px; }
}

/* Clips: phone footage stands three abreast, landscape pairs underneath. */
.clips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 56px; }
.clip {
  margin: 0; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
}
.clip.portrait { grid-column: span 2; }
.clip.portrait.span-2 { grid-column: span 4; }
.clip.landscape { grid-column: span 3; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.clip video, .clip iframe { display: block; width: 100%; border: 0; border-radius: 8px; background: #000; }
.clip.portrait video { aspect-ratio: 9 / 16; object-fit: cover; }
.clip.landscape video, .clip iframe { aspect-ratio: 16 / 9; }
.clip figcaption { color: var(--ink-2); font-size: 15px; padding: 0 4px 4px; }
.clip figcaption b {
  display: block; font-family: var(--display); font-weight: 500; font-size: 22px;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink);
}
@media (max-width: 820px) {
  .clips { grid-template-columns: 1fr 1fr; }
  .clip.portrait, .clip.landscape { grid-column: span 1; }
  .clip.portrait.span-2, .clip.landscape { grid-column: 1 / -1; }
}

/* The second dark block, bookending the page. */
.bookend {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px 40px;
  background: var(--block); color: var(--block-ink); border-radius: 12px; padding: 34px 38px;
}
.bookend h2 { font-size: 40px; line-height: 1; margin: 0 0 10px; text-transform: uppercase; }
.bookend p { margin: 0; color: var(--block-ink-2); }
.bookend ul { list-style: none; margin: 0; padding: 0; align-self: center; }
.bookend li { padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--block-ink) 18%, transparent); }
.bookend li a { color: var(--block-ink); text-decoration: none; }
.bookend li a:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .bookend { grid-template-columns: 1fr; padding: 26px 22px; }
}

footer { text-align: center; color: var(--ink-2); font-size: 14px; margin-top: 40px; }
footer p { margin: 0 0 6px; }
