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

:root {
  --bg:          #f6f5f3;
  --surface:     #ffffff;
  --border:      #e2ddd8;
  --border-dark: #b8b2ab;
  /* Primary accent (structure) */
  --accent:      #3d5a80;
  --accent-mid:  #2e4566;
  --accent-pale: #e8eef5;
  --accent-text: #2c4a72;
  /* Secondary accent (signal) */
  --accent-yellow:      #c8a94a;
  --accent-yellow-pale: #f4ecd3;
  --text:   #1a1917;
  --text-2: #3a3835;
  --muted:  #7d7970;
  --faint:  #eeecea;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;

  --max-w: 740px;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Navigation ── */
nav {
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.1em;
  line-height: 1;
  /* override global a hover — logo should never get the yellow sweep */
  background-image: none !important;
  background-size: 0 !important;
}

.nav-logo .ej {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo .says {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  /* override global a hover — nav uses color transition, not yellow sweep */
  background-image: none !important;
  background-size: 0 !important;
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-right { display: flex; gap: 1.5rem; list-style: none; }

.footer-right a {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  /* override global a hover — footer uses color transition */
  background-image: none !important;
  background-size: 0 !important;
  transition: color 0.18s ease;
}

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

/* ── Category pill ── */
.cat-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-pale);
  padding: 0.2em 0.65em;
  border-radius: 2px;
  /* pills are not prose links — no yellow sweep */
  background-image: none !important;
  background-size: 0 !important;
}

/* ── Dividers ── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
}

hr.subtle {
  border: none;
  border-top: 1px solid var(--accent-yellow);
  opacity: 0.5;
}

/* ── Global link highlight (prose only) ── */
a {
  text-decoration: none;
  background-image: linear-gradient(
    transparent 70%,
    var(--accent-yellow) 70%
  );
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease;
}

a:hover {
  background-size: 100% 100%;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-1 { animation: fadeUp 0.45s 0.05s ease both; }
.fade-2 { animation: fadeUp 0.45s 0.15s ease both; }
.fade-3 { animation: fadeUp 0.45s 0.25s ease both; }
.fade-4 { animation: fadeUp 0.45s 0.35s ease both; }
