/* ============================================================
   UNEARTHED URBANISMS — styles.css
   Design System: WonderWorld / Cosmological Archive
   Last updated: July 2026
   ============================================================ */

/* ------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   Change any brand color or font here — it updates everywhere.
   ------------------------------------------------------------ */
:root {
  /* Earth Family — Primary UU palette */
  --earth-dark: #1A0F08;
  --soil: #3D2010;
  --terracotta: #8B4513;
  --ochre: #C4762A;
  --amber: #E8A84C;
  --sandstone: #F2D9A8;

  /* Celestial Family — Use sparingly for contrast */
  --void: #0D0B14;
  --deep-space: #14101F;
  --nebula: #1E1830;
  --violet: #7B5EA7;

  /* Functional colors */
  --bg-primary: var(--earth-dark);
  --bg-secondary: #241509;
  --text-primary: var(--sandstone);
  --text-secondary: #BFA882;
  --text-muted: #8A7A60;
  --accent: var(--ochre);
  --accent-hover: var(--amber);
  --border-color: rgba(196, 118, 42, 0.2);
  --border-hover: rgba(196, 118, 42, 0.4);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-nav: 'Raleway', 'Helvetica Neue', sans-serif;
  --font-body: 'Libre Baskerville', Georgia, serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --section-pad: 6rem 2rem;
  --section-pad-mobile: 3.5rem 1.25rem;
  --max-width: 1200px;
  --max-width-narrow: 800px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}


/* ------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------ */

/* Display — Cormorant Garamond */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.2;
  color: var(--sandstone);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Body — Libre Baskerville */
p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Navigation / Labels — Raleway */
.label, .nav-link, .section-label {
  font-family: var(--font-nav);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
}

/* Metadata — DM Mono */
.meta, .date, .location {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    to bottom,
    rgba(26, 15, 8, 0.95),
    rgba(26, 15, 8, 0)
  );
  transition: background 0.4s var(--ease);
}

.site-nav.scrolled {
  background: rgba(26, 15, 8, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-wordmark {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sandstone);
  text-decoration: none;
}

.nav-wordmark:hover {
  color: var(--accent);
}

.nav-logo {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--sandstone);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--sandstone);
  margin: 6px 0;
  transition: all 0.3s var(--ease);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 2rem 5rem;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 15, 8, 0.95) 0%,
    rgba(26, 15, 8, 0.6) 40%,
    rgba(26, 15, 8, 0.15) 70%,
    transparent 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--sandstone);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 550px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}


/* ------------------------------------------------------------
   BUTTONS & LINKS
   ------------------------------------------------------------ */
.btn {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border-color);
  color: var(--sandstone);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(196, 118, 42, 0.08);
}

.btn-primary {
  border-color: var(--accent);
  color: var(--earth-dark);
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--earth-dark);
}

.arrow-link {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.arrow-link:hover {
  gap: 0.85rem;
  color: var(--accent-hover);
}

.arrow-link::after {
  content: '→';
  font-size: 1rem;
}


/* ------------------------------------------------------------
   SECTION UTILITIES
   ------------------------------------------------------------ */
.section {
  padding: var(--section-pad);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 2rem;
  display: block;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--border-color);
  margin: 4rem auto;
}

.bg-alt {
  background-color: var(--bg-secondary);
}


/* ------------------------------------------------------------
   FEATURED CONTENT — YouTube & Substack links
   ------------------------------------------------------------ */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.featured-card {
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  text-decoration: none;
}

.featured-card:hover {
  border-color: var(--accent);
  background: rgba(196, 118, 42, 0.04);
}

.featured-card .meta {
  margin-bottom: 1rem;
}

.featured-card h3 {
  margin-bottom: 1.5rem;
  color: var(--sandstone);
  font-style: italic;
}

.featured-card:hover h3 {
  color: var(--accent);
}


/* ------------------------------------------------------------
   PRESS / SPEAKING BAND
   ------------------------------------------------------------ */
.press-band {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.press-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.press-label {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.press-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.press-item {
  text-align: center;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
  padding: 0.5rem 1rem;
}

.press-item:hover {
  color: var(--accent);
}

.press-item-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2rem;
  font-style: italic;
  display: block;
  margin-bottom: 0.25rem;
}

.press-item-desc {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}


/* ------------------------------------------------------------
   FIELDWORK PORTFOLIO GRID
   ------------------------------------------------------------ */
.fieldwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.fieldwork-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: default;
}

.fieldwork-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.fieldwork-item:hover img {
  transform: scale(1.03);
}

.fieldwork-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(26, 15, 8, 0.9), transparent);
}

.fieldwork-caption .location {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

.fieldwork-caption p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}


/* ------------------------------------------------------------
   ABOUT PAGE
   ------------------------------------------------------------ */
.about-header {
  padding: 8rem 2rem 4rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 6rem;
}

.about-portrait img {
  width: 100%;
  max-width: 350px;
  filter: grayscale(15%);
}

.about-bio h2 {
  margin-bottom: 1.5rem;
}

.about-bio p {
  margin-bottom: 1.25rem;
}

.territories {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.territories h3 {
  margin-bottom: 1.5rem;
}

.territory-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.territory-list li {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.territory-list li:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ------------------------------------------------------------
   CONTACT PAGE
   ------------------------------------------------------------ */
.contact-section {
  padding: 8rem 2rem 6rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.contact-inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  width: 100%;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--sandstone);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.25rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-socials {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
}

.contact-socials a {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.contact-socials a:hover {
  color: var(--accent);
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}


/* ------------------------------------------------------------
   RESPONSIVE — TABLET (768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .section {
    padding: var(--section-pad-mobile);
  }

  /* Navigation */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--earth-dark);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s var(--ease);
    border-left: 1px solid var(--border-color);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  /* Featured grid */
  .featured-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-portrait {
    position: static;
    text-align: center;
  }

  .about-portrait img {
    max-width: 250px;
    margin: 0 auto;
  }

  /* Press */
  .press-items {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}


/* ------------------------------------------------------------
   RESPONSIVE — MOBILE (480px)
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .hero {
    padding: 0 1.25rem 3.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .featured-card {
    padding: 1.75rem;
  }

  .fieldwork-grid {
    grid-template-columns: 1fr;
  }

  .territory-list {
    gap: 0.5rem;
  }

  .territory-list li {
    font-size: 0.7rem;
  }
}
