/* ------------------------------------------------------------------
   Public site styles — black canvas, Montserrat, edge-to-edge masonry.
   ------------------------------------------------------------------ */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: #888;
  --inverted-bg: #fff;
  --inverted-fg: #000;
  --gap: 4px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, html.lb-open body { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 40px 60px;
}

.site-title { display: block; color: var(--fg); }
.site-title h1,
.site-title .site-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.25;
  text-transform: uppercase;
}
.site-title .site-sub {
  margin: 9px 0 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-menu { display: flex; align-items: center; margin-top: 4px; }

.site-nav { display: flex; align-items: center; }
.site-nav a {
  position: relative;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 18px;
  text-transform: uppercase;
}
.site-nav a.is-selected::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  height: 1.5px;
  background: currentColor;
}
.site-nav a:hover { opacity: .75; }

.site-social, .social-links { display: flex; align-items: center; }
.site-social { margin-left: 10px; }
.site-social a, .social-links a { display: inline-flex; padding: 5px; color: inherit; line-height: 0; }
.site-social a:hover, .social-links a:hover { opacity: .75; }

.menu-toggle, .menu-foot { display: none; }

/* ---------- Gallery (JS upgrades the grid into a masonry) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  align-items: start;
  visibility: hidden; /* shown once masonry is built (or via <noscript>) */
}
.gallery.is-masonry { display: flex; visibility: visible; }
.g-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }

.g-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0d0d0d;
  cursor: pointer;
  line-height: 0;
}
.g-item img { display: block; width: 100%; height: auto; }
.g-item:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

.empty-note { margin: 0; padding: 80px 20px; text-align: center; color: var(--muted); }

/* ---------- Footer + Book Me ---------- */
.site-footer { padding: 0 40px 40px; margin-top: 36px; }
.site-footer p { margin: 0; font-size: 12px; color: var(--muted); }

.book-me { position: fixed; right: 30px; bottom: 30px; z-index: 60; }
.book-me a {
  display: block;
  min-width: 210px;
  padding: 15px;
  background: var(--inverted-bg);
  color: var(--inverted-fg);
  font-size: 16px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}
.book-me a:hover { background: #e8e8e8; }
body.menu-open .book-me a { box-shadow: 0 2px 14px rgba(0, 0, 0, .28); }

/* ---------- About ---------- */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 20px auto 80px;
  padding: 0 20px;
}
.about-headshot { width: 200px; height: 200px; margin-bottom: 40px; }
.about-headshot img { display: block; width: 200px; height: 200px; object-fit: cover; }
.about-bio { width: 100%; max-width: 600px; }
.about-city { margin: 0 0 20px; font-weight: 700; line-height: 1.5; }
.about-tagline { margin: 0 0 20px; font-size: 20px; line-height: 26px; }
.about-text { line-height: 1.5; overflow-wrap: anywhere; }

/* ---------- Contact ---------- */
.contact-content { max-width: 1000px; margin: 20px auto 80px; padding: 0 20px; }
.contact-city { margin-bottom: 20px; text-align: right; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }

.contact-form label { display: block; }
.contact-form label > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.contact-form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid #090a0b;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: inherit;
  line-height: 20px;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form ::placeholder { color: #888; opacity: 1; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #fff; outline-offset: 2px; border-color: #000; }
.contact-form .submit { display: flex; justify-content: flex-end; margin-top: 20px; }
.contact-form button[type=submit] {
  width: 197px;
  padding: 13px 20px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.contact-form button[type=submit]:hover { background: #e8e8e8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-errors { margin: 0 0 20px; padding: 12px 16px 12px 32px; background: #fee; color: #c33; font-size: 14px; }
.form-success { margin: 40px 0; font-size: 20px; line-height: 1.5; }

.contact-connect { margin-top: 80px; text-align: center; }
.contact-connect h2 { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.contact-connect .social-links { justify-content: center; gap: 6px; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .85);
  opacity: 0;
  transition: opacity .15s ease;
}
.lb.is-open { opacity: 1; }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lb-img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .15s ease; }
.lb-img.is-loading { opacity: .25; }
.lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  opacity: .85;
  cursor: pointer;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, .6));
}
.lb-btn:hover, .lb-btn:focus-visible { opacity: 1; }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.lb-close { top: 8px; right: 8px; }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-btn svg { width: 28px; height: 28px; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  .site-header { padding: 30px 20px 44px; }

  .menu-toggle {
    position: relative;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    margin: -4px -6px 0 0;
    padding: 0 6px;
    border: 0;
    background: none;
    color: var(--fg);
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle span:nth-child(2) { width: 18px; }
  .menu-open .menu-toggle { position: fixed; top: 26px; right: 20px; margin: 0; color: var(--inverted-fg); }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .site-menu { display: none; }
  .menu-open .site-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: var(--inverted-bg);
    color: var(--inverted-fg);
  }
  .site-nav { flex-direction: column; }
  .site-nav a { padding: 10px; font-size: 16px; letter-spacing: 2px; line-height: 22px; }
  .site-nav a.is-selected::after { display: none; }
  .site-social { margin: 14px 0 0; }
  .menu-foot { display: block; position: absolute; left: 20px; bottom: 20px; margin: 0; font-size: 11px; color: #777; }

  .book-me { right: 15px; bottom: 20px; }
  .book-me a { min-width: 0; padding: 15px 30px; }

  .site-footer { padding: 0 20px 90px; }

  .contact-form .fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .contact-form .fields { grid-template-columns: 1fr; }
  .contact-form .submit button { width: 100%; }
  .lb-stage { padding: 8px; }
  .lb-prev { left: 0; }
  .lb-next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lb, .lb-img, .menu-toggle span { transition: none; }
}

/* ---------- Cookie banner (only when Google Analytics is on) ---------- */
.consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 70;
  max-width: 400px;
  padding: 16px 18px 18px;
  background: #111;
  color: var(--fg);
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  box-shadow: 0 8px 34px rgba(0, 0, 0, .55);
  font-size: 13px;
  line-height: 1.55;
}
.consent p { margin: 0 0 14px; }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 8px; }
.consent-btn {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.consent-btn:hover { background: #e8e8e8; }
.consent-btn:focus-visible, .cookie-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cookie-link {
  margin: 0 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .consent { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}

/* Visible to screen readers and search engines only */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }
