@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8efe9;
  --ink: #421d18;
  --accent: #752c25;
  --muted: #65463e;
  --rule: #c4aaa0;
  --sans: Inter, Arial, sans-serif;
  --serif: "Instrument Serif", Baskerville, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.frame { width: min(100% - 112px, 1456px); margin-inline: auto; }

.skip-link { position: fixed; top: 12px; left: 16px; z-index: 4; padding: 12px 18px; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.monogram { font: 33px/.9 var(--serif); letter-spacing: -.07em; text-decoration: none; }
.monogram span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 32px; }
nav a, .text-link, .eyebrow, figcaption, .project-info p, .site-footer > span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .115em;
  text-transform: uppercase;
}
nav a, .text-link { text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link { display: inline-flex; align-items: center; gap: .7em; }
.text-link span { font-size: 1rem; line-height: 1; }

.masthead { container-type: inline-size; padding-top: 24px; }
.masthead h1 {
  color: var(--accent);
  font: 400 clamp(2.6rem, 13.85cqw, 13rem)/.88 var(--serif);
  text-transform: uppercase;
  letter-spacing: -.045em;
  white-space: nowrap;
  margin-inline-start: -.027em;
}
.masthead-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px 19px; }
.masthead-line p { color: var(--muted); font-size: .69rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.masthead-line p span { margin-inline: .4em; }
.cover { aspect-ratio: 1.8; overflow: hidden; background: #2e2626; }
.cover img { height: 100%; object-fit: cover; object-position: center 37%; }

.work-section { margin-top: 88px; scroll-margin-top: 22px; }
.section-heading { padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--rule); }
h2 { color: var(--accent); font: 400 clamp(3.25rem, 7.7vw, 7.7rem)/.9 var(--serif); letter-spacing: -.04em; }
h2 em { font-weight: 400; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 34px; }
.project-card { display: block; text-decoration: none; }
.project-image { aspect-ratio: 1.45; overflow: hidden; background: #2e2626; }
.project-image img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover img { transform: scale(1.035); }
.project-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
.project-info h3 { font: 400 clamp(2rem, 4vw, 4rem)/1 var(--serif); letter-spacing: -.025em; }
.project-info p { margin-top: 8px; color: var(--muted); }
.project-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 50%; transition: background .2s ease, color .2s ease; }
.project-card:hover .project-arrow { color: var(--paper); background: var(--accent); }

.about-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr); align-items: center; gap: clamp(32px, 7vw, 110px); margin-block: 110px; padding-top: 50px; border-top: 1px solid var(--rule); scroll-margin-top: 22px; }
.about-image img { aspect-ratio: 1.35; object-fit: cover; }
.about-image figcaption { color: var(--muted); margin-top: 11px; }
.about-image figcaption a { text-underline-offset: 3px; }
.about-copy h2 { margin: 14px 0 25px; font-size: clamp(3rem, 6vw, 6.6rem); }
.about-copy p:not(.eyebrow) { max-width: 40ch; margin-top: 15px; font-size: clamp(.93rem, 1.4vw, 1.125rem); line-height: 1.65; }
.contact-section { border-top: 1px solid var(--rule); padding-block: 35px 70px; scroll-margin-top: 22px; }
.contact-section h2 { font-size: clamp(3.2rem, 7.25vw, 7rem); }
.contact-details { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 24px; }
.contact-details a { text-underline-offset: 5px; font-size: clamp(.86rem, 1.4vw, 1rem); }
.contact-details a span { padding-inline-start: 4px; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 20px 25px; border-top: 1px solid var(--rule); }
.site-footer > span { color: var(--muted); }

