/* Longform Audio
   ---------------------------------------------------------------------------
   Three surfaces — light grey ground, deep green, blush pink — and one very
   heavy uppercase grotesque doing almost all of the work. Everything that is
   not body copy is set in it, from a 14px eyebrow to a 118px section head, so
   the scale itself is the design. Rubik carries the reading text and nothing
   else.
   --------------------------------------------------------------------------- */

/* ---- fonts -------------------------------------------------------------- */

/* Archivo stands in for Plein, which is a licensed commercial face. It is a
   variable font with a width axis, which matters here: the display sizes want
   to be wider than the default, and faking that with letter-spacing on a 900
   weight looks exactly like what it is. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo.woff2') format('woff2-variations');
}
/* Rubik is openly licensed and is what the reference uses, so there is nothing
   to substitute — it is the right face and we are entitled to serve it. */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/rubik.woff2') format('woff2');
}

/* Metric-matched fallbacks so the swap costs no layout shift. */
@font-face {
  font-family: 'Archivo fallback';
  src: local('Arial Black'), local('Helvetica Neue'), local('Arial');
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 104%;
}
@font-face {
  font-family: 'Rubik fallback';
  src: local('Helvetica Neue'), local('Arial');
  ascent-override: 94%;
  descent-override: 25%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

/* ---- tokens ------------------------------------------------------------- */

:root {
  --ground: #f5f5f5;
  --green: #1f4d26;        /* 8.5:1 on ground, 6.0:1 on blush */
  --green-dark: #183a1e;
  --blush: #f1bcbc;
  --rose: #7f5c5c;         /* 5.5:1 on ground — the eyebrow colour */
  --white: #ffffff;
  --ink: #241f33;

  --display: 'Archivo', 'Archivo fallback', 'Arial Black', system-ui, sans-serif;
  --body: 'Rubik', 'Rubik fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --radius: 8px;
  --radius-lg: 24px;
  --wrap: 1344px;
  --gutter: 24px;

  /* A 1.23 modular scale, measured off the reference: 14.2 / 17.5 / 21.5 /
     26.5 / 76.7 / 95.1 / 118.1. Display sizes are clamped hard at the bottom —
     118px does not survive a 375px viewport and pretending otherwise is how a
     hero ends up with one word per line. */
  --t-xs: 0.888rem;
  --t-sm: 1.092rem;
  --t-md: 1.344rem;
  --t-lg: 1.657rem;
  --t-h3: clamp(1.15rem, 1.02rem + 0.55vw, 1.344rem);
  --t-h2-sm: clamp(2rem, 1.13rem + 3.7vw, 4.795rem);
  --t-h1: clamp(2.5rem, 1.28rem + 5.2vw, 5.947rem);
  --t-h2: clamp(2.75rem, 1.05rem + 7.2vw, 7.38rem);

  --pad-section: clamp(64px, 7vw, 120px);
}

/* ---- reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--green);
  font-family: var(--body);
  font-size: var(--t-sm);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 108%;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
  /* Display type this heavy has words that are simply wider than a phone.
     "Cartographer's" at the h1's minimum size is 386px on a 375px screen, and
     without this the whole grid column is sized by it and the page scrolls
     sideways. Hyphenation handles it properly; break-word is the backstop for
     anything the dictionary cannot split. */
  hyphens: auto;
  overflow-wrap: break-word;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}
.panel--green :focus-visible, .site-footer :focus-visible { outline-color: var(--blush); }

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

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--green);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 16px; }

/* ---- layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 900px) { .wrap { padding-inline: 48px; } }

.panel { padding-block: var(--pad-section); }
.panel--green { background: var(--green); color: var(--white); }
.panel--blush { background: var(--blush); color: var(--green); }
.panel--tight { padding-block: clamp(48px, 5vw, 76px); }

.measure { max-width: 864px; margin-inline: auto; }
.center { text-align: center; }

/* ---- type helpers ------------------------------------------------------- */

.eyebrow {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 108%;
  font-size: var(--t-sm);
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 18px;
}
.eyebrow--sm { font-size: var(--t-xs); }
.panel--green .eyebrow { color: var(--white); }

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.375; }
.h2--sm { font-size: var(--t-h2-sm); }

.lede { font-size: var(--t-sm); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }

