/**
 * Supergrand Supernatural Superhuman — design system.
 *
 * Derived from the album sleeve: an airbrushed spectral field, a soft-focus
 * figure, and analogue grain. The site grounds that colour on near-black so
 * the spectrum reads as emanation and body copy stays legible.
 */

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

:root {
  /* Spectrum, sampled from the sleeve */
  --sg-magenta: #ff00c8;
  --sg-red: #ff2e00;
  --sg-orange: #ff7a00;
  --sg-yellow: #ffe000;
  --sg-lime: #9be800;
  --sg-green: #16e04a;
  --sg-cyan: #12c8e6;

  /* Signature red of the hand lettering — the one accent that means "act" */
  --sg-signature: #ff3b12;

  --sg-ink: #05060a;
  --sg-ink-2: #0b0d14;
  --sg-fg: #ffffff;
  --sg-muted: rgba(255, 255, 255, 0.66);
  --sg-faint: rgba(255, 255, 255, 0.42);
  --sg-line: rgba(255, 255, 255, 0.14);
  --sg-glass: rgba(255, 255, 255, 0.045);

  --sg-spectrum: linear-gradient(
    100deg,
    var(--sg-magenta) 0%,
    var(--sg-red) 22%,
    var(--sg-orange) 38%,
    var(--sg-yellow) 55%,
    var(--sg-lime) 70%,
    var(--sg-green) 85%,
    var(--sg-cyan) 100%
  );

  --sg-font: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;

  --sg-1: 0.5rem;
  --sg-2: 1rem;
  --sg-3: 1.5rem;
  --sg-4: 2.5rem;
  --sg-5: 4rem;
  --sg-6: 6.5rem;

  --sg-max: 1240px;
  --sg-radius: 18px;
  --sg-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ------------------------------------------------------------ foundation */

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sg-ink);
  color: var(--sg-fg);
  font-family: var(--sg-font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The aura: a slow-drifting spectral field behind everything. */
.sg-aura,
.sg-grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.sg-aura::before,
.sg-aura::after {
  content: "";
  position: absolute;
  inset: -30%;
  filter: blur(90px);
  opacity: 0.5;
}

.sg-aura::before {
  background:
    radial-gradient(38% 42% at 14% 8%, var(--sg-yellow) 0%, transparent 68%),
    radial-gradient(44% 46% at 88% 4%, var(--sg-red) 0%, transparent 70%),
    radial-gradient(46% 50% at 96% 78%, var(--sg-green) 0%, transparent 72%),
    radial-gradient(40% 44% at 2% 96%, var(--sg-magenta) 0%, transparent 68%);
  animation: sg-drift 34s var(--sg-ease) infinite alternate;
}

.sg-aura::after {
  background:
    radial-gradient(34% 38% at 50% 42%, var(--sg-cyan) 0%, transparent 70%),
    radial-gradient(40% 40% at 30% 84%, var(--sg-green) 0%, transparent 72%);
  opacity: 0.34;
  animation: sg-drift 46s var(--sg-ease) infinite alternate-reverse;
}

/* Keeps the field from washing out text. */
.sg-aura::marker { content: ""; }

.sg-grain {
  z-index: -1;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes sg-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.14); }
}

/* A dark scrim so the aura never eats body copy. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(5, 6, 10, 0.42) 0%, rgba(5, 6, 10, 0.86) 62%, var(--sg-ink) 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s var(--sg-ease), color 0.25s var(--sg-ease);
}

a:hover { opacity: 0.72; }

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

.sg-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--sg-fg);
  color: var(--sg-ink);
  font-weight: 700;
}

.sg-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------- structure */

.sg-shell {
  width: min(100% - 2.5rem, var(--sg-max));
  margin-inline: auto;
}

.sg-main {
  padding-block: var(--sg-5) var(--sg-6);
}

.sg-section {
  padding-block: var(--sg-5);
}

