/*
Theme Name: Lowfield
Theme URI: https://lowfield.example
Author: Lowfield Records
Description: Independent vinyl-first record label theme. Dark analog-club aesthetic, persistent spectrum "Now Playing" bar, and three purposeful WebGL moments (spinning vinyl hero, ambient smoke haze, ring-groove album art).
Version: 1.0.0
Requires PHP: 7.4
Text Domain: lowfield
*/

/* ============ Fonts ============ */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;700;900&family=Sora:wght@400;500;600;700&family=Azeret+Mono:wght@400;500;600&display=swap');

/* ============ Tokens ============ */
:root {
	--bg: #0d0b09;
	--bg-2: #131009;
	--panel: #171310;
	--panel-2: #211b13;
	--panel-light: #1c1712;

	--ink: #f4ede1;
	--ink-dim: #b6ab98;
	--ink-mute: #78705f;

	--accent: #d9a441;
	--accent-ink: #171310;
	--accent-2: #a8672f;
	--accent-soft: rgba(217,164,65,.12);

	--line: rgba(244,237,225,.09);
	--line-strong: rgba(244,237,225,.18);

	--ff-head: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
	--ff-body: 'Sora', 'Helvetica Neue', Arial, sans-serif;
	--ff-mono: 'Azeret Mono', 'SFMono-Regular', Consolas, monospace;

	--radius: 3px;
	--container: 1320px;
	--shadow-lift: 0 26px 60px -22px rgba(0,0,0,.6);
	--np-height: 42px;
}

* { box-sizing: border-box; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--ff-body); font-size: 16px; line-height: 1.65;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 700; line-height: .98; margin: 0; text-transform: uppercase; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.mono { font-family: var(--ff-mono); }

/* ============ Now Playing bar (persistent, novel element) ============ */
#now-playing {
	position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--np-height);
	background: var(--bg-2); border-bottom: 1px solid var(--line);
	display: flex; align-items: center; gap: 16px; padding: 0 18px;
	font-family: var(--ff-mono); font-size: 11.5px; color: var(--ink-dim);
}
#np-canvas { width: 74px; height: 22px; flex: 0 0 auto; }
.np-track { flex: 1; overflow: hidden; white-space: nowrap; position: relative; }
.np-track-inner { display: inline-flex; gap: 60px; animation: np-scroll 22s linear infinite; }
.np-track-inner span { display: inline-flex; align-items: center; gap: 10px; }
.np-track-inner em { font-style: normal; color: var(--accent); }
@keyframes np-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.np-live { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.np-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: np-pulse 1.4s ease-in-out infinite; }
@keyframes np-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ============ Ambient background ============ */
#bg-haze-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .8; }
.grain {
	position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.groove-rings { position: fixed; top: 50%; right: -22vw; z-index: 0; pointer-events: none; width: 60vw; height: 60vw; transform: translateY(-50%); opacity: .05; }
.groove-rings svg { width: 100%; height: 100%; }

/* ============ Progress + preloader ============ */
#progress { position: fixed; top: var(--np-height); left: 0; height: 2px; width: 0%; background: var(--accent); z-index: 899; transition: width .1s linear; }
#pre {
	position: fixed; inset: 0; z-index: 9900; background: var(--bg);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
	transition: opacity .6s ease, visibility .6s ease;
}
#pre.done { opacity: 0; visibility: hidden; }
.pre-mark { font-family: var(--ff-head); font-weight: 900; font-size: 30px; letter-spacing: .04em; text-transform: uppercase; }
.pre-bar { width: 220px; height: 1px; background: var(--line-strong); overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 0%; background: var(--accent); }
.pre-pct { font-family: var(--ff-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .1em; }

/* ============ Header ============ */
.site-head {
	position: fixed; top: var(--np-height); left: 0; right: 0; z-index: 800;
	display: flex; align-items: center; justify-content: space-between;
	padding: 22px 40px; transition: padding .3s ease, background .3s ease, border-color .3s ease;
	border-bottom: 1px solid transparent;
}
.site-head.is-scrolled { padding: 14px 40px; background: rgba(13,11,9,.85); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { font-family: var(--ff-head); font-weight: 900; font-size: 24px; letter-spacing: .01em; }
.brand em { font-style: normal; color: var(--accent); }

.main-nav { position: relative; display: flex; align-items: center; gap: 4px; }
.main-nav ul { display: flex; align-items: center; gap: 2px; position: relative; }
.main-nav a {
	position: relative; display: block; padding: 10px 18px; font-family: var(--ff-mono); font-size: 12.5px;
	text-transform: uppercase; letter-spacing: .07em; color: var(--ink-dim); transition: color .25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.nav-needle { position: absolute; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px; transition: left .35s cubic-bezier(.65,0,.35,1), width .35s cubic-bezier(.65,0,.35,1), opacity .2s ease; opacity: 0; }
.main-nav:hover .nav-needle { opacity: 1; }

.head-cta { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); }

.mobile-nav {
	display: none; position: fixed; top: calc(var(--np-height) + 62px); left: 0; right: 0; z-index: 799;
	background: var(--bg-2); border-bottom: 1px solid var(--line);
	flex-direction: column; padding: 10px 24px 24px; transform: translateY(-12px); opacity: 0; visibility: hidden;
	transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--ff-mono); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); }
