/*
Theme Name: Philip Glenn Photography
Theme URI: https://philipglenn.example
Author: Philip Glenn
Description: A strict black & white, serif, image-forward portfolio theme. Converted from the Latent Image prototype. Flat photo CPT, draggable hero reel, masonry portfolio.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: philip-glenn
*/

/* ============================================================
   TOKENS — strict monochrome. No warm paper, no accent colour.
   The "why" lives in DESIGN_CONTEXT.md.
   ============================================================ */
:root{
  --paper:#ffffff;
  --paper-2:#fafafa;      /* barely-there alt section ground */
  --ink:#000000;
  --ink-soft:#3d3d3d;     /* secondary body text */
  --grey:#8a8a8a;         /* captions, micro-labels */
  --line:#e6e6e6;         /* hairline rules */
  --line-strong:#111;     /* heavy structural rule */
  --serif:"Newsreader",Georgia,"Times New Roman",serif;
  --grot:"Archivo","Helvetica Neue",Arial,sans-serif;
  --edge:clamp(1.4rem,5vw,5.5rem);
  --maxw:1320px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none!important;transition:none!important}
}
body{
  background:var(--paper);color:var(--ink);
  font-family:var(--serif);font-optical-sizing:auto;font-weight:380;
  font-size:clamp(0.98rem,0.3vw + 0.92rem,1.08rem);line-height:1.62;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
::selection{background:var(--ink);color:var(--paper)}
img{display:block;max-width:100%}
em{font-style:italic}
a{color:inherit;text-decoration:none}

/* subtle film grain, monochrome */
body::before{
  content:"";position:fixed;inset:0;z-index:9000;pointer-events:none;opacity:.028;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--edge)}
.label{font-family:var(--grot);font-weight:500;font-size:.64rem;letter-spacing:.22em;text-transform:uppercase;color:var(--grey)}
.folio{font-family:var(--grot);font-weight:600;font-size:.64rem;letter-spacing:.16em;color:var(--ink)}
section{padding:clamp(4rem,9vw,8rem) 0}

/* reveal on scroll */
.rv{opacity:0;transform:translateY(18px);transition:opacity .9s ease,transform .9s ease}
.rv.in{opacity:1;transform:none}

/* ============================================================
   TOP BAR
   ============================================================ */
.top{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1.15rem var(--edge);
  position:sticky;top:0;background:rgba(255,255,255,.86);backdrop-filter:saturate(120%) blur(8px);z-index:50;
  transition:transform .35s ease;
}
.top.hide{transform:translateY(-100%)}
/* on the portfolio the menu overlays its reserved strip above the grid, and hides on scroll */
body.pgp-portfolio .top{position:fixed;left:0;right:0;top:0}
/* sit below the wp admin bar when logged in */
body.admin-bar .top{top:32px}
@media screen and (max-width:782px){ body.admin-bar .top{top:46px} }
.wordmark{font-family:var(--serif);font-weight:430;font-size:1.18rem;letter-spacing:-0.01em}
.wordmark em{font-style:italic}
.top nav{display:flex;gap:1.8rem;align-items:center}
.top nav ul{display:flex;gap:1.8rem;align-items:center;list-style:none;margin:0;padding:0}
.top nav li{list-style:none;margin:0;padding:0}
.top nav a{font-family:var(--grot);font-weight:500;font-size:.64rem;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-soft);transition:color .25s,opacity .25s;position:relative}
.top nav a:hover,.top nav a[aria-current="page"]{color:var(--ink)}
.top nav a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:-.45rem;height:1px;background:var(--ink)}
@media(max-width:720px){.top nav{gap:1.1rem}.top nav a{font-size:.58rem;letter-spacing:.14em}}

/* ============================================================
   HERO REEL (Home)
   ============================================================ */
.reel-meta{display:flex;justify-content:space-between;align-items:center;padding:1.6rem var(--edge) 1rem}
.reel-meta .hint{display:flex;align-items:center;gap:.6rem}
.reel-meta .hint .arrow{font-family:var(--grot)}
.reel-nav{display:flex;gap:.95rem;align-items:center}
.reel-arrow{font-family:var(--grot);font-size:1.05rem;line-height:1;background:none;border:none;color:var(--ink);cursor:pointer;padding:.2rem .25rem;transition:opacity .25s}
.reel-arrow:hover:not(:disabled){opacity:.5}
.reel-arrow:disabled{opacity:.22;cursor:default}
.reel-arrow:focus-visible{outline:1px solid var(--grey);outline-offset:3px}
.reel-count{font-family:var(--grot);font-weight:500;font-size:.62rem;letter-spacing:.14em;color:var(--ink);min-width:4.4em;text-align:center;font-variant-numeric:tabular-nums}

