/* ============================================================
   Stormsight Photography — style.css
   Palette: storm slate base, rain-white text, window-glow amber.
   Type: EB Garamond throughout.
   ============================================================ */

:root {
  --base: #171c22;        /* storm slate */
  --base-raised: #1e242c; /* panels, form fields */
  --ink: #e8e6e1;         /* rain-white text */
  --mute: #9aa3ad;        /* secondary text */
  --line: #333b45;        /* rules and borders */
  --glow: #c29a63;        /* window-glow amber — links, accents */
  --glow-bright: #d8b27c;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  background: var(--base);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--glow); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--glow-bright); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.solid { position: static; background: var(--base); border-bottom: 1px solid var(--line); }

.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { display: block; }
.brand .wordmark {
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  font-weight: 500;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.2rem 0 0.15rem 0.32em; /* trailing letter-space balance */
  line-height: 1.2;
}

.site-nav { display: flex; gap: 2rem; }
.site-nav a { color: var(--ink); font-size: 1.05rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--glow); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); color: var(--ink);
  font-family: inherit; font-size: 1rem; padding: 0.35rem 0.8rem; cursor: pointer;
}

@media (max-width: 720px) {
  .site-header { padding: 1rem 1.25rem; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; right: 1.25rem;
    flex-direction: column; gap: 0;
    background: var(--base-raised);
    border: 1px solid var(--line);
    min-width: 12rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 88vh;
  min-height: 540px;
  overflow: hidden;
}
.hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(23,28,34,0.55) 0%,
    rgba(23,28,34,0.05) 35%,
    rgba(23,28,34,0.05) 60%,
    rgba(23,28,34,0.92) 100%);
}
.hero-plate {
  position: absolute;
  left: 0; right: 0; bottom: 3.5rem;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}
.hero-plate .rain-mark { margin: 0 auto 1.1rem; width: 84px; }
.hero-plate h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.38em;
  padding-left: 0.38em; /* optical centering against tracking */
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: inline-block;
  padding-top: 0.35rem; padding-bottom: 0.3rem;
  line-height: 1.25;
}
.hero-plate .sub {
  margin-top: 0.7rem;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.14em;
  padding-left: 0.14em;
}
.hero-plate .tagline {
  margin-top: 1.4rem;
  color: var(--mute);
  font-style: italic;
  font-size: 1.15rem;
}

/* ---------- Page scaffolding ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
@media (max-width: 720px) { .wrap { padding: 0 1.25rem; } }

.section { padding: 5rem 0; }
.section + .section { padding-top: 0; }

.section-head {
  margin-bottom: 2.5rem;
  max-width: 38rem;
}
.section-head h2 {
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.3;
}
.section-head p { margin-top: 0.75rem; color: var(--mute); }

.rain-rule {
  width: 84px;
  margin: 0 0 1.25rem;
}

.page-title { padding: 7rem 0 0; }
.page-title h1 { font-size: 2.2rem; font-weight: 500; line-height: 1.3; }
.page-title .lede { margin-top: 1rem; color: var(--mute); max-width: 40rem; }
.site-header.solid + main .page-title { padding-top: 3.5rem; }

/* ---------- Galleries ---------- */

.gallery {
  columns: 3;
  column-gap: 1.25rem;
  padding-bottom: 1rem;
}
.gallery figure {
  break-inside: avoid;
  margin-bottom: 1.25rem;
}
.gallery a.frame { display: block; }
.gallery img {
  width: 100%;
  transition: opacity 0.25s ease;
}
.gallery a.frame:hover img { opacity: 0.85; }
.gallery figcaption {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--mute);
}

@media (max-width: 980px) { .gallery { columns: 2; } }
@media (max-width: 600px) { .gallery { columns: 1; } }

/* Home page selected-work strip */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.strip a.frame { display: block; overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; transition: opacity 0.25s ease; }
.strip a.frame:hover img { opacity: 0.85; }
@media (max-width: 720px) { .strip { grid-template-columns: 1fr; } }

.more-link { margin-top: 1.5rem; font-size: 1.1rem; display: inline-block; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid .portrait img { width: 100%; }
.prose p + p { margin-top: 1.1rem; }
.prose .statement {
  margin: 1.75rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--glow);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* ---------- Inquire / form ---------- */

.inquire-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 860px) { .inquire-grid { grid-template-columns: 1fr; } }

form .field { margin-bottom: 1.35rem; }
form label { display: block; margin-bottom: 0.4rem; color: var(--ink); }
form input, form textarea, form select {
  width: 100%;
  background: var(--base-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.05rem;
  padding: 0.75rem 0.9rem;
}
form textarea { min-height: 9rem; resize: vertical; }
form input:focus, form textarea:focus, form select:focus { border-color: var(--glow); outline: none; }

.btn {
  display: inline-block;
  background: none;
  border: 1px solid var(--glow);
  color: var(--glow);
  font-family: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  padding: 0.8rem 2.2rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--glow); color: var(--base); }

.hidden { display: none; }