.gallery-intro { padding-block: 32px 35px; }
.gallery-intro .eyebrow { color: var(--muted); margin-top: 36px; }
.gallery-intro h1 { margin-block: 8px 16px; color: var(--accent); font: 400 clamp(4rem, 13vw, 12rem)/.88 var(--serif); letter-spacing: -.045em; }
.gallery-intro p:last-child { font-size: clamp(1rem, 1.6vw, 1.3rem); max-width: 50ch; line-height: 1.55; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gallery-grid figure { min-width: 0; }
.gallery-grid .full { grid-column: 1 / -1; }
.gallery-grid a { display: block; background: #302522; overflow: hidden; }
.gallery-grid img { aspect-ratio: 1.48; height: 100%; object-fit: cover; }
.gallery-grid .portrait img { aspect-ratio: 4 / 5; object-position: center var(--position, 48%); }
.gallery-grid .full img { aspect-ratio: 1.85; object-position: center var(--position, 48%); }
.gallery-grid a:hover img { opacity: .92; }
.gallery-next { display: block; text-decoration: none; margin-block: 70px 55px; padding-top: 18px; border-top: 1px solid var(--rule); }
.gallery-next > span { display: block; margin-bottom: 8px; }
.gallery-next strong { font: 400 clamp(2.7rem, 6vw, 5.25rem)/1 var(--serif); color: var(--accent); }
.gallery-next:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }

dialog {
  width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0;
  border: 0; padding: 20px 28px; background: #1c1514; color: #fff7ee;
}
dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.lightbox-bar, .lightbox-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lightbox-stage { min-height: 0; display: grid; place-items: center; }
.lightbox-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-bar p { font: 400 1.5rem/1 var(--serif); }
.lightbox-controls span { font-size: .8rem; font-variant-numeric: tabular-nums; }
.lightbox-bar button, .lightbox-controls button { min-height: 44px; padding: 0 14px; border: 1px solid #796765; color: inherit; background: none; cursor: pointer; }
.lightbox-bar button:hover, .lightbox-controls button:hover { background: #473332; }

@media (min-width: 1550px) {
  .masthead h1 { font-size: min(13.85cqw, 13rem); }
}
@media (max-width: 950px) {
  .frame { width: calc(100% - 64px); }
  .site-header { min-height: 66px; }
  .work-section { margin-top: 65px; }
  .about-section { margin-block: 80px; }
}
@media (max-width: 610px) {
  .frame { width: calc(100% - 36px); }
  .site-header { min-height: 56px; }
  nav { gap: 20px; }
  .monogram { font-size: 29px; }
  .masthead { padding-top: 23px; }
  .masthead h1 { font-size: 13.65cqw; }
  .masthead-line { padding-block: 13px 15px; flex-wrap: wrap; }
  .masthead-line p { font-size: .6rem; letter-spacing: .095em; }
  .masthead-line > a { display: none; }
  .cover { aspect-ratio: 1; }
  .work-section { margin-top: 45px; }
  .section-heading { padding-block: 18px 20px; }
  .work-grid, .about-section { grid-template-columns: 1fr; gap: 25px; }
  .about-section { margin-block: 56px; padding-top: 25px; }
  .about-image { order: 2; }
  .about-copy h2 { margin-bottom: 18px; }
  .contact-section { padding-block: 27px 40px; }
  .gallery-intro { padding-block: 24px 25px; }
  .gallery-intro .eyebrow { margin-top: 30px; }
  .gallery-grid { gap: 7px; }
  .gallery-next { margin-block: 44px; }
  dialog { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.portfolio {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: calc(1rem * var(--body-scale));
}
nav { flex-wrap: wrap; justify-content: end; }
.masthead h1 { font-size: calc(clamp(2.6rem, 13.85cqw, 13rem) * var(--heading-scale)); }
.portfolio[data-custom-masthead] .masthead h1 {
  font-size: calc(clamp(2.6rem, 10.5cqw, 11rem) * var(--heading-scale));
  white-space: normal;
  overflow-wrap: anywhere;
}
h2 { font-size: calc(clamp(3.25rem, 7.7vw, 7.7rem) * var(--heading-scale)); }
.project-info h3 { font-size: calc(clamp(2rem, 4vw, 4rem) * var(--heading-scale)); }
.about-copy h2 { font-size: calc(clamp(3rem, 6vw, 6.6rem) * var(--heading-scale)); }
.about-copy p:not(.eyebrow) { font-size: calc(clamp(.93rem, 1.4vw, 1.125rem) * var(--body-scale)); }
.contact-section h2 { font-size: calc(clamp(3.2rem, 7.25vw, 7rem) * var(--heading-scale)); }
.contact-details a { font-size: calc(clamp(.86rem, 1.4vw, 1rem) * var(--body-scale)); }
.gallery-intro h1 { font-size: calc(clamp(4rem, 13vw, 12rem) * var(--heading-scale)); overflow-wrap: anywhere; }
.gallery-intro p:last-child { font-size: calc(clamp(1rem, 1.6vw, 1.3rem) * var(--body-scale)); }
.gallery-next strong { font-size: calc(clamp(2.7rem, 6vw, 5.25rem) * var(--heading-scale)); }
.masthead-line p { font-size: calc(.69rem * var(--body-scale)); }
nav a, .text-link, .eyebrow, figcaption, .project-info p, .site-footer > span { font-size: calc(.68rem * var(--body-scale)); }
.cover img, .project-image img, .about-image img, .gallery-grid img, .gallery-grid .full img, .gallery-grid .portrait img, .single-photo img {
  object-position: var(--crop-x, 50%) var(--crop-y, 50%);
  transform: scale(var(--photo-zoom, 1));
  transform-origin: var(--crop-x, 50%) var(--crop-y, 50%);
}
.project-card:hover img { transform: scale(calc(var(--photo-zoom, 1) * 1.035)); }
.about-image { overflow: hidden; }
.about-image img { clip-path: inset(0); }
.about-section.no-image { display: block; }
.about-section.image-right .about-image { order: 2; }
.managed-section {
  width: var(--section-width);
  margin-top: var(--section-gap);
  margin-inline: auto;
  text-align: var(--section-align);
}
.managed-section[style*="--section-align:left"] { margin-inline-start: 0; }
.managed-section[style*="--section-align:right"] { margin-inline-end: 0; }
.text-section p { margin-block: 12px; line-height: 1.65; }
.single-photo a { display: block; overflow: hidden; }
.single-photo.landscape img { aspect-ratio: 1.48; object-fit: cover; }
.single-photo.portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.single-photo.full img { aspect-ratio: 1.85; object-fit: cover; }
.single-photo figcaption { margin-top: 10px; }
.gallery-grid .original img { aspect-ratio: auto; height: auto; }
.page-end { height: 45px; }
html.cms-preview { scroll-behavior: auto; }
.cms-preview [data-edit] { position: relative; }
.cms-preview [data-edit].editing::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 3;
  inset: 0;
  box-shadow: inset 0 0 0 2px #aaed91;
}
@media (min-width: 1550px) {
  .masthead h1 { font-size: calc(min(13.85cqw, 13rem) * var(--heading-scale)); }
}
@media (max-width: 610px) {
  .masthead h1 { font-size: calc(13.65cqw * var(--heading-scale)); }
  .masthead-line p { font-size: calc(.6rem * var(--body-scale)); }
  nav { row-gap: 5px; padding-block: 9px; }
}
.cms-preview.guides-off [data-edit].editing::after { content: none; }
