/* ==========================================================================
   Eye & I shared styles
   Extracted verbatim from the identical block that lived at the top of
   every page's inline <style> (index, on-site, create, journal, gallery,
   contact). Page-unique styles stay inline on their own pages.
   Fonts load via <link> tags in each page head (moved out of this file
   in the pre-launch pass for faster first paint).
   Load order matters: this file is linked BEFORE each page's inline
   <style>, so page-level rules keep winning exactly as they did before.
   ========================================================================== */
:root {
  --black: #0d0c0a; --cream: #f1e6c8; --green: #1f6e3f;
  --gold: #e3a730; --red: #bd3b2c;
  --line: rgba(241,230,200,0.13); --line-bright: rgba(241,230,200,0.32);
  --text: rgba(241,230,200,0.78);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--cream); font-family: 'Oswald', sans-serif; overflow-x: hidden; }
::selection { background: var(--gold); color: var(--black); }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.halftone { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.06; mix-blend-mode: screen;
  background-image: radial-gradient(circle, var(--gold) 1px, transparent 1.5px); background-size: 8px 8px; }
h1,h2,h3,.display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; line-height: 0.92; text-transform: uppercase; }
.eyebrow { font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; font-size: 0.68rem; color: var(--gold); }
.serif { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; }
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem; background: linear-gradient(to bottom, rgba(13,12,10,0.97) 55%, transparent); }
.nav-mark { display: flex; align-items: center; gap: 0.55rem; font-family: 'Bebas Neue'; font-size: 1.2rem; letter-spacing: 0.1em; color: var(--cream); text-decoration: none; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--cream); text-decoration: none; opacity: 0.6; transition: opacity .2s, color .2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-bright); color: var(--cream); font-family: 'Oswald'; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.5rem 0.8rem; cursor: pointer; }
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 100%; right: 1rem; flex-direction: column; gap: 0;
    background: #14120d; border: 1px solid var(--line); min-width: 180px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); opacity: 0.85; }
  .nav-toggle { display: block; }
}
.stripe { height: 5px; width: 100%; background: linear-gradient(90deg, var(--green) 0 33.3%, var(--gold) 33.3% 66.6%, var(--red) 66.6% 100%); }
.btn { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; padding: 0.9rem 1.8rem;
  text-decoration: none; display: inline-block; transition: transform .15s ease, background .2s, border-color .2s, color .2s; }
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { transform: translateY(-2px); background: #f0bb52; }
.btn-ghost { border: 1px solid var(--line-bright); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.wrap { max-width: 1100px; margin: 0 auto; }
.page-hero { position: relative; padding: 9rem 1.5rem 4rem; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(31,110,63,0.14), transparent 65%), var(--black);
  border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); margin: 0.6rem 0 1rem; }
.page-hero h1 em { color: var(--gold); font-style: normal; }
.page-hero p.lead { max-width: 560px; margin: 0 auto; font-size: 1rem; line-height: 1.65; color: var(--text); }
section { position: relative; }
.section-head { text-align: center; max-width: 580px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 0.5rem; }
.section-head p { margin-top: 0.9rem; color: var(--text); font-size: 0.95rem; line-height: 1.65; }
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.visible { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
footer { border-top: 1px solid var(--line); padding: 2.5rem 1.5rem 2rem; text-align: center; font-size: 0.7rem; letter-spacing: 0.08em; color: rgba(241,230,200,0.38); }
footer .nav-mark { justify-content: center; margin-bottom: 0.7rem; font-size: 1.05rem; }
.social-links { display: flex; gap: 1.4rem; justify-content: center; margin-top: 0.8rem; flex-wrap: wrap; }
.social-links a { color: rgba(241,230,200,0.45); text-decoration: none; font-size: 0.67rem; letter-spacing: 0.1em; text-transform: uppercase; }
.social-links a:hover { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } .reveal { opacity: 1 !important; transform: none !important; } }

/* ==========================================================================
   Batch 1 additions (July 2026). New rules only, nothing above was changed.
   ========================================================================== */

/* Visible focus for keyboard users, gold to match the accent system */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Skip link: invisible until focused, then drops in at the top left */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--black); padding: 0.7rem 1.2rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 0.7rem; text-decoration: none; }
.skip-link:focus { left: 0; }

/* Eye & I mark: blink and pupil-tracking hooks (JS drives these via site.js).
   The lid is collapsed by default; .is-blinking closes it for ~110ms. */
.logo-eye .eye-lid { transform-box: fill-box; transform-origin: center;
  transform: scaleY(0); transition: transform .09s ease-in; }
.logo-eye.is-blinking .eye-lid { transform: scaleY(1); }
.logo-eye .eye-pupil { transform-box: fill-box; transform-origin: center;
  transition: transform .12s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .logo-eye .eye-lid { display: none; }
  .logo-eye .eye-pupil { transform: none !important; }
}

/* Batch 1.1 hotfix (July 2026): images that carry intrinsic width/height
   attributes must not use the attribute height as a fixed pixel height
   when CSS constrains their width. This guard restores natural
   proportions. Pages that deliberately crop (height: 100% plus
   object-fit, or aspect-ratio boxes) still win: their rules share the
   guard's specificity but load later, in the page's inline <style>. */
img[width][height]:not(.post-hero-img) { height: auto; }

/* ==========================================================================
   Batch 2 additions (July 2026): shared patterns for the new pages.
   ========================================================================== */