/* ---- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 108%;
  font-size: var(--t-sm);
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.btn:hover { background: transparent; color: var(--green); }
.btn svg { flex: 0 0 auto; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(4px) rotate(-8deg); }

.btn--light { background: var(--white); color: var(--green); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }

.btn--blush { background: var(--blush); color: var(--green); border-color: var(--blush); }
.btn--blush:hover { background: transparent; color: var(--blush); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .btn svg, .btn:hover svg { transition: none; transform: none; }
}

/* ---- header ------------------------------------------------------------- */

.site-header { position: relative; z-index: 20; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 136px;
}

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__mark { flex: 0 0 auto; }
.brand__name {
  overflow-wrap: break-word;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: 1.9rem;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.brand__name span { display: block; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 108%;
  font-size: var(--t-sm);
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current='page'] { border-bottom-color: currentColor; }
.site-nav .btn { border-bottom: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: none;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span { display: grid; gap: 4px; width: 20px; }
.nav-toggle span span { height: 2.5px; background: currentColor; width: 100%; }

/* ---- full-screen menu --------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--green);
  color: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px var(--gutter) 48px;
}
.menu[hidden] { display: none; }
.menu__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: none;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu__nav a {
  display: block;
  padding: 12px 0;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 108%;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem);
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.22);
}
.menu__nav a:hover { color: var(--blush); }
body.menu-open { overflow: hidden; }

/* ---- hero --------------------------------------------------------------- */

/* The collage. Cut-outs are positioned against the hero box and hidden below
   1100px rather than being allowed to shrink — at tablet width they collide
   with the headline, and a decorative element that fights the h1 is worse than
   no decorative element. */
.hero { position: relative; padding-block: clamp(56px, 6vw, 92px) clamp(40px, 4vw, 64px); }
.hero__deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__deco > * { position: absolute; }
.hero h1 { margin-bottom: 28px; }
.hero .measure > p { margin-bottom: 30px; }

.deco-1 { left: 1.5%;  top: 30%; transform: rotate(-14deg); width: 190px; }
.deco-2 { right: 2%;   top: 24%; transform: rotate(9deg);   width: 165px; }
.deco-3 { left: 1%;    top: 70%; transform: rotate(6deg);   width: 155px; }
.deco-4 { right: 3%;   top: 74%; transform: rotate(-7deg);  width: 150px; }
.squiggle { color: var(--blush); }
.squiggle-1 { left: 11%; top: 62%; width: 170px; }
.squiggle-2 { right: 9%; top: 60%; width: 190px; }

@media (max-width: 1180px) { .hero__deco { display: none; } }

.hero__figure { margin-top: clamp(40px, 5vw, 72px); border-radius: var(--radius-lg); overflow: hidden; }
.hero__figure img { width: 100%; }

/* ---- covers -------------------------------------------------------------
   Built from type and flat colour rather than shipped as images: crisp at any
   density, the title is real text, and the whole catalogue weighs nothing. */

/* Sized against the cover itself rather than the viewport. A cover appears at
   four different widths on this site — 150px floating in the hero, 300px in a
   grid, 315px in the featured list, 340px on a title page — and viewport units
   get all four wrong. cqw makes the type a fixed proportion of the artwork,
   which is how a real jacket is set. */
.cover {
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6%;
  aspect-ratio: 1 / 1;
  padding: 6%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cover-paper, var(--green));
  color: var(--cover-ink, var(--white));
  text-decoration: none;
  isolation: isolate;
  /* A cover whose paper happens to match the surface behind it disappears —
     the deep green jacket on the deep green panel had no edge at all. A
     hairline in the cover's own ink guarantees one on every surface. */
  outline: 1px solid var(--cover-ink, var(--white));
  outline-offset: -1px;
}
.cover__art { position: absolute; inset: 0; z-index: -1; opacity: 0.9; }
.cover__art svg { width: 100%; height: 100%; }
.cover__author {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 4.6cqw;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cover__title {
  overflow-wrap: break-word;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: var(--cover-size, 12cqw);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.cover-wrap { display: grid; gap: 0; }
.cover-sample {
  display: block;
  padding: 9px 14px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--green-dark);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
}
.cover-wrap .cover { border-radius: var(--radius) var(--radius) 0 0; }
.panel--green .cover-sample { background: var(--green-dark); }

/* ---- featured list ------------------------------------------------------ */

.releases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
.release { display: grid; grid-template-columns: 315px minmax(0, 1fr); gap: 24px; align-items: start; }
.release h3 { margin-bottom: 12px; }
.release__meta {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}
.release p { font-size: var(--t-xs); line-height: 1.6; }
.release .btn { margin-top: 14px; }

@media (max-width: 1100px) { .releases { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .release { grid-template-columns: 1fr; gap: 18px; } }

/* ---- marquee ------------------------------------------------------------ */

.marquee {
  background: var(--blush);
  color: var(--green);
  padding-block: 14px;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 0;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee__track > span {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 108%;
  font-size: var(--t-lg);
  line-height: 1.5;
  text-transform: uppercase;
  padding-inline: 22px;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Reduced motion stops the scroll and shows one static run of the list, which
   still reads — a marquee that simply freezes mid-cycle clips its own text. */
@media (prefers-reduced-motion: reduce) {
  .marquee { white-space: normal; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee__track[data-clone] { display: none; }
}

/* ---- split -------------------------------------------------------------- */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
.split__art { align-self: end; }
.split__art img { width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---- retailers ---------------------------------------------------------- */

.retailers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px clamp(24px, 4vw, 54px);
}
.retailers li {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 96%;
  font-size: clamp(1.1rem, 0.85rem + 0.9vw, 1.5rem);
  text-transform: uppercase;
  color: var(--green);
}

/* ---- catalogue ---------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  padding: 10px 18px;
  min-height: 44px;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: transparent;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 104%;
  font-size: 0.86rem;
  text-transform: uppercase;
  cursor: pointer;
}
.filter[aria-pressed='true'] { background: var(--green); color: var(--white); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 26px; }
.grid > [hidden] { display: none; }
.tile__title { margin-top: 14px; font-size: 1.05rem; }
.tile__meta { font-size: var(--t-xs); margin-top: 4px; }
.tile a { text-decoration: none; }
.tile a:hover .cover { outline: 3px solid var(--green); outline-offset: 3px; }

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.no-results { display: none; font-size: var(--t-md); }
.no-results[data-shown='true'] { display: block; }

/* ---- title page --------------------------------------------------------- */

.title-head { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.title-head h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); margin-bottom: 16px; }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px 28px; margin: 30px 0; padding-block: 24px; border-block: 2px solid currentColor; }
.spec dt { font-family: var(--display); font-weight: 900; font-stretch: 104%; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.75; }
.spec dd { margin: 4px 0 0; font-size: var(--t-sm); }
@media (max-width: 760px) { .title-head { grid-template-columns: minmax(0, 1fr); } .title-head .cover-wrap { max-width: 300px; } }

.pull {
  margin: 0;
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--blush);
  color: var(--green);
}
.pull p { font-family: var(--display); font-weight: 900; font-stretch: 104%; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); line-height: 1.18; text-transform: uppercase; }
.pull footer { margin-top: 14px; font-family: var(--body); font-size: var(--t-xs); text-transform: none; }

/* ---- forms -------------------------------------------------------------- */

.form { display: grid; gap: 20px; max-width: 620px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--display); font-weight: 900; font-stretch: 104%; font-size: 0.82rem; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--green);
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: #8a2f2f; }
.field .error { font-size: var(--t-xs); color: #7d2626; margin: 0; }
.field:not(.invalid) .error { display: none; }
.field--hp { position: absolute; left: -9999px; }
.form-note { font-size: var(--t-xs); max-width: 62ch; }

/* ---- footer ------------------------------------------------------------- */

.site-footer { padding-top: clamp(48px, 5vw, 72px); overflow: hidden; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding-bottom: 32px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 108%;
  font-size: var(--t-sm);
  text-transform: uppercase;
  text-decoration: none;
}
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { font-size: var(--t-xs); }

/* The oversized logo lockup that closes the page. It is allowed to run off the
   bottom of the viewport, which is the point of it. */
.footer-lockup {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  margin-top: 8px;
}
.footer-lockup__mark { flex: 0 0 auto; width: clamp(110px, 18vw, 260px); }
.footer-lockup__name {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(3rem, 1.2rem + 9vw, 9.5rem);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.footer-lockup__name span { display: block; }
.footer-lockup__name em { font-style: normal; color: var(--blush); }

/* ---- scroll reveal ------------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { min-height: 92px; }
}

@media (max-width: 560px) {
  .grid { gap: 26px 18px; }
  .brand__name { font-size: 1.55rem; }
}