.mobile-nav a:hover { color: var(--accent); }

/* ============ Buttons ============ */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; font-family: var(--ff-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(217,164,65,.5); }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============ Hero ============ */
.hero { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; padding-top: calc(var(--np-height) + 40px); }
#hero-canvas { position: absolute; inset: 0; z-index: 1; }
.hero-scrim { position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse 70% 60% at 72% 45%, transparent, rgba(13,11,9,.55) 65%, rgba(13,11,9,.95) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 26px; }
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(56px, 8vw, 130px); line-height: .92; }
.hero h1 .reveal-line { overflow: hidden; display: block; }
.hero h1 .reveal-line span { display: block; transform: translateY(112%); transition: transform .85s cubic-bezier(.16,1,.3,1); }
.hero.loaded h1 .reveal-line span { transform: translateY(0); }
.hero-sub { margin-top: 28px; max-width: 46ch; font-size: 17px; color: var(--ink-dim); }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; gap: 40px; margin-top: 60px; }
.hero-meta div b { display: block; font-family: var(--ff-head); font-size: 30px; }
.hero-meta div span { display: block; margin-top: 4px; font-family: var(--ff-mono); font-size: 11px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .05em; }

/* ============ Genre marquee ============ */
.marquee-strip { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; overflow: hidden; position: relative; z-index: 2; }
.marquee-track { display: flex; white-space: nowrap; width: max-content; animation: marquee-l 30s linear infinite; }
.marquee-track span { font-family: var(--ff-head); font-weight: 700; font-size: 20px; text-transform: uppercase; color: var(--ink-mute); padding: 0 30px; display: flex; align-items: center; gap: 16px; }
.marquee-track span em { font-style: normal; color: var(--accent); font-family: var(--ff-mono); font-size: 12px; }
@keyframes marquee-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Section shell ============ */
.section { position: relative; z-index: 2; padding: 120px 0; }
.section-panel { background: var(--panel); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 56px; }
.section-head .idx { display: flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 52px); max-width: 20ch; }
.section-head p { color: var(--ink-dim); font-size: 15.5px; max-width: 40ch; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ============ Featured release ============ */
.featured-release { display: grid; grid-template-columns: .78fr 1.22fr; gap: 60px; align-items: center; }
.fr-sleeve { position: relative; aspect-ratio: 1/1; perspective: 1200px; }
.fr-sleeve-inner { width: 100%; height: 100%; transition: transform .5s ease; transform-style: preserve-3d; box-shadow: var(--shadow-lift); }
.fr-sleeve img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.fr-badge { position: absolute; top: -14px; left: -14px; background: var(--accent); color: var(--accent-ink); font-family: var(--ff-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 14px; border-radius: var(--radius); }
.fr-info .idx { color: var(--accent); }
.fr-info h3 { font-size: clamp(30px, 3.4vw, 46px); margin: 6px 0 10px; text-transform: none; }
.fr-artist { font-family: var(--ff-mono); font-size: 13px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 22px; }
.fr-waveform { width: 100%; height: 64px; margin: 24px 0; }
.fr-facts { display: flex; gap: 34px; margin: 26px 0; }
.fr-facts div b { display: block; font-family: var(--ff-head); font-size: 18px; }
.fr-facts div span { font-family: var(--ff-mono); font-size: 11px; color: var(--ink-mute); text-transform: uppercase; }

/* ============ Discography grid ============ */
.disco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.disco-card { position: relative; perspective: 900px; }
.disco-sleeve { position: relative; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; transform-style: preserve-3d; transition: transform .35s ease, box-shadow .35s ease; }
.disco-card:hover .disco-sleeve { box-shadow: var(--shadow-lift); }
.disco-sleeve img { width: 100%; height: 100%; object-fit: cover; }
.disco-sleeve .ds-overlay {
	position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,11,9,.9), transparent 55%);
	display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; opacity: 0; transition: opacity .3s ease;
}
.disco-card:hover .ds-overlay { opacity: 1; }
.ds-overlay .cat { font-family: var(--ff-mono); font-size: 10.5px; color: var(--accent); }
.disco-meta { margin-top: 14px; }
.disco-meta b { display: block; font-size: 17px; font-family: var(--ff-head); text-transform: none; }
.disco-meta span { display: block; margin-top: 3px; font-family: var(--ff-mono); font-size: 11.5px; color: var(--ink-mute); text-transform: uppercase; }