/* Visible placeholder for content that still needs a real asset or quote.
   Deliberately loud so it never ships unnoticed. */
.placeholder-note { border: 2px dashed var(--gold); background: rgba(227,167,48,0.06);
  color: var(--gold); padding: 1.4rem 1.2rem; text-align: center;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.7; }

/* "Created With" proof strip (Create and On-Site pages) */
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
@media (max-width: 720px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-card { border: 1px solid var(--line); padding: 1.8rem 1.6rem; }
.proof-card h3 { font-size: 1.5rem; color: var(--cream); margin-bottom: 0.5rem; }
.proof-card p { color: var(--text); font-size: 0.9rem; line-height: 1.65; }
.proof-card .p-tag { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }

/* ==========================================================================
   Batch 3 additions (July 2026): lightbox and footer signup.
   ========================================================================== */

/* Gallery lightbox (markup injected by site.js) */
.lb-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(13,12,10,0.94);
  display: flex; align-items: center; justify-content: center; padding: 3.5rem 1rem 4.5rem; }
.lb-overlay[hidden] { display: none; }
.lb-figure { max-width: min(1200px, 92vw); max-height: 100%; margin: 0; display: flex;
  flex-direction: column; align-items: center; }
.lb-figure img { max-width: 100%; max-height: 78vh; display: block; border: 1px solid var(--line); }
.lb-caption { margin-top: 0.8rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(241,230,200,0.7); text-align: center; min-height: 1em; }
.lb-count { position: absolute; top: 1.1rem; left: 1.4rem; font-size: 0.68rem; letter-spacing: 0.14em;
  color: rgba(241,230,200,0.5); text-transform: uppercase; }
.lb-btn { position: absolute; background: rgba(13,12,10,0.6); border: 1px solid var(--line-bright);
  color: var(--cream); font-family: 'Oswald', sans-serif; font-size: 1rem; cursor: pointer;
  width: 2.9rem; height: 2.9rem; display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s; }
.lb-btn:hover, .lb-btn:focus-visible { border-color: var(--gold); color: var(--gold); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lb-prev { left: auto; right: 5rem; }
}
.lb-open-hint { cursor: zoom-in; }
body.lb-locked { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .lb-overlay { animation: lbfade .18s ease; }
  @keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
}

/* "From the Field" footer signup (Netlify form; see BUILD_LOG for the
   Buttondown swap procedure) */
.signup { max-width: 480px; margin: 0 auto 2rem; padding: 1.6rem 1.5rem; border: 1px solid var(--line); text-align: center; }
.signup .signup-title { font-family: 'Bebas Neue'; font-size: 1.4rem; letter-spacing: 0.05em; color: var(--cream); text-transform: uppercase; }
.signup .signup-copy { color: var(--text); font-size: 0.8rem; line-height: 1.6; margin: 0.5rem 0 1.1rem; letter-spacing: 0.03em; }
.signup .signup-row { display: flex; gap: 0.6rem; }
@media (max-width: 480px) { .signup .signup-row { flex-direction: column; } }
.signup input[type="email"] { flex: 1; background: #14120d; border: 1px solid var(--line-bright);
  color: var(--cream); font-family: 'Oswald', sans-serif; font-size: 0.9rem; padding: 0.75rem 0.9rem; min-width: 0; }
.signup input[type="email"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.signup .btn { padding: 0.75rem 1.3rem; font-size: 0.72rem; }
.signup .privacy { font-size: 0.62rem; color: rgba(241,230,200,0.38); letter-spacing: 0.08em; margin-top: 0.8rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; }

/* ==========================================================================
   Batch 4 additions (July 2026): stacked scenes and gallery index.
   ========================================================================== */

/* Stacked-section scenes: sticky does the covering, site.js adds a light
   dim/scale to the outgoing panel. Only active on wider screens with
   motion allowed; otherwise pages scroll exactly as before. */
@media (min-width: 700px) and (prefers-reduced-motion: no-preference) {
  body.stacks-on .stack-panel { position: sticky; top: 0; }
}
.stack-panel { background: var(--black); }

/* Gallery event index */
.gallery-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1rem; }
.gallery-actions .g-total { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(241,230,200,0.5); }

/* Homepage Latest Story extra fields */
.story-sub { font-family: 'Fraunces', serif; font-style: italic; color: var(--cream); font-size: 1.05rem; margin-bottom: 0.4rem; }
.story-lineup { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(241,230,200,0.55); margin-bottom: 0.9rem; }

/* Batch 4.1 QA fixes (July 2026) */

/* <button class="btn"> was showing the browser's default white face;
   match the page and inherit the type system. Link colors unchanged. */
button.btn { background: var(--black); font-family: 'Oswald', sans-serif; cursor: pointer; color: var(--cream); }
button.btn-ghost:hover, button.btn-ghost:focus-visible { color: var(--gold); }

/* Stacked panels: clear the fixed header while pinned */
@media (min-width: 700px) and (prefers-reduced-motion: no-preference) {
  body.stacks-on .stack-panel { scroll-margin-top: 4.5rem; }
}

/* Brand motion loop: muted, looped, hidden under reduced motion */
.brand-loop video { width: 100%; display: block; border: 1px solid var(--line); background: #14120d; }
@media (prefers-reduced-motion: reduce) { .brand-loop { display: none; } }

/* Per-event gallery photographer credit */
.g-credit { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(241,230,200,0.5); margin-top: 0.7rem; }
.g-credit a { color: var(--gold); text-decoration: none; }
