:root {
  --bg: #090909;
  --bg-deep: #220006;
  --ink: #fff8f8;
  --muted: rgba(255, 248, 248, 0.72);
  --panel: rgba(18, 4, 7, 0.84);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #f50a1d;
  --accent-deep: #950010;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 10, 29, 0.34), transparent 22%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.14), transparent 16%),
    radial-gradient(circle at 82% 18%, rgba(245, 10, 29, 0.22), transparent 20%),
    radial-gradient(circle at 28% 68%, rgba(255, 255, 255, 0.1), transparent 14%),
    linear-gradient(180deg, #190106 0%, #0b0506 45%, #040404 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 8% 14%, rgba(255, 255, 255, 0.18), transparent 2%),
    radial-gradient(circle at 62% 28%, rgba(255, 255, 255, 0.12), transparent 2.5%),
    radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.1), transparent 2%),
    radial-gradient(circle at 34% 78%, rgba(245, 10, 29, 0.16), transparent 12%);
  opacity: 0.85;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.home-page .site-shell {
  padding: 0.9rem 0 1.2rem;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  padding: 0.75rem 0 1.5rem;
}

.home-page .site-header {
  justify-content: space-between;
  padding: 0.2rem 0 0.7rem;
}

.wordmark {
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav a {
  padding: 0.55rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

main {
  display: grid;
  gap: 1.25rem;
}

.home-page main {
  gap: 0.7rem;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(29, 7, 11, 0.94), rgba(9, 3, 5, 0.96)),
    var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: fade-rise 700ms ease both;
}

.home-page .panel {
  padding: clamp(0.9rem, 2vw, 1.25rem);
  border-radius: 24px;
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -24% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 10, 29, 0.2), transparent 68%);
  pointer-events: none;
}

.hero {
  min-height: 54vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.subpage-hero {
  min-height: 40vh;
}

.home-page .hero {
  min-height: 0;
  gap: 0.55rem;
  padding-top: 1.2rem;
  padding-bottom: 1rem;
}

.hero-mark {
  position: relative;
  padding: 1rem;
}

.home-page .hero-mark {
  padding: 0.45rem;
}

.hero-mark::before,
.hero-mark::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.hero-mark::before {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(245, 10, 29, 0.18), transparent 68%);
}

.hero-mark::after {
  width: 196px;
  height: 196px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-page .hero-mark::before {
  width: 220px;
  height: 220px;
}

.home-page .hero-mark::after {
  width: 164px;
  height: 164px;
}

.hero-logo-frame {
  width: 220px;
  padding: 0.9rem;
  border-radius: 28px;
  background: rgba(255, 247, 247, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  position: relative;
  z-index: 1;
}

.home-page .hero-logo-frame {
  width: 180px;
  padding: 0.7rem;
}

.hero-logo {
  width: min(200px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
}

.home-page .hero-logo {
  width: 100%;
  max-width: 164px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 0.95;
}

h1 {
  margin-top: 0.25rem;
  font-size: clamp(3.2rem, 10vw, 6rem);
  letter-spacing: 0.02em;
}

.home-page h1 {
  margin-top: 0;
  font-size: clamp(2.3rem, 7vw, 4.3rem);
}

h2 {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy,
.section-heading p,
.card span,
.site-footer,
code {
  color: var(--muted);
}

.hero-copy,
.section-heading p {
  max-width: 56ch;
  margin: 1rem auto 0;
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.button-primary {
  background: var(--accent);
  border-color: rgba(245, 10, 29, 0.45);
  color: #fff;
  box-shadow: 0 12px 30px rgba(245, 10, 29, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
}

.section-heading {
  margin-bottom: 1.15rem;
  text-align: center;
}

.home-page .section-heading {
  margin-bottom: 0.8rem;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.home-page .card-grid {
  gap: 0.7rem;
}

.home-page #listen .card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-page #explore .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(245, 10, 29, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  text-align: center;
}

.home-page .card {
  min-height: 88px;
  padding: 0.75rem;
}

.card:hover,
.card:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.card strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.home-page .card strong {
  font-size: 1.02rem;
}

.static-card {
  cursor: default;
}

.site-footer {
  margin-top: 1.25rem;
  padding: 0 0.25rem;
  font-size: 0.92rem;
}

.site-footer a {
  text-decoration-thickness: 1px;
}

.article-shell {
  width: min(780px, 100%);
  margin: 0 auto;
}

.post-kicker {
  margin-bottom: 0.75rem;
}

.post-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-body {
  display: grid;
  gap: 1.2rem;
  color: var(--ink);
  line-height: 1.8;
}

.post-body p,
.post-body ul {
  margin: 0;
}

.post-body h2,
.post-body h3 {
  margin-top: 1rem;
  line-height: 1.05;
}

.post-body ul {
  padding-left: 1.25rem;
}

.post-callout {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.post-divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0.5rem 0;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    width: 100%;
  }

  .card {
    min-height: 132px;
    border-radius: 30px;
  }

  .home-page .site-shell {
    padding-top: 0.55rem;
    padding-bottom: 0.85rem;
  }

  .home-page .site-header {
    padding-bottom: 0.5rem;
  }

  .home-page .hero {
    gap: 0.45rem;
    padding-top: 0.9rem;
    padding-bottom: 0.75rem;
  }

  .home-page .hero-logo-frame {
    width: 144px;
    padding: 0.55rem;
    border-radius: 22px;
  }

  .home-page .hero-logo {
    max-width: 132px;
    border-radius: 18px;
  }

  .home-page .hero-mark::before {
    width: 180px;
    height: 180px;
  }

  .home-page .hero-mark::after {
    width: 136px;
    height: 136px;
  }

  .home-page h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .home-page h2 {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }

  .home-page #listen .card-grid,
  .home-page #explore .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .card {
    min-height: 72px;
    padding: 0.55rem;
    border-radius: 22px;
  }

  .home-page .card strong {
    font-size: 0.94rem;
  }
}
