/* LØWLIGHT — intothelowlight.com
   Ported from the Claude Design canvas "LOWLIGHT Site.dc.html". */

:root {
  --bg:            #08080a;
  --panel:         #0b0b0e;
  --panel-hover:   #101015;

  --ink:           #d8d6d1;
  --ink-strong:    #e6e3dd;
  --ink-intro:     #b3b0ab;
  --ink-body:      #a8a5a0;
  --ink-quiet:     #8b8e97;
  --ink-quieter:   #7c7f88;
  --meta:          #6f7480;
  --meta-dim:      #5e6270;
  --meta-dimmer:   #4d5059;
  --meta-faint:    #3f424a;

  --line:          #17171c;
  --line-soft:     #15151a;
  --line-tag:      #1f1f25;
  --line-quote:    #2a2a31;
  --line-btn:      #26262b;
  --line-btn-hi:   #4a4a52;
  --line-gold:     #3a3128;
  --mark-ghost:    #1e1e24;

  --gold:          #c08b3e;
  --gold-hi:       #ddab5b;
  --gold-ink:      #c4a06a;
  --gold-ink-hi:   #e7cfa4;
  --red:           #8f2a24;

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Archivo, Helvetica, Arial, sans-serif;

  --gutter: 6vw;
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(192, 139, 62, 0.3); }

a { color: var(--gold-ink); text-decoration: none; }
a:hover { color: var(--gold-ink-hi); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

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

/* ---------- film grain ---------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
  background-size: 140px 140px;
}

/* ---------- shared type ---------- */

.kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--meta);
  margin: 0 0 30px;
}

.kicker--live {
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--red);
  animation: flick 6s infinite steps(1, end);
}

@keyframes flick {
  0%, 100% { opacity: 0.82 }
  47%      { opacity: 0.82 }
  48%      { opacity: 0.35 }
  50%      { opacity: 0.8 }
  92%      { opacity: 0.8 }
  94%      { opacity: 0.5 }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}

.prose { text-wrap: pretty; margin: 0 0 26px; }
.prose--lead  { max-width: 44ch; font-size: 17px; line-height: 1.72; color: var(--ink-body); margin-bottom: 34px; }
.prose--intro { max-width: 46ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.68; color: var(--ink-intro); }
.prose--sub   { max-width: 50ch; font-size: 15px; line-height: 1.75; color: var(--ink-quieter); }
.prose--aside {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-quiet);
  border-left: 1px solid var(--line-quote);
  padding-left: 22px;
  margin-bottom: 0;
}

.section {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(70px, 9vw, 130px) var(--gutter);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  background: linear-gradient(#08080ad9, #08080a00);
  backdrop-filter: blur(2px);
}

.nav__mark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--ink);
}
.nav__mark:hover { color: var(--ink-strong); }

.nav__links {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.nav__links a { color: var(--meta); }
.nav__links a:hover { color: var(--ink); }

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

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
}

.hero__body { position: relative; padding: 120px 0 80px var(--gutter); }

.hero__title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(48px, 8.5vw, 132px);
  letter-spacing: 0.16em;
  margin: 0 0 6px;
  line-height: 0.95;
  color: var(--ink-strong);
}

.hero__ipa {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--meta);
  margin: 0 0 46px;
}

.hero__lede {
  max-width: 40ch;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.62;
  color: var(--ink-body);
  margin: 0 0 44px;
  text-wrap: pretty;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  padding: 14px 22px;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn--gold { color: var(--bg); background: var(--gold); }
.btn--gold:hover { background: var(--gold-hi); color: var(--bg); }

.btn--ghost { color: var(--ink-body); border: 1px solid var(--line-btn); }
.btn--ghost:hover { border-color: var(--line-btn-hi); color: var(--ink); }

.hero__art { position: relative; height: 100vh; overflow: hidden; }

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  filter: brightness(0.82) contrast(1.05);
}

.hero__art-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #08080a 0%, #08080a55 26%, transparent 60%);
}

.hero__art-meta {
  position: absolute;
  bottom: 26px;
  left: 30px;
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-quiet);
  line-height: 1.9;
}

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

.single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.single__title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0 0 28px;
  color: var(--ink-strong);
}

.linkrow {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.linkrow a {
  color: var(--gold-ink);
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 5px;
}
.linkrow a:hover { border-bottom-color: var(--gold-ink); }

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(26px, 3vw, 44px);
}

.panel__head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--meta);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.panel__date { color: var(--red); }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.cd { background: var(--panel); padding: 22px 8px; text-align: center; }

.cd__value {
  font-family: var(--mono);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.cd__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--meta-dim);
  margin-top: 10px;
}

.panel__spec {
  margin: 34px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--meta-dimmer);
  line-height: 2;
}

/* ---------- album ---------- */

