/* =========================================================================
   Dicky Continental — 2026 rebuild
   Palette lifted straight off the 'Hostile Environment' cover art:
   vermilion / deep teal-navy / steel blue / cream / sand.
   ========================================================================= */

@layer reset, base, layout, components, utils;

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;

  --ink:      #0a171e;
  --ink-2:    #0f2029;
  --ink-3:    #16303d;
  --navy:     #16394b;
  --red:      #e23c15;
  --red-hot:  #ff4a1e;
  --red-deep: #b8300f;   /* red for text on cream */
  --red-fill: #c7330f;   /* fills under cream text (buttons, chips, band): 4.64:1 */
  --blue:     #4c9ac4;
  --cream:    #f4eee0;
  --sand:     #f3c94e;
  --peach:    #f0bfa3;

  --fg:       #ece5d6;
  --muted:    color-mix(in oklab, var(--fg) 55%, transparent);
  --faint:    color-mix(in oklab, var(--fg) 34%, transparent);
  --line:     color-mix(in oklab, var(--cream) 14%, transparent);
  --line-2:   color-mix(in oklab, var(--cream) 26%, transparent);

  --display: "Bricolage Grotesque", "Arial Black", Impact, system-ui, sans-serif;
  --body:    "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", sans-serif;

  --maxw: 1320px;
  --pad:  clamp(1.15rem, 4.4vw, 4.5rem);
  --gap:  clamp(1.25rem, 2.6vw, 2.75rem);

  --nav-h: 4.5rem;

  /* dub-delay chromatic drift — driven from JS by scroll velocity */
  --drift: 0;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ----------------------------------------------------------------- reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  }

  body {
    font-family: var(--body);
    font-size: clamp(1rem, .95rem + .22vw, 1.075rem);
    line-height: 1.62;
    color: var(--fg);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
  }

  img, svg, video, iframe { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3, h4 { font-weight: 800; line-height: .95; text-wrap: balance; }
  p { text-wrap: pretty; }

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

  ::selection { background: var(--red-fill); color: var(--cream); }
}

/* ------------------------------------------------------------------ base */
@layer base {

  /* Print grain. One static SVG, no animation — costs nothing per frame. */
  .grain {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: .22;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  }

  .skip {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 10000;
    padding: .7rem 1.1rem;
    background: var(--red-fill);
    color: var(--cream);
    font: 700 .8rem/1 var(--body);
    letter-spacing: .12em;
    text-transform: uppercase;
    transform: translateY(-200%);
    transition: transform .2s var(--ease);
  }
  .skip:focus { transform: none; }

  .wrap {
    width: min(100% - var(--pad) * 2, var(--maxw));
    margin-inline: auto;
  }

  .eyebrow {
    font: 700 clamp(.68rem, .64rem + .14vw, .78rem)/1 var(--body);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--red-hot);
  }

  .lede { font-size: clamp(1.08rem, 1rem + .45vw, 1.35rem); line-height: 1.52; }

  .dim { color: var(--muted); }
}

/* ---------------------------------------------------------------- layout */
@layer layout {

  .section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
  .section--paper { background: var(--cream); color: var(--ink); }
  .section--tint  { background: var(--ink-2); }

  .sec-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: clamp(.9rem, 2vw, 1.75rem);
    margin-bottom: clamp(2.25rem, 5vw, 4rem);
    border-bottom: 1px solid var(--line);
    padding-bottom: clamp(.9rem, 2vw, 1.4rem);
  }
  .section--paper .sec-head { border-bottom-color: color-mix(in oklab, var(--ink) 22%, transparent); }

  .sec-head__no {
    font: 700 .8rem/1 var(--body);
    letter-spacing: .18em;
    color: var(--red);
    padding-bottom: .55rem;
  }

  .sec-head__title {
    font-family: var(--display);
    font-variation-settings: "wdth" 82, "opsz" 64;
    font-size: clamp(2.35rem, 1.2rem + 5.4vw, 5.5rem);
    letter-spacing: -.02em;
    text-transform: uppercase;
  }

  .sec-head__note {
    grid-column: 1 / -1;
    max-width: 62ch;
    color: var(--muted);
    font-size: .95rem;
  }
  .section--paper .sec-head__note { color: color-mix(in oklab, var(--ink) 68%, transparent); }
}

