@font-face {
  font-family: Rubik;
  src: url("/fonts/rubik.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-italic.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff2da;
  --white: #fffaf0;
  --ink: #1d3026;
  --muted: #5d594d;
  --rust: #9e2f25;
  --rule: #cbac93;
  --mat: #eee4d6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Rubik, "Segoe UI", sans-serif;
  --width: 1160px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 0% 6%, #ffdfa8 0, transparent 620px), var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
.theme-album.public-page {
  color-scheme: dark;
  --paper: #1a1315;
  --white: #2b1f21;
  --ink: #fff0e1;
  --muted: #d4bab0;
  --rust: #ffab79;
  --rule: #62433f;
  --mat: #2c2023;
  background: var(--paper);
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--width), calc(100% - 96px)); margin-inline: auto; }

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 8px 16px;
  background: var(--white);
  transform: translateY(-160%);
  z-index: 1;
}
.skip:focus { transform: none; }
.site-header {
  min-height: 81px;
  display: flex;
  gap: 8px 28px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 700 clamp(25px, 3vw, 34px)/1 var(--serif);
  text-decoration: none;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px clamp(11px, 3vw, 36px); }
.site-header nav a { text-decoration: none; font-size: 14px; }
.site-header nav [aria-current] { color: var(--rust); text-decoration: underline; text-underline-offset: 5px; }
.version-link { padding: 6px 0; border-bottom: 1px solid currentColor; }
.version-link span { margin-left: 3px; }
.site-header nav a:hover, .studio-link:hover, .footer-title:hover { color: var(--rust); }

