:root {
  color-scheme: light;
  --paper: #f5f2ed;
  --ink: #262820;
  --line: #d7d2c8;
  font-family: "Instrument Sans", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(92%, 1320px); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #977044; outline-offset: 4px; }
header, footer { display: flex; align-items: center; justify-content: space-between; padding-block: 1.4rem; font-size: .88rem; }
header { border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.06em; }
h1 { font-size: clamp(3.6rem, 9vw, 8.5rem); line-height: .95; margin-block: clamp(2rem, 5vw, 4rem) 1.4rem; }
h2 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 1.5rem; }
.hero { display: block; position: relative; overflow: hidden; background: #332b25; }
.hero img { display: block; width: 100%; height: auto; max-height: 70vh; min-height: 300px; object-fit: cover; object-position: center 42%; }
.hero span { position: absolute; bottom: 1rem; right: 1rem; display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--paper); }
#work { padding-block: clamp(3rem, 8vw, 7rem); }
.project { border-top: 1px solid var(--line); padding-block: 1rem 2rem; }
.project h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .75rem; }
button { font: inherit; color: inherit; cursor: pointer; }
.photos button { padding: 0; border: 0; background: #e2ddd4; overflow: hidden; }
.photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
footer { border-top: 1px solid var(--line); }
dialog { width: min(94vw, 1200px); max-height: 95dvh; padding: .8rem; color: #f5f2ed; background: #23231e; border: 0; }
dialog::backdrop { background: rgb(0 0 0 / .8); }
#full-photo { display: block; width: 100%; height: min(72dvh, 850px); object-fit: contain; }
.toolbar, .controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.controls { justify-content: center; }
dialog button { min-width: 44px; min-height: 44px; border: 1px solid #aaa69d; background: transparent; font-size: 1.25rem; }
[hidden] { display: none !important; }