.reel{
  display:flex;gap:clamp(1rem,2.2vw,2rem);
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x proximity;
  padding:0 var(--edge) 1.4rem;
  cursor:grab;
  --fh:clamp(460px,76vh,860px);
  scrollbar-width:thin;scrollbar-color:var(--line) transparent;
}
.reel.drag{cursor:grabbing;scroll-snap-type:none}
.reel::-webkit-scrollbar{height:4px}
.reel::-webkit-scrollbar-track{background:transparent}
.reel::-webkit-scrollbar-thumb{background:var(--line)}
.reel:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}

.item{flex:0 0 auto;scroll-snap-align:center;display:flex;flex-direction:column;gap:.7rem}
.item.port{width:clamp(250px,44vh,460px)}
.item.land{width:clamp(380px,74vh,820px)}
.item.sq{width:clamp(320px,56vh,620px)}
.frame{height:var(--fh);position:relative;overflow:hidden;background:#f0f0f0}
.frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;-webkit-user-drag:none;user-select:none}
.cap{display:flex;justify-content:space-between;gap:1rem;font-family:var(--grot);font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;color:var(--grey)}
.cap .n{color:var(--ink)}

/* title card inside reel */
.item.title{width:clamp(300px,50vh,440px)}
.title-card{height:var(--fh);border:1px solid var(--ink);padding:clamp(1.8rem,3vw,2.6rem);display:flex;flex-direction:column;justify-content:space-between}
.title-card .k{font-family:var(--grot);font-weight:500;font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:var(--grey)}
.title-card h1{font-family:var(--serif);font-weight:300;font-size:clamp(2.4rem,4.6vw,3.8rem);line-height:.98;letter-spacing:-0.022em}
.title-card h1 em{font-style:italic}
.title-card .go{font-family:var(--grot);font-weight:600;font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ink);border-bottom:1px solid var(--ink);padding-bottom:.2em;align-self:flex-start;transition:opacity .25s}
.title-card .go:hover{opacity:.55}

/* ============================================================
   HERO (Home) — two photographs, the second cut off on the right.
   ============================================================ */
.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}
/* Scroll-snap carousel: image 1 on the left gutter, image 2 cut in half on the
   far right. Advancing snaps image 2 to the gutter, over where image 1 was.
   --himg drives both the gap (so image 2 lands half-cut) and the trailing pad
   (so image 2 can scroll all the way to the gutter). */
/* Free horizontal scroll (drag + wheel). It does NOT auto-snap; only the
   arrow keys / buttons step image-to-image (handled in main.js). No focus
   outline — the visible affordance is the arrow buttons. */
.hero2{
  --fh:clamp(440px,74vh,820px);
  --peek:45px;          /* how much of the next photo shows on the far right */
  overflow-x:auto;overflow-y:hidden;
  padding:clamp(1rem,2vw,2.2rem) 0 0 var(--edge);
  cursor:grab;scrollbar-width:none;
}
.hero2::-webkit-scrollbar{display:none}
.hero2.drag{cursor:grabbing}
.hero2:focus,.hero2:focus-visible{outline:none}
.hero2-row{display:flex;align-items:flex-start;gap:0;padding-right:var(--edge)}
/* Each slide is a uniform-width track cell (viewport minus the gutter and a
   --peek sliver) so exactly --peek of the NEXT photo shows. The image inside
   keeps its true aspect (same height, natural width, no crop), left-aligned. */
.hero2 .h2item{flex:0 0 auto;width:calc(100vw - var(--edge) - var(--peek))}
.hero2 .h2inner{width:max-content;display:flex;flex-direction:column;gap:.85rem}
.hero2 .h2inner .frame{height:var(--fh);width:max-content;background:none}
.hero2 .h2inner .frame img{position:static;inset:auto;height:100%;width:auto;max-width:none;object-fit:contain}
.hero2 .cap{font-size:.6rem}
/* In the HERO carousel every photo anchors at the left gutter so the carousel
   reads consistently (left/middle/right placement is honored on the PORTFOLIO,
   not here — offsetting within a snap-to-gutter slide looks broken). `full` is
   the one hero variation: a full-bleed slide, cover-cropped to the hero height. */
