/* Wrought Records — shared styles.
   The label wears "chrome". Each band page wears its own theme (data-theme on <body>). */

@font-face { font-family: "Big Shoulders"; src: url(/fonts/big-shoulders-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url(/fonts/big-shoulders-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url(/fonts/cinzel-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url(/fonts/cinzel-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Literata"; src: url(/fonts/literata-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url(/fonts/literata-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url(/fonts/literata-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rye"; src: url(/fonts/rye-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Alegreya Sans SC"; src: url(/fonts/alegreya-sans-sc-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans SC"; src: url(/fonts/alegreya-sans-sc-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* ---- Themes ------------------------------------------------------------ */
:root, [data-theme="chrome"] {
  --bg: #0d0a08; --bg-2: #141110; --panel: #1b1714; --line: #3a322b;
  --text: #ece3d6; --dim: #9a8e81;
  --accent: #d6d8dc; --accent-ink: #0d0a08; --hot: #ff6a1a; --warm: #ffc24a;
  --display: "Big Shoulders", "Impact", "Arial Narrow", sans-serif; --display-weight: 800; --display-case: uppercase; --display-track: .02em;
  --body: "Literata", Georgia, serif;
  --label: "JetBrains Mono", ui-monospace, monospace; --label-case: uppercase; --label-track: .14em; --label-size: .74rem;
  --radius: 0px;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d9dadc 38%, #7c7e82 50%, #c9cbcf 62%, #f2f2f2 100%);
  color-scheme: dark;
}
[data-theme="forge"] {
  --accent: #ff6a1a; --accent-ink: #0d0a08; --hot: #c2361a; --warm: #ffc24a;
}
[data-theme="swamp"] {
  --bg: #0c0e0a; --bg-2: #11140f; --panel: #1b2217; --line: #3a4630;
  --text: #eadfc4; --dim: #b8ad93;
  --accent: #dba545; --accent-ink: #0c0e0a; --hot: #c7321f; --warm: #dba545;
  --display: "Rye", "Rockwell", Georgia, serif; --display-weight: 400; --display-case: none; --display-track: 0;
  --body: "Alegreya", Georgia, serif;
  --label: "Alegreya Sans SC", "Gill Sans", sans-serif; --label-case: none; --label-track: .12em; --label-size: .9rem;
  --radius: 6px;
}
[data-theme="bone"] {
  --bg: #efe8da; --bg-2: #e6dece; --panel: #fbf7ef; --line: #cdbfa6;
  --text: #1b1714; --dim: #5e5449;
  --accent: #8a1c10; --accent-ink: #fbf7ef; --hot: #b2290f; --warm: #8a5a12;
  --display: "Cinzel", Georgia, serif; --display-weight: 800; --display-case: none; --display-track: .02em;
  --body: "Literata", Georgia, serif;
  --label: "JetBrains Mono", ui-monospace, monospace; --label-case: uppercase; --label-track: .14em; --label-size: .74rem;
  --radius: 2px;
  color-scheme: light;
}

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 1.05rem; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case);
  letter-spacing: var(--display-track); line-height: 1.02; margin: 0; text-wrap: balance;
}
.label {
  font-family: var(--label); text-transform: var(--label-case); letter-spacing: var(--label-track);
  font-size: var(--label-size); font-weight: 700; color: var(--accent);
}
.dim { color: var(--dim); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---- Label bar (top of every page) ------------------------------------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, #0d0a08 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid #2a2420;
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #ece3d6; }
.brand img { width: 36px; height: 36px; }
.wm { display: grid; line-height: .9; }
.wm-top {
  font-family: "Cinzel", Georgia, serif; font-weight: 800; font-size: 1.28rem; letter-spacing: .12em;
  background: linear-gradient(180deg, #ffffff 0%, #d9dadc 38%, #7c7e82 50%, #c9cbcf 62%, #f2f2f2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wm-bot { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: .6rem; letter-spacing: .58em; color: #9a8e81; padding-left: .1em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-family: "JetBrains Mono", monospace; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: #b9ada0; padding: 8px 10px;
}
.nav a:hover { color: #fff; }
@media (max-width: 640px) {
  .nav a.hide-sm { display: none; }
  .wm-top { font-size: 1.05rem; }
}

/* ---- Buttons & forms --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--label); font-weight: 700; text-transform: var(--label-case); letter-spacing: var(--label-track); font-size: var(--label-size);
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  padding: 12px 18px; border-radius: var(--radius); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.signup { display: grid; gap: 10px; max-width: 520px; }
.signup .row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type=email] {
  flex: 1 1 220px; min-width: 0; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 14px;
}
.signup input[type=email]:focus { border-color: var(--accent); outline: none; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .msg { font-size: .95rem; min-height: 1.5em; }
.signup .msg.ok { color: var(--accent); }
.signup .msg.err { color: color-mix(in srgb, var(--hot) 55%, #fff); }
.fine { font-size: .85rem; color: var(--dim); }
.fine a { color: var(--dim); }

/* ---- Sections ---------------------------------------------------------- */
.section { padding-block: 72px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.section-head .label { display: block; margin-bottom: 8px; }

/* ---- Label hero -------------------------------------------------------- */
.hero-label { position: relative; overflow: hidden; padding-block: 88px 96px; }
.hero-label::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 78% 50%, rgba(255,106,26,.14), transparent 70%);
}
.hero-label .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero-label h1 { display: grid; line-height: .86; }
.hero-label h1 .w {
  font-family: "Cinzel", Georgia, serif; font-weight: 800; text-transform: none; letter-spacing: .06em;
  font-size: clamp(2.6rem, 10.5vw, 6rem);
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-label h1 .r {
  font-family: "JetBrains Mono", monospace; font-weight: 700; letter-spacing: .62em;
  font-size: clamp(.9rem, 2.4vw, 1.6rem); color: #9a8e81; padding-left: .3em; margin-top: 14px;
}
.hero-label .lede { margin-top: 28px; font-size: 1.2rem; max-width: 34ch; color: #d8cfc2; }
.hero-label .cta { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.big-record { width: min(100%, 440px); justify-self: center; aspect-ratio: 1; position: relative; }
.big-record img { width: 100%; height: 100%; }
.big-record .strike {
  position: absolute; inset: 31%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,226,160,.95), rgba(255,106,26,.5) 45%, transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .big-record img { animation: spin 18s linear infinite; }
  .big-record .strike { animation: strike 1.6s ease-out .5s 1 both; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes strike {
  0% { opacity: 0; transform: scale(.6); }
  12% { opacity: 1; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(2.4); }
}
@media (max-width: 820px) {
  .hero-label { padding-block: 48px 64px; }
  .hero-label .wrap { grid-template-columns: 1fr; gap: 36px; }
  .big-record { width: min(70%, 320px); order: -1; }
}

/* ---- Roster cards ------------------------------------------------------ */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.band-card {
  position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 22px; min-height: 180px; text-decoration: none; overflow: hidden;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--body);
}
.band-card .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(.8); }
.band-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--panel) 25%, transparent); }
.band-card > *:not(.bg) { position: relative; z-index: 1; }
.band-card .logo { width: 120px; height: 120px; object-fit: contain; }
.band-card h3 { font-size: 2rem; }
.band-card p { color: var(--dim); margin-top: 6px; }
.band-card .label { margin-top: 10px; display: block; }
.band-card:hover { border-color: var(--accent); }
.band-card:hover h3 { color: var(--accent); }
.roster .empty { color: var(--dim); }

/* ---- Videos ------------------------------------------------------------ */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.video { margin: 0; display: grid; gap: 10px; }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; }
.video button img { width: 100%; height: 100%; object-fit: cover; }
.video button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; translate: -50% -50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%230d0a08'/%3E%3C/svg%3E") center / 30px no-repeat;
  border-radius: 50%; opacity: .92;
}
.video button:hover::after, .video button:focus-visible::after { opacity: 1; scale: 1.06; }
.video button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { font-weight: 600; line-height: 1.3; }
.video figcaption .dim { font-weight: 400; font-size: .9rem; display: block; margin-top: 2px; }
.notice {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; color: var(--dim);
  display: grid; gap: 8px; text-align: center; justify-items: center;
}
.notice strong { color: var(--text); font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: 1.4rem; }

/* ---- News -------------------------------------------------------------- */
.news { display: grid; gap: 20px; }
.post {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.post.has-img { grid-template-columns: 200px minmax(0, 1fr); align-items: start; }
.post .pic { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.post h3 { font-size: 1.7rem; margin: 6px 0 10px; }
.post .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.post .body { display: grid; gap: .8em; color: var(--text); }
.post .body a { color: var(--accent); }
.post .more { margin-top: 12px; display: inline-block; font-family: var(--label); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: var(--label-case); color: var(--accent); text-decoration: none; font-weight: 700; }
.chip {
  font-family: var(--label); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: var(--label-case); font-weight: 700;
  border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; text-decoration: none; color: var(--text);
}
.chip.hot { background: var(--hot); border-color: var(--hot); color: #fff; }
@media (max-width: 640px) { .post.has-img { grid-template-columns: 1fr; } .post .pic { max-width: 220px; } }

/* ---- Footer ------------------------------------------------------------ */
.foot { border-top: 1px solid #2a2420; background: #0a0807; color: #9a8e81; padding-block: 40px; font-family: "Literata", Georgia, serif; }
.foot .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.foot a { color: #c9bfb2; }
.foot .brand img { width: 30px; height: 30px; }
.foot p { font-size: .92rem; }

/* ---- Band page --------------------------------------------------------- */
.band-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.band-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: blur(2px) saturate(.9); transform: scale(1.04); }
.band-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, var(--bg) 96%), radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%); }
.band-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-block: 64px 72px; }
.band-hero .mark { width: 100%; max-width: 440px; justify-self: center; }
.band-hero h1 { font-size: clamp(3rem, 9vw, 6rem); text-shadow: 0 2px 0 #000; }
.band-hero .tagline { font-style: italic; font-size: 1.3rem; color: var(--dim); margin-top: 14px; }
.band-hero .motto { margin-top: 22px; font-family: var(--display); color: var(--accent); font-size: 1.25rem; }
.band-hero .facts { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.band-hero .cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .band-hero .wrap { grid-template-columns: 1fr; gap: 24px; padding-block: 32px 48px; }
  .band-hero .mark { max-width: 280px; }
}
.subnav { position: sticky; top: 60px; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { font-family: var(--label); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: var(--label-case); font-weight: 700; color: var(--dim); text-decoration: none; padding: 14px 12px; white-space: nowrap; }
.subnav a:hover { color: var(--accent); }

.releases { display: grid; gap: 28px; }
.release { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 36px; align-items: start; }
.release .cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
[data-theme="swamp"] .release .cover.round { border-radius: 50%; border: 0; }
.release h3 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 8px; }
.release .head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tracks { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); counter-reset: t; }
.tracks li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); counter-increment: t; }
.tracks li::before { content: counter(t); font-family: var(--display); color: var(--accent); font-size: 1.3rem; text-align: right; line-height: 1.3; }
.tracks .tn { font-weight: 600; font-size: 1.12rem; }
.tracks .td { color: var(--dim); font-size: .98rem; }
.release.compact { grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 24px; }
@media (max-width: 760px) {
  .release { grid-template-columns: 1fr; gap: 20px; }
  .release .cover { max-width: 360px; }
  .release.compact { grid-template-columns: 110px minmax(0, 1fr); }
}

.merch { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.item .ph { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--bg-2); }
.item .ph.none { display: grid; place-items: center; color: var(--dim); font-family: var(--label); letter-spacing: var(--label-track); }
.item .in { padding: 16px; display: grid; gap: 6px; align-content: start; }
.item h3 { font-size: 1.35rem; }
.item .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.merch-drop {
  margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.merch-drop h3 { font-size: 2rem; }
.merch-drop p { color: var(--dim); margin-top: 8px; }
@media (max-width: 760px) { .merch-drop { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: start; }
.about h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 8px 0 18px; }
.about .bio { font-size: 1.15rem; display: grid; gap: 1em; }
.about .photo { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.members { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.members li { padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

.released-by { display: flex; align-items: center; gap: 14px; justify-content: center; padding-block: 40px; color: var(--dim); text-decoration: none; }
.released-by img { width: 44px; height: 44px; }
.released-by:hover { color: var(--text); }

.prose { max-width: 70ch; display: grid; gap: 1em; padding-block: 56px 80px; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.prose h2 { font-size: 1.6rem; margin-top: .6em; }
.prose a { color: var(--accent); }
.loading { color: var(--dim); padding: 40px 0; }
.list-lede { margin-bottom: 20px; }
.release .listen { margin-top: 16px; }
