/* Ronn Dunnett Photography — ported from the Next.js build (the design spec).
   Same tokens, same one-frame layout, no framework. */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

:root {
  /* The wall behind Ronn in the homepage portrait; the whole site sits on it. */
  --wall: #6c6c6c;
  /* Slightly darker: the panel column that gives every page the two-tone. */
  --panel: #646464;
  --foreground: #f5f5f5;
  --frame-max: 64rem;
  --gutter: 1.5rem;
}
@media (min-width: 640px) {
  :root { --gutter: 2.5rem; }
}

* { box-sizing: border-box; }
/* The hidden attribute must beat any display rule (.inquiry-overlay is flex, etc.) */
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--foreground);
  font-family: 'Geist', Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── The frame ─────────────────────────────────────────────────────────── */
.frame {
  width: min(100% - 2 * var(--gutter), var(--frame-max));
  margin-inline: auto;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
}
.site-header a { text-decoration: none; text-shadow: 0 1px 10px rgba(0,0,0,0.6); }
.header-row { height: 5rem; display: flex; align-items: center; gap: 2.5rem; }

.wordmark, .margin-wordmark a {
  color: #fff; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; font-size: 0.875rem; white-space: nowrap;
}
/* Wide screens: the wordmark floats in the margin beside the frame, centred. */
.margin-wordmark {
  display: none;
  position: absolute; top: 0; left: 0; z-index: 10; height: 5rem;
  width: max(0px, calc((100% - var(--frame-max)) / 2));
  align-items: center; justify-content: center;
}
@media (min-width: 1680px) {
  .margin-wordmark { display: flex; }
  .wordmark { display: none; }
}