.hero2 .h2item .h2inner{margin-right:auto;margin-left:0}
.hero2 .h2item.pos-full .h2inner{width:100%;margin:0}
.hero2 .h2item.pos-full .frame{width:100%;position:relative;overflow:hidden}
.hero2 .h2item.pos-full .frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@media(max-width:680px){
  .hero2{--fh:clamp(360px,56vh,560px)}
}

/* ============================================================
   BUTTONS / LINKS
   ============================================================ */
.btn{font-family:var(--grot);font-weight:600;font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--paper);background:var(--ink);padding:1.1em 2em;display:inline-block;border:1px solid var(--ink);transition:background .3s,color .3s}
.btn:hover{background:var(--paper);color:var(--ink)}
.btn:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.link{font-family:var(--grot);font-weight:600;font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ink);border-bottom:1px solid var(--ink);padding-bottom:.2em;transition:opacity .25s}
.link:hover{opacity:.55}

/* ============================================================
   STATEMENT LINE
   ============================================================ */
.statement{}
.statement .wrap{display:grid;grid-template-columns:auto 1fr;gap:1.8rem;align-items:baseline;padding-top:clamp(3.5rem,8vw,6rem);padding-bottom:clamp(3.5rem,8vw,6rem)}
.statement-body{display:flex;flex-direction:column;align-items:flex-start;gap:1.9rem}
.statement p{font-family:var(--serif);font-weight:300;font-size:clamp(1.6rem,4.4vw,3.2rem);line-height:1.06;letter-spacing:-0.018em;max-width:26ch}
.statement p em{font-style:italic}
@media(max-width:680px){.statement .wrap{grid-template-columns:1fr;gap:1rem}}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.shead{display:grid;grid-template-columns:auto 1fr auto;gap:1.4rem;align-items:baseline;border-top:1px solid var(--ink);padding-top:1.15rem;margin-bottom:clamp(2rem,5vw,3.5rem)}
.shead h2{font-family:var(--serif);font-weight:320;font-size:clamp(1.7rem,4vw,2.8rem);letter-spacing:-0.012em;line-height:1.05}
.shead h2 em{font-style:italic}
.shead .meta{text-align:right}
@media(max-width:560px){.shead{grid-template-columns:auto 1fr}.shead .meta{display:none}}

/* ============================================================
   PORTFOLIO — strict square-grid system. Each page is a 100vh chunk holding
   a fixed cols×rows grid of square modules; photos placed per their grid meta.
   Scroll-snap (set on <html> via JS on this page) keeps each composition whole.
   ============================================================ */
/* One shared --gap drives the cell spacing, the outer margin, AND the margin
   between sections — so the whole portfolio reads as one continuous grid. */
/* Full-bleed: the grid fills the viewport edge-to-edge (no side margins). Each
   .grid-page is EXACTLY one visible viewport tall — (100vh − admin-bar) — so
   scroll-snap chunks land cleanly. The top reserves the nav height so the menu
   sits above the grid (never over it); the menu auto-hides on scroll. */
