/* ==========================================================
   h3artfelt: styles
   Colours live in :root. Change them there and the whole
   site follows.
   ========================================================== */

:root {
  --bruise: #1c1024;       /* main background */
  --bruise-2: #2b1838;     /* slightly lighter panels */
  --plaster: #f0d2c2;      /* shop background */
  --pink: #ff3344;         /* accent */
  --pink-deep: #b3121f;    /* accent on light backgrounds */
  --text: #f6e9e2;
  --muted: #bfa9c4;
  --ink: #1c1024;

  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --gut: clamp(1.25rem, 5vw, 4rem);
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--bruise);
  color: var(--text);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* film grain over everything, so the dark colours feel printed rather than flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--pink);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 999px;
  font-weight: 700;
}
.skip:focus { left: 0.5rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gut);
  background: rgba(28, 16, 36, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand span { color: var(--pink); }

.nav { display: flex; gap: 1.9rem; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.nav a:hover { border-color: var(--pink); color: var(--pink); }

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--pink);
  border-radius: 999px;
  padding: 0.2rem 0.95rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gut) 1.25rem;
    background: var(--bruise);
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.5rem; padding: 0.6rem 0; border-bottom: 0; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 3.6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) var(--gut);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(255, 51, 68, 0.28), rgba(106, 92, 214, 0.1) 45%, transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }

