@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,300;1,9..144,700&family=Spline+Sans+Mono:wght@300;400;500&display=swap');

:root {
  --bg: #F4EFE6;
  --ink: #1a1410;
  --muted: #9c8e7e;
  --accent: #D4380D;
  --surface: #EDE8DF;
  --border: rgba(26,20,16,0.12);
}

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

html { font-size: 16px; }

body {
  font-family: 'Fraunces', Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
}

/* ── PAGE WRAPPER ── */
.page {
  padding-top: 52px;
  min-height: 100vh;
}

/* ── FOOTER ── */
footer {
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade { animation: fadeIn 0.7s ease both; }
.fade-d1 { animation-delay: 0.1s; }
.fade-d2 { animation-delay: 0.2s; }
.fade-d3 { animation-delay: 0.3s; }
.fade-d4 { animation-delay: 0.4s; }
.fade-d5 { animation-delay: 0.5s; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0 20px; }
  footer { padding: 20px; flex-direction: column; gap: 8px; text-align: center; }
}