.pf-grid-flow{--gap:8px;--ab:0px;--head:60px;display:flex;flex-direction:column}
body.admin-bar .pf-grid-flow{--ab:32px}
@media screen and (max-width:782px){ body.admin-bar .pf-grid-flow{--ab:46px} }
.grid-page{
  height:calc(100vh - var(--ab));
  box-sizing:border-box;
  scroll-snap-align:start;
  display:flex;align-items:center;justify-content:center;
  padding:var(--gap) 0;
}
.gridc{
  /* Square cell = the smaller of (fits the width) and (fits the visible height).
     Sizing by the smaller dimension means the grid NEVER overflows its 100vh
     page, so sections can't overlap — and cells stay perfectly square. It fills
     the width edge-to-edge whenever the window is tall enough; on a short window
     it fits the height instead (small side margins) rather than spilling over. */
  --cw:calc((100vw - (var(--cols) - 1) * var(--gap)) / var(--cols));
  --ch:calc((100vh - var(--ab) - (var(--rows) + 1) * var(--gap)) / var(--rows));
  --cell:min(var(--cw), var(--ch));
  display:grid;
  grid-template-columns:repeat(var(--cols), var(--cell));
  grid-template-rows:repeat(var(--rows), var(--cell));
  grid-auto-flow:dense;
  gap:var(--gap);
  width:max-content;
  max-width:100%;
}
.gcell{overflow:hidden;background:#f1f1f1;margin:0;min-width:0;min-height:0}
.gcell img{width:100%;height:100%;object-fit:cover;object-position:var(--ox,50%) var(--oy,50%);display:block}
/* placed text blocks (styling set inline; font-size scales with the cell) */
.gtext{display:flex;flex-direction:column;overflow:hidden;padding:.35em .5em;min-width:0;min-height:0}
.gtext-in{width:100%;white-space:pre-wrap;word-break:break-word;font-optical-sizing:auto}
.gtext em{font-style:italic}.gtext strong{font-weight:600}
/* the grid sits below the sticky header (its height is measured into --pgp-head) */
body.pgp-portfolio footer.colophon{scroll-snap-align:start}
@media(max-width:680px){
  .grid-page{min-height:auto}
  .gridc{height:auto;width:auto;aspect-ratio:auto;grid-template-rows:none}
}
.pf-empty{font-family:var(--serif);font-style:italic;color:var(--grey);font-size:1.2rem;padding:6rem var(--edge)}

/* ============================================================
   GALLERY — folders by tag (People, Places, …)
   ============================================================ */
#gallery{padding-top:clamp(1.4rem,3vw,2.4rem)}
/* full-width, aligned to the portfolio's edge gutter (not the narrow centred wrap) */
#gallery .wrap{max-width:none;padding-left:clamp(1.4rem,2.6vw,2.6rem);padding-right:clamp(1.4rem,2.6vw,2.6rem)}
.gal-meta{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.gal-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(580px,100%),1fr));gap:clamp(1.4rem,2.6vw,2.4rem);margin-top:clamp(1.6rem,3.5vw,3rem)}
.gal-folder{display:flex;flex-direction:column;gap:.9rem;background:none;border:none;padding:0;cursor:pointer;text-align:left;font:inherit;color:inherit}
.gal-folder-cover{display:block;overflow:hidden;background:#f0f0f0;aspect-ratio:3/2}
.gal-folder-cover img{width:100%;height:100%;object-fit:cover;transition:transform 1.1s cubic-bezier(.2,.7,.2,1)}
.gal-folder:hover .gal-folder-cover img{transform:scale(1.045)}
.gal-folder-meta{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}
.gal-folder-name{font-family:var(--serif);font-weight:340;font-size:clamp(1.4rem,2.6vw,2rem);letter-spacing:-0.012em}
.gal-folder-count{font-family:var(--grot);font-weight:500;font-size:.6rem;letter-spacing:.16em;text-transform:uppercase;color:var(--grey)}

.gal-collection-head{display:flex;align-items:baseline;gap:1.6rem;border-top:1px solid var(--ink);padding-top:1.1rem;margin:clamp(1rem,2vw,1.6rem) 0 clamp(1.8rem,4vw,3rem)}
.gal-collection-head h3{font-family:var(--serif);font-weight:320;font-size:clamp(1.8rem,4vw,2.8rem);letter-spacing:-0.012em}
.gal-c-count{font-family:var(--grot);font-size:.58rem;letter-spacing:.14em;color:var(--grey);margin-left:.5rem}
.gal-back{font-family:var(--grot);font-weight:600;font-size:.64rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ink);border:none;background:none;cursor:pointer;padding:0 0 .2em;border-bottom:1px solid var(--ink);transition:opacity .25s}
.gal-back:hover{opacity:.55}

.gal-grid{column-count:2;column-gap:clamp(1.2rem,2.4vw,2.2rem)}
@media(max-width:760px){.gal-grid{column-count:1}}
.gal-item{break-inside:avoid;margin:0 0 clamp(1.2rem,2.4vw,2.2rem)}
.gal-item img{width:100%;height:auto;display:block}
@media(max-width:680px){.gal-folders{grid-template-columns:1fr}.gal-folder-name{font-size:1.2rem}}

/* ============================================================
   ABOUT
   ============================================================ */