/* ============ Artist roster ============ */
.roster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.roster-card .rc-avatar { width: 100%; aspect-ratio: 1/1; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-family: var(--ff-head); font-size: 34px; color: var(--accent); transition: border-color .3s ease; }
.roster-card:hover .rc-avatar { border-color: var(--accent); }
.roster-card b { display: block; margin-top: 18px; font-family: var(--ff-head); font-size: 19px; text-transform: none; text-align: center; }
.roster-card span { display: block; margin-top: 3px; font-family: var(--ff-mono); font-size: 11px; color: var(--ink-mute); text-transform: uppercase; text-align: center; }

/* ============ About split ============ */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-copy p { font-size: 16.5px; color: var(--ink-dim); margin-bottom: 20px; }
.about-copy p:first-of-type { font-size: 19px; color: var(--ink); }
.about-media { position: relative; aspect-ratio: 4/5; }
.about-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); filter: grayscale(.3) sepia(.15); }

/* ============ Tour dates ============ */
.tour-list { max-width: 900px; margin: 0 auto; }
.tour-row { display: grid; grid-template-columns: 100px 1fr auto auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left .25s ease; }
.tour-row:hover { padding-left: 10px; }
.tour-row .td { font-family: var(--ff-mono); font-size: 13px; color: var(--accent); }
.tour-row h4 { font-size: 18px; font-weight: 600; text-transform: none; font-family: var(--ff-body); }
.tour-row .tc { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-mute); text-transform: uppercase; }
.tour-row .tt { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-dim); }

/* ============ Press quotes ============ */
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.press-card { background: var(--panel); padding: 34px; }
.press-card p { font-size: 16px; line-height: 1.55; margin-bottom: 20px; }
.press-card span { font-family: var(--ff-mono); font-size: 11.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; }

