:root {
    color-scheme: light;
    --ink: #1d1d1b;
    --muted: #56544f;
    --paper: #fefdfb;
    --line: #e4e1dc;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 Georgia, serif; }
a { color: inherit; text-underline-offset: .24em; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #315a92; outline-offset: 4px; }
.skip, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { top: 1rem; left: 1rem; width: auto; height: auto; padding: .55rem; background: var(--paper); clip-path: none; z-index: 5; }
.frame { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { padding: clamp(1.65rem, 5vw, 3.35rem) 1rem 0; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.wordmark { display: inline-block; margin: 0 auto clamp(1.75rem, 4.7vw, 3.25rem); }
.wordmark img { width: 166px; height: 40px; object-fit: contain; mix-blend-mode: multiply; }
.site-nav { max-width: 1120px; margin: 0 auto; }
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav > ul { display: flex; flex-wrap: wrap; gap: .65rem clamp(1rem, 3vw, 2.65rem); justify-content: center; align-items: center; }
.site-nav a, .site-nav summary { display: block; color: var(--muted); padding: .4rem 0; text-decoration: none; }
.site-nav a:hover, .site-nav summary:hover, .site-nav [aria-current], .site-nav .current { color: var(--ink); text-decoration: underline; }
summary { cursor: pointer; }
.site-nav summary { list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.editorial-menu { position: relative; }
.editorial-menu summary::after { content: ''; display: inline-block; width: .36rem; height: .36rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); margin: 0 0 .18em .55em; }
.editorial-menu ul { z-index: 2; width: 16rem; position: absolute; margin: .3rem 0 0; text-align: left; background: var(--paper); padding: .5rem .95rem; border: 1px solid var(--line); box-shadow: 0 12px 30px #211c1417; }
.mobile-nav { display: none; }
main { min-height: 45vh; }
h1 { font-size: clamp(1.65rem, 3.6vw, 2.7rem); font-weight: 400; line-height: 1.13; margin: 0 0 1.45rem; }
.works { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.45rem, 1.35vw, 1rem); }
.work { margin: 0; min-width: 0; }
.work a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #edeae4; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .27s ease; }
.work-hover { position: absolute; inset: auto 0 0; padding: 1.35rem .7rem .72rem; color: #fff; background: linear-gradient(transparent, #000c); line-height: 1.25; opacity: 0; transition: opacity .22s ease; }
.work a:is(:hover, :focus-visible) .work-hover { opacity: 1; }
.work a:hover img { transform: scale(1.035); }
.page-intro { max-width: 62ch; margin-bottom: 1.4rem; }
.intro { font-size: 1.12rem; margin-block: 0 .55rem; }
.prose { width: min(100%, 790px); padding-block: .5rem 2.5rem; }
.prose h2 { margin-top: 0; font-size: 1.7rem; font-weight: 400; }
.has-portrait { display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); }
.portrait { object-fit: cover; aspect-ratio: 214 / 310; width: 100%; height: auto; }
.body-copy { white-space: pre-line; overflow-wrap: anywhere; }
.email { display: inline-block; margin-top: 1.25rem; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line); margin-top: clamp(2.4rem, 6vw, 4.5rem); padding-block: 1.35rem 2.3rem; color: var(--muted); }
.socials { display: flex; gap: 1.3rem; font-size: .92rem; }
.socials a { text-decoration: none; }
.socials a:hover { text-decoration: underline; }
.preview-note { padding: .7rem 1rem; border: 1px solid var(--line); background: #f0ece3; }
.viewer { width: min(94vw, 1140px); max-height: 94dvh; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.viewer::backdrop { background: #151411df; }
.viewer-shell { padding: .5rem clamp(.45rem, 2vw, 1.5rem) 1rem; }
.viewer-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.viewer-count { margin: 0 .5rem; color: var(--muted); font: .875rem/1.4 system-ui, sans-serif; }
.viewer-art { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(.2rem, 2vw, 1rem); }
.viewer img { margin: auto; max-height: 69dvh; max-width: 100%; object-fit: contain; }
.viewer button { width: clamp(2rem, 5vw, 2.75rem); min-height: 2.75rem; background: transparent; border: 0; color: var(--ink); font: 1.9rem/1 system-ui, sans-serif; }
.viewer button:not(:disabled):hover { background: #eeeae3; }
.viewer-caption { padding: 0 .55rem; margin-top: .9rem; text-align: center; white-space: pre-line; overflow-wrap: anywhere; }
.viewer-caption h2 { font-size: 1.17rem; font-weight: 400; margin: 0 0 .25rem; }
@media (max-width: 850px) {
    .works { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .frame { width: calc(100% - 1.5rem); }
    .site-header { margin-bottom: 1.2rem; }
    .wordmark { margin-bottom: .75rem; }
    .mobile-nav { display: block; }
    .mobile-nav:not([open]) + .site-nav { display: none; }
    .site-nav > ul { justify-content: center; gap: .15rem 1rem; padding-top: .45rem; }
    .editorial-menu ul { width: min(15rem, 66vw); }
    .works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .has-portrait { grid-template-columns: 1fr; }
    .portrait { width: min(210px, 65vw); }
}
@media (max-width: 400px) {
    .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
