:root {
    color-scheme: light;
    --paper: #f5f2e9;
    --ink: #252c22;
    --muted: #526053;
    --rule: #c9cbbd;
    --accent: #43583b;
    --sans: "neue-haas-grotesk-text", Arial, sans-serif;
    --serif: "freight-big-pro", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
figure { margin: 0; min-width: 0; }
.frame { width: min(1440px, calc(100% - clamp(36px, 7vw, 120px))); margin-inline: auto; }
.masthead, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.masthead { min-height: 76px; border-bottom: 1px solid var(--rule); }
.masthead nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem clamp(1rem, 3vw, 2.5rem); }
.signature { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.85rem); }
.masthead a, .footer a { text-decoration: none; }
.masthead a:hover, .footer a:hover { text-decoration: underline; }
.masthead nav, .footer, .text-link { color: var(--accent); font-size: .875rem; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
.gallery-page {
    color-scheme: dark;
    --paper: #171a15;
    --ink: #f7f5ea;
    --rule: #464a41;
    --accent: #e2e3d6;
    --gutter: clamp(5px, .72vw, 12px);
}
.gallery-page .masthead {
    width: auto;
    min-height: 66px;
    margin-inline: clamp(18px, 3.2vw, 54px);
    border: 0;
}
.gallery-title { margin: 0; font-weight: 400; }
.feature-wall { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.image-tile { position: relative; display: block; min-width: 0; background: #2c322a; }
.image-tile img { height: 100%; object-fit: cover; }
.image-tile:focus-visible { z-index: 1; outline-offset: -5px; }
.feature-wall .image-tile { min-height: 0; aspect-ratio: 1; }
.feature-wall .image-tile--hero {
    grid-column: 1 / -1;
    height: max(420px, calc(93svh - 66px));
    aspect-ratio: auto;
}
.image-tile--hero img { object-position: center 68%; }
.feature-wall .image-tile--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.feature-wall .image-tile--wide:last-child {
    height: clamp(450px, 84svh, 980px);
    aspect-ratio: auto;
}
.feature-wall .image-tile--wide:last-child img { object-position: center 60%; }
.image-tile-arrow {
    position: absolute;
    right: clamp(10px, 2vw, 26px);
    bottom: clamp(10px, 2vw, 26px);
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #fffc;
    border-radius: 50%;
    background: #151913b8;
    color: white;
    font: 1.15rem var(--sans);
    opacity: 0;
    transition: opacity .2s ease;
}
.image-tile:hover .image-tile-arrow, .image-tile:focus-visible .image-tile-arrow,
.image-tile--hero .image-tile-arrow { opacity: 1; }
.archive { padding-block: clamp(2.5rem, 7vw, 7rem); }
.archive h2 { margin: 0 0 1.25rem; font-size: clamp(2rem, 4vw, 3.25rem); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.archive-grid .image-tile { aspect-ratio: 1; }
.archive-grid .image-tile-arrow { right: 10px; bottom: 10px; width: 34px; height: 34px; }
.footer { padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--rule); }
.footer a:last-child { text-align: right; }
.study { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.study h1 { margin: 1rem 0; font-size: clamp(2.6rem, 5.1vw, 5.75rem); letter-spacing: -.03em; line-height: .95; }
.study p { max-width: 36rem; margin: 1.1rem 0; color: var(--muted); line-height: 1.65; }
.study .study-author { font-size: .875rem; font-weight: 600; }
.study-figure img { background: #dcdccf; }
.study-figure figcaption { color: var(--muted); padding-top: .85rem; font-size: .875rem; line-height: 1.6; }
@media (max-width: 800px) {
    .study { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
    .feature-wall { grid-template-columns: minmax(0, 1fr); }
    .feature-wall .image-tile--hero { height: max(420px, 74svh); }
    .image-tile--hero img { object-position: center; }
    .feature-wall .image-tile--wide:last-child { height: auto; aspect-ratio: 1; }
    .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 470px) {
    .masthead, .gallery-page .masthead { min-height: 62px; }
    .masthead nav { gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
    .image-tile-arrow { transition: none; }
}
