/* ============================================
   Maya Reyes — Portfolio
   Warm editorial design system
   ============================================ */

:root {
  /* Palette: Warm Sage (default) */
  --bg: #D8D4C2;
  --bg-alt: #EFE9DC;
  --bg-card: #E8E3D2;
  --ink: #1A1A17;
  --ink-soft: #4A4842;
  --ink-mute: #807C6F;
  --line: #B8B4A2;
  --line-soft: #C8C4B2;
  --accent: #9B4D2E;
  --accent-soft: #C5755A;

  /* Type */
  --serif: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing scale (8pt base) */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  --radius: 6px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --container: 1200px;
  --container-narrow: 880px;
}

[data-palette="cream"] {
  --bg: #EFE9DC;
  --bg-alt: #E5DECC;
  --bg-card: #F6F1E5;
  --line: #C8C0AC;
  --line-soft: #D8D1BC;
}

[data-palette="clay"] {
  --bg: #E5D8C8;
  --bg-alt: #D9C9B5;
  --bg-card: #EFE3D2;
  --line: #B8A48C;
  --line-soft: #C8B89F;
  --accent: #8C3D24;
}

[data-palette="ink"] {
  --bg: #1E1D1A;
  --bg-alt: #28261F;
  --bg-card: #2C2A22;
  --ink: #EFE9DC;
  --ink-soft: #C8C0AC;
  --ink-mute: #807C6F;
  --line: #3A382F;
  --line-soft: #2C2A22;
  --accent: #C5755A;
}

/* ============================================
   Reset + base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease, color 0.4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================
   Type
   ============================================ */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(56px, 9vw, 132px); line-height: 0.95; }
h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1.0; }
h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
h4 { font-size: 22px; line-height: 1.25; }

p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
.lead { font-size: 22px; line-height: 1.5; color: var(--ink-soft); max-width: 56ch; }

.italic { font-style: italic; }
.tabular { font-variant-numeric: tabular-nums; }

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s6);
}
.container--narrow { max-width: var(--container-narrow); }

.row { display: flex; gap: var(--s5); align-items: center; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; }

/* ============================================
   Nav
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s4) var(--s6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo__dot {
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.nav__links {
  display: flex;
  gap: var(--s5);
  align-items: center;
}
.nav__links a {
  font-size: 14px;
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav__links a:hover, .nav__links a.is-active {
  color: var(--ink);
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  transition: transform 0.2s, background 0.2s;
}
.nav__cta:hover { transform: translateY(-1px); }
.nav__cta .pulse {
  width: 7px; height: 7px;
  background: #5BC97D;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(91, 201, 125, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 201, 125, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(91, 201, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 201, 125, 0); }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--line-soft);
  margin-top: var(--s10);
  padding: var(--s8) 0 var(--s6);
}
.footer__big {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: var(--s6);
}
.footer__big .italic { color: var(--accent); }
.footer__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--s5);
  padding-top: var(--s6);
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.footer__col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 var(--s3);
  font-weight: 500;
}
.footer__col a {
  display: block;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--ink); }

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--s6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(26, 26, 23, 0.18);
}

/* ============================================
   Page helpers
   ============================================ */
.section { padding: var(--s9) 0; }
.section--sm { padding: var(--s7) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  display: inline-block;
}

/* ============================================
   Reveal-on-scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Cursor follower (subtle)
   ============================================ */
.cursor-blob {
  position: fixed;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.25s ease, opacity 0.3s ease;
  opacity: 0;
}
@media (hover: hover) {
  .cursor-blob.is-active { opacity: 0.85; }
  .cursor-blob.is-hover { transform: translate(-50%, -50%) scale(2.6); }
}

/* ============================================
   Marquee
   ============================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: var(--s5) 0;
}
.marquee__track {
  display: flex;
  gap: var(--s8);
  animation: marquee 40s linear infinite;
  width: max-content;
  white-space: nowrap;
}
.marquee__item {
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: var(--s8);
}
.marquee__item::after {
  content: "✦";
  color: var(--accent);
  font-style: normal;
  font-size: 14px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .container { padding: 0 var(--s5); }
  .nav__links { display: none; }
  .footer__row { grid-template-columns: 1fr 1fr; }
  .section { padding: var(--s7) 0; }
}
