/* Chasing Chaos Records — website v1 (from design mockup v040) */

:root {
  --ink: #111111;
  --blue: #1B5FAA;
  --sand: #E8DCC4;
  --sand-dim: #C9C6C0;
  --grey: #A9A49B;
  --line: #2a2a2a;
  --yellow: #FAC775;
  --amber: #FFB000;
  --orange: #D85A30;
  --orange-hot: #FF6A1F;
  --green: #14CC8C;
  --violet: #8F6BFF;
  --soft-shadow: 5px 6px 14px rgba(17, 17, 17, 0.75);
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--sans);
}

a { color: var(--yellow); }
a:hover { color: #FFE2B0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  max-width: 1240px; margin: 0 auto; padding: 24px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--mono);
}
.site-header a {
  text-decoration: none; min-height: 44px; display: flex; align-items: center;
}
.brand { color: var(--sand); font-size: 14px; letter-spacing: 0.22em; font-weight: 700; }
.brand:hover { color: var(--sand); }
.site-header nav a { font-size: 13px; letter-spacing: 0.12em; }

/* ---------- Hero ---------- */

.hero { background: var(--blue); }
.hero-inner {
  max-width: 1240px; margin: 0 auto; padding: 56px 32px 64px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}

.disc { flex: 1 1 440px; max-width: 560px; }
.disc svg { width: 100%; height: auto; display: block; overflow: visible; }

.hero-text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 24px; }

h1 {
  margin: 0; font-size: 96px; line-height: 0.95; font-weight: 800; letter-spacing: -0.02em;
  text-shadow: var(--soft-shadow);
}
.chasing { font-size: 0.45em; color: var(--amber); }

/* "Chaos": colours per letter, falling apart toward the end */
.chaos { display: inline-block; white-space: nowrap; }
.chaos > span { display: inline-block; }
.chaos .c1 { color: var(--green); }
.chaos .c2 { color: var(--violet); transform: rotate(-3deg) translateY(-1px); }
.chaos .c3 { color: var(--amber);  transform: rotate(16deg) translateY(9px); }
.chaos .c4 { color: var(--orange-hot); transform: rotate(-26deg) translateY(-16px); }
.chaos .c5 { color: var(--green);  transform: rotate(44deg) translate(13px, 32px); }

/* Genres: texture behind the "Interesting Noises" umbrella */
.genres { position: relative; max-width: 540px; padding: 6px 0 14px; margin-top: 24px; }
.genre-texture {
  margin: 0;
  text-align: justify; text-align-last: justify;
  line-height: 2.1; word-spacing: 18px; opacity: 0.5;
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--yellow);
}
.genre-texture span { display: inline-block; word-spacing: normal; }
.genre-umbrella {
  position: absolute; left: 50%; top: 50%; margin: 0;
  transform: translate(-50%, -50%) rotate(16deg);
  white-space: nowrap;
  font-family: var(--sans); font-weight: 800; font-size: clamp(22px, 6.4vw, 32px);
  letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--orange); text-shadow: var(--soft-shadow);
}

/* ---------- Listen ---------- */

.listen { max-width: 1240px; margin: 0 auto; padding: 80px 32px 96px; }

.listen-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 40px;
}
h2 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -0.01em; }
.listen-lead { color: var(--amber); }
.chaos-small { font-size: 1.4em; }
.chaos-small .c3 { transform: rotate(16deg) translateY(4px); }
.chaos-small .c4 { transform: rotate(-26deg) translateY(-7px); }
.chaos-small .c5 { transform: rotate(44deg) translate(6px, 13px); }

.listen-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em;
}
.listen-meta .hint { color: var(--yellow); }

/* Grid adapts to how many releases there are */
.releases { display: grid; gap: 56px 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.releases[data-count="1"],
.releases[data-count="2"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.releases[data-count="3"],
.releases[data-count="4"],
.releases[data-count="5"],
.releases[data-count="6"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.release {
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--sand);
}
.release:hover { color: var(--sand); }
.release img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: 6px; margin-bottom: 10px;
  transition: transform 0.25s ease;
}
.tilt-left img  { transform: rotate(-1deg); }
.tilt-right img { transform: rotate(1deg); }
.release:hover img, .release:focus-visible img { transform: none; }
@media (prefers-reduced-motion: reduce) { .release img { transition: none; } }

.release-title  { font-size: 22px; font-weight: 500; line-height: 1.2; }
.release-artist { font-size: 16px; color: var(--sand-dim); }
.release-type   { font-family: var(--mono); font-size: 12px; color: var(--grey); letter-spacing: 0.1em; }
.release-type--soon { color: #FF6A1F; font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  max-width: none;
  padding: 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 12px; color: var(--grey); letter-spacing: 0.08em;
}
@media (min-width: 1304px) {
  .site-footer { padding-left: calc((100% - 1240px) / 2 + 32px); padding-right: calc((100% - 1240px) / 2 + 32px); }
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .site-header, .hero-inner, .listen { padding-left: 20px; padding-right: 20px; }
  .hero-inner { padding-top: 32px; padding-bottom: 48px; gap: 32px; }
  h1 { font-size: 72px; }
  .genre-texture { font-size: 13px; word-spacing: 10px; }
  h2 { font-size: 30px; }
  .listen-meta { align-items: flex-start; }
}
