/* ==========================================================================
   The DAG Band - design system
   --------------------------------------------------------------------------
   Deliberately NOT the solo site. davidalangraham.net is sand, sunset and
   sea - beach country, bright and warm. This is bourbon, denim and weathered
   cream: darker, heavier, built to read as a band rather than a songwriter.

   Type does most of the work:
     Anton      - hero and section heads. Condensed, enormous, poster energy.
     Newsreader - editorial serif for anything that needs warmth or authority.
     Inter      - UI and body. Neutral on purpose so the other two carry it.
   ========================================================================== */

:root {
  /* --- warm side ------------------------------------------------------- */
  --bourbon:       #a85b28;
  --bourbon-deep:  #7a3e17;
  --amber:         #d68b3c;
  --brass:         #c9a227;
  --clay:          #8c4a2f;

  /* --- cool side ------------------------------------------------------- */
  --denim:         #2c4a6b;
  --denim-deep:    #1b2e42;
  --night:         #131c26;
  --night-soft:    #1c2733;

  /* --- neutrals -------------------------------------------------------- */
  --bone:          #f4ede0;
  --bone-warm:     #e9dcc6;
  --bone-deep:     #d8c7aa;
  --ink:           #1a1512;
  --smoke:         #6b6259;
  --smoke-light:   #9a9088;

  /* --- semantic -------------------------------------------------------- */
  --bg:            var(--bone);
  --bg-dark:       var(--night);
  --text:          var(--ink);
  --text-muted:    var(--smoke);
  --accent:        var(--bourbon);
  --accent-bright: var(--amber);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-serif:   'Newsreader', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1320px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ==========================================================================
   reset
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

/* ==========================================================================
   type scale
   ========================================================================== */

.display,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;              /* Anton ships one weight */
  line-height: .92;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 11vw, 9.5rem); }
h2 { font-size: clamp(2.25rem, 6vw, 4.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--light { color: var(--brass); }

/* Inherits rather than declaring a colour: the same class sits on light
   sections and on the dark hero, and hardcoding --text made it invisible
   against --night. Sections set the colour; type just takes it. */
.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem);
  line-height: 1.5;
  font-weight: 300;
  max-width: 46ch;
  color: inherit;
}

.serif { font-family: var(--font-serif); }

/* ==========================================================================
   layout
   ========================================================================== */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

section { padding-block: clamp(4rem, 10vw, 9rem); }

.section-dark {
  background: var(--bg-dark);
  color: var(--bone);
}
.section-dark h2 { color: var(--bone); }
.section-dark .muted { color: var(--smoke-light); }

.muted { color: var(--text-muted); }

/* Paper grain. One tiny inline SVG rather than an image request - it is the
   difference between "flat CSS gradient" and something that feels printed. */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease),
              border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: color-mix(in srgb, var(--bone) 12%, transparent);
  padding-block: .8rem;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--amber); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: color-mix(in srgb, var(--bone) 78%, transparent);
  transition: color .25s var(--ease);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--bone); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--bone);
  padding: .4rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--night);
    transform: translateY(-100%);
    transition: transform .5s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { font-size: 1.4rem; }
}

/* ==========================================================================
   hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 0 0 clamp(3rem, 8vh, 6rem);
  background: var(--night);
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* Placeholder that reads as intentional until real photography lands. */
.hero__media--fallback {
  background:
    radial-gradient(120% 90% at 20% 10%, #35506e 0%, transparent 55%),
    radial-gradient(100% 80% at 85% 20%, #a85b28 0%, transparent 50%),
    linear-gradient(180deg, #1b2e42 0%, #131c26 55%, #0d141b 100%);
}

/* Two gradients, not one. The vertical pass seats the header and the section
   below; the horizontal pass darkens the left third where the headline, eyebrow
   and buttons live. With photography behind it a single vertical scrim leaves
   the eyebrow sitting on a sunlit shirt, which is unreadable. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--night) 88%, transparent) 0%,
      color-mix(in srgb, var(--night) 62%, transparent) 34%,
      transparent 68%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--night) 68%, transparent) 0%,
      color-mix(in srgb, var(--night) 12%, transparent) 30%,
      color-mix(in srgb, var(--night) 72%, transparent) 76%,
      var(--night) 100%);
}

.hero__inner { position: relative; }

.hero h1 {
  margin-block: .35em .3em;
  /* Slight optical outdent so the cap-height edge lines up with body copy. */
  margin-left: -.03em;
}
.hero h1 .line { display: block; }
.hero h1 .line--accent { color: var(--amber); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.4rem;
  margin-top: 2rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bone) 62%, transparent);
}
.hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--bourbon); }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 1.5rem;
  translate: -50% 0;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bone) 45%, transparent);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50%      { opacity: .9;  transform: translateY(5px); }
}

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--bourbon);
  --btn-fg: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--bourbon-deep); border-color: var(--bourbon-deep); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  border-color: color-mix(in srgb, var(--bone) 38%, transparent);
}
.btn--ghost:hover {
  background: color-mix(in srgb, var(--bone) 10%, transparent);
  border-color: var(--bone);
}

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

/* ==========================================================================
   section heading
   ========================================================================== */

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}
.head__text { max-width: 40ch; }
.head h2 { margin-top: .5rem; }

/* ==========================================================================
   tracks
   ========================================================================== */

.tracks { display: flex; flex-direction: column; }

