/* =========================================================
   ELISE PAIGE PRODUCTIONS · SUB-PAGE DESIGN SYSTEM
   Re-themes the Cowork content components into the live
   elisepaige.com look: Bricolage Grotesque display, Hanken
   Grotesk body, JetBrains Mono labels, near-black ground with
   vivid cyan + warm gold accents. Class names match the source
   pages so the prose stays verbatim.
   ========================================================= */

:root {
  /* live palette, with Cowork variable names aliased onto it
     so the source pages' inline styles keep working */
  --bg: #0e1014;
  --ink: #0e1014; /* Cowork --ink (ground) -> live bg */
  --ink-2: #14171d;
  --panel: #171b22;
  --panel-2: #1b2129;
  --line: #252b35;
  --line-soft: #1e232c;
  --ivory: #eff2f0; /* body text */
  --paper: #c3cdcb; /* emphasis text, a touch dimmer than ivory */
  --muted: #8ea3a0;
  --muted-2: #6b7672;
  --gold: #ebcf8b;
  --gold-soft: #f2dda8;
  --cyan: #65e2e2;
  --crimson: #c96a5a;
  --sage: #576f6a;
  --maxw: 760px;
  --wide: 1120px;
  --serif: "Bricolage Grotesque", Georgia, serif; /* live display */
  --sans:
    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      1200px 700px at 78% -8%,
      rgba(101, 226, 226, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 0% 110%,
      rgba(235, 207, 139, 0.06),
      transparent 55%
    ),
    var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.72;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle film grain to match the homepage */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * {
  position: relative;
  z-index: 1;
}

/* ---------- layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-wide {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 28px;
}
section {
  padding: 0;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(14, 16, 20, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: var(--ivory);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.brand span {
  color: var(--cyan);
}
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav a:hover,
.nav a.active {
  color: var(--ivory);
}
@media (max-width: 880px) {
  .topbar .wrap-wide {
    height: auto;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 4px;
  }
  .nav {
    width: 100%;
    overflow-x: auto;
    gap: 16px;
    padding: 6px 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    white-space: nowrap;
    font-size: 11px;
  }
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.cy {
  color: var(--cyan);
}
.kicker {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------- hero ---------- */
.hero {
  padding: 120px 0 56px;
  border-bottom: 1px solid var(--line-soft);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1;
  margin: 20px 0 0;
}
.hero .dek {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--paper);
  font-size: clamp(18px, 2.3vw, 23px);
  line-height: 1.5;
  margin: 26px 0 0;
  max-width: 660px;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.meta-row .m {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-row .m .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.meta-row .m .v {
  font-size: 14px;
  color: var(--paper);
}

/* ---------- prose ---------- */
.prose {
  padding: 54px 0;
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 54px 0 4px;
}
.prose h2 .num {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 0.5em;
  vertical-align: 0.28em;
  margin-right: 14px;
  font-weight: 500;
}
.prose h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  margin: 40px 0 0;
  text-transform: uppercase;
}
.prose p {
  margin: 18px 0 0;
  color: var(--ivory);
}
.prose p.lead {
  font-size: 21px;
  line-height: 1.6;
  color: var(--paper);
}
.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(101, 226, 226, 0.3);
}
.prose a:hover {
  border-color: var(--cyan);
}
.prose .first::first-letter {
  font-family: var(--serif);
  font-weight: 800;
  float: left;
  font-size: 62px;
  line-height: 0.8;
  padding: 8px 14px 0 0;
  color: var(--gold);
}
.prose strong {
  color: #fff;
  font-weight: 600;
}
.prose em {
  color: var(--paper);
  font-style: italic;
}

hr.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 48px 0;
}

/* ---------- pull quote ---------- */
.pull {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  color: var(--gold-soft);
  margin: 48px 0;
  padding: 8px 0 8px 28px;
  border-left: 2px solid var(--gold);
  letter-spacing: -0.01em;
}

