/* Kateryna Watkinson Photography — v3
   Layout idea: full-bleed photography, warm stone paper, espresso ink;
   one serif for display (Italiana), one sans for reading (Lato). */

/* Fonts are self-hosted (fonts/), so visitors' browsers don't contact Google. */
@font-face { font-family: 'Italiana'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/italiana-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lato-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/lato-latin-700-normal.woff2') format('woff2'); }

:root {
  --paper: #EEE8DE;      /* page background: warm stone, sits well next to the sea blues and autumn golds */
  --sand: #DDD3C3;       /* quiet bands and image placeholders */
  --ink: #2B2119;        /* text and the footer: deep espresso rather than black */
  --muted: #6F6457;      /* secondary text */
  --moss: #4F5036;       /* buttons and active states, picks up the greens in the family shoots */
  --on-dark: #EEE8DE;
  --line: rgba(43, 33, 25, 0.18);

  --display: 'Italiana', 'Didot', Georgia, serif;
  --body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --gap: clamp(10px, 1.6vw, 24px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
.d-xl { font-size: clamp(42px, 6vw, 88px); }
.d-lg { font-size: clamp(34px, 4vw, 56px); }
.d-md { font-size: clamp(26px, 2.6vw, 36px); }
.eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.lede { font-size: 18px; color: var(--muted); max-width: 34em; }

.text-link {
  display: inline-block; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  padding: 10px 0 6px; border-bottom: 1px solid currentColor;
}
.text-link:hover { color: var(--moss); }
.button {
  display: inline-block; background: var(--moss); color: var(--on-dark); border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--body); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  padding: 17px 34px;
}
.button:hover { background: var(--ink); }

/* ---------- Splash (index.html) ---------- */
.splash { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--ink); color: #fff; }
.splash .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.splash .slide.is-on { opacity: 1; }
.splash::after { /* soft vignette so the button stays readable on any slide */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(20,15,10,.38) 0%, rgba(20,15,10,.12) 55%, rgba(20,15,10,.3) 100%);
}
.splash-inner {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; text-align: center; padding: 24px;
}
.splash .mono { font-family: var(--display); font-size: clamp(64px, 9vw, 120px); line-height: 1; letter-spacing: 0.02em; }
.splash .name { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; margin: 0; }
.enter {
  margin-top: 18px; color: #fff; text-decoration: none; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.85); padding: 16px 44px; transition: background .3s, color .3s;
}
.enter:hover, .enter:focus-visible { background: #fff; color: var(--ink); }
.splash .place {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 28px; margin: 0; text-align: center;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; opacity: .9;
}

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px var(--gutter);
}
.monogram {
  font-family: var(--display); font-size: 44px; line-height: 1; text-decoration: none; letter-spacing: 0.02em;
}
.site-nav { display: flex; gap: 34px; }
.site-nav a {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  padding: 8px 0; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .35s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; }
.nav-toggle { display: none; }

/* ---------- Photos: shared hover touch ---------- */
.ph { position: relative; overflow: hidden; background: var(--sand); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
a.ph:hover img, a:hover > .ph img { transform: scale(1.035); filter: brightness(.94); }

/* Fade-up on scroll. Only applied once JS has confirmed support (html.js-reveal). */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- Home ---------- */
.home-intro { padding: clamp(40px, 7vw, 110px) var(--gutter) 0; }
.home-intro .display { max-width: 15em; }
.home-intro .lede { margin-top: 26px; }

.collage {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  padding: clamp(56px, 8vw, 120px) var(--gutter) 0; align-items: start;
}
.collage .big { grid-column: 1 / span 6; grid-row: 1 / span 2; aspect-ratio: 4 / 5; }
.collage .rotator { grid-column: 8 / span 3; grid-row: 1; aspect-ratio: 3 / 4; margin-top: 12%; }
.collage .small { grid-column: 11 / span 2; grid-row: 1; aspect-ratio: 2 / 3; margin-top: 52%; }
.collage .copy { grid-column: 8 / span 5; grid-row: 2; align-self: end; max-width: 30em; }
.collage .copy p { margin: 0 0 22px; color: var(--muted); }
.collage .copy h2 { margin-bottom: 20px; }

.rotator img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.rotator img.is-on { opacity: 1; }

.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding: clamp(80px, 10vw, 150px) var(--gutter) 0; }
.cat { text-decoration: none; display: block; }
.cat .ph { aspect-ratio: 4 / 5; }
.cat .label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; }
.cat .label span:last-child { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.cat:hover .label span:last-child { color: var(--ink); }

.band { margin-top: clamp(80px, 10vw, 150px); background: var(--sand); }
.band-inner {
  padding: clamp(56px, 7vw, 96px) var(--gutter); display: flex; flex-wrap: wrap; gap: 28px 64px;
  align-items: center; justify-content: space-between;
}
.band .display { max-width: 16em; }

/* ---------- Page headings ---------- */
.page-head { padding: clamp(32px, 5vw, 80px) var(--gutter) 0; display: flex; flex-wrap: wrap; gap: 18px 64px; align-items: flex-end; justify-content: space-between; }
.page-head .lede { margin: 0; max-width: 28em; }

/* ---------- Portfolio index ---------- */
.portfolio-cats { padding-top: clamp(40px, 5vw, 72px); }

/* ---------- Galleries: masonry, photos keep their own shape ---------- */
.masonry { columns: 3; column-gap: var(--gap); padding: clamp(40px, 5vw, 72px) var(--gutter) 0; }
.masonry a { display: block; break-inside: avoid; margin-bottom: var(--gap); cursor: zoom-in; }
.masonry img { height: auto; }
.gallery-next { padding: clamp(56px, 7vw, 96px) var(--gutter) 0; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- About ---------- */
.about-wide { margin: clamp(32px, 4vw, 56px) var(--gutter) 0; aspect-ratio: 16 / 8; }
.about-wide img { object-position: 50% 42%; }
.about-body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px clamp(40px, 8vw, 140px);
  padding: clamp(64px, 8vw, 120px) var(--gutter) 0; align-items: start;
}
.about-body .copy { max-width: 36em; }
.about-body .copy p { margin: 0 0 20px; }
.about-body .copy .display { margin-bottom: 30px; }
.about-body .portrait { aspect-ratio: 3 / 4; margin-top: 70px; }
.about-body .actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Kind words: offset pairs ---------- */
.kind-list { padding: clamp(24px, 4vw, 56px) var(--gutter) 0; display: flex; flex-direction: column; gap: clamp(64px, 9vw, 140px); }
.kind { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.kind .ph { aspect-ratio: 4 / 5; }
.kind blockquote { margin: 0; }
.kind blockquote p { margin: 0 0 16px; }
.kind .who { margin-top: 22px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.kind.k1 .ph { grid-column: 2 / span 4; }
.kind.k1 .words { grid-column: 7 / span 4; }
.kind.k2 .ph { grid-column: 8 / span 4; order: 2; }
.kind.k2 .words { grid-column: 3 / span 4; order: 1; }
.kind.k3 .ph { grid-column: 4 / span 3; }
.kind.k3 .words { grid-column: 8 / span 4; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px clamp(40px, 8vw, 140px);
  padding: clamp(48px, 6vw, 96px) var(--gutter) 0; align-items: start;
}
.contact-side .ph { aspect-ratio: 4 / 5; margin-bottom: 36px; }
.contact-side dl { margin: 0; }
.contact-side dt { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.contact-side dd { margin: 4px 0 22px; font-size: 18px; }
.contact-side dd a { text-decoration: none; border-bottom: 1px solid var(--line); }

.type-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.type-switch button {
  background: transparent; border: 1px solid var(--line); border-radius: 0; padding: 11px 18px; cursor: pointer;
  font: inherit; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.type-switch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.field { margin: 0 0 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
label, .label { display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
label small { letter-spacing: 0.06em; text-transform: none; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid rgba(43,33,25,.35); border-radius: 0; padding: 10px 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.form-status { margin: 18px 0 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(96px, 12vw, 180px); background: var(--ink); color: var(--on-dark); }
.footer-inner {
  padding: 64px var(--gutter) 36px; display: grid; grid-template-columns: auto 1fr auto; gap: 40px 64px; align-items: start;
}
.site-footer .monogram { font-size: 56px; }
.footer-line { margin: 6px 0 0; font-family: var(--display); font-size: 26px; line-height: 1.25; max-width: 14em; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.footer-nav a { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; opacity: .85; }
.footer-nav a:hover { opacity: 1; }
.footer-base {
  border-top: 1px solid rgba(238,232,222,.16); padding: 22px var(--gutter); display: flex; flex-wrap: wrap; gap: 8px 32px;
  justify-content: space-between; font-size: 12px; letter-spacing: 0.08em; color: rgba(238,232,222,.7);
}
.footer-base a { text-decoration: none; }
.footer-base a:hover { text-decoration: underline; }

/* ---------- Lightbox ---------- */
dialog.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(238, 232, 222, .97); color: var(--ink);
}
dialog.lightbox::backdrop { background: transparent; }
.lb-stage { position: absolute; inset: 56px 80px; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; cursor: pointer; color: var(--ink);
  font-family: var(--display); font-size: 44px; line-height: 1; min-width: 48px; min-height: 48px;
}
.lb-close { top: 6px; right: 14px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .masonry { columns: 2; }
  .collage .big { grid-column: 1 / span 7; }
  .collage .rotator { grid-column: 8 / span 5; margin-top: 0; }
  .collage .small { display: none; }
  .collage .copy { grid-column: 8 / span 5; }
  .about-body, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .about-body .portrait { max-width: 420px; margin-top: 0; }
  .contact-side .ph { display: none; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner .footer-line { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Phone: menu button ---------- */
@media (max-width: 767px) {
  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .monogram { font-size: 38px; }
  .nav-toggle {
    display: block; position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 31;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ''; position: absolute; right: 0; width: 28px; height: 1px; background: var(--ink); transition: transform .3s;
  }
  .nav-toggle span { top: 21px; }
  .nav-toggle span::before { top: -8px; } .nav-toggle span::after { top: 8px; }
  body.nav-open .nav-toggle span { background: transparent; }
  body.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; z-index: 30; background: var(--paper);
    flex-direction: column; align-items: center; justify-content: center; gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .site-nav a { font-family: var(--display); font-size: 38px; letter-spacing: 0; text-transform: none; }
  body.nav-open .site-nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .collage { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .collage .big { grid-column: 1 / span 4; grid-row: 1; }
  .collage .rotator { grid-column: 3 / span 4; grid-row: 2; }
  .collage .copy { grid-column: 1 / -1; grid-row: 3; margin-top: 24px; }
  .cats { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .masonry { columns: 2; }
  .kind { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .kind .ph, .kind .words { grid-column: 1 / -1 !important; order: 0 !important; }
  .kind.k1 .ph { width: 78%; }
  .kind.k2 .ph { width: 78%; margin-left: auto; }
  .kind.k3 .ph { width: 64%; margin-left: 12%; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { text-align: left; }
  .lb-stage { inset: 56px 8px 72px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .splash .slide, .rotator img, .ph img, .js-reveal .reveal { transition: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* Gallery hover touch */
.masonry a { overflow: hidden; background: var(--sand); }
.masonry img { width: 100%; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.masonry a:hover img { transform: scale(1.03); filter: brightness(.94); }
@media (prefers-reduced-motion: reduce) { .masonry img { transition: none; } }

/* When a page ends on a band, let the footer sit straight under it (no empty strip) */
main:has(> .band:last-child) + .site-footer { margin-top: 0; }

/* Portfolio: full name opposite the page title */
.page-name { margin: 0; color: var(--muted); }

/* Privacy page */
.privacy { padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(64px, 8vw, 120px); max-width: calc(36em + 2 * var(--gutter)); }
.privacy p { margin: 0 0 20px; }
.privacy h2 { margin: 40px 0 14px; }
.form-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* Date field: calendar plus a "flexible" tick box */
input[type="date"] { cursor: pointer; min-height: 45px; }
input[type="date"]:disabled { opacity: .4; cursor: default; }
label.check { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--muted); cursor: pointer; }
label.check input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--moss); }