.wordmark {
  margin: 0;
  font-size: clamp(3.4rem, 17.2vw, 16.5rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.055em;
}
.wordmark .three {
  display: inline-block;
  color: var(--pink);
  transform-origin: 50% 62%;
  text-shadow: 0 0 0.3em rgba(255, 51, 68, 0.6);
  animation: beat 1.6s ease-in-out infinite;
}

@keyframes beat {
  0%, 52%, 100% { transform: scale(1); }
  8%  { transform: scale(1.1); }
  18% { transform: scale(1); }
  28% { transform: scale(1.06); }
  40% { transform: scale(1); }
}

.ecg {
  display: block;
  width: 100%;
  height: clamp(56px, 9vw, 110px);
  margin: clamp(0.8rem, 2vw, 1.6rem) 0;
  overflow: visible;
}
.ecg path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(255, 51, 68, 0.75));
  animation: draw 2.8s 0.3s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-line {
  margin: 0 0 2rem;
  max-width: 22ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.12;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

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

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-pink { background: var(--pink); color: var(--ink); }
.btn-pink:hover { background: #fff; }

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

.btn-dark { background: var(--ink); color: var(--plaster); padding: 0.4rem 1.1rem; font-size: 0.95rem; }
.btn-dark:hover { background: var(--pink-deep); color: #fff; }
.btn-dark[aria-disabled="true"] {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 16, 36, 0.35);
  cursor: not-allowed;
}
.btn-dark[aria-disabled="true"]:hover { background: transparent; color: var(--ink); }

/* ---------- bands (sections) ---------- */

.band {
  padding: clamp(4rem, 10vw, 8rem) var(--gut);
}
.band-deep { background: var(--bruise-2); }
.band-plaster { background: var(--plaster); color: var(--ink); }

.band-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
@media (max-width: 800px) {
  .band-inner { grid-template-columns: minmax(0, 1fr); }
}

.band-title {
  margin: 0;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.text-link {
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  transition: color 0.15s;
}
.text-link:hover { color: var(--pink); }

/* ---------- music ---------- */

.release-list { list-style: none; margin: 0; padding: 0; }

.release {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(246, 233, 226, 0.16);
}
.release:last-child { border-bottom: 1px solid rgba(246, 233, 226, 0.16); }

.cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(150deg, var(--c1, #ff3344), var(--c2, #3a1d5c));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-title {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.5rem;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.release-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.release-meta { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.97rem; }

.release-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
}

.more-singles {
  margin: 2rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.25;
  color: var(--muted);
}

@media (max-width: 560px) {
  .release { grid-template-columns: 76px minmax(0, 1fr); }
  .release-links { grid-column: 1 / -1; justify-content: flex-start; }
  .cover-title { font-size: 0.62rem; }
}

/* ---------- news ---------- */

.news-item {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(246, 233, 226, 0.18);
}
.news-item:last-child { border-bottom: 1px solid rgba(246, 233, 226, 0.18); }
.news-date { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.97rem; }
.news-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.news-text { margin: 0.6rem 0 0; max-width: 58ch; }
.news-link { display: inline-block; margin-top: 0.7rem; }

@media (max-width: 560px) {
  .news-item { grid-template-columns: minmax(0, 1fr); }
}

.empty-note { margin: 0; color: var(--muted); font-style: italic; }

/* ---------- about ---------- */

.about-body p {
  margin: 0 0 1em;
  max-width: 21em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.12;
}
.about-body p:last-child { margin-bottom: 0; }

/* ---------- shop ---------- */

.shop-intro {
  margin: 0 0 2.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 2.5rem 1.75rem;
}

.art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--tone, #2b1838);
  border-radius: 4px;
}
.art img { width: 100%; height: 100%; object-fit: cover; }

/* vinyl */
.art-vinyl .shape {
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #130818 0 2px, #231230 2px 4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}
.art-vinyl .shape::after {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 5px #130818;
}

/* cd */
.art-cd .shape {
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 20deg, #e8e3ee, #9b8fb0, #f6f1fa, #8a7ea3, #e8e3ee);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.art-cd .shape::after {
  content: "";
  position: absolute;
  inset: 40%;
  border-radius: 50%;
  background: var(--tone, #2b1838);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5);
}

/* tee + hoodie */
.art-tee .shape,
.art-hoodie .shape {
  width: 72%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--garment, #1c1024);
  color: var(--pink);
  font-weight: 800;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  letter-spacing: -0.05em;
  clip-path: polygon(30% 4%, 38% 12%, 62% 12%, 70% 4%, 99% 24%, 86% 43%, 77% 37%, 77% 96%, 23% 96%, 23% 37%, 14% 43%, 1% 24%);
}
.art-hoodie .shape { clip-path: polygon(32% 3%, 40% 11%, 60% 11%, 68% 3%, 99% 26%, 88% 78%, 77% 76%, 77% 97%, 23% 97%, 23% 76%, 12% 78%, 1% 26%); }

/* sticker */
.art-sticker .shape {
  width: 60%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--pink);
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  letter-spacing: -0.06em;
  border-radius: 22%;
  transform: rotate(-7deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.product-name {
  margin: 1rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.product-kind { margin: 0.15rem 0 0; font-size: 0.95rem; opacity: 0.7; }
.product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
}
.price { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .product-buy { flex-wrap: wrap; gap: 0.5rem; }
}

.band-plaster :focus-visible { outline-color: var(--ink); }
.band-plaster .empty-note { color: var(--ink); opacity: 0.7; }

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

.site-footer {
  padding: clamp(3rem, 7vw, 5rem) var(--gut) 2rem;
  background: var(--bruise);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}
.footer-mark {
  margin: 0 0 1rem;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 1;
}
.footer-mark span { color: var(--pink); }

.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-mail { margin: 0.8rem 0 0; }

.signup { flex: 1 1 320px; max-width: 460px; }
.signup label { display: block; margin-bottom: 0.6rem; font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.1; }
.signup-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.signup input {
  flex: 1 1 180px;
  min-width: 0;
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 2px solid rgba(246, 233, 226, 0.4);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus { border-color: var(--pink); outline: none; }

.legal {
  max-width: var(--max);
  margin: 3rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wordmark .three { animation: none; }
  .ecg path { animation: none; stroke-dashoffset: 0; }
  .btn, .nav a, .text-link { transition: none; }
}

/* ---------- hidden admin door ---------- */

.door {
  margin: auto;
  width: min(92vw, 360px);
  padding: 1.5rem;
  color: var(--text);
  background: var(--bruise-2);
  border: 2px solid var(--pink);
  border-radius: 18px;
}
.door::backdrop { background: rgba(10, 4, 14, 0.75); }
.door-form { display: grid; gap: 0.8rem; }
.door input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 2px solid rgba(246, 233, 226, 0.4);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
}
.door input:focus { border-color: var(--pink); outline: none; }
.door-msg { margin: 0; min-height: 1.4em; color: #ff8fa8; font-size: 0.95rem; }
.door-actions { display: flex; align-items: center; gap: 1rem; }
.door-cancel { font: inherit; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; }
