:root {
  color-scheme: dark;
  --ink: #f3efe9;
  --dim: #c9b9ba;
  --accent: #e7ae9d;
  --base: #160f12;
  --rule: #f6e5df35;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--ink); font-family: system-ui, sans-serif; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
i { font-style: normal; color: var(--accent); }
.masthead, .overlay-bar {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 78px; padding: 0 clamp(20px, 5vw, 78px); border-bottom: 1px solid var(--rule);
}
.wordmark { font-family: var(--serif); font-size: 1.18rem; text-decoration: none; }
.contact-link, .eyebrow, .close {
  font-size: .875rem; letter-spacing: .12em; font-weight: 550; text-transform: uppercase;
}
.contact-link { text-underline-offset: .45em; }
.stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: calc(100svh - 78px); }
.intro { padding: clamp(40px, 8vh, 105px) clamp(24px, 6vw, 116px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { color: var(--accent); margin: 0 0 1.25rem; }
.eyebrow span { margin: 0 .45rem; opacity: .7; }
h1, h2 { font-family: var(--serif); font-weight: normal; letter-spacing: -.055em; }
h1 { margin: 0 0 clamp(28px, 5vh, 58px); font-size: clamp(3.2rem, 7.3vw, 8.6rem); line-height: .96; }
.sections { width: min(100%, 370px); }
.sections a, .link-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .8rem 0; border-top: 1px solid var(--rule); text-decoration: none; transition: color .18s;
}
.sections a:last-child, .link-list a:last-child { border-bottom: 1px solid var(--rule); }
.sections a:hover, .link-list a:hover, .contact-link:hover, .text-link:hover { color: var(--accent); }
.sections a { font-size: clamp(1.05rem, 1.7vw, 1.4rem); }
.portrait { margin: 0; position: relative; min-height: 540px; background: #261b1c; }
.portrait img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.overlay {
  background: #1d1318; color: var(--ink); border: 0; padding: 0; margin: 0 0 0 auto;
  width: min(100%, 1080px); height: 100%; max-height: none; max-width: none; overflow: auto;
  border-left: 1px solid var(--rule);
}
dialog::backdrop { background: #080609c4; }
@media (prefers-reduced-motion: no-preference) {
  .overlay[open] { animation: enter .23s ease-out; }
  @keyframes enter { from { opacity: .25; transform: translateX(24px); } }
}
body:has(dialog[open]) { overflow: hidden; }
.overlay-bar { position: sticky; top: 0; z-index: 1; background: #1d1318; }
.close { background: transparent; border: 0; padding: .65rem 0 .65rem .65rem; }
.close span { font-size: 1.5rem; vertical-align: middle; margin-left: .35rem; }
.page { padding: clamp(35px, 7vw, 86px) clamp(23px, 6vw, 80px); max-width: 1030px; margin: auto; }
.page h2 { font-size: clamp(2.6rem, 8vw, 5.2rem); margin: 0 0 clamp(25px, 4vw, 42px); line-height: 1; }
.editorial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; gap: clamp(22px, 4vw, 48px); }
.editorial img { width: 100%; max-height: 510px; object-fit: cover; }
.prose { font-size: 1.08rem; line-height: 1.72; }
.prose p:first-child { margin-top: 0; }
.text-link { text-underline-offset: .24em; }
.credits { margin: 0; }
.credits div { border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1.5fr; gap: .55rem 1rem; padding: 1.05rem 0; }
.credits div:last-child { border-bottom: 1px solid var(--rule); }
.credits dt, .link-list a { font-size: clamp(1.05rem, 2.8vw, 1.4rem); }
.credits dd, .link-list small { margin: 0; color: var(--dim); font-size: .95rem; }
.link-list small { display: block; margin-top: .25rem; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(9px, 2vw, 19px); }
.gallery a { display: block; overflow: hidden; background: #342429; }
.gallery img { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 38%; }
.gallery a:hover img { filter: brightness(1.12); }
.viewer {
  position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none;
  padding: 15px; border: 0; background: #120d0ff2; color: var(--ink);
  grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
}
.viewer[open] { display: grid; }
.viewer figure { margin: 0; min-width: 0; display: grid; justify-items: center; }
.viewer img { width: auto; height: auto; max-width: 100%; max-height: 78svh; object-fit: contain; }
.viewer figcaption { margin-top: .6rem; color: var(--dim); }
.viewer .close { position: absolute; right: 20px; top: 10px; }
.photo-control { border: 1px solid var(--rule); border-radius: 50%; width: 42px; height: 42px; background: #35252a; font-size: 1.55rem; }
@media (max-width: 680px) {
  .masthead, .overlay-bar { min-height: 60px; }
  .stage { display: flex; flex-direction: column; min-height: 0; }
  .portrait { order: -1; min-height: auto; height: clamp(260px, 46vh, 480px); }
  .intro { padding: 27px 22px 40px; }
  h1 { font-size: clamp(3.05rem, 12vw, 5rem); margin-bottom: 1.5rem; }
  h1 br { display: none; }
  h1 br::after { content: " "; }
  .editorial, .credits div { grid-template-columns: 1fr; }
  .editorial img { max-height: 420px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer { padding-inline: 8px; gap: 5px; }
  .photo-control { width: 34px; height: 38px; }
}