.album__title {
  font-family: var(--sans);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(34px, 5.5vw, 76px);
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin: 0 0 clamp(44px, 6vw, 76px);
  color: var(--ink-strong);
  max-width: 20ch;
}

.album {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

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

.track {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line-soft);
}

.track__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--meta-dimmer);
}

.track__title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 25px);
  letter-spacing: 0.03em;
  color: var(--ink);
}

.track__tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--meta-dimmer);
}

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

.about {
  position: relative;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

/* The portrait is a circular vignette on black, so it is fitted with `contain`
   rather than `cover` — cropping would clip the circle's edges. The black
   backdrop matches the artwork's own corners, so the frame reads as one field. */
.about__art {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.about__art-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, #08080a 0%, #08080a44 30%, transparent 65%);
}

.about__body {
  padding: clamp(60px, 8vw, 120px) var(--gutter) clamp(60px, 8vw, 120px) clamp(30px, 4vw, 60px);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 20px 0 46px;
  padding: 0;
}

.tags li {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-quieter);
  border: 1px solid var(--line-tag);
  padding: 8px 12px;
}

.quote { margin: 0; }

.quote blockquote {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.55;
  color: var(--gold-ink);
  max-width: 26ch;
}

.quote figcaption {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--meta-dimmer);
  margin-top: 18px;
}

/* ---------- press ---------- */

.press__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: clamp(38px, 5vw, 60px);
}

.press__title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--ink-strong);
}

.press__contact {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--meta-dim);
}
.press__contact a { color: var(--meta-dim); }
.press__contact a:hover { color: var(--gold-ink); }

.press {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.press__card {
  background: var(--panel);
  padding: clamp(24px, 2.6vw, 36px);
  display: block;
  color: var(--ink);
  transition: background-color 160ms ease;
}
.press__card:hover { background: var(--panel-hover); color: var(--ink); }

.press__kind {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 22px;
}

.press__name {
  font-family: var(--sans);
  font-size: 19px;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.press__meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--meta-dim);
}

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

.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(50px, 6vw, 80px) var(--gutter) 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 40px;
}

.footer__mark {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 54px);
  letter-spacing: 0.18em;
  color: var(--mark-ghost);
  margin-bottom: 26px;
}

.footer__legal {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--meta-faint);
  line-height: 2;
}

.footer__links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.footer__links a { color: var(--meta); }
.footer__links a:hover { color: var(--ink); }

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

@media (max-width: 1000px) {
  .press { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --gutter: 7vw; }

  .nav { padding: 14px 18px; }
  .nav__links { gap: 14px; font-size: 9px; letter-spacing: 0.16em; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__body {
    order: 2;
    padding: clamp(44px, 9vw, 70px) var(--gutter) clamp(56px, 11vw, 84px);
  }
  .hero__art { order: 1; height: 62vh; min-height: 340px; }
  .hero__art img { object-position: center 35%; }
  .hero__art-veil {
    background: linear-gradient(0deg, #08080a 0%, #08080a66 28%, transparent 62%);
  }
  .hero__art-meta { left: var(--gutter); }
  .hero__ipa { margin-bottom: 32px; }
  .hero__lede { margin-bottom: 34px; }

  .single,
  .album { grid-template-columns: 1fr; }

  .linkrow { gap: 18px 26px; }

  .about { grid-template-columns: 1fr; }
  .about__art { min-height: 58vh; order: 1; }
  .about__art-veil {
    background: linear-gradient(0deg, #08080a 0%, #08080a44 30%, transparent 65%);
  }
  .about__body {
    order: 2;
    padding: clamp(52px, 10vw, 80px) var(--gutter);
  }

  .prose--lead,
  .prose--intro,
  .prose--sub { max-width: none; }

  .footer { align-items: flex-start; }
}

@media (max-width: 560px) {
  .nav__links { gap: 11px; }
  .press { grid-template-columns: 1fr; }
  .cd { padding: 18px 4px; }
  .cd__label { letter-spacing: 0.14em; }
  .track { grid-template-columns: 34px 1fr auto; gap: 12px; }
  .footer { gap: 28px; }
  .footer__links { gap: 16px; }
}

/* ---------- artwork fallback ----------
   Applied by script.js when an artwork file is absent, so the frame reads as
   a designed void rather than a broken image. Remove nothing: dropping the
   real files into /assets restores the intended layout automatically. */

.hero__art.is-artless,
.about__art.is-artless {
  background:
    radial-gradient(120% 90% at 65% 30%, #16161d 0%, #0d0d11 45%, #08080a 100%);
}

.hero__art.is-artless img,
.about__art.is-artless img { display: none; }

.hero__art.is-artless::after,
.about__art.is-artless::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0 38px,
    rgba(192, 139, 62, 0.045) 38px 39px
  );
}