.about{display:grid;grid-template-columns:1fr 1.1fr;gap:clamp(2.5rem,7vw,6rem);align-items:start}
@media(max-width:820px){.about{grid-template-columns:1fr;gap:2.4rem}}
.about-portrait{overflow:hidden;background:#f0f0f0}
.about-portrait img{width:100%;height:auto}
.about-body h2{font-family:var(--serif);font-weight:300;font-size:clamp(2rem,5vw,3.2rem);line-height:1.04;letter-spacing:-0.016em;margin-bottom:1.4rem}
.about-body h2 em{font-style:italic}
.about-body p{margin-bottom:1.2rem;color:var(--ink-soft);max-width:54ch}
.about-body p em{color:var(--ink)}
.about-body .label{display:block;margin-top:1.8rem;line-height:1.9}

/* small grotesque section marker: folio + label on a hairline */
.ab-sec-head{display:flex;align-items:baseline;gap:.9rem;border-top:1px solid var(--ink);padding-top:.85rem;margin-bottom:clamp(1.4rem,3vw,2.2rem)}
.ab-sec-head .label{margin:0}

/* 1 · POEM — the quiet opening */
.ab-poem-sec{padding-top:clamp(4.5rem,11vw,9rem);padding-bottom:clamp(4rem,9vw,7.5rem);text-align:center}
.ab-kicker{display:block;margin-bottom:clamp(1.8rem,4vw,2.8rem)}
.ab-poem{max-width:32ch;margin:0 auto}
.ab-poem p{font-family:var(--serif);font-weight:300;font-size:clamp(1.45rem,3.4vw,2.45rem);line-height:1.32;letter-spacing:-0.012em;color:var(--ink)}
.ab-poem p + p{margin-top:clamp(1.1rem,2.4vw,1.7rem)}
.ab-poem p:last-child{font-style:italic;color:var(--ink-soft)}

/* 2 · WHY — reuses .about grid; headline sits under the section marker */
.ab-why .about-body h2{margin-top:.2rem}

/* 3 · GEAR — prose + a spec list */
.ab-split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2.5rem,7vw,6rem);align-items:start}
@media(max-width:820px){.ab-split{grid-template-columns:1fr;gap:2.4rem}}
.ab-split-text p{color:var(--ink-soft);max-width:46ch}
.ab-spec{display:flex;flex-direction:column}
.ab-spec-row{display:grid;grid-template-columns:9.5rem 1fr;gap:1.2rem;align-items:baseline;padding:.95rem 0;border-bottom:1px solid var(--line)}
.ab-spec-row:first-child{border-top:1px solid var(--line)}
.ab-spec dt{font-family:var(--grot);font-weight:500;font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;color:var(--grey)}
.ab-spec dd{font-family:var(--serif);font-weight:380;font-size:clamp(1.05rem,2vw,1.3rem);letter-spacing:-0.008em;color:var(--ink)}
@media(max-width:480px){.ab-spec-row{grid-template-columns:1fr;gap:.3rem}}

/* 4 · RATES & WHAT I SHOOT — sits on the faint alt ground */
.ab-work{background:var(--paper-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ab-rate{display:flex;align-items:center;gap:clamp(1.6rem,3.5vw,3rem);flex-wrap:wrap;margin-bottom:clamp(2.6rem,6vw,4.5rem)}
.ab-rate-num{font-family:var(--serif);font-weight:300;font-size:clamp(3.2rem,9vw,5.6rem);line-height:.85;letter-spacing:-0.03em;color:var(--ink)}
.ab-rate-meta{display:flex;flex-direction:column;gap:.55rem;padding-top:.15rem}
.ab-rate-meta .label{margin:0}
.ab-rate-meta p{font-family:var(--serif);font-style:italic;font-size:clamp(1.05rem,2.2vw,1.35rem);line-height:1.3;color:var(--ink-soft);max-width:48ch}
.ab-rate-cta{margin-left:auto;align-self:center;white-space:nowrap}
@media(max-width:600px){.ab-rate{gap:1.4rem}.ab-rate-cta{margin-left:0;width:100%;text-align:center}}
.ab-lists{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.8rem,4vw,3.5rem)}
@media(max-width:680px){.ab-lists{grid-template-columns:1fr;gap:2rem}}
.ab-list .label{display:block;border-top:1px solid var(--ink);padding-top:.8rem;margin-bottom:1rem}
.ab-list ul{list-style:none}
.ab-list li{font-family:var(--serif);font-weight:380;font-size:clamp(1.1rem,2.2vw,1.4rem);line-height:1.7;color:var(--ink);display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap}
.ab-list--no li{color:var(--grey)}
.ab-note{font-family:var(--grot);font-weight:500;font-size:.56rem;letter-spacing:.16em;text-transform:uppercase;color:var(--grey)}
.ab-note::before{content:"·";margin-right:.55rem;color:var(--line-strong)}

/* 5 · CV / colophon */
.ab-cv .label{display:block;margin-bottom:.9rem}
.ab-cv-line{font-family:var(--serif);font-weight:380;font-size:clamp(1.05rem,2.2vw,1.45rem);line-height:1.45;letter-spacing:-0.006em;color:var(--ink);max-width:50ch}

/* ============================================================
   CONTACT
   ============================================================ */
.contact{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(2.5rem,7vw,6rem);align-items:start}
@media(max-width:820px){.contact{grid-template-columns:1fr;gap:2.2rem}}
.contact-intro h2{font-family:var(--serif);font-weight:300;font-size:clamp(2rem,5vw,3.2rem);line-height:1.02;letter-spacing:-0.015em;margin-bottom:1.1rem}
.contact-intro h2 em{font-style:italic}
.contact-intro p{color:var(--ink-soft);max-width:40ch;margin-bottom:1.2rem}
.contact-intro .label{display:block;margin-top:1.6rem;line-height:1.9}
.field{margin-bottom:1.5rem}
.field label{display:block;font-family:var(--grot);font-weight:500;font-size:.58rem;letter-spacing:.18em;text-transform:uppercase;color:var(--grey);margin-bottom:.5rem}
.field input,.field select,.field textarea{width:100%;background:transparent;border:none;border-bottom:1px solid var(--ink);color:var(--ink);font-family:var(--serif);font-size:1.05rem;padding:.5rem 0}
.field textarea{resize:vertical;min-height:4.5rem}
.field input::placeholder,.field textarea::placeholder{color:var(--grey)}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-bottom-color:var(--ink);border-bottom-width:2px}
.contact .btn{margin-top:.4rem}
.formnote{font-family:var(--grot);font-size:.62rem;letter-spacing:.04em;color:var(--grey);margin-top:1rem;line-height:1.7}

