@font-face { font-family: 'Crimson Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/crimson-regular.woff2') format('woff2'); }
@font-face { font-family: 'Baskervville'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/baskervville-regular.woff2') format('woff2'); }
@font-face { font-family: 'Baskervville'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/baskervville-italic.woff2') format('woff2'); }
:root {
  --paper: #fff; --ink: #111; --muted: #666; --line: #e5e5e5; --accent: #000;
  --display: 'Crimson Text', 'Palatino Linotype', Palatino, serif;
  --body: 'Baskervville', 'Palatino Linotype', Palatino, serif;
  --pad: 4vw;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.skip-link { position: absolute; top: -80px; left: 20px; padding: 8px 16px; background: var(--ink); color: var(--paper); z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header { padding: clamp(32px, 4vw, 58px) var(--pad) 0; text-align: center; }
.brand { position: relative; display: block; width: min(490px, 76vw); margin: auto; }
.brand img { display: block; width: 100%; height: auto; }
.brand::before, .brand::after { content: ''; position: absolute; left: 54.4%; top: 17.2%; aspect-ratio: 1; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.45); }
.brand::before { width: 3.5%; background: #fff; clip-path: polygon(50% 0, 57% 42%, 100% 50%, 57% 58%, 50% 100%, 43% 58%, 0 50%, 43% 42%); }
.brand::after { width: 7.5%; background: radial-gradient(circle, #fff 0 12%, #e6efff99 30%, #b8d2ff33 48%, transparent 72%); }
@keyframes camera-flash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.45); }
  12% { opacity: .85; transform: translate(-50%, -50%) scale(1); }
  28% { opacity: .5; }
  70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand:hover::before, .brand:hover::after { animation: camera-flash .55s ease-out both; }
}
.tagline { margin: 13px 0 0; color: var(--muted); font-style: italic; font-size: 18px; }
.site-nav { display: flex; justify-content: center; flex-wrap: nowrap; gap: 16px clamp(24px, 4.3vw, 60px); margin-top: 34px; }
.site-nav a { position: relative; flex: 0 0 auto; white-space: nowrap; padding: 4px 0 10px; text-decoration: none; font-family: var(--display); font-size: clamp(1.35rem, 3.8vw, 1.875rem); line-height: 1.4; }
.site-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.site-main { padding: clamp(88px, 9vw, 132px) var(--pad) 100px; margin: auto; min-height: 50vh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.gallery { display: grid; gap: 4.37vw; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; }
.gallery.is-laid-out { display: block; position: relative; }
.gallery.is-laid-out > .photo { position: absolute; }
.gallery > .photo img { height: auto; }
.gallery.is-laid-out > .photo img { height: 100%; }
.photo { display: block; border: 0; padding: 0; margin: 0; background: #eee; min-width: 0; overflow: hidden; border-radius: 0; }
.photo img { width: 100%; height: 100%; display: block; object-fit: contain; transition: opacity .25s; }
.photo:hover img { opacity: .92; }
.photo:focus-visible { outline-offset: 2px; }
.photo.reveal { transition: opacity .9s cubic-bezier(.22,.61,.36,1), translate .9s cubic-bezier(.22,.61,.36,1); }
.photo.reveal-pending { opacity: 0; translate: 0 12px; }
.photo.reveal-pending:focus-visible { opacity: 1; translate: none; transition: none; }
.empty { text-align: center; margin: 60px auto; color: var(--muted); }
.site-footer { max-width: 1312px; margin: 0 var(--pad); border-top: 1px solid var(--line); padding: 22px 0 30px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; color: var(--muted); font: 11px/1.8 Arial,sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { text-decoration: none; }
.footer-credit p { margin: 6px 0 0; font: 12px/1.6 Arial,sans-serif; letter-spacing: 0; text-transform: none; }
.footer-credit a:hover, .footer-credit a:focus-visible { text-decoration: underline; }
.footer-links { display: flex; gap: 24px; }
.about { max-width: 720px; margin: 10px auto 40px; }
.about h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 43px); line-height: 1.2; margin: 0 0 36px; }
.about p { font-size: clamp(18px, 2vw, 21px); margin: 0 0 25px; line-height: 1.85; }
.about .separator { color: var(--muted); text-align: center; letter-spacing: 1em; margin: 34px 0; }
.author-about p:last-of-type { text-align: center; }
.about-contact { margin-top: 40px; }
/* Layers: skip link 10, native modal top layer. No floating decoration above photographs. */
.viewer-open { overflow: hidden; }
.viewer { margin: 0; padding: 60px 68px 25px; width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; background: #111; color: #f7f7f7; }
.viewer::backdrop { background: #111; }
.viewer[open] { display: grid; grid-template-rows: minmax(0,1fr) auto; }
.viewer figure { margin: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; pointer-events: none; }
.viewer img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; pointer-events: auto; opacity: 1; transition: opacity .2s; }
.viewer img.loading { opacity: .25; }
.viewer figcaption { font-size: 18px; line-height: 1.3; text-align: center; }
.viewer button { position: absolute; width: 48px; height: 48px; border: 0; background: none; color: #fff; font: 30px/1 Arial,sans-serif; border-radius: 2px; }
.viewer button:hover { background: #292929; }
.viewer button:focus-visible { outline-color: #fff; }
.viewer [data-close] { right: 16px; top: 12px; }
.viewer [data-prev] { left: 12px; top: calc(50% - 24px); }
.viewer [data-next] { right: 12px; top: calc(50% - 24px); }
.viewer [data-count] { text-align: center; color: #aaa; font: 12px/1.5 Arial,sans-serif; letter-spacing: .12em; padding-top: 15px; }
.viewer [data-image-error] { color: #ddd; }
[hidden] { display: none !important; }
@media (min-width: 1440px) { .site-footer { margin-inline: auto; } }
@media (max-width: 799px) { .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2.09vw; } }
@media (max-width: 767px) { :root { --pad: 6vw; } }
@media (max-width: 479px) { .gallery { gap: .5225vw; } }
@media (max-width: 480px) { .site-nav a { font-size: 1.2rem; } }
@media (max-width: 600px) {
  .site-header { padding-top: 30px; }
  .tagline { font-size: 16px; margin-top: 10px; }
  .site-nav { margin-top: 26px; gap: clamp(12px, 4vw, 22px); }
  .site-nav a { min-height: 44px; }
  .site-main { padding-top: 72px; padding-bottom: 64px; }
  .viewer { padding: 64px 16px 74px; }
  .viewer img { max-height: calc(100dvh - 220px); }
  .viewer [data-prev] { top: auto; bottom: 14px; left: calc(50% - 80px); }
  .viewer [data-next] { top: auto; bottom: 14px; right: calc(50% - 80px); }
}
@media (prefers-reduced-motion: reduce) { *, *::after { transition: none !important; } .photo.reveal-pending { opacity: 1; translate: none; } }
