/* ============================================================
   PAUL SEWTER — Shared Design System
   ============================================================ */

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

:root {
  --black:     #0c0c0b;
  --off-black: #141412;
  --mid:       #2a2a27;
  --rule:      rgba(220, 210, 190, 0.12);
  --cream:     #e8e0cc;
  --dim:       rgba(232, 224, 204, 0.5);
  --dimmer:    rgba(232, 224, 204, 0.28);
  --gold:      #a8904a;
  --gold-dim:  rgba(168, 144, 74, 0.35);

  --font-body:  'EB Garamond', Georgia, serif;
  --font-mono:  'Courier Prime', 'Courier New', monospace;
  --font-light: 'Cormorant Garamond', Georgia, serif;
}

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

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

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SELECTION ── */
::selection {
  background: var(--gold-dim);
  color: var(--cream);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* ============================================================
   NAVIGATION
   ============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 3.5rem;
  border-bottom: 1px solid var(--rule);
  background: rgba(12, 12, 11, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-logo:hover { color: var(--gold); }

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dimmer);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
}

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: all 0.3s;
}

/* mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(12,12,11,0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--cream); }

@media (max-width: 768px) {
  nav { padding: 1.2rem 1.8rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  padding: 3.5rem 3.5rem 2.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-left {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dimmer);
}
.footer-left a {
  color: var(--dimmer);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-left a:hover { color: var(--gold); }

.footer-right {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: var(--dimmer);
  text-align: right;
}

@media (max-width: 600px) {
  footer { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

.mono {
  font-family: var(--font-mono);
}

.light {
  font-family: var(--font-light);
}

h1, h2, h3 {
  font-family: var(--font-light);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}

.rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 2rem 0;
}

/* ============================================================
   IMAGE LIGHTBOX
   ============================================================ */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(12,12,11,0.97);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-overlay.open {
  display: flex;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dimmer);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--cream); }
.lightbox-caption {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--dimmer);
  white-space: nowrap;
}

/* ============================================================
   SHARED JS BEHAVIOURS (inline in each page)
   ============================================================ */
