/* Rob Barthelmess — site styles. Quiet and editorial: white space, big photos, Georgia serif. */
:root {
  --ink: #1a1a1a;
  --paper: #fdfdfb;
  --muted: #62625d;
  --accent: #2e4a3d;
  --rule: #e4e2dc;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: rgba(253,253,251,.94); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
}
.wordmark {
  display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 19px; letter-spacing: .12em; text-transform: uppercase;
  min-height: 44px;
}
.wordmark img { width: 36px; height: 36px; flex: none; }
.site-nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--muted); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (min-width: 761px) {
  .site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
@media (max-width: 760px) {
  .nav-inner { padding-top: 10px; padding-bottom: 4px; }
  .wordmark { font-size: 16px; letter-spacing: .1em; gap: 10px; }
  .wordmark img { width: 32px; height: 32px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 0; }
  .site-nav a { font-size: 12px; letter-spacing: .1em; padding: 0 4px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 480px;
  height: calc(100vh - 65px); height: calc(100svh - 65px);
  display: flex; align-items: flex-end; overflow: hidden; background: #1f2a24;
}
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,15,12,.66) 0%, rgba(10,15,12,.05) 58%); }
.hero-text { position: relative; z-index: 1; color: #fff; width: 100%; max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter); }
.hero-text h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 6vw, 64px); letter-spacing: .12em; text-transform: uppercase; line-height: 1.15; }
.hero-text p { margin: 12px 0 0; font-size: clamp(15px, 2vw, 18px); letter-spacing: .03em; opacity: .94; }
.hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta a {
  color: #fff; text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.75); padding: 12px 22px; min-height: 44px; display: inline-flex; align-items: center;
  transition: background .2s;
}
.hero-cta a:hover { background: rgba(255,255,255,.16); }
@media (max-width: 760px) { .hero { height: 72vh; height: 72svh; min-height: 420px; } .hero-text { padding-bottom: 36px; } }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 8vw, 72px) var(--gutter); }
.kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.section h1, .section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 36px); letter-spacing: .08em; text-transform: uppercase; margin: 0; line-height: 1.2; }
.rule { width: 48px; height: 2px; background: var(--accent); margin: 20px 0 32px; border: 0; }
.lede { color: var(--muted); max-width: 60ch; margin: -12px 0 32px; }
.backlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; margin-bottom: 8px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.about-grid > * { min-width: 0; }
.about-grid img { width: 100%; }
.bio p { font-family: var(--serif); font-size: 18px; line-height: 1.75; color: #2f2f2c; margin: 0 0 20px; max-width: 62ch; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } .about-grid img { max-width: 420px; } .bio p { font-size: 17px; } }

/* ---------- Gallery index (cover cards) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.card a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #e9e7e1; color: #fff; text-decoration: none; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card a:hover img, .card a:focus-visible img { transform: scale(1.04); }
.card .label { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(to top, rgba(10,15,12,.6), transparent 48%); }
.card .label span { font-family: var(--serif); font-size: 22px; letter-spacing: .12em; text-transform: uppercase; padding: 18px 20px; }
.card .label small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .1em; opacity: .85; margin-top: 2px; }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr 1fr; gap: 12px; } .card .label span { font-size: 16px; padding: 12px; letter-spacing: .1em; } }

/* ---------- Gallery page (masonry) ---------- */
.masonry { columns: 3 300px; column-gap: 20px; }
.masonry figure { margin: 0 0 20px; break-inside: avoid; }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: #e9e7e1; cursor: zoom-in; }
.masonry img { width: 100%; }
.masonry figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 560px) { .masonry { columns: 1; } .masonry figure { margin-bottom: 14px; } }
.gallery-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.gallery-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(12,14,13,.96); color: #fff; }
.lightbox::backdrop { background: rgba(12,14,13,.96); }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 16px 8px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); font-size: 13px; color: rgba(255,255,255,.8); }
.lb-caption { flex: 1; text-align: center; min-height: 1.4em; }
.lightbox button { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; min-width: 44px; min-height: 44px; font-size: 20px; line-height: 1; cursor: pointer; border-radius: 2px; }
.lightbox button:hover { background: rgba(255,255,255,.12); }
.lb-close { position: absolute; top: 8px; right: 12px; top: max(8px, env(safe-area-inset-top)); border: 0 !important; font-size: 28px !important; }

/* ---------- Contact ---------- */
.contact-wrap { max-width: 620px; }
.contact-wrap p:not(.kicker):not(.fineprint) { font-family: var(--serif); font-size: 18px; line-height: 1.7; }
form label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
form input, form textarea { width: 100%; border: 1px solid var(--rule); background: #fff; padding: 12px 14px; font: 16px/1.5 var(--sans); color: var(--ink); border-radius: 0; }
form input:focus, form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
form button { margin-top: 24px; background: var(--accent); color: #fff; border: 0; padding: 14px 32px; min-height: 48px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
form button:hover { opacity: .9; }
.hp { position: absolute; left: -9999px; }
.fineprint { font-family: var(--sans) !important; font-size: 13px !important; color: var(--muted); margin-top: 28px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(32px, 8vw, 72px) var(--gutter); }
.notfound .corgus { width: clamp(240px, 80vw, 480px); margin: 0 auto; }
.notfound .corgus svg { width: 100%; height: auto; display: block; }
.notfound p { font-family: var(--serif); font-size: 20px; margin: 24px 0 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-inner a { color: inherit; }

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