:root {
  --bg: #0e0e0f;
  --surface: #17171a;
  --text: #ecebe7;
  --muted: #9a988f;
  --accent: #d9a35b;
  --line: #2a2a2e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(14,14,15,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; letter-spacing: .01em; }
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: .9rem; }
.site-nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.site-nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: clamp(56px, 10vw, 120px) clamp(16px, 4vw, 48px) clamp(32px, 5vw, 56px); max-width: 1100px; }
.hero .eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; margin: 0 0 18px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.hero p.meta { color: var(--muted); margin: 22px 0 0; }

/* Gallery (CSS Masonry) */
.gallery { columns: 3 320px; column-gap: 10px; padding: 0 clamp(10px, 2vw, 24px); }
.gallery figure { margin: 0 0 10px; break-inside: avoid; position: relative; overflow: hidden; background: var(--surface); }
.gallery a { display: block; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .6s ease, opacity .4s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 14px 10px;
  font-size: .8rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  opacity: 0; transition: opacity .3s;
}
.gallery figure:hover figcaption, .gallery a:focus-visible + figcaption { opacity: 1; }
.gallery figcaption time { color: rgba(255,255,255,.7); margin-left: 6px; }

/* About */
.about { max-width: 760px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) clamp(16px, 4vw, 48px); }
.about h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 24px; }
.about p { color: #cfcdc6; font-size: 1.05rem; }
.about .quote { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.25rem; margin-top: 28px; }
.about .sign { margin-top: 28px; color: var(--muted); }
.btn {
  display: inline-block; margin-top: 18px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem;
  transition: border-color .2s, color .2s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }

/* Content pages */
.page { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px); }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 32px; }
.page h2 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 36px 0 10px; }
.page p, .page li { color: #cfcdc6; }
.todo { border-left: 3px solid var(--accent); padding: 10px 16px; background: var(--surface); color: var(--muted); }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line);
  color: var(--muted); font-size: .85rem;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(8,8,9,.97); }
.lb.open { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 56px 64px 8px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 18px; color: var(--muted); font-size: .85rem; }
.lb-bar .cap { color: var(--text); }
.lb button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 2rem; line-height: 1; padding: 12px; opacity: .7; transition: opacity .2s;
}
.lb button:hover, .lb button:focus-visible { opacity: 1; }
.lb .close { top: 8px; right: 12px; font-size: 1.8rem; }
.lb .prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-stage { padding: 52px 8px 8px; }
  .lb .prev, .lb .next { display: none; }
  .site-nav a.hide-sm { display: none; }
}