/* ------------------------------------------------------------ components */
@layer components {

  /* ------------------------------------------------------------- nav bar */
  .nav {
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    min-height: var(--nav-h);
    padding-inline: var(--pad);
    background: color-mix(in oklab, var(--ink) 82%, transparent);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease);
  }
  @supports (backdrop-filter: blur(1px)) {
    .nav { backdrop-filter: blur(14px) saturate(1.4); }
  }
  .nav[data-stuck="true"] {
    background: color-mix(in oklab, var(--ink) 94%, transparent);
    border-bottom-color: var(--line);
  }

  .brand {
    position: relative;
    z-index: 2;
    display: block;
    flex: none;
    line-height: 0;
  }
  .brand img {
    display: block;
    width: auto;
    /* Sized and nudged down so the hand-lettered logo breaks past the
       bottom edge of the bar instead of sitting neatly inside it. */
    height: clamp(2.75rem, 4.6vw, 4.15rem);
    translate: 0 20%;
    transition: opacity .2s var(--ease);
  }
  .brand:hover img { opacity: .78; }

  .nav__links {
    display: none;
    margin-inline-start: auto;
    gap: clamp(.9rem, 2vw, 1.9rem);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .nav__links a { position: relative; padding-block: .35rem; white-space: nowrap; color: var(--muted); transition: color .18s var(--ease); }
  .nav__links a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 2px;
    background: var(--red);
    transition: right .28s var(--ease-out);
  }
  .nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--fg); }
  .nav__links a:hover::after, .nav__links a[aria-current="true"]::after { right: 0; }

  .nav__social { display: none; gap: .35rem; margin-inline-start: .5rem; }
  .nav__social a {
    display: grid;
    place-items: center;
    width: 2.15rem; height: 2.15rem;
    border: 1px solid var(--line);
    color: var(--muted);
    transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
  }
  .nav__social a:hover { color: var(--cream); background: var(--red-fill); border-color: var(--red-fill); }
  .nav__social svg { width: 1rem; height: 1rem; fill: currentColor; }

  .nav__toggle {
    margin-inline-start: auto;
    display: grid;
    gap: 5px;
    padding: .6rem .1rem;
  }
  .nav__toggle i {
    display: block;
    width: 26px; height: 2px;
    background: var(--fg);
    transition: transform .26s var(--ease), opacity .18s linear;
  }
  .nav__toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .menu {
    position: fixed;
    inset: var(--nav-h) 0 0;
    z-index: 480;
    display: grid;
    align-content: start;
    gap: .1rem;
    padding: clamp(1.5rem, 6vw, 3rem) var(--pad) 3rem;
    background: var(--ink);
    overflow-y: auto;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .42s var(--ease-out), visibility 0s linear .42s;
  }
  .menu[data-open="true"] {
    transform: none;
    visibility: visible;
    transition: transform .42s var(--ease-out), visibility 0s;
  }
  .menu a {
    font-family: var(--display);
    font-variation-settings: "wdth" 80, "opsz" 40;
    font-size: clamp(2rem, 10vw, 3.25rem);
    text-transform: uppercase;
    line-height: 1.08;
    border-bottom: 1px solid var(--line);
    padding-block: .5rem;
  }
  .menu a:hover { color: var(--red-hot); }
  .menu__foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

  /* --------------------------------------------------------------- hero */
  .hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(3rem, 8vw, 7rem) clamp(3.5rem, 8vw, 7rem);
    overflow: clip;
  }
  .hero__bg {
    position: absolute;
    inset: -10% -5% auto;
    height: 118%;
    z-index: -2;
    object-fit: cover;
    width: 110%;
    opacity: .3;
    filter: saturate(.85) contrast(1.05);
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(102deg,
        var(--ink) 14%,
        color-mix(in oklab, var(--ink) 78%, transparent) 46%,
        color-mix(in oklab, var(--ink) 40%, transparent) 78%,
        color-mix(in oklab, var(--ink) 25%, transparent) 100%),
      linear-gradient(to bottom,
        color-mix(in oklab, var(--ink) 74%, transparent) 0%,
        transparent 26%,
        color-mix(in oklab, var(--ink) 70%, transparent) 76%,
        var(--ink) 100%);
  }

  .hero__grid {
    display: grid;
    gap: clamp(1.4rem, 3.2vw, 2.4rem);
    align-items: start;
  }

  .hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem; }
  .hero__kicker .dot { width: 8px; height: 8px; background: var(--red-hot); border-radius: 50%; animation: pulse 2.4s var(--ease) infinite; }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .35; transform: scale(.72); }
  }

  .hero__title {
    font-family: var(--display);
    font-variation-settings: "wdth" 76, "opsz" 96;
    font-size: clamp(2.9rem, .4rem + 12.4vw, 12rem);
    line-height: .9;
    letter-spacing: -.038em;
    text-transform: uppercase;
  }
  .hero__title span { display: block; }
  .hero__title .l2 { color: var(--red); }

  .hero__meta { display: grid; align-content: start; }

  .hero__by {
    font-size: clamp(1.05rem, .95rem + .5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: clamp(1.35rem, 3vw, 2rem);
  }
  .hero__by b { font-weight: 700; }
  .hero__by a { border-bottom: 1px solid var(--line-2); }
  .hero__by a:hover { color: var(--sand); border-bottom-color: var(--sand); }

  .specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem);
  }
  .specs div {
    padding: .8rem clamp(.9rem, 2vw, 1.5rem) .8rem 0;
    margin-right: clamp(.9rem, 2vw, 1.5rem);
    border-right: 1px solid var(--line);
  }
  .specs div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
  .specs dt { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: .3rem; }
  .specs dd { margin: 0; font-weight: 700; font-size: .95rem; letter-spacing: .01em; }

  .btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
  .btn-row--credits { margin-top: 1.5rem; }
  .btn-row--about { margin-top: 2rem; }

  .btn {
    --btn-bg: var(--red-fill);
    --btn-fg: var(--cream);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.5rem;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  }
  .btn svg { width: 1rem; height: 1rem; fill: currentColor; flex: none; }
  .btn:hover { transform: translate(-3px, -3px); }
  .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--btn-bg);
    transform: translate(3px, 3px);
    transition: transform .2s var(--ease);
    pointer-events: none;
  }
  .btn:hover::after { transform: translate(6px, 6px); }
  .btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
  .btn--ghost::after { border-color: var(--line-2); }
  .btn--ghost:hover { --btn-fg: var(--ink); background: var(--sand); box-shadow: inset 0 0 0 1px var(--sand); }
  .btn--ghost:hover::after { border-color: var(--sand); }

  /* On the cream sections the ghost button has to flip, or it is
     cream-on-cream and effectively invisible. */
  .section--paper .btn--ghost {
    --btn-fg: var(--ink);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 32%, transparent);
  }
  .section--paper .btn--ghost::after { border-color: color-mix(in oklab, var(--ink) 32%, transparent); }
  .section--paper .btn--ghost:hover { background: var(--ink); --btn-fg: var(--cream); box-shadow: inset 0 0 0 1px var(--ink); }
  .section--paper .btn--ghost:hover::after { border-color: var(--ink); }

  /* cover art with riso-style misregistration echoes */
  .cover { position: relative; width: min(100%, 34rem); justify-self: center; }
  .cover__stack { position: relative; }
  .cover__echo {
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: translate .35s var(--ease-out);
  }
  .cover__echo--red  { background: var(--red);  translate: calc(var(--drift) * -1px - 10px) calc(var(--drift) * .5px + 10px); }
  .cover__echo--blue { background: var(--blue); translate: calc(var(--drift) * 1px + 10px) calc(var(--drift) * -.5px - 10px); }
  .cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }

  /* The sleeve turns over to show the back: on hover with a mouse, on a tap
     on a touch screen, on Enter/Space from the keyboard (site.js sets
     aria-pressed). Reduced motion makes the turn instant via the global rule. */
  .flip {
    display: block;
    width: 100%;
    padding: 0;
    perspective: 1600px;
    cursor: default;
  }
  .flip__inner {
    position: relative;
    display: block;
    aspect-ratio: 1;
    transform-style: preserve-3d;
    transition: transform .9s var(--ease-out);
  }
  .flip__face {
    position: absolute;
    inset: 0;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .flip__face--back { transform: rotateY(180deg); }
  .flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
  @media (hover: hover) and (pointer: fine) {
    .js .flip:hover .flip__inner { transform: rotateY(180deg); }
  }
  .flip:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; }

  /* Without JavaScript the back is never fetched, so there is nothing to
     turn to: no hover flip, no hint. */
  .cover__hint { display: none; }
  .js .cover__hint { display: inline; }
  .cover__hint--touch { display: none; }
  @media (hover: none) {
    .cover__hint--hover { display: none; }
    .cover__hint--touch { display: inline; }
  }
  .cover__cap {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .9rem;
    font-size: .66rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--faint);
  }

  /* --------------------------------------------------- listening party */
  .party {
    background: var(--red-fill);
    color: var(--cream);
    border-block: 1px solid color-mix(in oklab, var(--ink) 35%, transparent);
  }
  .party__inner {
    display: grid;
    gap: clamp(1.1rem, 2.6vw, 2.25rem);
    align-items: center;
    padding-block: clamp(1.4rem, 3.2vw, 2.1rem);
  }
  .party .eyebrow { color: var(--cream); }
  .party__when {
    margin-top: .4rem;
    font-family: var(--display);
    font-variation-settings: "wdth" 84, "opsz" 32;
    font-size: clamp(1.22rem, 1rem + 1.1vw, 1.95rem);
    line-height: 1.04;
    text-wrap: balance;
  }
  .party__local {
    margin-top: .5rem;
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cream);
  }

  .party__count { display: flex; flex-wrap: wrap; gap: clamp(.4rem, 1.4vw, .85rem); }
  .party__count div {
    min-width: 4.1rem;
    padding: .5rem .65rem .55rem;
    background: color-mix(in oklab, var(--ink) 84%, transparent);
    text-align: center;
  }
  .party__count b {
    display: block;
    font-family: var(--display);
    font-variation-settings: "wdth" 80, "opsz" 40;
    font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.15rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .party__count span {
    display: block;
    margin-top: .28rem;
    font-size: .58rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .68;
  }

  .party .btn { --btn-bg: var(--ink); --btn-fg: var(--cream); }
  .party .btn::after { border-color: color-mix(in oklab, var(--ink) 60%, transparent); }
  .party .btn:hover { --btn-bg: var(--cream); --btn-fg: var(--ink); }

  /* JS swaps the state once the party is live or the record is out. */
  .party[data-state="live"] .party__count,
  .party[data-state="out"]  .party__count { display: none; }
  .party[data-state="live"] .party__when::after {
    content: "Live now";
    display: inline-block;
    margin-left: .6rem;
    padding: .2em .55em;
    background: var(--ink);
    font-size: .5em;
    letter-spacing: .16em;
    text-transform: uppercase;
    vertical-align: middle;
  }

  /* ----------------------------------------------------------- tracks */
  .tracks {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
  }
  .tracks li {
    display: grid;
    grid-template-columns: 2.25rem 1fr auto;
    gap: .5rem 1rem;
    align-items: baseline;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
  }
  .tracks__side {
    margin: clamp(1.5rem, 3vw, 2.25rem) 0 .65rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--red-hot);
  }
  [data-tracklist] > .tracks__side:first-child { margin-top: 0; }

  .tracks__no {
    font-size: .68rem;
    letter-spacing: .12em;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
  }
  .tracks__name {
    font-family: var(--display);
    font-variation-settings: "wdth" 84, "opsz" 24;
    font-size: clamp(1rem, .94rem + .38vw, 1.28rem);
    line-height: 1.1;
  }
  .tracks__name i {
    display: block;
    margin-top: .3rem;
    font-style: normal;
    font-family: var(--body);
    font-size: .78rem;
    letter-spacing: .04em;
    color: var(--muted);
  }
  .tracks li.is-single .tracks__name { color: var(--red-hot); }
  .tracks__tag {
    font-size: .6rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--faint);
    white-space: nowrap;
  }
  .tracks a.tracks__tag { color: var(--red-hot); border-bottom: 1px solid currentColor; }
  .tracks a.tracks__tag:hover { color: var(--sand); }

  /* ---------------------------------------------------------- formats */
  .formats { display: grid; gap: clamp(.9rem, 2.2vw, 1.35rem); }
  .format {
    display: grid;
    align-content: start;
    gap: .45rem;
    padding: clamp(1.2rem, 2.8vw, 1.8rem);
    border: 1px solid var(--line-2);
    background: color-mix(in oklab, var(--ink) 55%, transparent);
  }
  .format h3 {
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--red-hot);
  }
  .format__price {
    font-family: var(--display);
    font-variation-settings: "wdth" 80, "opsz" 48;
    font-size: clamp(2rem, 1.55rem + 1.9vw, 3rem);
    line-height: 1;
  }
  .format__price small { font-family: var(--body); font-size: .3em; letter-spacing: .1em; color: var(--muted); margin-left: .4em; }
  .format__meta { font-size: .87rem; line-height: 1.5; color: var(--muted); }
  .format .btn { margin-top: .85rem; justify-self: start; }

  .notice {
    margin-top: .95rem;
    padding: .8rem .95rem;
    background: color-mix(in oklab, var(--sand) 14%, transparent);
    border-left: 3px solid var(--sand);
    font-size: .82rem;
    line-height: 1.5;
  }
  .notice b { color: var(--sand); letter-spacing: .04em; }

  /* ------------------------------------------------------------- prose */
  .album__grid,
  .post {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }

  .post + .post {
    margin-top: clamp(2.75rem, 6.5vw, 4.5rem);
    padding-top: clamp(2.75rem, 6.5vw, 4.5rem);
    border-top: 2px solid color-mix(in oklab, currentColor 20%, transparent);
  }

  /* Release sleeve at the top of a news post's aside. */
  .post__cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    box-shadow: 0 20px 44px -26px rgb(0 0 0 / .6);
  }
  .prose p + p { margin-top: 1.1em; }
  .prose a { color: var(--red); border-bottom: 1px solid color-mix(in oklab, var(--red) 40%, transparent); font-weight: 500; }
  .prose a:hover { background: var(--red-fill); color: var(--cream); border-bottom-color: var(--red-fill); }

  /* Vermilion on the dark sections lands under 4.5:1; the hotter red clears
     it. The hover needs restating or it would be red text on a red fill. */
  .section:not(.section--paper) .prose a {
    color: var(--red-hot);
    border-bottom-color: color-mix(in oklab, var(--red-hot) 45%, transparent);
  }
  .section:not(.section--paper) .prose a:hover { color: var(--cream); border-bottom-color: var(--red-fill); }

  /* On cream, vermilion text sits at 3.7:1; the deeper red clears AA. */
  .section--paper .prose a { color: var(--red-deep); border-bottom-color: color-mix(in oklab, var(--red-deep) 40%, transparent); }
  .section--paper .prose a:hover { color: var(--cream); background: var(--red-deep); border-bottom-color: var(--red-deep); }
  /* ---------------------------------------------------------- news post */
  .post-date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .85rem;
    margin-bottom: .85rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: color-mix(in oklab, currentColor 58%, transparent);
  }
  .post-date span {
    padding: .32rem .65rem;
    background: var(--red-fill);
    color: var(--cream);
    letter-spacing: .16em;
  }

  .post-title {
    font-family: var(--display);
    font-variation-settings: "wdth" 84, "opsz" 40;
    font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.5rem);
    line-height: 1.02;
    letter-spacing: -.015em;
    margin-bottom: clamp(1rem, 2.2vw, 1.6rem);
  }

  /* Drop cap sized to exactly two lines of .lede (line-height 1.52). */
  .prose--lead p.lede::first-letter {
    float: left;
    font-family: var(--display);
    font-variation-settings: "wdth" 88, "opsz" 96;
    font-size: 3.55em;
    line-height: .82;
    padding: 0 .1em 0 0;
    color: var(--red);
  }

  .quote {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: var(--cream);
    padding: clamp(1.75rem, 4.5vw, 3.25rem);
    margin-block: clamp(2.5rem, 6vw, 4rem);
  }
  .quote::before {
    content: "\201C";
    position: absolute;
    top: 0;
    left: clamp(.6rem, 1.6vw, 1.1rem);
    font-family: var(--display);
    font-size: clamp(5.5rem, 13vw, 10rem);
    line-height: 1.55;
    color: var(--red-hot);
    opacity: .28;
    pointer-events: none;
  }
  .quote blockquote {
    position: relative;
    font-family: var(--display);
    font-variation-settings: "wdth" 95, "opsz" 32;
    font-weight: 500;
    font-size: clamp(1.15rem, .95rem + 1vw, 1.75rem);
    line-height: 1.32;
    letter-spacing: -.01em;
    max-width: 46ch;
  }
  .quote figcaption {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    margin-top: 1.75rem;
    padding-top: 1.1rem;
    border-top: 1px solid color-mix(in oklab, var(--cream) 22%, transparent);
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sand);
  }
  .quote figcaption i { font-style: normal; color: color-mix(in oklab, var(--cream) 52%, transparent); }

  .credits {
    border-top: 2px solid currentColor;
    padding-top: 1.25rem;
    display: grid;
    gap: .1rem;
  }
  .credits h3 {
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: .9rem;
  }
  .credits dl { margin: 0; }
  .credits dl > div {
    display: grid;
    grid-template-columns: minmax(6.5rem, 8rem) 1fr;
    gap: .5rem 1rem;
    padding-block: .6rem;
    border-bottom: 1px solid color-mix(in oklab, currentColor 18%, transparent);
    font-size: .9rem;
  }
  .credits dt { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; padding-top: .2em; }
  .credits dd { margin: 0; font-weight: 500; }

  /* ------------------------------------------------------- video facade */
  .vid-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  }
  .vid-grid--feature { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }

  .vid { display: grid; gap: .95rem; align-content: start; }

  .vid__frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--ink-3);
    overflow: hidden;
  }
  .vid__frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out), opacity .3s linear;
  }
  .vid__frame:hover img { transform: scale(1.045); opacity: .82; }
  .vid__frame iframe,
  .vid__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
  .vid__frame--square { aspect-ratio: 1; }

  .vid__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px var(--line);
    pointer-events: none;
    transition: box-shadow .25s var(--ease);
  }
  .vid__frame:hover::after { box-shadow: inset 0 0 0 2px var(--red); }

  .play {
    position: absolute;
    left: 50%; top: 50%;
    translate: -50% -50%;
    width: clamp(3.5rem, 9vw, 4.75rem);
    aspect-ratio: 1;
    overflow: visible;
    pointer-events: none;
  }
  .play__ring {
    fill: none;
    stroke: var(--cream);
    stroke-width: 4.5;
    stroke-linecap: round;
    transition: stroke .25s var(--ease), rotate .5s var(--ease-out);
    transform-origin: 50% 50%;
  }
  .play__ghost { fill: none; stroke: var(--red); stroke-width: 4.5; stroke-linecap: round; opacity: 0; transform-origin: 50% 50%; transition: opacity .25s var(--ease), translate .35s var(--ease-out); }
  .play__tri { fill: var(--cream); transition: fill .25s var(--ease); }
  .vid__frame:hover .play__ring { stroke: var(--red-hot); rotate: 14deg; }
  .vid__frame:hover .play__ghost { opacity: .85; translate: 5px -4px; }
  .vid__frame:hover .play__tri { fill: var(--red-hot); }

  .vid__artist {
    font-family: var(--display);
    font-variation-settings: "wdth" 80, "opsz" 20;
    font-weight: 700;
    font-size: clamp(1.05rem, .98rem + .3vw, 1.25rem);
    line-height: 1.06;
    text-transform: uppercase;
    letter-spacing: -.005em;
  }
  .vid__title { font-size: .98rem; font-weight: 500; line-height: 1.25; color: var(--fg); margin-top: .3rem; }
  .vid__tag {
    margin-top: .5rem;
    font-size: .66rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red-hot);
  }
  .vid__tag i { font-style: normal; color: var(--faint); }

  /* filter chips */
  .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
  .chip {
    padding: .55rem 1.05rem;
    border: 1px solid var(--line);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    transition: all .2s var(--ease);
  }
  .chip:hover { color: var(--fg); border-color: var(--line-2); }
  .chip[aria-pressed="true"] { background: var(--red-fill); border-color: var(--red-fill); color: var(--cream); }
  /* The count inside a chip is dimmed; on the red fill that drops it to
     2.5:1, so the pressed chip shows it at full strength. */
  .chip[aria-pressed="true"] span { opacity: 1; }
  .chip span { opacity: .6; font-weight: 400; margin-left: .35rem; }

  .vid[hidden] { display: none; }

  /* ------------------------------------------------------- press photos
     Shown at their native aspect ratio — press wants the real frame, not
     a crop, so the cards simply top-align at different heights. */
  .photos {
    display: grid;
    gap: clamp(1.4rem, 3.2vw, 2.5rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    align-items: start;
  }

  .photo { display: grid; gap: .8rem; align-content: start; }

  .photo__frame {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--ink);
    /* A square well with the photo contained, not cropped: the shots are a
       mix of portrait and landscape, and press wants to see the real frame.
       Uniform wells also keep the download buttons on one line. */
    aspect-ratio: 1;
  }
  .photo__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .7s var(--ease-out), filter .35s var(--ease);
  }
  .photo__frame:hover img { transform: scale(1.035); filter: saturate(1.1); }
  .photo__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow .25s var(--ease);
    pointer-events: none;
  }
  .photo__frame:hover::after,
  .photo__frame:focus-visible::after { box-shadow: inset 0 0 0 2px var(--red); }

  .photo__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .3rem .8rem;
    font-size: .64rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .photo__no { color: var(--red-hot); font-weight: 700; }

  /* Own line, and brighter than the file facts: the credit is a condition
     of use, not a footnote. */
  .photo__credit { flex-basis: 100%; color: var(--muted); }

  .photo__dl { justify-self: start; padding: .8rem 1.15rem; }

  .photos__all {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-top: clamp(2.25rem, 5vw, 3.5rem);
    padding-top: clamp(1.4rem, 3vw, 2rem);
    border-top: 1px solid var(--line);
  }
  .photos__all p { max-width: 46ch; font-size: .92rem; color: var(--muted); }

  /* lightbox */
  .lb {
    width: min(96vw, 1100px);
    max-width: none;
    max-height: 94dvh;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fg);
    overflow: visible;
  }
  .lb::backdrop { background: color-mix(in oklab, var(--ink) 92%, transparent); }
  .lb img { width: 100%; max-height: 84dvh; object-fit: contain; background: var(--ink-2); }
  .lb__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .85rem;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .lb__nav { display: flex; gap: .4rem; }
  .lb__nav button, .lb__close {
    width: 2.5rem; height: 2.5rem;
    display: grid; place-items: center;
    border: 1px solid var(--line-2);
    transition: all .2s var(--ease);
  }
  .lb__nav button:hover, .lb__close:hover { background: var(--red-fill); border-color: var(--red-fill); color: var(--cream); }
  .lb__close { position: absolute; top: -3.25rem; right: 0; }
  .lb svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

  /* -------------------------------------------------------------- press */
  .press-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
  .press-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
  .press-list a {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: clamp(1rem, 2.4vw, 1.5rem) 0;
    border-bottom: 1px solid var(--line);
    transition: padding-inline .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  }
  .press-list a:hover { background: var(--red-fill); color: var(--cream); padding-inline: clamp(.75rem, 2vw, 1.35rem); }
  .press-list strong {
    display: block;
    font-family: var(--display);
    font-variation-settings: "wdth" 82, "opsz" 24;
    font-size: clamp(1.15rem, 1rem + .7vw, 1.7rem);
    text-transform: uppercase;
    line-height: 1.02;
  }
  .press-list em { font-style: normal; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
  .press-list a:hover em { color: var(--cream); }
  .press-list svg { width: 1.1rem; height: 1.1rem; fill: currentColor; flex: none; transition: translate .25s var(--ease); }
  .press-list a:hover svg { translate: 3px -3px; }

  .clipping {
    background: var(--cream);
    padding: clamp(.9rem, 2.2vw, 1.4rem);
    rotate: -1.4deg;
    box-shadow: 0 18px 40px -22px rgb(0 0 0 / .85);
    max-width: 22rem;
  }
  .clipping img { width: 100%; }
  .clipping figcaption {
    margin-top: .85rem;
    font-size: .66rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: color-mix(in oklab, var(--ink) 62%, transparent);
  }

  /* -------------------------------------------------------------- about */
  .bio-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
  .bio h3 {
    font-family: var(--display);
    font-variation-settings: "wdth" 80, "opsz" 32;
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
    text-transform: uppercase;
    margin-bottom: .35rem;
  }
  .bio .role { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red-hot); margin-bottom: 1.1rem; }
  .bio__portrait { position: relative; }
  .bio__portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
  .bio__portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--red);
    translate: 12px 12px;
    z-index: -1;
  }

  /* ------------------------------------------------------------- footer */
  .foot { border-top: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 5.5rem) 2rem; }
  .foot__mark {
    position: relative;
    display: block;
    font-family: var(--display);
    font-variation-settings: "wdth" 76, "opsz" 96;
    font-size: clamp(2.6rem, .5rem + 11.6vw, 11rem);
    line-height: .82;
    text-transform: uppercase;
    letter-spacing: -.04em;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
  }
  .foot__mark::before, .foot__mark::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: translate .35s var(--ease-out);
  }
  .foot__mark::before { color: var(--red);  translate: calc(var(--drift) * -1.4px - 3px) 0; }
  .foot__mark::after  { color: var(--blue); translate: calc(var(--drift) * 1.4px + 3px) 0; }

  .foot__cols {
    display: grid;
    gap: 2rem clamp(1.5rem, 4vw, 3rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--line);
  }
  .foot__cols h4 { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; font-weight: 700; }
  .foot__cols ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
  .foot__cols a { color: var(--muted); font-size: .92rem; transition: color .18s var(--ease); }
  .foot__cols a:hover { color: var(--red-hot); }

  .foot__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem 1.5rem;
    padding-top: 1.75rem;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--faint);
  }

  /* Same treatment as the talkback.se footer: 15px tall, dimmed until hover.

     Not `vertical-align: middle` — that centres against the x-height, but this
     row is set in caps, so the logo landed 1.28px low. The image's baseline is
     its bottom edge, so dropping it capHeight/2 - height/2 = 4 - 7.5 = -3.5px
     puts its centre exactly on the cap band. */
  .foot__iolab {
    display: inline-block;
    vertical-align: -3.5px;
    margin-left: .2rem;
  }
  .foot__iolab img {
    display: block;
    height: 15px;
    width: auto;
    opacity: .7;
    transition: opacity .18s var(--ease);
  }
  .foot__iolab:hover img { opacity: 1; }

  /* ---------------------------------------------------- scroll reveals
     The hidden start state is scoped to .js (set by an inline script in
     <head>), so a browser without JavaScript still gets the whole page. */
  .rise { transition: opacity .7s var(--ease-out), translate .7s var(--ease-out); }
  .js .rise { opacity: 0; translate: 0 22px; }
  .rise.is-in { opacity: 1; translate: 0 0; }
  .rise:nth-child(2) { transition-delay: .06s; }
  .rise:nth-child(3) { transition-delay: .12s; }
  .rise:nth-child(4) { transition-delay: .18s; }
  .rise:nth-child(5) { transition-delay: .24s; }
  .rise:nth-child(6) { transition-delay: .3s; }
}