.contact-lines { margin-top: 1.75rem; color: var(--mute); }
.contact-lines a { display: inline; }

/* Licensing notes */
.licensing { margin-top: 2.25rem; border-top: 1px solid var(--line); padding-top: 1.75rem; }
.licensing h3 { font-weight: 500; font-size: 1.25rem; margin-bottom: 0.75rem; }
.licensing p { color: var(--mute); font-size: 1.05rem; }
.licensing p + p { margin-top: 0.6rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2.5rem 0 3rem;
  color: var(--mute);
  font-size: 1rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 1.5rem; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0;
  background: rgba(13, 16, 20, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 2.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto; height: auto;
  margin: 0 auto;
}
.lightbox .close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}




/* ---------- Landing tiles & sub-headings ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; display: block; overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; transition: opacity 0.25s ease; }
.tile:hover img { opacity: 0.82; }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.4rem 1.1rem;
  background: linear-gradient(to top, rgba(13,16,20,0.82), transparent);
  color: var(--ink); font-size: 1.15rem; font-weight: 500; letter-spacing: 0.05em;
}
@media (max-width: 720px) { .tiles, .tiles-3 { grid-template-columns: 1fr; } }
.sub-h { font-size: 1.35rem; font-weight: 500; margin: 2.6rem 0 1.2rem; }
.sub-h:first-of-type { margin-top: 0; }

/* ---------- Full-bleed landing ---------- */
.stage {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.stage .bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.stage::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 42% at 50% 48%, rgba(23,28,34,0.30), transparent 70%),
    linear-gradient(to bottom,
    rgba(23,28,34,0.42) 0%, rgba(23,28,34,0.06) 30%,
    rgba(23,28,34,0.06) 62%, rgba(23,28,34,0.66) 100%);
  pointer-events: none;
}
/* double hairline frame, echoing the nameplate rules */
.stage .inset  { position: absolute; inset: 16px; border: 1px solid rgba(194,154,99,0.65); pointer-events: none; z-index: 2; }
.stage .inset2 { position: absolute; inset: 24px; border: 1px solid rgba(232,230,225,0.28); pointer-events: none; z-index: 2; }
.stage .plate {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  text-shadow: 0 2px 18px rgba(13,16,20,0.75);
  padding: 0 1.5rem;
}
.stage .plate svg { width: 74px; color: var(--ink); margin-bottom: 1.1rem; filter: drop-shadow(0 2px 10px rgba(13,16,20,0.7)); }
.stage .plate h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.34em; padding-left: 0.34em;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding-top: 0.4rem; padding-bottom: 0.35rem;
  line-height: 1.2;
}
.stage .plate .sub {
  margin-top: 0.7rem;
  letter-spacing: 0.34em; padding-left: 0.34em;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  color: var(--glow-bright);
}
.stage-tagline {
  position: absolute; left: 0; right: 0; bottom: 3.4rem; z-index: 3;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  text-shadow: 0 1px 12px rgba(13,16,20,0.8);
  padding: 0 2rem;
}
.stage-where {
  position: absolute; right: 2.4rem; bottom: 2.1rem; z-index: 3;
  font-style: italic; font-size: 0.95rem;
  color: rgba(232,230,225,0.75);
  text-shadow: 0 1px 10px rgba(13,16,20,0.8);
}
@media (max-width: 720px) {
  .stage .inset { inset: 10px; } .stage .inset2 { inset: 17px; }
  .stage-where { right: 1.4rem; bottom: 1.6rem; }
  .stage-tagline { bottom: 3.6rem; }
}

/* ---------- Warmth pass ---------- */
h1, h2, h3 { font-weight: 500; }
.sub-h { position: relative; padding-bottom: 0.55rem; }
.sub-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 1px; background: var(--glow); }
.page-title h1 { position: relative; padding-bottom: 0.7rem; }
.page-title h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 1px; background: var(--glow); }
.tile span { font-family: "EB Garamond", Georgia, serif; font-size: 1.3rem; letter-spacing: 0.12em; }
.site-footer { border-top-color: rgba(194,154,99,0.35); }

.back-link { display: inline-block; margin-bottom: 0.9rem; font-size: 1rem; color: var(--mute); letter-spacing: 0.04em; }
.back-link:hover { color: var(--glow); }

/* ---------- Lightbox navigation & captions ---------- */
.lightbox .lb-fig { margin: 0; text-align: center; max-width: 100%; }
.lightbox img { max-height: 84vh; }
.lb-cap { margin-top: 0.6rem; font-style: italic; color: var(--mute); font-size: 1rem; }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--mute); font-family: inherit; font-size: 3rem; line-height: 1;
  padding: 1rem 1.2rem; z-index: 51;
}
.lb-prev:hover, .lb-next:hover { color: var(--glow); }
.lb-prev { left: 0.4rem; } .lb-next { right: 0.4rem; }
@media (max-width: 720px) {
  .lb-prev, .lb-next { font-size: 2.4rem; padding: 0.8rem; }
  .lightbox { padding: 1.2rem; }
}
