:root {
  --paper: #ffffff;
  --ink: #000000;
  --mute: #6b6b6b;
  --line: #e6e6e6;
  --gap: 10px;
  --pad: clamp(20px, 4.5vw, 56px);
  --serif: "Forum", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); }
body { font-family: var(--sans); font-weight: 300; color: var(--ink); background: var(--paper); line-height: 1.7; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Header ---------- */
header { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--pad); }
/* Logo placeholder: replace the text with <img src="images/logo.svg" alt="Lorem Ipsum"> */
.logo { display: block; text-decoration: none; }
.logo img { display: block; height: 48px; width: auto; }
nav a {
  text-decoration: none; margin-left: 32px; font-family: var(--serif);
  font-size: 1.3rem; color: var(--mute); padding-bottom: 2px; border-bottom: 1px solid transparent;
}
nav a:hover, nav a[aria-current] { color: var(--ink); }
nav a[aria-current] { border-color: var(--ink); }

/* ---------- About ---------- */
/* Full-width picture with white title at bottom left. Add images/about-hero.jpg */
.hero { position: relative; width: 100%; aspect-ratio: 21 / 9; min-height: 260px; background: #a8a7a2; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 55%); }
.hero-title {
  position: absolute; z-index: 1; left: var(--pad); bottom: clamp(18px, 3.5vw, 40px);
  color: #fff; font-family: var(--serif); font-weight: 300; line-height: 1.05;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
}
.about { padding: 0 var(--pad); }
.tagline {
  text-align: center; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; max-width: 26em; margin: 56px auto 36px;
}
.bio { max-width: 36em; margin: 0 auto; }
.bio p { margin-bottom: 1.3em; font-size: 1.05rem; }
.contact {
  max-width: 36em; margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
  font-family: var(--serif); font-size: 1.25rem;
}
.contact a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact a:hover { border-color: var(--ink); }
footer { padding: 56px var(--pad) 40px; color: var(--mute); font-family: var(--serif); font-size: 1rem; text-align: center; }

/* ---------- Gallery (masonry: CSS columns, photos keep their own proportions) ---------- */
.gallery { padding: 8px var(--pad) 64px; column-count: 3; column-gap: var(--gap); }
.item { display: block; cursor: zoom-in; overflow: hidden; break-inside: avoid; margin-bottom: var(--gap); }
.item img { display: block; width: 100%; height: auto; transition: opacity .25s; }
.item:hover img { opacity: .85; }
@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 520px) { .gallery { column-count: 1; } }

/* ---------- Lightbox ---------- */
dialog.lb { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: #fff; color: var(--ink); }
dialog.lb::backdrop { background: transparent; }
.lb-stage { position: absolute; inset: 56px 64px 72px; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px var(--pad); display: flex; justify-content: space-between; gap: 16px; font-size: 0.9rem; }
.lb-count { color: var(--mute); white-space: nowrap; }
.lb button { position: absolute; background: none; border: 0; cursor: pointer; color: var(--ink); font: inherit; font-size: 1.8rem; line-height: 1; padding: 12px; opacity: .5; }
.lb button:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-stage { inset: 56px 8px 72px; } .lb-prev, .lb-next { display: none; } }
@media (prefers-reduced-motion: reduce) { .item img { transition: none; } }
