/* ===================================================
   patrickdell.ca — Dark Editorial Style
   =================================================== */

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

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

:root {
  --bg:       #0c0c0c;
  --bg-2:     #141414;
  --bg-3:     #1c1c1c;
  --text:     #f0ece4;
  --muted:    #8a857c;
  --gold:     #c9a84c;
  --gold-dim: #8a6f2e;
  --border:   rgba(255,255,255,0.08);
  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-sans:  'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
}

/* --- NAV --- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(to bottom, rgba(12,12,12,0.95), transparent);
  backdrop-filter: blur(4px);
}
.nav-logo {
  font-family: var(--ff-serif); font-size: 1.1rem; letter-spacing: 0.05em;
  color: var(--text); text-decoration: none;
}
/* PD monogram — homepage nav */
.nav-mark { letter-spacing: 0.1em; }
.nav-mark-d { color: var(--gold); }
/* Hero H1 initials — P and D in gold */
.hi { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 2.5rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Syne', sans-serif; font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.05; font-weight: 800;
  color: var(--text); max-width: 14ch; margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--muted); max-width: 45ch; margin-bottom: 3rem;
}
.badge {
  display: inline-block;
  border: 1px solid var(--gold-dim);
  color: var(--gold); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 0.5rem 1.25rem;
  margin-bottom: 3rem;
}
.hero-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-links a {
  color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.hero-links a:hover { color: var(--text); border-color: var(--gold); }

/* --- BIO --- */
.bio-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.85;
  max-width: 65ch;
  color: var(--text);
  font-weight: 300;
}
.bio-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  transition: border-color 0.2s;
}
.bio-link:hover { border-color: var(--gold); }

/* --- SECTION BASE --- */
section { padding: 6rem 2.5rem; max-width: 900px; margin: 0 auto; }
.section-label {
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
h2 {
  font-family: var(--ff-serif); font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 1.5rem;
}

/* --- DIVIDER --- */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* --- CONTACT FORM --- */
#contact { background: var(--bg-2); max-width: 100%; padding: 6rem 2.5rem; }
#contact .inner { max-width: 700px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
input, textarea {
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); font-family: var(--ff-sans); font-size: 0.95rem;
  padding: 0.75rem 1rem; outline: none;
  transition: border-color 0.2s;
}
input:focus, textarea:focus { border-color: var(--gold-dim); }
textarea { resize: vertical; min-height: 140px; }
.btn {
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold); font-family: var(--ff-sans); font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.9rem 2.5rem; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--gold); color: var(--bg); }

/* --- BRIEFING --- */
#briefing p.intro { color: var(--muted); margin-bottom: 2rem; }
.briefing-list { list-style: none; }
.briefing-list li {
  border-top: 1px solid var(--border); padding: 1rem 0;
}
.briefing-list a {
  color: var(--text); text-decoration: none; font-size: 0.95rem;
  transition: color 0.2s;
}
.briefing-list a:hover { color: var(--gold); }
.briefing-summary {
  font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem;
  line-height: 1.5; font-style: italic;
}
.briefing-list .source {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.3rem;
}
.briefing-credit {
  margin-top: 1.5rem; font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.briefing-credit a { color: var(--muted); text-decoration: underline; }
.briefing-credit a:hover { color: var(--gold); }

/* --- NEWSLETTER --- */
#newsletter { background: var(--bg-2); max-width: 100%; padding: 5rem 2.5rem; }
#newsletter .inner { max-width: 600px; margin: 0 auto; text-align: center; }
#newsletter p { color: var(--muted); margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: 0; max-width: 440px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; border-right: none;
  padding: 0.85rem 1rem;
}
.newsletter-form button {
  background: var(--gold); border: 1px solid var(--gold);
  color: var(--bg); font-family: var(--ff-sans); font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.85rem 1.5rem; cursor: pointer;
  white-space: nowrap; transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--gold-dim); border-color: var(--gold-dim); }

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border); padding: 2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
footer p { font-size: 0.75rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.72rem; }

  .hero { padding: 7rem 1.25rem 3rem; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 5rem); }
  .hero-links { gap: 1rem; }
  .hero-links a { font-size: 0.75rem; }

  section { padding-left: 1.25rem; padding-right: 1.25rem; }
  #contact, #newsletter { padding-left: 1.25rem; padding-right: 1.25rem; }
  footer { padding: 1.5rem 1.25rem; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .hero-eyebrow { font-size: 0.6rem; }
  .hero-sub { font-size: 0.9rem; }
  .hero-links { flex-direction: column; gap: 0.75rem; }
  .hero-links a { border-bottom: none; padding-bottom: 0; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1px solid var(--border); }
  .newsletter-form button { width: 100%; }
}

/* --- PHOTO GALLERY (masonry grid + lightbox) --- */
.photo-grid {
  columns: 3 260px;
  gap: 0.75rem;
  margin-top: 2rem;
  overflow: hidden;
}
.photo-grid figure {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  cursor: pointer;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.photo-grid img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.photo-grid figure:hover img { transform: scale(1.03); }

.grid-caption {
  padding: 0.55rem 0.75rem 0.6rem;
  border-top: 1px solid var(--border);
}
.grid-caption .cap-desc {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.15rem;
}
.grid-caption .cap-meta {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

#lightbox {
  background: rgba(0,0,0,0.97);
  border: none;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox::backdrop { background: rgba(0,0,0,0.92); }
#lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}
#lightbox-caption {
  margin-top: 0.85rem;
  text-align: center;
  line-height: 1.5;
}
#lightbox-caption .lb-desc {
  font-size: 0.85rem;
  color: var(--text);
  display: block;
}
#lightbox-caption .lb-meta {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 0.2rem;
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.2s;
  z-index: 10;
  line-height: 1;
}
.lightbox-nav:hover { color: var(--text); }
#lightbox-prev { left: 0.5rem; }
#lightbox-next { right: 0.5rem; }
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 1.75rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
  line-height: 1;
}
.lightbox-close:hover { color: var(--text); }

.state-msg {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }

@media (max-width: 480px) { .photo-grid { columns: 1; } .lightbox-nav { display: none; } }
@media (min-width: 481px) and (max-width: 768px) { .photo-grid { columns: 2; } }
