:root {
  color-scheme: light;
  --paper: #f4f1eb;
  --ink: #242420;
  --muted: #6c6a63;
  --line: #d7d2c9;
  --accent: #a24f35;
  --page-max: 1680px;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.site-header, main, .site-footer { width: 100%; max-width: var(--page-max); margin-inline: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
::selection { background: #d7baaa; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: white; padding: 10px 15px; z-index: 5; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 78px; padding: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 28px; }
.brand { text-decoration: none; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.025em; font-size: 24px; white-space: nowrap; }
.brand-dot { color: var(--accent); }
.site-header nav { display: flex; gap: clamp(18px, 3vw, 45px); }
.site-header nav a, .site-footer a { font-size: 13px; text-decoration: none; }
.site-header nav .language-link { border-left: 1px solid var(--line); padding-left: clamp(15px, 2vw, 28px); color: var(--accent); font-weight: 700; }
.site-header nav a:hover, .site-footer a:hover, .text-link:hover { color: var(--accent); }

.intro { min-height: clamp(510px, 69vh, 750px); display: grid; align-content: center; padding: 70px clamp(24px, 10vw, 160px) 100px; position: relative; }
body.has-photos .intro { min-height: clamp(340px, 48vh, 540px); }
.intro-kicker, .section-number { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.intro h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.intro h1 { font-size: clamp(68px, 10vw, 160px); letter-spacing: -.075em; line-height: .97; margin: 25px 0 28px; }
.intro h1 em { font-weight: 400; color: var(--accent); }
.intro p { font-size: clamp(16px, 1.6vw, 21px); color: var(--muted); margin: 0 0 46px; }
.intro p span { color: var(--accent); font-size: 1.7em; line-height: 0; vertical-align: -.11em; padding: 0 .12em; }
.text-link { width: fit-content; text-decoration: none; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.text-link span { margin-left: 32px; }

.works, .about, .contact { padding: clamp(70px, 9vw, 140px) clamp(24px, 5vw, 80px); border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.section-heading h2, .about h2, .contact h2 { font-size: clamp(42px, 5vw, 74px); line-height: 1.08; letter-spacing: -.055em; margin: 18px 0 0; }
.work-count { font-size: 12px; color: var(--muted); padding-bottom: 9px; }
.summary-restart { flex: none; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 13px 17px; cursor: pointer; font-size: 12px; }
.summary-restart:hover { background: var(--accent); border-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 30px; }
.filters:empty { display: none; }
.filter { border: 1px solid var(--line); color: var(--muted); padding: 9px 16px; border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; }
.filter:hover, .filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 3vw, 48px); row-gap: clamp(28px, 4vw, 52px); align-items: start; }
.photo-card { margin: 0; min-width: 0; align-self: start; }
.photo-button { display: block; width: 100%; padding: 0; background: none; border: 0; cursor: zoom-in; text-align: left; }
.photo-button picture { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.photo-button img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--thumbnail-position, 50% 50%); background: #e4e0d8; }
.photo-button:hover img { opacity: .9; }
.photo-card figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 12px; }
.photo-card .photo-meta { margin-left: auto; color: var(--muted); text-align: right; }
.empty-state { min-height: 490px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: clamp(25px, 6vw, 80px); padding: 35px; }
.empty-state[hidden] { display: none; }
.empty-mark { display: grid; place-items: center; width: clamp(135px, 18vw, 250px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-family: Georgia, serif; font-size: clamp(35px, 5vw, 72px); letter-spacing: -.12em; padding-right: .15em; }
.empty-state h3 { font-size: clamp(27px, 3vw, 43px); margin: 0 0 10px; }
.empty-state p { font-size: 14px; color: var(--muted); margin: 0; }

.about-layout, .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.about h2 { max-width: 550px; }
.about-copy { max-width: 610px; padding-top: 24px; }
.about-copy p, .contact p { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.75; margin: 0 0 22px; }
.contact { background: #e9e4da; }
.contact-layout { margin-top: 10px; align-items: end; }
.contact p { color: var(--muted); margin-top: 22px; }
.contact-action { justify-self: end; text-align: right; }
.contact-action p { font-size: 13px; max-width: 240px; margin-bottom: 0; }
.contact-action .contact-email { display: block; font-size: clamp(22px, 3vw, 42px); font-family: Georgia, 'Times New Roman', serif; text-decoration-thickness: 1px; text-underline-offset: 8px; overflow-wrap: anywhere; }
.contact-action .instagram-link { display: inline-block; margin-top: 24px; font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.instagram-link span { margin-left: 12px; }
.instagram-link:hover { color: var(--accent); }
.site-footer { padding: 28px clamp(24px, 5vw, 80px); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }

.lightbox { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: none; background: #1b1b1a; color: #f7f5f0; }
.lightbox::backdrop { background: #1b1b1a; }
.lightbox-inner { height: 100%; display: flex; flex-direction: column; padding: 16px clamp(16px, 3vw, 42px) 24px; }
.lightbox-toolbar, .lightbox-caption { display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: 12px; color: #aaa9a4; }
.lightbox-toolbar > div { display: flex; align-items: center; gap: 16px; }
.lightbox-selection-count { padding-left: 16px; border-left: 1px solid #454542; }
.lightbox-review { border: 0; border-bottom: 1px solid #565652; background: none; color: #aaa9a4; padding: 3px 0; cursor: pointer; font-size: 11px; }
.lightbox-review:hover { border-color: #f7f5f0; color: #f7f5f0; }
.lightbox-review[hidden] { display: none; }
.lightbox-close { background: none; border: 0; color: #f7f5f0; cursor: pointer; }
.lightbox-close { font-size: 38px; line-height: 1; }
.lightbox-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lightbox-view:focus { outline: none; }
.lightbox-view[hidden], .lightbox-summary[hidden] { display: none; }
.lightbox-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img { display: block; max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; margin: auto; object-fit: contain; }
.lightbox-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-top: 12px; }
.lightbox-caption span:first-child { color: #f7f5f0; }
.lightbox-actions { display: flex; align-items: stretch; gap: 8px; }
.previous-button { display: flex; align-items: center; gap: 10px; border: 1px solid #565652; background: transparent; color: #f7f5f0; padding: 11px 15px; cursor: pointer; font-size: 12px; line-height: 1; }
.previous-button span:first-child { font-size: 16px; line-height: 1; }
.previous-button:hover { border-color: #aaa9a4; }
.previous-button:disabled { opacity: .25; cursor: default; }
.keep-button { min-width: 180px; border: 1px solid #565652; background: transparent; color: #f7f5f0; padding: 11px 15px; cursor: pointer; font-size: 12px; }
.keep-button:hover { border-color: #aaa9a4; }
.keep-button[aria-pressed="true"] { border-color: #cf7658; background: #a24f35; }
.keep-button kbd { margin-left: 16px; border: 1px solid #565652; border-radius: 3px; padding: 2px 6px; color: #aaa9a4; font: 9px Arial, Helvetica, sans-serif; text-transform: uppercase; }
.keep-button[aria-pressed="true"] kbd { border-color: rgba(255, 255, 255, .35); color: #f7f5f0; }
.keep-mark { margin-right: 8px; font-size: 16px; }
.keep-button[aria-pressed="true"] .keep-mark::before { content: "◆"; }
.keep-button[aria-pressed="true"] .keep-mark { font-size: 0; }
.keep-button[aria-pressed="true"] .keep-mark::before { font-size: 16px; }
.continue-button { min-width: 125px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid #f7f5f0; background: #f7f5f0; color: #1b1b1a; padding: 11px 15px; cursor: pointer; font-size: 12px; line-height: 1; }
.continue-button span:last-child { font-size: 16px; line-height: 1; }
.continue-button:hover { border-color: #cf7658; background: #cf7658; color: #1b1b1a; }
.lightbox-summary { flex: 1; overflow: auto; width: min(1100px, 100%); margin: auto; padding: clamp(35px, 7vh, 90px) 0 40px; }
.summary-kicker { color: #cf7658; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.lightbox-summary h2 { max-width: 760px; margin: 18px 0 12px; color: #f7f5f0; font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.055em; }
.lightbox-summary > p { max-width: 650px; margin: 0; color: #aaa9a4; font-size: 14px; line-height: 1.65; }
.summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: clamp(30px, 5vh, 60px); }
.summary-thumb { display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.summary-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: var(--thumbnail-position, 50% 50%); }
.summary-thumb:hover img { opacity: .75; }
.summary-empty { margin-top: 50px !important; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(20px, 3vw, 32px) !important; color: #f7f5f0 !important; }
.summary-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.summary-restart { border-color: #f7f5f0; background: #f7f5f0; color: #1b1b1a; }
.summary-clear { border: 0; border-bottom: 1px solid #565652; background: none; color: #aaa9a4; padding: 0 0 6px; cursor: pointer; font-size: 12px; }
.summary-clear:hover { border-color: #f7f5f0; color: #f7f5f0; }
.summary-clear[hidden] { display: none; }
.summary-contact { color: #f7f5f0; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 6px; font-size: 12px; }
.summary-contact span { margin-left: 18px; }
.summary-notice { display: flex; align-items: center; gap: 16px; width: fit-content; margin-top: 24px; border-left: 2px solid #cf7658; padding: 8px 12px; color: #aaa9a4; font-size: 12px; }
.summary-notice[hidden] { display: none; }
.summary-notice button { border: 0; border-bottom: 1px solid currentColor; background: none; color: #f7f5f0; padding: 0 0 2px; cursor: pointer; font-size: 12px; }

@media (min-width: 1200px) {
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 2vw, 36px); }
}

@media (max-width: 700px) {
  .site-header { min-height: 68px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
  .site-header nav { width: 100%; justify-content: space-between; }
  .intro { min-height: 540px; padding-top: 60px; padding-bottom: 75px; }
  body.has-photos .intro { min-height: 390px; }
  .intro h1 { font-size: clamp(58px, 14vw, 94px); }
  .photo-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .empty-state { min-height: 360px; flex-direction: column; text-align: center; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .about-copy { padding-top: 0; }
  .contact-action { justify-self: start; text-align: left; }
  .lightbox-status { gap: 10px !important; }
  .lightbox-selection-count { padding-left: 10px; }
  .lightbox-review { max-width: 72px; line-height: 1.2; text-align: left; }
  .lightbox-footer { grid-template-columns: 1fr; gap: 12px; }
  .lightbox-actions { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
  .previous-button { padding-inline: 12px; }
  .keep-button { width: 100%; min-width: 0; }
  .keep-button kbd { display: none; }
  .continue-button { min-width: 105px; }
  .lightbox-stage img { max-height: calc(100dvh - 230px); }
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

#lightbox-title:empty { display: none; }

.lightbox-details { min-width: 0; }
.lightbox-settings { margin: 8px 0 0; color: #aaa9a4; font-size: 11px; line-height: 1.5; }
