/* ============================================================
   PORTFOLIO — GLOBAL STYLES
   To change colours/fonts for the whole site, edit :root below
   ============================================================ */

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

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

:root {
  --bg:          #0d0d0d;
  --bg-2:        #141414;
  --bg-3:        #1a1a1a;
  --border:      rgba(255,255,255,0.08);
  --text:        #f0ede8;
  --text-muted:  rgba(240,237,232,0.45);
  --text-dim:    rgba(240,237,232,0.25);
  --accent:      #c8b89a;
  --accent-glow: rgba(200,184,154,0.15);
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --mono:        'DM Mono', monospace;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* Grain overlay */
body::after {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
}

/* Page fade-in */
main { animation: fadeUp 0.55s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 64px;
  background: linear-gradient(to bottom, rgba(13,13,13,0.97) 0%, transparent 100%);
}
.nav-logo {
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--text); letter-spacing: 0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-link {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
  position: relative; transition: color 0.25s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 64px;
  display: flex; align-items: center; justify-content: space-between;
}
footer p {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.12em; color: var(--text-dim); text-transform: uppercase;
}

/* ---- PAGE HERO (shared across inner pages) ---- */
.page-hero {
  padding: 160px 64px 80px;
  border-bottom: 1px solid var(--border);
}
.page-label {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700; line-height: 1.1;
}
.page-sub {
  font-size: 1rem; color: var(--text-muted);
  max-width: 480px; margin-top: 20px; line-height: 1.75;
}

/* ---- UTILITY ---- */
.tag {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; border: 1px solid var(--border);
  color: var(--text-dim); padding: 5px 12px; display: inline-block;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav { padding: 18px 24px; }
  .nav-links { gap: 20px; }
  footer { padding: 24px; flex-direction: column; gap: 10px; text-align: center; }
  .page-hero { padding: 110px 24px 60px; }
}