.city-stage {
  position: relative;
  isolation: isolate;
}
.city-stage::before, .city-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.city-stage::before {
  background: url("/petersburg-silhouette.webp") center 54% / cover no-repeat;
  filter: brightness(1.35) contrast(.87) saturate(1.13);
}
.city-stage::after {
  background: linear-gradient(0deg, var(--paper), transparent 23%);
}
.hero {
  display: grid;
  padding-block: 42px 23px;
  min-height: 540px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.byline {
  color: var(--rust);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .145em;
  text-transform: uppercase;
  margin: 0;
}
.hero h1 {
  font: 700 clamp(56px, 8.4vw, 120px)/.88 var(--serif);
  letter-spacing: -.061em;
  margin: 0 0 18px -.04em;
  text-shadow: 0 2px 12px #171417d9, 0 4px 35px #170f12b3;
}
.title-rule { color: var(--rust); font-size: .78em; }
.hero-note { margin: 0; color: var(--ink); font: italic 600 clamp(24px, 2.65vw, 38px)/1.08 var(--serif); text-shadow: 0 1px 4px #170f12, 0 2px 16px #170f12c7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; margin-top: auto; padding-top: 24px; }
.hero-actions .text-link { align-items: center; min-height: 44px; color: var(--ink); font-weight: 500; text-shadow: 0 1px 3px #1a1315, 0 1px 8px #1a1315; }
.hero-actions .text-link:hover { color: var(--rust); }
.hero-link span { font-size: 20px; line-height: 1; }
.author-photo img {
  width: 100%;
  aspect-ratio: 19 / 26;
  object-fit: cover;
  filter: sepia(.42) saturate(1.25) hue-rotate(-10deg) brightness(1.05);
}
.works { border-top: 1px solid var(--rule); padding-block: 35px 60px; scroll-margin-top: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 27px; }
.section-head h2 { font: 800 clamp(35px, 4.7vw, 58px)/1 var(--sans); letter-spacing: -.06em; margin: 0; }
.work-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.work-filter select { min-height: 40px; border: 1px solid var(--rule); padding: 6px 10px; background: var(--white); color: var(--ink); border-radius: 0; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.work-card { min-width: 0; }
.work-card-wide { grid-column: 1 / -1; }
.work-card-link { display: block; text-decoration: none; }
.work-frame {
  display: grid;
  place-items: center;
  background: var(--mat);
  aspect-ratio: 5 / 4;
  padding: clamp(14px, 3.2vw, 42px);
  overflow: hidden;
}
.work-card-wide .work-frame { aspect-ratio: 2.6 / 1; }
.work-frame img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform .22s ease; }
.work-card-link:hover .work-frame img { transform: scale(1.025); }
.work-card-link:hover h3 { color: var(--rust); }
.work-card-caption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-block: 10px 12px; border-bottom: 1px solid var(--rule); }
.work-card-caption h3 { margin: 0; font: 700 clamp(24px, 3vw, 36px)/1.06 var(--serif); overflow-wrap: anywhere; }
.work-card-caption span { font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); margin-block: 32px; }

.section-page { min-height: 55vh; padding-block: clamp(36px, 7vw, 95px); }
.section-page h1 { font: 700 clamp(42px, 7vw, 92px)/.94 var(--serif); letter-spacing: -.048em; margin: 0 0 25px; text-wrap: balance; }
.section-page > p { color: var(--muted); max-width: 55ch; margin: 0 0 24px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 0 32px; }
.text-link { display: inline-flex; gap: 8px; align-items: baseline; color: var(--rust); text-underline-offset: 5px; min-height: 38px; }
.site-footer {
  border-top: 1px solid var(--rule);
  min-height: 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 20px;
  padding-block: 18px;
}
.footer-author { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-author:hover { text-decoration: underline; }
.footer-title { font: normal 22px/1 var(--serif); text-decoration: none; }
.studio-link { margin-left: auto; font-size: 14px; color: var(--muted); text-underline-offset: 4px; }
.studio-link span { margin-left: 3px; }

.author-page {
  display: grid;
  grid-template-columns: .91fr 1.09fr;
  gap: clamp(30px, 7vw, 105px);
  align-items: center;
  padding-block: 65px 82px;
}
.author-photo {
  max-width: 380px;
  margin: 0;
}
.author-copy h1 { font: 700 clamp(46px, 6.6vw, 91px)/.87 var(--serif); letter-spacing: -.045em; margin: 12px 0 24px; overflow-wrap: anywhere; }
.author-copy > p:not(.byline) { margin: 0 0 14px; max-width: 50ch; }
.author-links { display: flex; flex-wrap: wrap; column-gap: 22px; margin-top: 23px; }

.detail { padding-block: 38px 52px; }
.back-link { display: inline-block; color: var(--rust); text-decoration: none; min-height: 34px; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr); gap: clamp(26px, 6vw, 86px); margin-top: 26px; align-items: start; }
.detail-layout-panorama { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.detail-layout-panorama .detail-copy h1 { font-size: clamp(34px, 6vw, 76px); text-wrap: balance; }
.detail-copy h1, .error-page h1 { font: normal clamp(42px, 6.1vw, 76px)/.99 var(--serif); letter-spacing: -.05em; margin: 9px 0 14px; overflow-wrap: anywhere; }
.detail-year { color: var(--muted); margin: 0; }
.author-note { font: normal 20px/1.54 var(--serif); margin-top: 25px; overflow-wrap: anywhere; }
.author-note p { margin-block: 0 16px; }
.detail-copy .text-link { margin-top: 20px; }
.detail-images { display: grid; gap: 23px; }
.detail-photo { margin: 0; background: var(--white); padding: 12px; box-shadow: 0 3px 17px #432e1d14; }
.detail-photo a { display: block; background: var(--mat); cursor: zoom-in; }
.detail-photo img { margin-inline: auto; max-height: 850px; width: 100%; object-fit: contain; }
.detail-photo figcaption { color: var(--muted); font-size: 14px; padding: 8px 0 2px; overflow-wrap: anywhere; }
.next-work { display: grid; gap: 7px; margin-top: 44px; padding: 23px 0 10px; text-decoration: none; border-top: 1px solid var(--rule); }
.next-work > span { color: var(--muted); font-size: 14px; }
.next-work strong { font: normal 29px/1.15 var(--serif); }
.next-work:hover strong { color: var(--rust); }
.preview-label { color: var(--rust); margin-block: 10px 0; }
.error-page { min-height: 56vh; padding-block: 60px; }
.zoom-dialog { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 30px; border: none; background: transparent; }
.zoom-dialog[open] { display: grid; place-items: center; }
.zoom-dialog::backdrop { background: #241914eb; }
.zoom-dialog img { height: 100%; width: 100%; object-fit: contain; }
.zoom-close {
  position: fixed;
  top: 16px;
  right: 18px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

@media (max-width: 920px) {
  .wrap { width: calc(100% - 56px); }
  .hero { min-height: 470px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { flex-direction: column; align-items: flex-start; padding-block: 5px 12px; }
  .site-header nav { justify-content: flex-start; }
  .hero { min-height: 375px; padding-block: 25px 14px; }
  .hero h1 { font-size: clamp(46px, 12.5vw, 84px); margin-bottom: 12px; }
  .city-stage::before { background-position: 45% center; }
  .works { padding-block: 24px 40px; }
  .section-head { margin-bottom: 19px; }
  .work-grid { grid-template-columns: 1fr; gap: 20px; }
  .work-card-wide { grid-column: auto; }
  .work-card-wide .work-frame { aspect-ratio: 1.9 / 1; }
  .site-footer { gap: 9px 15px; }
  .studio-link { width: 100%; margin-left: 0; }
  .author-page { grid-template-columns: 1fr; padding-block: 32px 44px; gap: 34px; }
  .author-photo { max-width: min(400px, 90%); margin-inline: auto; }
  .author-copy h1 { margin-block: 8px 16px; }
  .detail { padding-block: 23px 36px; }
  .detail-layout { grid-template-columns: 1fr; gap: 19px; margin-top: 9px; }
  .detail-copy h1 { margin-top: 0; }
  .author-note { font-size: 18px; }
  .detail-photo { padding: 8px; }
  .zoom-dialog { padding: 50px 5px 8px; }
}
@media (max-width: 390px) {
  .site-header nav a { font-size: 13px; }
  .site-header nav { column-gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
