/* =============================================================
   STYLE.CSS — visual identity: "Darkroom"
   Near-black ground, warm bone-white type, Fraunces serif display
   over Inter, hairline rules, slow fades. The photographs are the
   only color on the page.
   You should not need to edit this file to manage photos.
   ============================================================= */

:root {
  --ink: #0f0e0d;          /* page ground */
  --ink-2: #161514;        /* raised surfaces */
  --bone: #ece7df;         /* primary text, warm white */
  --bone-dim: #a09a8f;     /* secondary text */
  --hairline: #2b2926;     /* rules and borders */
  --amber: #c8a472;        /* single accent — used sparingly */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);   /* page gutter */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--amber); color: var(--ink); }

/* ---------- type helpers ---------- */

.display {
  font-family: var(--serif);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.micro {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--bone-dim);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 450;
  letter-spacing: 0.04em;
}
.wordmark em {
  font-style: italic;
  color: var(--bone-dim);
  font-weight: 350;
}

.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }

.site-nav a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-nav a:hover { color: var(--bone); }
.site-nav a[aria-current="page"] {
  color: var(--bone);
  border-bottom-color: var(--amber);
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: auto;
  padding: 2.25rem var(--pad);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}
.site-footer a:hover { color: var(--amber); }

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  height: calc(100svh - 61px);
  min-height: 480px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s var(--ease), transform 6s var(--ease);
}
.hero img.is-loaded { opacity: 0.82; transform: scale(1); }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, transparent 45%),
              linear-gradient(to bottom, color-mix(in srgb, var(--ink) 55%, transparent) 0%, transparent 25%);
  pointer-events: none;
}

.hero-text {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(2rem, 8vh, 5rem);
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  max-width: 14ch;
  margin: 0.75rem 0 1.5rem;
}

.hero-cta {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--bone);
  border: 1px solid var(--hairline);
  padding: 0.85rem 1.6rem;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.hero-cta:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- shared section shell ---------- */

.section { padding: clamp(3rem, 8vh, 6rem) var(--pad); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.section-head a:hover { color: var(--amber); }

/* ---------- featured strip (home) ---------- */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.featured-card { display: block; }

.featured-card .frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  aspect-ratio: 4 / 5;
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1.4s var(--ease);
}
.featured-card img.is-loaded { opacity: 1; }
.featured-card:hover img { transform: scale(1.03); }

.featured-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.8rem;
}
.featured-card .title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
}

/* ---------- gallery page ---------- */

.page-title { margin-bottom: 0.6rem; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-intro { color: var(--bone-dim); max-width: 52ch; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin: 2.5rem 0 2.25rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1rem;
}

.filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.filter-btn:hover { color: var(--bone); }
.filter-btn[aria-pressed="true"] {
  color: var(--bone);
  border-bottom-color: var(--amber);
}
.filter-btn .count { color: var(--amber); font-size: 0.62rem; vertical-align: super; margin-left: 0.2rem; }

/* masonry via CSS columns */
.photo-grid {
  column-count: 3;
  column-gap: 1.4rem;
}
@media (max-width: 980px) { .photo-grid { column-count: 2; } }
@media (max-width: 580px) { .photo-grid { column-count: 1; } }

.photo-card {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 1.4rem;
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border: none;
  padding: 0;
  cursor: zoom-in;
  text-align: left;
  color: inherit;
  font: inherit;
}
.photo-card.is-hidden { display: none; }

.photo-card img {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease);
}
.photo-card img.is-loaded { opacity: 1; }
.photo-card:hover img { transform: scale(1.025); }

.photo-card .veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(to top, rgba(15, 14, 13, 0.85) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.photo-card:hover .veil,
.photo-card:focus-visible .veil { opacity: 1; }

.photo-card:focus-visible { outline: 1px solid var(--amber); outline-offset: 3px; }

.photo-card .veil .title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}
.photo-card .veil .meta { margin-top: 0.15rem; }

/* on touch screens there is no hover — show captions beneath instead */
@media (hover: none) {
  .photo-card .veil {
    position: static;
    opacity: 1;
    background: none;
    padding: 0.7rem 0 0.2rem;
  }
  .photo-card { cursor: pointer; }
}

.grid-empty {
  color: var(--bone-dim);
  font-style: italic;
  font-family: var(--serif);
  padding: 3rem 0;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.96);
  display: none;
  flex-direction: column;
  padding: clamp(0.75rem, 2vw, 2rem);
}
.lightbox.is-open { display: flex; }
.lightbox.is-open .lb-stage { animation: lb-in 0.5s var(--ease); }

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.75rem;
}

.lb-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transition: opacity 0.35s var(--ease);
}
.lb-stage img.is-switching { opacity: 0; }

.lb-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 2rem;
  padding-top: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.lb-caption .title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}
.lb-caption .desc { color: var(--bone-dim); width: 100%; max-width: 60ch; }

.lb-btn {
  background: none;
  border: 1px solid var(--hairline);
  color: var(--bone-dim);
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lb-btn:hover, .lb-btn:focus-visible { color: var(--amber); border-color: var(--amber); }

.lb-arrows { display: flex; gap: 0.5rem; }

/* ---------- about page ---------- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  max-width: 1200px;
}
@media (max-width: 820px) { .about-layout { grid-template-columns: 1fr; } }

.about-portrait {
  position: sticky;
  top: 90px;
  overflow: hidden;
  background: var(--ink-2);
}
@media (max-width: 820px) { .about-portrait { position: static; max-width: 420px; } }

.about-portrait img {
  width: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.about-portrait img.is-loaded { opacity: 1; }

.about-text p {
  font-size: 1.08rem;
  color: var(--bone);
  margin-bottom: 1.4rem;
  max-width: 58ch;
}
.about-text p:first-of-type {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  font-weight: 350;
}

/* ---------- about page: equipment ---------- */

.gear {
  margin-top: clamp(3rem, 8vh, 5rem);
  border-top: 1px solid var(--hairline);
  padding-top: 2.5rem;
  max-width: 1200px;
}

.gear-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 350;
  max-width: 48ch;
  margin-bottom: 2.25rem;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem 2.5rem;
}

.gear-group h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
  font-weight: 500;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.5rem;
}

.gear-group ul { list-style: none; }
.gear-group li {
  color: var(--bone-dim);
  font-size: 0.92rem;
  padding: 0.22rem 0;
}

/* ---------- contact page ---------- */

.contact-wrap { max-width: 760px; }

.contact-form { margin: 2rem 0 3rem; }

.contact-form label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
  margin: 1.4rem 0 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.35s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--amber); }
.contact-form textarea { resize: vertical; min-height: 9rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }

/* honeypot — visually gone, still in the form for bots to find */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

.form-send {
  margin-top: 1.75rem;
  background: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--bone);
  border: 1px solid var(--hairline);
  padding: 0.85rem 1.6rem;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.form-send:hover { border-color: var(--amber); color: var(--amber); }

.form-notice {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  border: 1px solid var(--hairline);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
}
.form-notice.ok { border-color: var(--amber); }
.form-notice.err { border-color: #8a4a3e; }

.contact-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
}
.contact-notes h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.contact-notes p { color: var(--bone-dim); font-size: 0.95rem; }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