/* Spectral hairline — the theme's divider. */
.sg-rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: var(--sg-spectrum);
  opacity: 0.85;
}

/* --------------------------------------------------------------- display */

h1, h2, h3, h4 {
  margin: 0 0 var(--sg-2);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.02em; }

p { margin: 0 0 var(--sg-2); }

.sg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--sg-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sg-faint);
}

.sg-eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--sg-spectrum);
}

.sg-lede {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--sg-muted);
  max-width: 62ch;
}

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

/* Spectral text fill, used sparingly. */
.sg-spectral-text {
  background: var(--sg-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.sg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--sg-ease), border-color 0.3s var(--sg-ease);
}

.sg-header.is-stuck {
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--sg-line);
}

.sg-nav-bar {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sg-2);
}

.sg-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sg-brand span {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--sg-faint);
  margin-top: 0.15rem;
}

.sg-nav ul {
  display: flex;
  align-items: center;
  gap: var(--sg-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-block: 0.4rem;
}

.sg-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--sg-spectrum);
  transition: width 0.3s var(--sg-ease);
}

.sg-nav a:hover::after,
.sg-nav .current-menu-item > a::after {
  width: 100%;
}

.sg-nav-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0.7rem;
  background: transparent;
  border: 1px solid var(--sg-line);
  border-radius: 10px;
  cursor: pointer;
}

.sg-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--sg-fg);
  margin: 0.26rem 0;
  transition: transform 0.3s var(--sg-ease), opacity 0.2s var(--sg-ease);
}

.sg-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.35rem) rotate(45deg); }
.sg-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sg-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.35rem) rotate(-45deg); }

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

.sg-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-height: min(86vh, 780px);
  padding-block: var(--sg-4) var(--sg-5);
}

/* Demoted album block sitting under the date hero. */
.sg-hero--compact {
  min-height: 0;
  padding-block: var(--sg-5);
}

.sg-hero--compact .sg-title-stack {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

/* The three-word title stack — the album's core typographic move. */
.sg-title-stack {
  margin: 0 0 var(--sg-3);
  font-size: clamp(2.6rem, 8.2vw, 6.4rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.sg-title-stack span {
  display: block;
}

.sg-title-stack span:nth-child(1) { color: var(--sg-yellow); }
.sg-title-stack span:nth-child(2) { color: var(--sg-green); }
.sg-title-stack span:nth-child(3) { color: var(--sg-cyan); }

.sg-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--sg-3);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sg-muted);
}

.sg-hero-meta .sg-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sg-signature);
}

/* Excerpt sits directly beneath the title stack, above the release meta. */
.sg-album-excerpt {
  margin-bottom: var(--sg-3);
}

/* Artwork with its own bloom. */
.sg-artwork {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--sg-radius);
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}

.sg-artwork::after {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.75;
  background: var(--sg-spectrum);
}

.sg-artwork img,
.sg-artwork svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------------------------------- date hero (teaser) */

/*
 * The album isn't out yet, so the homepage leads with the sleeve's colour
 * field and the release date, full-bleed. Breaks out of .sg-shell.
 */
