:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --body: #555;
  --muted: #999;
  --border: #d8d8d8;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --script: "Pinyon Script", "Dancing Script", cursive;
}

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

html, body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.7; }
.dropdown a:hover { opacity: 1; }
img { display: block; max-width: 100%; height: auto; }

/* ── header ──────────────────────────────────────────── */
.site-header {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 2rem 3rem;
}
.site-header.is-light { color: #fff; }
.site-header.is-dark  { color: #1a1a1a; }

.brand {
  display: inline-block;
  width: 390px;
  height: 98px;
  background: center left/contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0;
}
.site-header.is-light .brand { background-image: url('/logo-white.png'); }
.site-header.is-dark  .brand { background-image: url('/logo-dark.png');  }

.nav {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.nav > a,
.nav > .nav-item > a { position: relative; padding: 0.25rem 0; display: inline-block; line-height: 1; white-space: nowrap; }
.nav .has-menu::after { content: " ▾"; font-size: 0.6em; opacity: 0.7; margin-left: 0.15em; }

.nav-item { position: relative; display: inline-block; }

/* hamburger toggle (hidden above breakpoint) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
  color: inherit;
  z-index: 40;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background: currentColor;
  margin: 7px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%; transform: translateX(-50%);
  margin-top: 0.5rem;
  background: #f3f3f1;
  color: #1a1a1a;
  padding: 1.25rem 2rem;
  min-width: 13rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
/* invisible hover bridge so the cursor can cross the gap without losing hover */
.dropdown::before {
  content: "";
  position: absolute;
  top: -0.5rem; left: 0; right: 0;
  height: 0.5rem;
}
.dropdown a { display: block; padding: 0.6rem 0.5rem; line-height: 1.2; }
.dropdown a:hover { color: #000; background: #e8e8e6; }
.dropdown a.muted { color: var(--muted); }
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; pointer-events: auto; }

/* ── hero slider (home) ──────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  background: #111;
}
.hero .slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero .slide.active { opacity: 1; }
.hero .slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: right;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.hero-cta {
  position: absolute;
  left: 3rem; bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: rgba(255,255,255,0.15); }
.btn.dark { color: #1a1a1a; }
.btn.dark:hover { background: #1a1a1a; color: #fff; }

.slide-indicator {
  position: absolute;
  right: 3rem; bottom: 3rem;
  display: flex; align-items: center;
  gap: 1.25rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #fff;
}
.slide-indicator .count { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.slide-indicator .count .total { opacity: 0.7; }
.slide-indicator button {
  background: none; border: none; color: inherit;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer; padding: 0.25rem 0.5rem;
  opacity: 0.85;
}
.slide-indicator button:hover { opacity: 1; }

/* ── about page ──────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 9rem 5rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.about-photo {
  aspect-ratio: 4/5;
  background: #eee center/cover no-repeat;
  background-image: url('/images/portrait.jpg');
  width: 80%;
  justify-self: center;
}
.about-text h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 3.25rem;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
}
.about-text .tagline {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--fg);
  margin-bottom: 2rem;
}
.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 32rem;
}
.about-cta { margin-top: 3rem; }

.quote-section {
  padding: 8rem 3rem;
  text-align: center;
}
.quote-section blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.2;
  color: var(--fg);
  max-width: 60rem;
  margin: 0 auto 2rem;
}
.quote-section cite {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.15rem;
  color: var(--muted);
}
.quote-section .handle {
  margin-top: 6rem;
  font-family: var(--serif);
  color: var(--muted);
  font-size: 1rem;
}

/* ── gallery list page ───────────────────────────────── */
.gallery-intro {
  padding: 7rem 3rem 3rem;
  text-align: center;
  max-width: 38rem;
  margin: 0 auto;
}
.gallery-intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  color: var(--fg);
  margin-bottom: 1.75rem;
}
.gallery-intro p {
  font-size: 1.045rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem 1.5rem 10rem;
}
.gallery-grid .frame {
  width: min(92vw, 1400px);
}
.gallery-grid .frame:not(.portrait-row) {
  width: min(60vw, 910px);
}
.gallery-grid .frame img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-grid .frame.portrait-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.gallery-grid .frame.portrait-row > img {
  width: calc((100% - 2rem) / 3);
}
@media (max-width: 640px) {
  .gallery-grid { gap: 1rem; padding: 2rem 0 6rem; }
  .gallery-grid .frame,
  .gallery-grid .frame:not(.portrait-row) { width: 100%; }
  .gallery-grid .frame.portrait-row { gap: 0.5rem; padding: 0 0.5rem; }
  .gallery-grid .frame.portrait-row > img { width: calc((100% - 0.5rem) / 2); }
}

/* ── prints page ─────────────────────────────────────── */
.prints-hero {
  position: relative;
  min-height: 100vh;
  background: #f5f1ec center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 3rem 5rem;
}
.prints-hero[data-placeholder]::before {
  content: "framed print mockup \A drops here as background-image";
  white-space: pre;
  position: absolute;
  inset: 50% 0 auto 0; transform: translateY(-50%);
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--muted); text-align: center;
  letter-spacing: 0.15em; text-transform: uppercase;
  z-index: 0; padding-top: 8rem;
}
.prints-hero .inner {
  position: relative; z-index: 1;
  color: #fff;
  max-width: 50rem;
}
.prints-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 2rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.prints-hero p {
  font-size: 1.15rem;
  margin-bottom: 3rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.prints-hero .counter {
  position: absolute; left: 3rem; bottom: 3rem;
  font-family: var(--mono); font-size: 0.78rem;
  color: #fff; letter-spacing: 0.1em;
}

/* ── contact ─────────────────────────────────────────── */
.contact-hero {
  position: relative;
  min-height: 100vh;
  background: #222 center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 9rem 3rem 5rem;
  color: #fff;
}
.contact-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.5));
}
.contact-hero .inner { position: relative; z-index: 1; max-width: 38rem; }
.contact-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.contact-hero p {
  font-size: 1.15rem; margin-bottom: 1.5rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.contact-hero a.email {
  font-family: var(--mono);
  font-size: 1rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
}
.contact-hero .handle {
  margin-top: 3rem;
  font-family: var(--serif);
  color: rgba(255,255,255,0.75);
}

/* ── footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── mobile ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  .site-header {
    position: fixed;
    padding: 1rem 1.5rem;
    flex-direction: row; justify-content: space-between; align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.95);
  }
  .site-header.is-light {
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
  }
  .brand { width: 300px; height: 75px; }

  .nav-toggle { display: block; }

  /* nav becomes a full-screen drawer */
  .nav {
    position: fixed;
    inset: 0;
    background: #1a1a1a;
    color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.32em;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 30;
    padding: 5rem 2rem;
  }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  /* dropdown becomes an inline sub-list in the drawer */
  .nav-item { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
  .nav .has-menu::after { display: none; }
  .dropdown {
    position: static; transform: none;
    background: transparent; color: #aaa;
    padding: 0; margin: 0; min-width: 0;
    opacity: 1; pointer-events: auto;
    font-family: var(--sans); font-size: 0.72rem;
    letter-spacing: 0.32em; text-transform: uppercase;
  }
  .dropdown::before { display: none; }
  .dropdown a { padding: 0.3rem 0.5rem; line-height: 1; }
  .dropdown a:hover { background: transparent; color: #fff; }

  /* hamburger morphs to X when drawer is open */
  body.nav-open .nav-toggle span { background: #fff; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .hero-caption { right: 1.5rem; left: 1.5rem; top: auto; bottom: calc(9rem + env(safe-area-inset-bottom)); transform: none; text-align: left; }
  .hero-cta { left: 1.5rem; bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
  .slide-indicator { right: 1.5rem; bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .about { grid-template-columns: 1fr; padding: 7rem 1.5rem 3rem; gap: 2.5rem; }
  .about-text h1 { font-size: 2.25rem; margin-bottom: 1.5rem; }
  .quote-section { padding: 5rem 1.5rem; }
  .quote-section .handle { margin-top: 3rem; }
}
