/*
  Civic Signal System
  Devon Tyler Barber / Founder Hub
  Scope: non-destructive overlay layer for devon-tyler.com.
*/

:root {
  --cs-ink: #060a10;
  --cs-night: #0a111c;
  --cs-navy: #101b2e;
  --cs-slate: #7e8a9a;
  --cs-ivory: #efe6d2;
  --cs-paper: #d7ccb8;
  --cs-gold: #c7a35b;
  --cs-gold-soft: rgba(199, 163, 91, 0.24);
  --cs-red: #8f2d2f;
  --cs-blue: #1f3768;
  --cs-line: rgba(239, 230, 210, 0.16);
  --cs-line-strong: rgba(239, 230, 210, 0.28);
  --cs-glass: rgba(10, 17, 28, 0.74);
  --cs-glass-strong: rgba(6, 10, 16, 0.88);
  --cs-radius: 33px;
  --cs-radius-sm: 18px;
  --cs-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --cs-shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.26);
  --cs-max: 1180px;
}

html {
  background: var(--cs-ink);
}

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(143, 45, 47, 0.18), transparent 32rem),
    radial-gradient(circle at 82% 8%, rgba(31, 55, 104, 0.28), transparent 34rem),
    linear-gradient(180deg, #080d15 0%, #060a10 44%, #08101a 100%);
  color: var(--cs-ivory);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(239, 230, 210, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 230, 210, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(199, 163, 91, 0.18) 0 1px, transparent 1.5px);
  background-size: 56px 56px, 56px 56px, 94px 94px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  z-index: -1;
}

.cs-shell {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(18px, 4vw, 36px);
}

.cs-panel {
  position: relative;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--cs-glass);
  box-shadow: var(--cs-shadow);
  overflow: hidden;
}

.cs-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(239, 230, 210, 0.1);
  border-radius: calc(var(--cs-radius) - 12px);
  pointer-events: none;
}

.cs-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(199, 163, 91, 0.16), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%);
  opacity: 0.62;
}

.cs-kicker {
  margin: 0 0 14px;
  color: rgba(239, 230, 210, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cs-display {
  margin: 0;
  color: var(--cs-ivory);
  font-size: clamp(2.8rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.cs-serif {
  font-family: Georgia, "Times New Roman", serif;
}

.cs-lede {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(239, 230, 210, 0.76);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.75;
}

.cs-rule {
  width: min(420px, 68vw);
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(90deg, var(--cs-gold), var(--cs-red), var(--cs-blue), transparent);
}

.cs-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--cs-line-strong);
  border-radius: 999px;
  color: var(--cs-ivory);
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}

.cs-button--primary {
  background: linear-gradient(135deg, rgba(199, 163, 91, 0.28), rgba(31, 55, 104, 0.22));
  border-color: rgba(199, 163, 91, 0.44);
}

.cs-button:hover,
.cs-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(239, 230, 210, 0.42);
}

.cs-identity-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 28px;
}

.cs-trim-card,
.cs-tile-card {
  border: 1px solid var(--cs-line);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(6, 10, 16, 0.62);
  box-shadow: var(--cs-shadow-soft);
}

.cs-trim-card {
  padding: 26px;
}

.cs-trim-card h3,
.cs-tile-card h3 {
  margin: 0 0 12px;
  color: var(--cs-ivory);
}

.cs-trim-card p,
.cs-tile-card p {
  margin: 0;
  color: rgba(239, 230, 210, 0.68);
  line-height: 1.65;
}

.cs-tile-card {
  padding: 22px;
  background-image:
    linear-gradient(90deg, rgba(239, 230, 210, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(239, 230, 210, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  background-size: 24px 24px, 24px 24px, auto;
}

.cs-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.cs-masonry > * {
  min-height: 92px;
}

.cs-span-7 {
  grid-column: span 7;
}

.cs-span-5 {
  grid-column: span 5;
}

.cs-span-4 {
  grid-column: span 4;
}

.cs-span-8 {
  grid-column: span 8;
}

.cs-arch-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(199, 163, 91, 0.32);
  border-radius: 999px;
  color: rgba(239, 230, 210, 0.8);
  background: rgba(199, 163, 91, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cs-arch-label::before {
  content: "✦";
  color: var(--cs-gold);
}

.cs-home-hero {
  margin-top: 28px;
  padding: clamp(32px, 6vw, 68px);
}

.cs-home-hero .cs-panel-content {
  position: relative;
  z-index: 2;
}

.cs-home-quiet {
  margin-top: 18px;
  color: rgba(239, 230, 210, 0.68);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.cs-music-stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(18px, 4vw, 36px) 96px;
}

.cs-release-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
}

.cs-album-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 33px;
  border: 1px solid rgba(239, 230, 210, 0.18);
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 45%, rgba(239, 230, 210, 0.15), transparent 8%),
    radial-gradient(circle at 46% 54%, rgba(31, 55, 104, 0.42), transparent 28%),
    radial-gradient(circle at 56% 72%, rgba(143, 45, 47, 0.34), transparent 38%),
    linear-gradient(135deg, #05070b 0%, #0d1625 48%, #070b12 100%);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.46);
}

.cs-album-cover::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(239, 230, 210, 0.14);
  border-radius: 26px;
  background-image:
    linear-gradient(rgba(239, 230, 210, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 230, 210, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 0 34%, rgba(0, 0, 0, 0.34) 35% 36%, transparent 37%);
  background-size: 22px 22px, 22px 22px, auto;
}

.cs-album-cover::after {
  content: "TRUTH\A CAN’T BE\A DROWNED";
  white-space: pre;
  position: absolute;
  left: 10%;
  bottom: 10%;
  color: var(--cs-ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cs-signal-meter {
  position: absolute;
  top: 10%;
  right: 10%;
  display: grid;
  gap: 6px;
  width: 78px;
}

.cs-signal-meter span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cs-gold), rgba(239, 230, 210, 0.22));
}

.cs-signal-meter span:nth-child(2) { width: 72%; }
.cs-signal-meter span:nth-child(3) { width: 54%; }
.cs-signal-meter span:nth-child(4) { width: 86%; }

.cs-release-copy-panel {
  padding: clamp(28px, 5vw, 48px);
}

.cs-platform-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.cs-platform-grid a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--cs-line);
  border-radius: 22px;
  color: var(--cs-ivory);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
}

.cs-platform-grid a:hover,
.cs-platform-grid a:focus-visible {
  border-color: rgba(199, 163, 91, 0.54);
  background: rgba(199, 163, 91, 0.1);
}

.cs-platform-grid small {
  color: rgba(239, 230, 210, 0.58);
}

@media (max-width: 880px) {
  .cs-identity-grid,
  .cs-release-hero {
    grid-template-columns: 1fr;
  }

  .cs-span-4,
  .cs-span-5,
  .cs-span-7,
  .cs-span-8 {
    grid-column: 1 / -1;
  }

  .cs-display {
    letter-spacing: -0.055em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cs-album-cover {
    transition: transform 360ms ease, box-shadow 360ms ease;
  }

  .cs-album-cover:hover {
    transform: translateY(-4px) rotate(-0.4deg);
    box-shadow: 0 46px 130px rgba(0, 0, 0, 0.54);
  }

  .cs-button,
  .cs-platform-grid a {
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  }
}