.sg-date-hero {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-top: calc(var(--sg-5) * -1);
  width: 100vw;
  min-height: min(92vh, 900px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* The colour, at full strength. */
.sg-date-hero::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -2;
  background:
    radial-gradient(42% 46% at 12% 8%, var(--sg-yellow) 0%, transparent 66%),
    radial-gradient(46% 50% at 92% 4%, var(--sg-red) 0%, transparent 68%),
    radial-gradient(52% 56% at 96% 84%, var(--sg-green) 0%, transparent 70%),
    radial-gradient(44% 48% at 2% 96%, var(--sg-magenta) 0%, transparent 66%),
    radial-gradient(38% 42% at 52% 54%, var(--sg-cyan) 0%, transparent 64%),
    var(--sg-orange);
  filter: blur(50px) saturate(118%);
  animation: sg-drift 40s var(--sg-ease) infinite alternate;
}

/* Analogue grain over the field. */
.sg-date-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Teaser homepage: the field runs edge to edge, header to footer. */
.sg-teaser .sg-main {
  padding-block: 0;
}

.sg-teaser .sg-date-hero {
  margin-top: 0;
  min-height: calc(100vh - 5rem);
}

.sg-teaser .sg-footer {
  margin-top: 0;
}

.sg-date-hero__date {
  margin: 0;
  padding: 0 4vw;
  font-size: clamp(5.5rem, 27vw, 24rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-align: center;
  color: var(--sg-ink);
  font-variant-numeric: tabular-nums;
}

/* Screen readers get the real date, not "22.08". */
.sg-date-hero__date .screen-reader-text { font-size: 1rem; }

@media (max-width: 600px) {
  .sg-date-hero { min-height: 74vh; }
}

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

.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--sg-ease), box-shadow 0.25s var(--sg-ease), opacity 0.25s var(--sg-ease);
}

.sg-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.sg-btn--primary {
  background: var(--sg-signature);
  color: #fff;
  box-shadow: 0 12px 34px -12px rgba(255, 59, 18, 0.9);
}

.sg-btn--primary:hover { box-shadow: 0 18px 44px -12px rgba(255, 59, 18, 1); }

.sg-btn--ghost {
  background: var(--sg-glass);
  color: var(--sg-fg);
  border: 1px solid var(--sg-line);
  backdrop-filter: blur(8px);
}

.sg-btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); }

.sg-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------- listen / dsps */

.sg-listen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--sg-line);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  overflow: hidden;
}

.sg-listen a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: rgba(5, 6, 10, 0.55);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s var(--sg-ease);
}

.sg-listen a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.07);
}

.sg-listen a::after {
  content: "↗";
  color: var(--sg-faint);
}

.sg-listen a[aria-disabled="true"] {
  color: var(--sg-faint);
  cursor: default;
}

/* ----------------------------------------------------------------- cards */

.sg-grid {
  display: grid;
  gap: var(--sg-3);
}

.sg-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sg-grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.sg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  background: var(--sg-glass);
  overflow: hidden;
  transition: transform 0.35s var(--sg-ease), border-color 0.35s var(--sg-ease);
}

.sg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.32);
}

.sg-card__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sg-ink-2), #14161f);
}

.sg-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--sg-ease);
}

.sg-card:hover .sg-card__media img { transform: scale(1.05); }

.sg-card__body {
  padding: 1.15rem 1.25rem 1.4rem;
}

.sg-card__body h3 { margin-bottom: 0.35rem; }

.sg-card__meta {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-faint);
}

/* Whole-card link target. */
.sg-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ------------------------------------------------------------- tracklist */

.sg-tracklist {
  counter-reset: track;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sg-line);
}

.sg-tracklist li {
  counter-increment: track;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1rem 0.35rem;
  border-bottom: 1px solid var(--sg-line);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.sg-tracklist li::before {
  content: counter(track, decimal-leading-zero);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sg-faint);
  min-width: 2.2rem;
}

/* -------------------------------------------------- archive filter bar - */

.sg-archive-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sg-2);
}

.sg-archive-bar h1 { margin: 0; }

.sg-filter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sg-filter__select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.7rem 2.6rem 0.7rem 1.1rem;
  background-color: var(--sg-ink-2);
  color: var(--sg-fg);
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 11px;
}

.sg-filter__select option {
  background: var(--sg-ink-2);
  color: var(--sg-fg);
}

/* Submit is only needed without JS; theme.js hides it and auto-submits. */
.sg-filter__go { padding: 0.7rem 1.2rem; }
.sg-filter.is-enhanced .sg-filter__go { display: none; }

/* ---------------------------------------------------------- song list -- */

.sg-songlist {
  list-style: none;
  margin: var(--sg-4) 0 0;
  padding: 0;
  border-top: 1px solid var(--sg-line);
  counter-reset: songrow;
}

