/* Fonts, reset, stage backdrop, and shared primitives (type, tags, buttons,
   cards). Section-specific layout lives in hero.css / content.css. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

html {
  scroll-behavior: smooth;
  background: var(--void);
  color: var(--text);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  background: transparent;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Quiet plum glow field behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(90rem 60rem at 50% -12rem, rgba(139, 92, 246, 0.09), transparent 62%),
    radial-gradient(70rem 52rem at 10% 65%, rgba(200, 110, 145, 0.05), transparent 65%),
    linear-gradient(180deg, var(--void-soft), var(--void) 55%);
}

/* Filmic grain. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(200, 110, 145, 0.4);
  color: var(--text);
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-hot);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-button);
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--text);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

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

/* —— Shared type —— */

.section-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.statement {
  margin: 0 0 1.5rem;
  max-width: 20ch;
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.lede {
  margin: 0;
  max-width: 40rem;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  line-height: 1.6;
}

.body-copy {
  margin: 1.15rem 0 0;
  max-width: 40rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.6;
}

.body-copy.muted,
.muted {
  color: var(--text-secondary);
  opacity: 0.82;
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out),
    color 180ms var(--ease-out), transform 180ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

/* Primary CTA: brand rule — #F1E7EC fill on the plum page. */
.btn-primary {
  background: var(--text);
  color: var(--void);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #ffffff;
  color: var(--void);
  border-color: #ffffff;
  box-shadow: 0 8px 40px -8px rgba(200, 110, 145, 0.45);
}

/* No backdrop-filter here: it sits over the animating canvas and would force
   a live blur resample every frame. */
.btn-ghost {
  background: rgba(26, 13, 20, 0.6);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--hover);
  border-color: rgba(200, 110, 145, 0.6);
  color: var(--text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* —— Cards —— */

.card {
  position: relative;
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(160deg, rgba(43, 22, 35, 0.66), rgba(26, 13, 20, 0.45));
  transition: transform 350ms var(--ease-out), border-color 350ms var(--ease-out),
    box-shadow 350ms var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 110, 145, 0.55);
  box-shadow: 0 24px 70px -38px rgba(200, 110, 145, 0.4);
}
