/* ==========================================================================
   Yeep Records - yeeprecords.com

   Yeep's own colours, sampled from the label's existing identity: the
   magenta logo tile, the plum ground and the off-white type. Same type as
   thespirographs.com (Anton + Inter), so the two sites are recognisably the
   same people; different palette and a calmer, more editorial layout so the
   label never reads as a band page.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------------- */
@font-face {
  font-family: 'Staatliches';
  src: url('../fonts/staatliches-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ------------------------------------------------------ */
:root {
  /* Brand, sampled from the current yeeprecords.com identity */
  --ground:      #3B0924;   /* page ground: the plum behind the old site */
  --panel:       #480D2E;   /* raised panel, one step lighter             */
  --raised:      #5A1A3F;   /* borders, hover surfaces                    */
  --paper:       #FEFAF1;   /* off-white type, as on the old site         */
  --paper-100:   #FFFFFF;   /* headings                                   */
  --accent:      #A01E66;   /* logo tile magenta, solid fills only        */
  --accent-lit:  #C0287B;   /* hover                                      */
  /* Small accent text has to be lighter than the tile magenta to clear
     4.5:1 on the plum grounds. */
  --accent-text: #F27BB9;

  --text:      #F1E2EA;
  --muted:     #C29DB3;
  --line:      rgba(254, 250, 241, 0.18);
  --line-soft: rgba(254, 250, 241, 0.09);

  /* Type */
  --display: 'Staatliches', 'Oswald', 'Arial Narrow', 'Helvetica Neue Condensed', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  /* Rhythm */
  --header-h: clamp(92px, 9.5vw, 124px);
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 2px;
}

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
  }
}

body {
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: var(--paper); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--accent-lit); }

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

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout helpers --------------------------------------------- */
.wrap {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { --wrap: 760px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--panel { background: var(--panel); }
.section + .section:not(.section--panel) { border-top: 1px solid var(--line-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Type -------------------------------------------------------- */
/* Staatliches: a condensed caps display face with a bit of character in
   the curves. Caps-only by design, so text-transform is belt and braces. */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--paper-100);
}

/* Smaller than the band site on purpose: a label speaks, a band shouts. */
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.05; }

p + p { margin-top: 1em; }

.lede {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--paper);
}

.prose { max-width: 62ch; }
.prose p { color: var(--muted); }
.prose p.lede, .prose .lede { color: var(--paper); }
.prose a { color: var(--paper); }
.prose h2, .prose h3 { margin-top: 2.25rem; margin-bottom: 0.75rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.meta {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Editorial two-column: label on the left, matter on the right */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 760px) {
  .editorial { grid-template-columns: 1fr; gap: 1.25rem; }
}
.editorial__label h2 { font-size: clamp(1.6rem, 3.1vw, 2.2rem); }
.editorial__label p { color: var(--muted); margin-top: 0.75rem; max-width: 30ch; }

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover {
  background: var(--accent-lit);
  border-color: var(--accent-lit);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Text link with an arrow, for "read more" moves inside editorial columns. */
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
}
.more::after { content: '\2192'; transition: transform 0.18s ease; }
.more:hover { color: var(--accent-lit); }
.more:hover::after { transform: translateX(3px); }

/* ---------- Masthead / nav ---------------------------------------------- */
/* Static, in the flow, ruled off. The band site floats its header over
   artwork; the label does not have artwork to float over, and a fixed bar
   is one more thing moving on a page that should be still. */
.masthead {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--line-soft);
  background: var(--ground);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

/* The boxed mark on its magenta tile, as it appears on the label's socials.
   Two colours, so it is a background image rather than a mask. Square, so
   sized by height. */
.logo {
  display: block;
  height: calc(var(--header-h) - 24px);
  aspect-ratio: 1;
  background: url('../img/logo-tile.svg?v=9928060c') center / contain no-repeat;
  transition: filter 0.2s ease, transform 0.2s ease;
  flex: none;
}
.logo:hover { filter: brightness(1.15); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
}
.nav a {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--paper); }
.nav a[aria-current='page'] {
  color: var(--paper);
  border-bottom-color: var(--accent);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav__toggle { display: block; }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav[hidden] { display: none; }
  .nav a {
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.9rem;
  }
  .nav a[aria-current='page'] { border-bottom-color: var(--accent); }
}

/* ---------- Front page: typographic hero -------------------------------- */
.hero {
  padding-block: clamp(4rem, 11vw, 9rem) clamp(3.5rem, 8vw, 6rem);
}
.hero h1 {
  font-size: clamp(3rem, 8.6vw, 6.75rem);
  line-height: 0.92;
  max-width: 12ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-text);
}
.hero .lede {
  max-width: 44ch;
  margin-top: 2rem;
}

/* ---------- Page header ------------------------------------------------- */
.page-head {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line-soft);
}
.page-head h1 { max-width: 16ch; }
.page-head .lede { max-width: 50ch; margin-top: 1.5rem; }

/* ---------- Roster ------------------------------------------------------ */
/* A list, not a grid of posters. Each row is a name, a description and
   where to go next. Adding an artist is adding a row. */
.roster { list-style: none; padding: 0; margin: 0; }
.roster > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line-soft);
}
.roster > li:last-child { border-bottom: 1px solid var(--line-soft); }
@media (max-width: 700px) {
  .roster > li { grid-template-columns: 1fr; gap: 1rem; }
}
.roster h3, .roster h2 {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
}
.roster h3 a, .roster h2 a { color: inherit; text-decoration: none; }
.roster h3 a:hover, .roster h2 a:hover { color: var(--accent-lit); }
.roster .meta { margin-top: 0.6rem; }
.roster__body p { color: var(--muted); max-width: 58ch; }
.roster__body p:first-child { color: var(--text); }