.sg-songlist__row {
  display: grid;
  grid-template-columns: 1fr auto 4.5rem;
  align-items: baseline;
  gap: var(--sg-2);
  padding: 1rem 0.35rem;
  border-bottom: 1px solid var(--sg-line);
  transition: background 0.25s var(--sg-ease);
}

.sg-songlist__row:hover { background: rgba(255, 255, 255, 0.035); }

.sg-songlist__title {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sg-songlist__release {
  font-size: 0.85rem;
  color: var(--sg-muted);
  text-align: right;
}

.sg-songlist__year {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--sg-faint);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .sg-songlist__row {
    grid-template-columns: 1fr auto;
  }

  .sg-songlist__release {
    grid-column: 1;
    text-align: left;
    font-size: 0.8rem;
  }
}

/* ------------------------------------------------------------ song page */

/* Writer / producer credits under a song title. */
.sg-credits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sg-3);
  margin: var(--sg-3) 0 0;
}

.sg-credits div { min-width: 0; }

.sg-credits dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sg-faint);
  margin-bottom: 0.35rem;
}

.sg-credits dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--sg-fg);
}

/* Every release a song turns up on. */
.sg-appearances {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sg-line);
}

.sg-appearance {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: var(--sg-2);
  padding: 1rem 0.35rem;
  border-bottom: 1px solid var(--sg-line);
}

.sg-appearance__art {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sg-ink-2);
}

.sg-appearance__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-appearance__body { min-width: 0; }

.sg-appearance__release {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.sg-appearance__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--sg-faint);
}

.sg-appearance__side {
  display: flex;
  align-items: baseline;
  gap: var(--sg-2);
  font-variant-numeric: tabular-nums;
}

.sg-appearance__year {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--sg-faint);
}

.sg-appearance__len {
  font-size: 0.9rem;
  color: var(--sg-muted);
}

@media (max-width: 560px) {
  .sg-appearance {
    grid-template-columns: 48px 1fr;
  }

  .sg-appearance__art { width: 48px; height: 48px; }

  .sg-appearance__side {
    grid-column: 2;
    gap: 0.75rem;
  }
}

/* ------------------------------------------------------------------ tour */

.sg-dates { border-top: 1px solid var(--sg-line); }

.sg-date {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  align-items: center;
  gap: var(--sg-2);
  padding: 1.35rem 0.35rem;
  border-bottom: 1px solid var(--sg-line);
}

.sg-date__when {
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.sg-date__where { color: var(--sg-muted); }
.sg-date__where strong { color: var(--sg-fg); font-weight: 700; }

/* ----------------------------------------------------------------- video */

.sg-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--sg-radius);
  overflow: hidden;
  border: 1px solid var(--sg-line);
}

.sg-video iframe,
.sg-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ----------------------------------------------------------------- prose */

.sg-prose {
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.86);
}

.sg-prose h2,
.sg-prose h3 { margin-top: var(--sg-4); }

.sg-prose a {
  color: var(--sg-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sg-prose blockquote {
  margin: var(--sg-3) 0;
  padding-left: 1.5rem;
  border-left: 3px solid transparent;
  border-image: var(--sg-spectrum) 1;
  font-size: 1.15rem;
  color: var(--sg-fg);
}

.sg-prose code {
  background: rgba(255, 255, 255, 0.09);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  font-size: 0.92em;
}

.sg-prose pre {
  background: var(--sg-ink-2);
  border: 1px solid var(--sg-line);
  border-radius: 12px;
  padding: var(--sg-2);
  overflow-x: auto;
}

.sg-prose img { border-radius: 12px; }

.sg-prose ul,
.sg-prose ol { padding-left: 1.3rem; }

.sg-prose li { margin-bottom: 0.5rem; }

/* ---------------------------------------------------------- entry / post */

.sg-entry-header { margin-bottom: var(--sg-4); }

.sg-entry-meta {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sg-faint);
}

.sg-featured {
  margin-bottom: var(--sg-4);
  border-radius: var(--sg-radius);
  overflow: hidden;
}

/* ------------------------------------------------------------ pagination */

.sg-pagination {
  margin-top: var(--sg-5);
  display: flex;
  justify-content: center;
}

.sg-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.6rem;
  margin: 0 0.2rem;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.sg-pagination .page-numbers.current {
  background: var(--sg-signature);
  border-color: var(--sg-signature);
}

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

.sg-footer {
  position: relative;
  margin-top: var(--sg-6);
  padding-block: var(--sg-5) var(--sg-4);
  border-top: 1px solid var(--sg-line);
}

.sg-footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sg-3);
}

