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

body {
  background: #F8F6F2;
  color: #222;
  font-family: 'Newsreader', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: #D6B36A; color: #222; }

@keyframes nr-panel {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes nr-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Header / Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,246,242,0.9);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(34,34,34,0.09);
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px clamp(20px,5vw,28px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
}

nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }

nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13.5px;
  color: rgba(34,34,34,0.5);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}

nav a:hover          { color: #222; }
nav a.active         { color: #222; border-bottom-color: #6E9C9F; }
nav a.external       { color: rgba(34,34,34,0.5); }
nav a.external:hover { color: #222; }

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6E9C9F;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Layout ── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(36px,7vh,64px) clamp(20px,5vw,28px) clamp(72px,12vh,110px);
  animation: nr-panel .42s ease;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6E9C9F;
  margin-bottom: 18px;
}

/* ── Footer ── */
footer { border-top: 1px solid rgba(34,34,34,0.09); }

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px clamp(20px,5vw,28px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: rgba(34,34,34,0.45);
}