.main-nav { display: none; flex: 1; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a {
  font-size: 0.875rem; font-weight: 300; text-transform: uppercase;
  color: rgba(255,255,255,0.7); transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 0.375rem;
  margin-left: auto; padding: 0.5rem; background: none; border: 0; cursor: pointer;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 1.5rem; height: 1px; background: #fff; transition: transform 0.2s; }
.nav-toggle.open span:first-child { transform: rotate(45deg) translateY(3.5px); }
.nav-toggle.open span:last-child { transform: rotate(-45deg) translateY(-3.5px); }

.mobile-nav { background: rgba(0,0,0,0.95); padding: 0 1.5rem 1.5rem; }
.mobile-nav a {
  display: block; padding: 0.75rem 0; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.8); border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav a:hover { color: #fff; }

/* ── Home: one screen, Ronn's layout ───────────────────────────────────── */
.is-home { overflow: hidden; }
.home-main { height: 100svh; }
.hero { position: relative; height: 100%; }
.hero-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-center .frame { height: 100%; display: flex; align-items: center; justify-content: center; }
/* Exactly the painted photograph: never wider than the frame, never taller
   than the screen — the overlays land on the same spot at any size. */
.hero-photo {
  position: relative;
  container-type: inline-size;
  width: min(100%, calc(100svh * var(--hero-aspect)));
  aspect-ratio: var(--hero-aspect);
}
.hero-photo > img.portrait {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.hero-headline {
  position: absolute; left: 53.5%; top: 40%; width: 43%;
  margin: 0; color: #fff; font-weight: 700; text-transform: uppercase;
  line-height: 0.92; letter-spacing: -0.02em;
  font-size: clamp(0.85rem, 5.1cqw, 3.25rem);
  filter: drop-shadow(0 2px 24px rgba(0,0,0,0.5));
  animation: hero-rise 1s 0.3s both;
}
.hero-headline span { display: block; }
.hero-signature {
  position: absolute; left: 64%; top: 53%; width: 30%; pointer-events: none;
  filter: drop-shadow(0 1px 10px rgba(0,0,0,0.55));
  animation: hero-fade 1.6s 0.9s both;
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-headline, .hero-signature { animation: none; }
}

/* ── Interior pages: panel column, content below the fixed header ─────── */
.page-panel {
  background: var(--panel);
  min-height: 100svh;
  padding: 7.5rem var(--gutter) 4rem;
}
.page-title {
  font-size: 1.5rem; font-weight: 300; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.9); margin: 0 0 0.6rem;
}
.page-lede { color: rgba(255,255,255,0.65); max-width: 40rem; margin: 0 0 2.5rem; line-height: 1.6; }
.page-body { max-width: 44rem; line-height: 1.7; color: rgba(255,255,255,0.85); }
.page-body h2 { font-weight: 300; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 2rem; }

/* ── Masonry gallery (CSS columns, as the Next build) ──────────────────── */
.masonry { columns: 1; column-gap: 1.25rem; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry > figure { break-inside: avoid; margin: 0 0 1.25rem; position: relative; }

.shot { position: relative; overflow: hidden; border-radius: 2px; cursor: zoom-in; }
.shot img { display: block; width: 100%; height: auto; transition: transform 0.7s; }
.shot:hover img { transform: scale(1.03); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.shot:hover figcaption { opacity: 1; }
@media (hover: none) { .shot figcaption { opacity: 1; } }

/* Film strip layout: horizontal snap scroll. */
.filmstrip { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.filmstrip > figure { flex: 0 0 80%; scroll-snap-align: center; margin: 0; position: relative; }
@media (min-width: 768px) { .filmstrip > figure { flex-basis: 60%; } }

/* The purchase tag on a for-sale photo. */
.sale-tag {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 20;
  display: flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; background: rgba(108,108,108,0.9);
  padding: 0.5rem 0.75rem; cursor: pointer; border: 0;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #f5f5f5; box-shadow: 0 1px 8px rgba(0,0,0,0.35);
  transition: background 0.2s; font-family: inherit;
}
.sale-tag:hover { background: var(--wall); }
.sale-tag svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.sale-tag .tag-label { display: none; }
@media (min-width: 640px) { .sale-tag .tag-label { display: inline; } }

/* ── Lightbox — wall grey at 97%, dark controls, as the design spec ────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(108,108,108,0.97);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
@media (min-width: 640px) { .lightbox { padding: 2.5rem; } }
.lb-stack {
  margin: 0; max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.lightbox img { max-width: 100%; max-height: 85svh; width: auto; height: auto; object-fit: contain; }
.lightbox .lb-caption {
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  text-align: center; color: rgba(0,0,0,0.7);
}
.lightbox .lb-caption .lb-item { margin-left: 0.75rem; color: rgba(0,0,0,0.45); }
/* The image's own box — the controls anchor to the photo's edges. */
.lb-frame { position: relative; display: flex; max-width: 100%; }
.lightbox .lb-nav {
  position: absolute; z-index: 10; background: none; border: 0;
  color: rgba(255,255,255,0.9); cursor: pointer; padding: 0.5rem 0.25rem;
  font-size: 2.25rem; line-height: 1; font-family: inherit;
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
  transition: color 0.2s;
}
.lightbox .lb-nav:hover { color: #fff; }
/* All three sit just OUTSIDE the photo's edge, 4px clear of it. */
.lb-close { bottom: calc(100% + 2px); right: 0; font-size: 1.875rem; }
.lb-prev { right: calc(100% + 4px); top: 50%; transform: translateY(-50%); font-size: 2.5rem; }
.lb-next { left: calc(100% + 4px); top: 50%; transform: translateY(-50%); font-size: 2.5rem; }
/* Narrow screens: the photo fills the width, so outside = off-screen.
   Tuck the arrows back inside the edges there; the X stays above. */
@media (max-width: 639px) {
  .lb-prev { right: auto; left: 4px; }
  .lb-next { left: auto; right: 4px; }
}
.lb-buy {
  padding: 0.625rem 1.25rem; border: 1px solid rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.2); cursor: pointer; font-family: inherit;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: #fff;
  transition: background 0.2s;
}
.lb-buy:hover { background: rgba(0,0,0,0.35); }

/* ── Purchase Inquiry dialog ───────────────────────────────────────────── */
.inquiry-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(108,108,108,0.97);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; overflow-y: auto;
}
.inquiry-box {
  position: relative; width: 100%; max-width: 32rem;
  background: var(--panel); border: 1px solid rgba(0,0,0,0.2);
  padding: 2.5rem; margin: 2rem 0;
}
.inquiry-close {
  position: absolute; top: 0.75rem; right: 1rem; padding: 0.5rem;
  background: none; border: 0; color: rgba(0,0,0,0.5);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.inquiry-close:hover { color: #000; }
.inquiry-kicker { font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(0,0,0,0.55); margin: 0; }
.inquiry-item { margin: 0.5rem 0 0; font-size: 1.5rem; font-weight: 300; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; }
.inquiry-caption { margin: 0.5rem 0 0; color: rgba(0,0,0,0.6); font-size: 0.875rem; }
.inquiry-form { margin-top: 2rem; display: grid; gap: 1rem; }
.inquiry-form .hp { display: none; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(0,0,0,0.2);
  color: #f5f5f5; font-size: 0.95rem; font-family: inherit;
}
.inquiry-form ::placeholder { color: rgba(255,255,255,0.4); }
.inquiry-form select { appearance: none; }
.inquiry-form select:invalid, .inquiry-form option[value=""] { color: rgba(255,255,255,0.5); }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus {
  outline: none; border-color: rgba(0,0,0,0.5);
}
.inquiry-send {
  width: 100%; margin-top: 0.5rem; padding: 0.75rem;
  border: 1px solid rgba(0,0,0,0.3); background: rgba(0,0,0,0.2);
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: #fff; cursor: pointer; transition: background 0.2s; font-family: inherit;
}
.inquiry-send:hover { background: rgba(0,0,0,0.35); }
.inquiry-note { color: rgba(0,0,0,0.5); font-size: 0.75rem; line-height: 1.6; margin: 0; }
.inquiry-thanks p { color: rgba(255,255,255,0.9); line-height: 1.6; }
.inquiry-close2 {
  margin-top: 2rem; background: none; border: 0; cursor: pointer;
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(0,0,0,0.7); font-family: inherit;
}

/* ── Contact form: the Purchase Inquiry form's layout, centred on the page ── */
.contact-form { max-width: 32rem; margin: 2.5rem auto 0; position: relative; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { padding: 2rem 0; color: rgba(255,255,255,0.45); font-size: 0.75rem; letter-spacing: 0.1em; }