.sg-footer-title {
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
}

.sg-footer-note {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sg-faint);
}

.sg-social {
  display: flex;
  gap: var(--sg-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------- woocommerce  */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  list-style: none;
  border: 1px solid var(--sg-line);
  border-left: 3px solid var(--sg-signature);
  border-radius: 10px;
  background: var(--sg-glass);
  padding: 1rem 1.25rem;
  margin-bottom: var(--sg-3);
}

/*
 * Woo ships a float grid and a clearfix. Both fight a CSS grid: the ::before
 * and ::after clearfix pseudo-elements become grid items and consume cells,
 * and li.product keeps width:22.05%, which is then 22% of its track. Neutralise
 * all of it before laying the cards out.
 */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--sg-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  content: none;
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  clear: none;
  width: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  background: var(--sg-glass);
  overflow: hidden;
  padding: 0 0 1.25rem;
  text-align: left;
  transition: transform 0.35s var(--sg-ease), border-color 0.35s var(--sg-ease);
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.32);
}

/* The product link wraps image, title and price. */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/*
 * Merch mockups are shot on white, so give the media tile a white ground —
 * it reads as deliberate rather than as a broken transparent PNG.
 */
.woocommerce ul.products li.product img {
  margin: 0 0 1rem;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  padding: 6%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding: 0 1.1rem;
  margin: 0 0 0.4rem;
}

.woocommerce ul.products li.product .price {
  display: block;
  padding: 0 1.1rem;
  margin-top: auto;
  color: var(--sg-muted);
  font-size: 0.95rem;
}

/* Keep the CTA inside the card no matter how long the label is. */
.woocommerce ul.products li.product .button {
  align-self: flex-start;
  max-width: calc(100% - 2.2rem);
  white-space: normal;
  text-align: center;
}

/* ------------------------------------------------- shop header controls  */

.woocommerce .woocommerce-result-count {
  margin: 0;
  color: var(--sg-faint);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.woocommerce .woocommerce-ordering {
  margin: 0;
}

.woocommerce .woocommerce-ordering select,
.woocommerce select.orderby {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.7rem 2.6rem 0.7rem 1rem;
  background-color: var(--sg-ink-2);
  color: var(--sg-fg);
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 11px;
}

.woocommerce .woocommerce-ordering select option {
  background: var(--sg-ink-2);
  color: var(--sg-fg);
}

/* Row holding the count and the sort control. */
.sg-shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sg-2);
  margin-bottom: var(--sg-3);
  padding-bottom: var(--sg-3);
  border-bottom: 1px solid var(--sg-line);
}

.woocommerce ul.products li.product .price del { opacity: 0.5; margin-right: 0.4rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--sg-fg); }

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.9rem 1.1rem 0;
  padding: 0.8rem 1.4rem;
  background: var(--sg-signature);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--sg-ease);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--sg-signature);
  transform: translateY(-2px);
  opacity: 1;
}

.woocommerce div.product .product_title { margin-bottom: 0.5rem; }

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--sg-fg);
  font-size: 1.5rem;
  font-weight: 700;
}

.woocommerce div.product form.cart { margin-top: var(--sg-3); }

.woocommerce div.product form.cart .button { margin-left: 0; }

