:root {
  --bg: #050407;
  --bg-soft: #0d0912;
  --panel: #17101f;
  --panel-strong: #21142c;
  --panel-stroke: rgba(255, 255, 255, 0.1);
  --text: #fffaf8;
  --muted: #bfb1ca;
  --magenta: #d6307a;
  --magenta-soft: #a82864;
  --gold: #f5b342;
  --teal: #6ad5cf;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Aptos', 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(214, 48, 122, 0.09), transparent 34rem),
    radial-gradient(circle at 85% 70%, rgba(106, 213, 207, 0.05), transparent 38rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 3px;
  background: var(--gold);
  color: #130d03;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 15px clamp(20px, 3vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.94);
}

.brand {
  flex: none;
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: wrap;
}

.topnav a {
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #eee7f3;
  font-size: 12px;
  letter-spacing: 0.035em;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.topnav a:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.topnav a.active {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.hero {
  position: relative;
  width: 100%;
  height: clamp(440px, 64vh, 780px);
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 86px;
  background: linear-gradient(180deg, transparent, var(--bg-soft));
  content: '';
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  z-index: 1;
  bottom: clamp(42px, 7vh, 96px);
  left: clamp(20px, 4vw, 64px);
  max-width: 560px;
  padding: 27px 31px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 3px;
  background: rgba(3, 2, 5, 0.79);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(4px);
}

.hero-overlay h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.hero-overlay h1 {
  font-size: clamp(32px, 5vw, 62px);
}

.hero-overlay > p:last-child {
  max-width: 50ch;
  margin: 17px 0 0;
  color: #e9e0ed;
  font-size: 15px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.content {
  padding: 72px 24px 100px;
  background: linear-gradient(180deg, var(--bg-soft), #160e1e 48%, var(--bg-soft));
}

.content > *,
.page-main {
  width: min(100%, 960px);
  margin-inline: auto;
}

.wide-page {
  width: min(100%, 1180px);
}

.panel {
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--panel-stroke);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(33, 20, 44, 0.96), rgba(20, 13, 27, 0.96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.panel h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hint {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.archive-entry > h2 {
  margin-bottom: 24px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.archive-card {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 19px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.archive-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 179, 66, 0.64);
  background: rgba(214, 48, 122, 0.09);
}

.archive-card span {
  font-family: var(--serif);
  font-size: 22px;
}

.archive-card small {
  color: var(--muted);
  line-height: 1.4;
}

form[data-signup-form] {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input,
textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--panel-stroke);
  border-radius: 4px;
  background: #09060d;
  color: var(--text);
}

input:focus,
textarea:focus {
  border-color: var(--magenta);
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 48, 122, 0.17);
}

form[data-signup-form] input {
  flex: 1 1 250px;
}

button,
.dl-btn {
  display: inline-block;
  padding: 12px 23px;
  border: 1px solid var(--magenta);
  border-radius: 4px;
  background: var(--magenta);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 150ms ease, transform 100ms ease;
}

button:hover,
.dl-btn:hover {
  transform: translateY(-1px);
  background: var(--magenta-soft);
}

.quiet-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--muted);
}

.quiet-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 21px 24px;
  text-align: center;
}

.dl-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
  border-color: var(--violet);
  background: rgba(82, 30, 102, 0.2);
}

.dl-card.is-disabled:hover {
  transform: none;
  background: rgba(82, 30, 102, 0.2);
}

.white-paper-addendum {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--magenta);
}

.soundcloud-embed {
  width: min(100%, 820px);
  margin: 24px auto;
}

.soundcloud-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
}

.soundcloud-credit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.dl-label {
  font-size: 18px;
  font-weight: 800;
}

.dl-meta {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.85;
  text-transform: none;
}

.status {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 13px;
}

.status.ok {
  color: #8de0a4;
}

.status.err {
  color: #f29b9b;
}

.page-main {
  padding: clamp(44px, 7vw, 88px) 22px 100px;
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 330px;
  align-items: end;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--panel-stroke);
  border-radius: 9px;
  background:
    linear-gradient(120deg, rgba(214, 48, 122, 0.17), transparent 44%),
    linear-gradient(165deg, #21142c, #0b080f);
}

.page-hero.has-media {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(29px, 5vw, 58px);
}

.page-hero h1 {
  max-width: 15ch;
  font-size: clamp(43px, 7vw, 78px);
}

.lede {
  max-width: 58ch;
  margin: 20px 0 0;
  color: #d7ccde;
  font-size: clamp(15px, 2vw, 18px);
}

.page-hero-media {
  align-self: stretch;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  background: #08060a;
}

.page-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-note {
  margin: 0 0 22px;
  padding: 14px 17px;
  border-left: 3px solid var(--gold);
  background: rgba(245, 179, 66, 0.09);
  color: #e8d7bc;
  font-size: 13px;
}

.article-panel {
  padding: clamp(30px, 6vw, 70px);
}

.prose {
  color: #ede5ef;
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.78;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin: 2.1em 0 0.6em;
  color: #fff;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.15;
}

.prose h3 {
  margin: 1.7em 0 0.5em;
  color: #fff;
  font-size: 24px;
}

.prose p,
.prose ul {
  max-width: 70ch;
  margin: 0 0 1.25em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose strong {
  color: #fff;
}

.prose a {
  color: var(--teal);
}

.blog-grid {
  display: grid;
  gap: 24px;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.76fr) minmax(0, 1.24fr);
  overflow: hidden;
  border: 1px solid var(--panel-stroke);
  border-radius: 8px;
  background: var(--panel);
}

.blog-card > img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.blog-card-copy {
  padding: clamp(26px, 4vw, 46px);
}

.blog-card h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 45px);
  font-weight: 500;
  line-height: 1.08;
}

.excerpt {
  color: #d4c8da;
  font-family: var(--serif);
  font-size: 17px;
}

.excerpt p {
  margin: 0;
}

.centered-panel {
  text-align: center;
}

.form-panel form {
  display: grid;
  gap: 18px;
}

.form-panel label,
.analytics-login label {
  display: grid;
  gap: 7px;
  color: #d5cadb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.policy-page .page-hero,
.analytics-page .page-hero,
.not-found .page-hero {
  min-height: 290px;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.analytics-login {
  max-width: 650px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.metric-card {
  padding: 20px;
  border: 1px solid var(--panel-stroke);
  border-radius: 7px;
  background: var(--panel-strong);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.rank-list strong {
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-record {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-record:last-child {
  border-bottom: 0;
}

.contact-record header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.contact-record p {
  white-space: pre-wrap;
}

footer {
  padding: 34px 24px 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #000;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-align: center;
}

footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

.footer-nav a {
  color: #ded4e3;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 1050px) {
  .topbar {
    flex-direction: column;
    gap: 10px;
  }

  .topnav {
    justify-content: center;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .topnav a {
    padding: 6px 7px;
    font-size: 11px;
  }

  .archive-grid,
  .dl-grid,
  .form-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .page-hero.has-media,
  .blog-card {
    grid-template-columns: 1fr;
  }

  .page-hero-media {
    min-height: 280px;
    order: -1;
  }

  .blog-card > img {
    min-height: 260px;
    max-height: 420px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding-inline: 14px;
  }

  .topnav {
    gap: 0;
  }

  .hero-overlay {
    right: 16px;
    left: 16px;
    padding: 22px;
  }

  .content,
  .page-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