/* Placeholder row for a signing that is not announced yet. Kept in the
   stylesheet so drafts/ can use it without a CSS change on the day. */
.roster__soon h3, .roster__soon h2 { color: var(--muted); }
.roster__soon .roster__body p { color: var(--muted); }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
}
.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
}
.links a:hover { color: var(--accent-lit); }
.links svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Artist cards (home) -----------------------------------------
   A scroll-snap row of cards. One card fills the column; two or more scroll
   sideways and site.js adds prev/next buttons. No JS needed for the basics. */
.roster-track {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.roster-track::-webkit-scrollbar { display: none; }
.artist-card {
  flex: 0 0 min(100%, 420px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.artist-card:only-child { flex-basis: 100%; }
/* The artist's own mark, as a mask so it takes the site's paper colour
   whatever colour it was drawn in. --logo and --logo-ratio are set inline
   per card. */
.artist-card__logo,
.roster__logo {
  display: block;
  width: min(100%, 260px);
  aspect-ratio: var(--logo-ratio, 4 / 1);
  background-color: var(--paper-100);
  -webkit-mask: var(--logo) left center / contain no-repeat;
  mask: var(--logo) left center / contain no-repeat;
  transition: background-color 0.2s ease;
}
.artist-card__logo:hover, .roster__logo:hover { background-color: var(--accent-text); }
.artist-card .meta { margin-top: 1.25rem; }
.artist-card__blurb { margin-top: 1rem; color: var(--muted); max-width: 48ch; }
.artist-card__blurb cite { font-style: italic; color: var(--text); }
.artist-card .links { margin-top: auto; padding-top: 1.5rem; }
.roster__logo { width: min(100%, 300px); margin-bottom: 0.25rem; }

/* Controls, injected by site.js only when there is more than one card. */
.roster-nav { display: flex; gap: 0.5rem; margin-top: 1rem; }
.roster-nav button {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font: inherit; font-size: 1.1rem;
  cursor: pointer;
}
.roster-nav button:hover { border-color: var(--paper); }
.roster-nav button:disabled { opacity: 0.35; cursor: default; }

/* ---------- Catalogue --------------------------------------------------- */
/* Release rows. Artwork small and optional: the deep listen lives on the
   artist's own site, this is the record of what the label put out. */
.catalogue { list-style: none; padding: 0; margin: 0; }
.catalogue > li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.catalogue > li:last-child { border-bottom: 1px solid var(--line-soft); }
@media (max-width: 600px) {
  .catalogue > li { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .catalogue__go { grid-column: 2; }
}
.catalogue__art {
  aspect-ratio: 1;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.catalogue__art img { width: 100%; height: 100%; object-fit: cover; }
/* No artwork yet: a quiet tile carrying the catalogue number. */
.catalogue__art--pending {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--muted);
  text-transform: uppercase;
}
.catalogue__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper-100);
}
.catalogue__title a { color: inherit; text-decoration: none; }
.catalogue__title a:hover { color: var(--accent-lit); }
.catalogue__by { margin-top: 0.35rem; color: var(--text); }
.catalogue .meta { margin-top: 0.5rem; }
.catalogue .meta span + span::before {
  content: '\00b7';
  margin-inline: 0.5rem;
  color: var(--accent-text);
}

.people { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.people li { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: baseline; }
.people b { color: var(--paper); font-weight: 700; }
.people span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Enquiry routes (contact) ------------------------------------ */
.routes { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.routes h3 { font-size: 1.35rem; }
.routes p { color: var(--muted); margin-top: 0.4rem; font-size: 0.95rem; }

/* ---------- Form -------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; max-width: 620px; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  width: 100%;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23FEFAF1' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  cursor: pointer;
}
.field select option { background: var(--panel); color: var(--text); }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-lit);
  box-shadow: 0 0 0 3px rgba(192, 40, 123, 0.22);
}
.field input::placeholder, .field textarea::placeholder { color: #8E6F80; }
.field small { color: var(--muted); font-size: 0.8rem; }

/* Honeypot - hidden from people, visible to naive bots. */
.hp {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form__status {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.form__status[hidden] { display: none; }
.form__status--ok { border-left-color: #7FC08A; color: var(--paper); }
.form__status--err { border-left-color: var(--accent-lit); color: var(--paper); }
.form__status--busy { border-left-color: var(--muted); color: var(--muted); }

.form__note { color: var(--muted); font-size: 0.85rem; max-width: 56ch; }

/* ---------- Social ------------------------------------------------------ */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.social a:hover { border-color: var(--paper); color: var(--paper); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Footer ------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  background: var(--panel);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 640px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :first-child { grid-column: 1 / -1; }
}
.footer__mark {
  width: 96px;
  aspect-ratio: 1;
  background-color: var(--paper);
  -webkit-mask: url('../img/logo-yeep.svg?v=89a9a364') center / contain no-repeat;
  mask: url('../img/logo-yeep.svg?v=89a9a364') center / contain no-repeat;
}
.footer h4 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.footer ul a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.footer ul a:hover { color: var(--paper); }
.footer ul svg { width: 14px; height: 14px; fill: currentColor; }

.footer__tagline {
  margin-top: 1.25rem;
  max-width: 26ch;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
}

.footer__legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__legal strong { color: var(--paper); font-weight: 700; }
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--paper); }
