/* ============================================================
   AMANDAMORK.COM — CORE DESIGN SYSTEM
   Shared across all pages. Page-specific styles override below.
   ============================================================ */

:root {
  /* Color tokens */
  --bg: #F4F1EA;
  --bg-warm: #EFE9DA;
  --bg-deep: #E8E1CE;
  --bg-dim: #ECE7DC;
  --bg-shadow: #1A1612;

  --ink: #1A1612;
  --ink-soft: #3D362E;
  --mute: #7A746B;
  --rule: #2A231C;
  --hairline: rgba(26, 22, 18, 0.12);

  --accent: #D2230B;
  --accent-warm: #E2451F;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', monospace;

  /* Spacing rhythm */
  --pad-page: 48px;
  --section-y: 120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--bg); }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.2s ease, color 0.2s ease;
}
a:hover { border-color: var(--accent); color: var(--accent); }

/* ============ LAYOUT PRIMITIVES ============ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-page);
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad-page);
}

/* ============ HEADER STRIP ============ */
.header-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px var(--pad-page);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  z-index: 100;
  pointer-events: none;
  transition: color 0.4s ease;
}
.header-strip > * { pointer-events: auto; }
.header-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 50%, transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.header-strip.scrolled::before { opacity: 1; }
.header-strip .left {
  display: flex;
  gap: 24px;
  align-items: center;
}
.header-strip a {
  border-bottom: none;
  color: var(--mute);
}
.header-strip a:hover { color: var(--accent); }
.header-strip .right {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* ============ SIGNAL MARK ============ */
.signal-mark {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}
.signal-mark span {
  display: block;
  width: 2px;
  background: var(--accent);
  animation: signal 2.4s ease-in-out infinite;
}
.signal-mark span:nth-child(1) { height: 30%; animation-delay: 0s; }
.signal-mark span:nth-child(2) { height: 60%; animation-delay: 0.2s; }
.signal-mark span:nth-child(3) { height: 100%; animation-delay: 0.4s; }
.signal-mark span:nth-child(4) { height: 70%; animation-delay: 0.6s; }
.signal-mark span:nth-child(5) { height: 40%; animation-delay: 0.8s; }
@keyframes signal {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(0.4); opacity: 1; }
}

/* ============ TYPE PRIMITIVES ============ */
.display-xl {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
  font-weight: 350;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.display-lg {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 100, 'SOFT' 60;
  font-weight: 350;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.display-md {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 80;
  font-weight: 380;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.display-sm {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 60;
  font-weight: 380;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.italic-accent em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}

.lede {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 24;
  font-weight: 380;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--ink-soft);
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.label.accent { color: var(--accent); }

/* ============ SECTION HEAD ============ */
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  margin-bottom: 80px;
  align-items: baseline;
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.2, 0, 0, 1), transform 0.9s cubic-bezier(0.2, 0, 0, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0, 0, 1), transform 0.7s cubic-bezier(0.2, 0, 0, 1);
}
.reveal-stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .signal-mark span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ SCROLL PROGRESS BAR ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress > div {
  height: 100%;
  background: var(--accent);
  width: 0;
  transform-origin: left;
}

/* ============ BUTTONS / LINKS ============ */
.btn-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}
.btn-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 14px;
}
.btn-arrow::after { content: '→'; font-size: 16px; }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px var(--pad-page);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  flex-wrap: wrap;
  gap: 16px;
}

/* ============ RESPONSIVE BASE ============ */
@media (max-width: 900px) {
  :root {
    --pad-page: 24px;
    --section-y: 80px;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
  }
}
