/* Montserrat is served from this site (fonts/), so no visitor data goes to Google */
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
}
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: 'Montserrat', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

header {
  position: sticky; top: 0; z-index: 10;
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 20px;
  background: var(--bg);
}
.name {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
header { justify-content: space-between; gap: 16px; }
@media (max-width: 420px) { .name { font-size: 12px; letter-spacing: 0.1em; } .nav { font-size: 11px; } }
.nav {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.nav:hover, .nav[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.menu { display: flex; gap: 24px; }
.nav { white-space: nowrap; }
/* Bigger tap areas (about 44 px high) without moving anything: padding is cancelled by negative margin */
.nav { padding: 14px 6px; margin: -14px -6px; }
.name { display: inline-block; padding: 14px 0; margin: -14px 0; }
footer a { display: inline-block; padding: 14px 8px; margin: -14px -8px; }
/* Phones: name on the first line, menu on its own line below */
@media (max-width: 560px) {
  :root { --header-h: 92px; }
  /* on phones the name and menu sit close together, so their tap areas are padded without overlapping */
  header { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; transition: transform .25s ease; }
  .name { padding: 12px 0; margin: 0; }
  .nav { padding: 12px 6px; margin: 0 -6px; }
  header.tuck { transform: translateY(-100%); }
  .menu { gap: 20px; }
}
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

/* Photo grid: 3 across, edge to edge, no gaps, no frames */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 auto; padding: 0; list-style: none;
  max-width: 1600px;
}
.grid li { margin: 0; padding: 0; }
.grid li.empty { aspect-ratio: 3 / 4; background: var(--bg); }
.grid button {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; background: #f0f0f0;
  aspect-ratio: 3 / 4; cursor: zoom-in; overflow: hidden;
}
.grid img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .25s ease;
}
.grid button:hover img { opacity: .88; }
.grid button:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }

@media (max-width: 700px) {
  header { padding: 0 16px; }
}

/* Page heading for screen readers and search engines only (not shown) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.intro {
  max-width: 640px; margin: 0 auto; padding: 72px 20px 56px;
  font-size: 15px; line-height: 1.7; color: var(--muted); text-align: center;
}
.intro h2 {
  margin: 0 0 20px; color: var(--text);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.intro p { margin: 0 0 14px; }
.intro p:last-child { margin-bottom: 0; }
/* Visible reminder for text that is not written yet. Remove before going live. */
.intro .placeholder { border: 1px dashed #c8c8c8; padding: 20px; font-style: italic; }

/* Contact form */
.contact { max-width: 520px; margin: 0 auto; padding: 8px 20px 72px; }
.contact h2 {
  margin: 0 0 28px; text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.contact form { display: flex; flex-direction: column; }
.contact label { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.contact input, .contact textarea {
  font: 400 16px/1.5 'Montserrat', system-ui, sans-serif; color: var(--text);
  background: var(--bg); border: 0; border-bottom: 1px solid #c8c8c8; border-radius: 0;
  padding: 6px 0 8px; margin-bottom: 24px; width: 100%;
}
.contact textarea { resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: none; border-bottom-color: var(--text); }
.contact button {
  align-self: center; margin-top: 8px; padding: 12px 36px; cursor: pointer;
  font: 600 12px/1 'Montserrat', system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bg); background: var(--text); border: 0;
}
.contact button:hover { opacity: .85; }
.contact .hp { position: absolute; left: -9999px; }
.contact .privacy { margin: 20px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted); }

footer {
  padding: 24px 20px 32px; text-align: center;
  font-size: 12px; letter-spacing: 0.08em; color: var(--muted);
}
footer .sep { margin: 0 10px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Full-size view */
.viewer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  display: none; align-items: center; justify-content: center;
}
.viewer.open { display: flex; }
.viewer img {
  max-width: 100vw; max-height: 100vh; max-height: 100svh;
  width: auto; height: auto; object-fit: contain; user-select: none;
}
.viewer button {
  position: absolute; background: none; border: 0; color: var(--text);
  cursor: pointer; padding: 16px; opacity: .75;
  font: 300 32px/1 'Montserrat', system-ui, sans-serif;
}
.viewer button:hover, .viewer button:focus-visible { opacity: 1; }
.viewer .close { top: 8px; right: 8px; font-size: 28px; }
.viewer .prev { left: 4px; top: 50%; transform: translateY(-50%); }
.viewer .next { right: 4px; top: 50%; transform: translateY(-50%); }
.viewer .count {
  position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  font-size: 12px; letter-spacing: 0.1em; color: var(--muted);
}
@media (max-width: 700px) {
  .viewer .prev, .viewer .next { padding: 12px 6px; font-size: 28px; opacity: .45; } /* swipe works too */
}

/* Links inside the intro text */
.intro a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.intro a:hover { opacity: .7; }