.track {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  text-decoration: none;
  transition: padding-left .4s var(--ease);
}
.track:hover { padding-left: .85rem; }
.track:first-child { border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); }

.track__num {
  font-family: var(--font-body);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  color: color-mix(in srgb, currentColor 45%, transparent);
}
/* Both are spans inside a span wrapper, so they need explicit block display -
   left inline they render as one run of text and the key/bpm collides with
   the title's baseline. */
.track__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1;
  transition: color .3s var(--ease);
}
.track:hover .track__title { color: var(--amber); }
.track__sub {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in srgb, currentColor 50%, transparent);
  margin-top: .55rem;
}
.track__meta {
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  color: color-mix(in srgb, currentColor 50%, transparent);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .track { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem; }
  .track__meta { display: none; }
}

/* ==========================================================================
   split feature
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background:
    radial-gradient(90% 70% at 30% 20%, #35506e 0%, transparent 60%),
    linear-gradient(160deg, #2c4a6b 0%, #7a3e17 100%);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   newsletter
   ========================================================================== */

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
  max-width: 34rem;
}
.signup input[type=email] {
  flex: 1 1 15rem;
  padding: .95rem 1.1rem;
  background: color-mix(in srgb, var(--bone) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--bone) 26%, transparent);
  border-radius: 2px;
  color: var(--bone);
}
.signup input[type=email]::placeholder { color: color-mix(in srgb, var(--bone) 42%, transparent); }
.signup input[type=email]:focus-visible {
  outline: none;
  border-color: var(--amber);
}

/* ==========================================================================
   footer
   ========================================================================== */

.site-footer {
  background: var(--night);
  color: color-mix(in srgb, var(--bone) 70%, transparent);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  font-size: .85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid color-mix(in srgb, var(--bone) 12%, transparent);
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer-grid a { text-decoration: none; transition: color .25s var(--ease); }
.footer-grid a:hover { color: var(--amber); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: .78rem;
  color: color-mix(in srgb, var(--bone) 45%, transparent);
}

/* ==========================================================================
   reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--gutter); top: .75rem;
  z-index: 100;
  padding: .7rem 1.2rem;
  background: var(--amber);
  color: var(--ink);
  border-radius: 2px;
}

/* ==========================================================================
   interior pages
   --------------------------------------------------------------------------
   Added when the site grew past one page. The home page leads with a full-bleed
   hero; interior pages need a quieter entry that still clears the fixed header.
   ========================================================================== */

.page-top {
  padding-top: calc(clamp(4rem, 10vw, 9rem) + 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.005em;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 8vw, 6rem);
  margin: .3em 0 .5em;
}

.minor-head {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.minor-head--light { color: var(--brass); }

/* ---------------------------------------------------------------- song --- */

.song-hero { padding-top: calc(clamp(4rem, 10vw, 9rem) + 3.5rem); }
.song-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.song-hero__art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 24px 60px -24px rgba(26, 21, 18, .5);
}
@media (max-width: 780px) {
  .song-hero__inner { grid-template-columns: 1fr; }
  .song-hero__art { max-width: 20rem; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 1.25rem 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-block: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.facts dt {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.facts dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-block;
  padding: .4rem .8rem;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 1rem;
}

.lyrics {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 60rem;
}
@media (max-width: 720px) { .lyrics { columns: 1; } }
.lyric-section { break-inside: avoid; margin-bottom: 2rem; }
.lyric-section__name {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: .6rem;
}
.lyric-section p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--bone) 92%, transparent);
}

.songnav-wrap { padding-block: clamp(2.5rem, 5vw, 4rem); }
.songnav-row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.songnav {
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  line-height: 1.05;
  transition: color .3s var(--ease);
}
.songnav span {
  display: block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.songnav--next { text-align: right; margin-left: auto; }
.songnav:hover { color: var(--bourbon); }

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

.press-tracks {
  list-style: none;
  padding: 0;
  max-width: 52rem;
  counter-reset: none;
}
.press-tracks li {
  padding: .7rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.press-tracks .muted { font-family: var(--font-body); font-size: .85rem; }

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.5rem;
  max-width: 46rem;
}
.press-grid a { text-decoration: none; display: block; }
.press-grid img {
  width: 100%;
  border-radius: 2px;
  transition: transform .4s var(--ease);
}
.press-grid a:hover img { transform: translateY(-3px); }
.press-grid span {
  display: block;
  margin-top: .6rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Signup on a light section needs ink-on-cream rather than bone-on-night. */
.signup--light input[type=email],
.signup--light input[type=text],
.page-top .signup input,
section:not(.section-dark) .signup input {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
  color: var(--ink);
}
section:not(.section-dark) .signup input::placeholder {
  color: color-mix(in srgb, var(--ink) 45%, transparent);
}
.signup input[type=text] {
  flex: 1 1 10rem;
  padding: .95rem 1.1rem;
  background: color-mix(in srgb, var(--bone) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--bone) 26%, transparent);
  border-radius: 2px;
  color: var(--bone);
}

/* Interior pages open on cream, so the header cannot rely on a dark hero
   behind it - bone brand and nav text would be invisible until scrolled.
   These pages get the opaque bar immediately; only the home page starts
   transparent over its hero. */
body.page-solid .site-header {
  background: color-mix(in srgb, var(--night) 94%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: color-mix(in srgb, var(--bone) 12%, transparent);
}
