:root {
  --bg: #0c0907;
  --panel: #18120e;
  --panel-raised: #221a14;
  --line: #3a2e24;
  --ink: #fff8f0;
  --ink-muted: #c4b5a4;
  --ink-faint: #7a6b5c;
  --accent: #e8a87c;
  --accent-2: #ff6b3d;
  --gold: #f5c842;
  --max: 720px;
  --edge: clamp(20px, 5vw, 32px);
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-muted);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 168, 124, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(255, 107, 61, 0.08), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: var(--edge);
  top: 12px;
}

/* Editorial hero */
.masthead {
  padding: clamp(48px, 12vw, 96px) var(--edge) clamp(40px, 8vw, 72px);
  max-width: 900px;
  margin: 0 auto;
}

.masthead__kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.masthead__title {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 14vw, 6.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 28px;
}

.masthead__title em {
  font-style: italic;
  color: var(--accent);
}

.masthead__lede {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 38ch;
  margin: 0 0 40px;
}

.masthead__art {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.masthead__art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Bands */
.band {
  padding: clamp(48px, 8vw, 80px) var(--edge);
  border-top: 1px solid var(--line);
}

.band__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.band__heading {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 28px;
  text-align: left;
}

/* Single column prose features */
.prose-column p,
.feature-prose p,
.screens-prose p {
  margin: 0 0 1.25em;
}

.feature-prose {
  margin-bottom: 48px;
}

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

.feature-prose h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 12px;
}

.inline-shot {
  margin: 28px 0;
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

/* Inline thumbnails in prose */
.screens-prose {
  font-size: 1.08rem;
}

.thumb-inline {
  display: inline-block;
  vertical-align: middle;
  width: 72px;
  height: auto;
  margin: 0 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 600px) {
  .thumb-inline {
    width: 96px;
    margin: 0 10px;
  }
}

/* Two column legal */
.legal-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: -12px 0 24px;
}

.legal-columns {
  display: grid;
  gap: 28px 40px;
}

@media (min-width: 680px) {
  .legal-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.legal-col p {
  margin: 0 0 1em;
}

.legal-col p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  padding: 32px var(--edge) 120px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

/* Floating pill nav */
.float-pill {
  position: fixed;
  right: var(--edge);
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(340px, calc(100vw - var(--edge) * 2));
  padding: 10px 12px;
  background: rgba(24, 18, 14, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 50;
}

.float-pill a {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.float-pill a:hover,
.float-pill a:focus-visible {
  background: rgba(232, 168, 124, 0.15);
  color: var(--ink);
  outline: none;
}

.float-pill a.is-active {
  background: var(--accent);
  color: var(--bg);
}
