/* ── Archive shared base ──────────────────────────────────────────
   Shared across all site/work/ and site/research/ pages.
   To change archive colors or nav: edit here only.
   ────────────────────────────────────────────────────────────── */

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

/* @palette:intelluric-archive */
:root {
  --bg:     #0d0d0b;
  --surface:#111110;
  --border: #222220;
  --text:   #c8c4ba;
  --dim:    #7a7570;
  --accent: #a89060;
  --bright: #e8e2d4;
  --mono:   'JetBrains Mono', monospace;
  --serif:  'EB Garamond', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ──────────────────────────────────────────────── */

nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(13, 13, 11, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

/* Both class names appear across pages — identical styles */
.nav-wordmark,
.nav-logo {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-tagline {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--bright); }
.nav-links a.active { color: var(--text); }

/* ── Hamburger / mobile drawer (research pages) ──────────────── */

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--dim);
  border-radius: 1px;
  transition: background 0.2s;
}
.nav-burger:hover { background: transparent; }
.nav-burger:hover span { background: var(--text); }

.nav-drawer {
  position: fixed; top: 0; right: 0;
  width: 280px; height: 100vh;
  background: rgba(13, 13, 11, .97);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, .7);
  transform: translateX(100%);
  transition: transform 0.26s ease-out;
  z-index: 500;
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column; gap: 0;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer-close {
  background: transparent; border: none;
  -webkit-appearance: none; appearance: none;
  color: var(--dim); font-size: 1.4rem;
  cursor: pointer; align-self: flex-end;
  padding: 0; line-height: 1;
  letter-spacing: 0; text-transform: none;
  transition: color 0.2s;
}
.nav-drawer-close:hover { background: transparent; color: var(--text); }

.drawer-emergency {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em; color: var(--accent);
  text-decoration: none; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0; transition: color 0.2s; display: block;
}
.drawer-emergency:hover { color: var(--bright); }

.drawer-nav {
  display: flex; flex-direction: column;
  padding-top: 1.5rem; gap: 1.25rem;
}
.drawer-nav a {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em; color: var(--dim);
  text-decoration: none; text-transform: uppercase;
  transition: color 0.2s;
}
.drawer-nav a:hover { color: var(--text); }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 499; opacity: 0; pointer-events: none;
  transition: opacity 0.26s;
}
.nav-overlay.active { opacity: 1; pointer-events: all; }

/* ── Common content elements ─────────────────────────────────── */

h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--bright);
  line-height: 1.25;
  margin-bottom: 1rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 3rem;
}
.breadcrumb a { color: var(--dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.page-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ── Mobile nav ──────────────────────────────────────────────── */

@media (max-width: 640px) {
  nav { padding: 1rem 1.25rem; }
  .nav-burger { display: flex; }
}
