/* ============================================
   Canopy Houz — shared styles for all pages
   ============================================ */

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

:root {
  --black: #111111;
  --gray: #555555;
  --light: #999999;
  --rule: #e2e2e2;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--black);
  font-weight: 300;
  -webkit-text-size-adjust: 100%;
}

/* ---------- NAV ---------- */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-brand {
  font-weight: 400;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--black); text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-weight: 300;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray); text-decoration: none; transition: color 0.2s;
  padding: 8px 0; /* larger tap target on touch screens */
}
.nav-links a:hover,
.nav-links a.active { color: var(--black); }

/* ---------- HERO (homepage) ---------- */
.hero { height: 100vh; height: 100svh; position: relative; overflow: hidden; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
/* Animated jungle background, used on psychedelics.html
   (js/jungle-bg.js builds its layers in here).
   The CSS background doubles as the no-JS fallback frame. */
.jungle-bg {
  position: absolute; inset: 0; overflow: hidden;
  background: #04100c url('../images/clearing.jpg') 50% 44% / cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.18); }
.hero-caption {
  position: absolute; bottom: 52px; left: 48px; right: 48px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.hero-tagline {
  font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic;
  font-size: clamp(30px, 4.5vw, 52px);
  color: rgba(255,255,255,0.88); line-height: 1.25; max-width: 520px;
}
.hero-signature {
  display: block;
  width: clamp(72px, 7.8vw, 98px); height: auto;
  position: relative; top: 36px; /* nudge toward the bottom corner */
}
.hero-scroll {
  font-size: 10px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ---------- INTRO (homepage) ---------- */
.intro {
  max-width: 640px; margin: 0 auto;
  padding: 100px 40px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.intro p {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: 22px; line-height: 1.8; color: #333;
}

/* ---------- INNER PAGES ---------- */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 150px 40px 90px; /* top padding clears the fixed nav */
  min-height: 72vh;
}
.page-header { margin-bottom: 56px; }
.page-header h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.15;
}
.page-header .page-sub {
  margin-top: 14px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--light);
}

/* ---------- DISPATCH ---------- */
.dispatch-entry {
  border-top: 1px solid var(--rule);
  padding: 36px 0;
}
.dispatch-entry:last-of-type { border-bottom: 1px solid var(--rule); }
.dispatch-date {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--light); margin-bottom: 10px;
}
.dispatch-entry h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 26px; margin-bottom: 10px;
}
.dispatch-entry p { font-size: 14px; line-height: 1.8; color: var(--gray); max-width: 600px; }

/* ---------- WORK ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 36px;
}
.work-card { text-decoration: none; color: var(--black); display: block; }
.work-card-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  background: #f4f4f2;
  transition: opacity 0.25s;
}
.work-card:hover .work-card-img { opacity: 0.88; }
.work-card h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 22px; margin-top: 16px;
}
.work-card p {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--light); margin-top: 6px;
}
.work-card.placeholder { pointer-events: none; }
.work-card.placeholder .work-card-img {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 18px; color: var(--light);
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: auto auto; /* columns hug content so photo sits near text */
  justify-content: center;
  gap: 56px;
  align-items: center;
}
.contact-card h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(36px, 5vw, 50px); line-height: 1.15;
  margin-bottom: 28px;
}
.contact-line {
  font-size: 14px; line-height: 2.1; color: var(--gray);
}
.contact-line .label { color: var(--light); }
.contact-line a {
  color: var(--gray); text-decoration: none;
  border-bottom: 1px solid var(--rule); transition: color 0.2s, border-color 0.2s;
}
.contact-line a:hover { color: var(--black); border-color: var(--black); }
.contact-social {
  margin-top: 26px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.contact-social a {
  color: var(--gray); text-decoration: none; transition: color 0.2s;
  padding: 8px 0;
}
.contact-social a:hover { color: var(--black); }
.contact-social .divider { color: var(--rule); margin: 0 12px; }
.contact-photo {
  margin: 0 auto;
  width: 210px; /* definite width so the grid track hugs the photo */
  max-width: 100%;
}
.contact-photo img {
  width: 100%; display: block;
  aspect-ratio: 4 / 5; object-fit: cover;
}

/* ---------- PASSWORD GATE (private work pages) ---------- */
.gate { max-width: 420px; }
.gate-note {
  font-size: 14px; line-height: 1.8; color: var(--gray);
  margin-bottom: 24px;
}
.gate-form { display: flex; flex-wrap: wrap; gap: 12px; }
.gate-form input {
  flex: 1; min-width: 200px;
  padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 0;
  font: inherit; font-size: 14px; color: var(--black);
  background: #fff; outline: none;
}
.gate-form input:focus { border-color: var(--gray); }
.gate-form button {
  padding: 12px 22px;
  border: 1px solid var(--black); background: var(--black); color: #fff;
  font-family: inherit; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; transition: opacity 0.2s;
}
.gate-form button:hover { opacity: 0.8; }
.gate-error { margin-top: 14px; font-size: 13px; color: #9b3b30; }
.gate-content .coming-soon {
  font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic;
  font-size: 22px; line-height: 1.8; color: #333;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-nav { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--light); text-decoration: none; transition: color 0.2s;
  padding: 6px 0;
}
.footer-nav a:hover { color: var(--black); }
.footer-social { display: flex; align-items: center; gap: 18px; }
.footer-social a { color: var(--light); text-decoration: none; transition: color 0.2s; display: flex; align-items: center; padding: 6px; }
.footer-social a:hover { color: var(--black); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- MOBILE ---------- */
@media (max-width: 640px) {
  nav.site-nav { padding: 16px 20px; }
  .nav-brand { font-size: 12px; letter-spacing: 0.18em; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.14em; }

  .hero-caption { flex-direction: column; align-items: flex-start; gap: 14px; bottom: 36px; left: 24px; right: 24px; }
  .hero-signature { top: 18px; } /* smaller nudge so it stays clear of the screen edge */
  .intro { padding: 72px 24px; }
  .intro p { font-size: 18px; }

  .page { padding: 120px 24px 64px; }
  .page-header { margin-bottom: 40px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { text-align: center; } /* center the text under the photo */
  .contact-photo { order: -1; } /* picture first on phones */
  .contact-photo img { aspect-ratio: 4 / 5; }

  footer { padding: 20px 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
}