/* ----------------------------------------------------------------- utils */
@layer utils {
  .vh {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .nowrap { white-space: nowrap; }
  .stack > * + * { margin-top: clamp(1.75rem, 4vw, 2.75rem); }
}

/* --------------------------------------------------------------- breaks */
@media (min-width: 48rem) {
  .post { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .post > .quote { grid-column: 1 / -1; margin-block: 0; }
  /* No sticky aside: sleeve plus credits can be taller than the screen, and a
     stuck aside then hid its own lower half until the next block took over. */

  .album__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .party__inner { grid-template-columns: 1fr auto auto; }
  .press-grid    { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .bio-grid      { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
}

@media (min-width: 62rem) {
  .nav__toggle { display: none; }
  .menu { display: none; }
  .nav__links { display: flex; }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    column-gap: clamp(2rem, 4.5vw, 4.5rem);
  }
  .hero__kicker,
  .hero__title { grid-column: 1 / -1; }
  .hero__meta  { grid-column: 1; }
  .cover       { grid-column: 2; grid-row: 3; width: 100%; justify-self: end; }
}

/* The hand-lettered logo is wide. Below this the bar only has room for the
   logo and the links, so the social icons wait (they are in the footer). */
@media (min-width: 80rem) {
  .nav__social { display: flex; }
}

/* ------------------------------------------------------- motion / print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .rise { opacity: 1; translate: none; }
}

@media print {
  .grain, .nav, .menu, .play { display: none !important; }
  body { background: #fff; color: #000; }
}