/* ---------- data callouts ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  margin: 40px 0;
}
.stats .s {
  background: var(--panel);
  padding: 24px 22px;
}
.stats .s .big {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
}
.stats .s .big.cy {
  color: var(--cyan);
}
.stats .s .lbl {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- figure / art plate ---------- */
.plate {
  margin: 40px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}
.plate .art {
  aspect-ratio: 21/9;
  display: flex;
  align-items: flex-end;
  padding: 22px 24px;
  background:
    linear-gradient(
      180deg,
      rgba(14, 16, 20, 0) 40%,
      rgba(14, 16, 20, 0.85) 100%
    ),
    linear-gradient(120deg, #16202a 0%, #1d2730 40%, #2a2418 100%);
  position: relative;
}
.plate .art.cyan {
  background:
    linear-gradient(
      180deg,
      rgba(14, 16, 20, 0) 40%,
      rgba(14, 16, 20, 0.85) 100%
    ),
    linear-gradient(120deg, #0f1a1f 0%, #14242b 50%, #1c2f38 100%);
}
.plate .art.warm {
  background:
    linear-gradient(
      180deg,
      rgba(14, 16, 20, 0) 40%,
      rgba(14, 16, 20, 0.85) 100%
    ),
    linear-gradient(120deg, #241d12 0%, #322617 50%, #1c1712 100%);
}
.plate .art.noir {
  background:
    linear-gradient(
      180deg,
      rgba(14, 16, 20, 0) 35%,
      rgba(14, 16, 20, 0.9) 100%
    ),
    linear-gradient(120deg, #0d0f12 0%, #15171c 55%, #0a0b0d 100%);
}
.plate .art .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
}
.plate img {
  width: 100%;
  display: block;
}
.plate figcaption {
  padding: 14px 24px 18px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}
.plate figcaption b {
  color: var(--paper);
  font-weight: 600;
}
.plate figcaption .mono {
  font-family: var(--mono);
}

/* ---------- cards / slate ---------- */
.cards {
  display: grid;
  gap: 22px;
  margin: 34px 0;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  overflow: hidden;
}
.card .keyart {
  aspect-ratio: 16/9;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.card .body {
  padding: 24px 26px 28px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  margin: 0;
  color: var(--ivory);
  letter-spacing: -0.01em;
}
.card .logline {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  color: var(--paper);
  font-size: 18px;
  line-height: 1.5;
  margin: 14px 0 0;
}
.card p {
  margin: 16px 0 0;
  color: var(--ivory);
  font-size: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #08120f;
  background: var(--gold);
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 600;
}
.badge.dev {
  background: var(--cyan);
}
.badge.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ---------- tables (production data only) ---------- */
.tbl-scroll {
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}
thead th {
  text-align: left;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding: 15px 18px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--paper);
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.012);
}
td .shot {
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 15px;
  font-weight: 600;
}
.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--cyan);
}

/* ---------- callout box ---------- */
.note {
  margin: 34px 0;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  background: var(--ink-2);
}
.note .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.note p {
  margin: 0;
  font-size: 15.5px;
  color: var(--paper);
}
.note.gold {
  border-left-color: var(--gold);
}
.note.gold .lbl {
  color: var(--gold);
}

/* ---------- sources ---------- */
.sources {
  padding: 40px 0 0;
}
.sources h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.sources ol {
  margin: 0;
  padding-left: 20px;
}
.sources li {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.55;
}
.sources a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.sources a:hover {
  color: var(--paper);
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line-soft);
  margin-top: 70px;
  padding: 42px 0 70px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12.5px;
}
.foot .wrap-wide {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: baseline;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover {
  color: var(--cyan);
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }
  .hero {
    padding: 92px 0 40px;
  }
}

/* ---------- page transitions (progressive enhancement) ---------- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation-duration: 0.18s;
}
::view-transition-new(root) {
  animation-duration: 0.22s;
}

/* ---------- accessibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