.woocommerce .quantity .qty {
  padding: 0.7rem;
  background: var(--sg-ink-2);
  color: var(--sg-fg);
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  width: 4.5rem;
}

.woocommerce table.shop_table,
.woocommerce table.cart {
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 1rem;
  border-bottom: 1px solid var(--sg-line);
  text-align: left;
}

.woocommerce .woocommerce-tabs ul.tabs {
  list-style: none;
  display: flex;
  gap: var(--sg-3);
  padding: 0;
  margin: var(--sg-4) 0 var(--sg-2);
  border-bottom: 1px solid var(--sg-line);
}

.woocommerce .woocommerce-tabs ul.tabs li a {
  display: block;
  padding-bottom: 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.sg-field {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--sg-ink-2);
  color: var(--sg-fg);
  border: 1px solid var(--sg-line);
  border-radius: 10px;
  font-family: inherit;
}

.woocommerce .star-rating span::before { color: var(--sg-yellow); }

/* ------------------------------------------------------ single product  */

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.woocommerce div.product::before,
.woocommerce div.product::after {
  content: none;
  display: none;
}

.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none;
  width: auto;
  margin: 0;
}

/* Full-width rows below the two-column fold. */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .up-sells,
.woocommerce div.product .product_meta {
  grid-column: 1 / -1;
}

/* Same white ground as the loop tiles, for the same reason. */
.woocommerce div.product div.images img {
  border-radius: var(--sg-radius);
  background: #fff;
}

.woocommerce div.product .woocommerce-product-gallery__wrapper { margin: 0; }

.woocommerce div.product form.cart div.quantity { margin-right: 0.75rem; }

.woocommerce div.product .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.woocommerce div.product table.variations {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sg-2);
}

.woocommerce div.product table.variations td { padding: 0.4rem 0; }

.woocommerce div.product table.variations select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--sg-ink-2);
  color: var(--sg-fg);
  border: 1px solid var(--sg-line);
  border-radius: 10px;
  font-family: inherit;
}

@media (max-width: 820px) {
  .woocommerce div.product { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- search form  */

.sg-search {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin-top: 1.5rem;
}

.sg-search .sg-field { flex: 1; }

/* ---------------------------------------------------------- comments --- */

.sg-comments .comment-body {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--sg-line);
}

.sg-comments .children {
  list-style: none;
  margin: 0;
  padding-left: clamp(1rem, 4vw, 2.5rem);
}

.sg-comments .comment-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.sg-comments .comment-author img { border-radius: 50%; }

.sg-comments .comment-meta,
.sg-comments .reply {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sg-faint);
}

#respond {
  margin-top: var(--sg-4);
}

#respond textarea,
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"] {
  width: 100%;
  max-width: 620px;
  padding: 0.85rem 1rem;
  background: var(--sg-ink-2);
  color: var(--sg-fg);
  border: 1px solid var(--sg-line);
  border-radius: 10px;
  font-family: inherit;
}

#respond .form-submit input[type="submit"] {
  border: 0;
  cursor: pointer;
}

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

@media (max-width: 900px) {
  .sg-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: var(--sg-2);
  }

  .sg-hero-copy { order: 2; }
  .sg-artwork { order: 1; max-width: 460px; }

  .sg-date {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 780px) {
  .sg-nav-toggle { display: block; }

  .sg-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: var(--sg-2) 1.25rem var(--sg-3);
    background: rgba(5, 6, 10, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sg-line);
  }

  .sg-nav.is-open { display: block; }

  .sg-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sg-2);
  }

  .sg-nav a { font-size: 1rem; }

  .sg-header { position: relative; }
}

/* --------------------------------------------------------- accessibility */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .sg-aura::before,
  .sg-aura::after { animation: none; }
}

/* Print: drop the field, keep the words. */
@media print {
  .sg-aura,
  .sg-grain,
  .sg-header,
  .sg-footer { display: none; }

  body { background: #fff; color: #000; }
  body::before { display: none; }
}