/* generic editable page content */
.page-body{max-width:60ch}
.page-body h2{font-family:var(--serif);font-weight:320;font-size:clamp(1.6rem,4vw,2.4rem);margin:2rem 0 1rem}
.page-body p{margin-bottom:1.2rem;color:var(--ink-soft)}
.page-body a{border-bottom:1px solid var(--ink)}

/* ============================================================
   FOOTER — minimal single row
   ============================================================ */
footer.colophon{border-top:1px solid var(--ink);padding:clamp(1.8rem,3.5vw,2.6rem) var(--edge);margin-top:clamp(3rem,8vw,7rem)}
.foot-row{display:flex;align-items:center;justify-content:space-between;gap:1.2rem 2rem;flex-wrap:wrap}
.foot-mark{font-family:var(--serif);font-weight:420;font-size:1.1rem;letter-spacing:-0.01em}
.foot-mark em{font-style:italic}
.foot-links{display:flex;gap:1.7rem;flex-wrap:wrap}
.foot-links a{font-family:var(--grot);font-weight:500;font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;color:var(--ink-soft);transition:color .25s}
.foot-links a:hover{color:var(--ink)}
.foot-copy{font-family:var(--grot);font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:var(--grey)}
@media(max-width:680px){.foot-row{flex-direction:column;align-items:flex-start;gap:1rem}}

/* ============================================================
   LIGHTBOX — click a photo to view it centered, full-screen, on white
   ============================================================ */
.lightbox{position:fixed;inset:0;z-index:9999;background:var(--paper);display:none;align-items:center;justify-content:center;opacity:0;transition:opacity .28s ease}
.lightbox.open{display:flex;opacity:1}
.lb-img{
  max-width:calc(100vw - 2 * clamp(2rem,7vw,7rem));
  max-height:calc(100vh - 2 * clamp(2rem,6vw,5rem));
  width:auto;height:auto;object-fit:contain;display:block;cursor:zoom-out;
  box-shadow:0 2px 50px rgba(0,0,0,.10);
}
.lb-close{
  position:fixed;top:clamp(.8rem,3vw,1.9rem);right:clamp(.9rem,3vw,2rem);
  width:2.6rem;height:2.6rem;padding:0;border:none;background:none;color:var(--ink);
  font-size:1.7rem;line-height:1;cursor:pointer;z-index:2;opacity:.5;transition:opacity .2s;font-family:var(--grot)
}
.lb-close:hover{opacity:1}
.lb-nav{
  position:fixed;top:50%;transform:translateY(-50%);
  width:3.2rem;height:3.2rem;padding:0;border:none;background:none;color:var(--ink);
  font-family:var(--grot);font-size:2.1rem;line-height:1;cursor:pointer;z-index:2;opacity:.35;transition:opacity .2s
}
.lb-nav:hover{opacity:1}
.lb-prev{left:clamp(.3rem,2vw,1.4rem)}
.lb-next{right:clamp(.3rem,2vw,1.4rem)}
.lightbox.lb-solo .lb-nav{display:none}
.lightbox :focus-visible{outline:1px solid var(--grey);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.lightbox{transition:none}}
