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

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

:root {
  --ink: #1a1a18;
  --ink-mid: #4a4a46;
  --ink-light: #8a8a84;
  --paper: #f9f7f2;
  --paper-warm: #f0ede4;
  --rule: rgba(26,26,24,0.12);
  --accent: #1a1a18;

  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;

  --page-max: 1200px;
  --col: 680px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.6; }
img { display: block; max-width: 100%; }
p { line-height: 1.75; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  background: var(--paper);
  border-bottom: 0.5px solid var(--rule);
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a.active,
.nav-links a:hover { opacity: 0.4; }

/* ── PAGE SHELL ── */
main { padding-top: 4rem; }

/* ── FOOTER ── */
footer {
  margin-top: 6rem;
  padding: 2rem var(--gutter);
  border-top: 0.5px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}

footer a { color: var(--ink-light); }
footer a:hover { opacity: 0.5; }

/* ── UTILITY ── */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.rule-top { border-top: 0.5px solid var(--rule); }
.rule-bottom { border-bottom: 0.5px solid var(--rule); }

@media (max-width: 640px) {
  .nav-links { gap: 1.25rem; }
  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}