/* ============ CTA / Newsletter ============ */
.cta-band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 100px 0; text-align: center; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 56px); max-width: 20ch; margin: 0 auto 30px; }
.cta-band p { color: var(--ink-dim); max-width: 50ch; margin: 0 auto 34px; text-transform: none; font-family: var(--ff-body); font-size: 16px; }
.cta-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.cta-form input { flex: 1; padding: 15px 18px; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); font-family: var(--ff-mono); font-size: 13px; }
.cta-form input:focus { outline: none; border-color: var(--accent); }

/* ============ Footer ============ */
.site-foot { background: var(--bg-2); padding: 90px 0 30px; position: relative; z-index: 2; }
.foot-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.foot-brand p { margin-top: 18px; font-size: 14.5px; color: var(--ink-dim); max-width: 30ch; text-transform: none; font-family: var(--ff-body); }
.foot-col span { display: block; font-family: var(--ff-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin-bottom: 18px; }
.foot-col a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--ink-dim); transition: color .2s ease; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-family: var(--ff-mono); font-size: 11.5px; color: var(--ink-mute); flex-wrap: wrap; gap: 10px; }

/* ============ Page hero (inner pages) ============ */
.page-hero { padding: calc(var(--np-height) + 150px) 0 60px; position: relative; z-index: 2; }
.page-hero .idx { display: flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 76px); max-width: 22ch; }
.page-hero p { margin-top: 22px; font-size: 17px; color: var(--ink-dim); max-width: 58ch; text-transform: none; font-family: var(--ff-body); }

/* ============ Entry / article ============ */
.entry { max-width: 74ch; margin: 0 auto; font-size: 17.5px; color: var(--ink-dim); }
.entry p { margin-bottom: 22px; }
.entry h2, .entry h3 { color: var(--ink); margin: 40px 0 16px; }

/* ============ Archive list ============ */
.archive-list { max-width: 900px; margin: 0 auto; }
.archive-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding-left .2s ease; }
.archive-row:hover { padding-left: 8px; }
.archive-row .ar-cat { font-family: var(--ff-mono); font-size: 11.5px; color: var(--accent); text-transform: uppercase; }
.archive-row h3 { font-size: 19px; font-weight: 600; text-transform: none; font-family: var(--ff-body); }
.archive-row .ar-date { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-mute); }

/* ============ Contact form ============ */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; }
.contact-info ul { margin-top: 24px; }
.contact-info li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.ci-label { font-family: var(--ff-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-mute); letter-spacing: .06em; }
.ci-val { font-size: 16px; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-field { flex: 1; }
.form-field.full { flex: 1 1 100%; }
.form-field label { display: block; font-family: var(--ff-mono); font-size: 11.5px; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 8px; letter-spacing: .04em; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line-strong); background: var(--panel-2); font-family: var(--ff-body); font-size: 15px; color: var(--ink); border-radius: var(--radius); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }

/* ============ Custom cursor ============ */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; border-radius: 50%; transform: translate(-50%,-50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); opacity: 0; transition: opacity .2s ease; }
.cursor-ring { width: 32px; height: 32px; border: 1px solid var(--ink-dim); opacity: 0; transition: opacity .2s ease, width .25s ease, height .25s ease, border-color .25s ease; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.hovering { width: 58px; height: 58px; border-color: var(--accent); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
	.wrap { padding: 0 24px; }
	.main-nav { display: none; }
	.menu-toggle { display: flex; }
	.mobile-nav { display: flex; }
	.hero-grid { grid-template-columns: 1fr; }
	.featured-release, .about-split, .contact-grid { grid-template-columns: 1fr; }
	.disco-grid, .roster-grid { grid-template-columns: repeat(2, 1fr); }
	.press-grid { grid-template-columns: 1fr; }
	.foot-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.disco-grid, .roster-grid { grid-template-columns: 1fr; }
	.hero-meta { flex-wrap: wrap; gap: 24px; }
	.tour-row { grid-template-columns: 1fr; gap: 6px; }
	.form-row { flex-direction: column; gap: 0; }
	.section { padding: 90px 0; }
	.foot-top { grid-template-columns: 1fr; }
	#now-playing { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
