:root { color-scheme:light; background:#f5f2ec; color:#242920; font-family:system-ui,sans-serif; }
* { box-sizing:border-box; }
body { margin:0; }
header,main { width:min(92%,88rem); margin:auto; }
header { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #cbc7bc; padding:.7rem 0; }
a { color:inherit; text-underline-offset:.24em; }
header a { display:inline-flex; align-items:center; min-height:44px; }
.wordmark,h1,h2 { font-family:Georgia,serif; font-weight:400; }
.wordmark { text-decoration:none; font-size:2rem; }
h1 { margin:clamp(2rem,5vw,5rem) 0 .5em; font-size:clamp(3.2rem,8vw,8rem); line-height:1; letter-spacing:-.05em; }
.works { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(2.2rem,5vw,5rem) clamp(1rem,3vw,3rem); padding-bottom:5rem; }
figure { margin:0; }
figure a { display:block; cursor:zoom-in; }
figure img { display:block; width:100%; height:auto; }
figcaption h2 { margin:.65rem 0 0; font-size:clamp(1.4rem,2.6vw,2.35rem); }
.opening-work { grid-column:1/-1; display:grid; grid-template-columns: minmax(0,1.75fr) minmax(0,1fr); align-items:center; gap:clamp(2rem,5vw,5rem); border-block:1px solid #cbc7bc; padding-block:clamp(1.25rem,3vw,3rem); }
.opening-work h2 { font-size:clamp(2.3rem,4.5vw,4.5rem); line-height:1.05; }
.opening-work p { max-width:32ch; line-height:1.65; margin:1rem 0 0; }
button { color:inherit; font:inherit; background:none; border:1px solid #686b68; border-radius:2px; min-height:44px; padding:.5rem 1rem; cursor:pointer; }
:focus-visible { outline:3px solid #8d7137; outline-offset:3px; }
dialog { position:fixed; inset:0; margin:auto; width:100%; height:100%; max-width:none; max-height:none; padding:0; border:0; background:#101418; color:#faf6ee; }
dialog::backdrop { background:#101418; }
body:has(dialog[open]) { overflow:hidden; }
.viewer { height:100%; padding:clamp(.8rem,3vw,2rem); display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:1rem; }
.close { justify-self:end; }
.enlarged { width:100%; height:100%; object-fit:contain; }
.viewer-footer,.controls { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }
.viewer-footer { justify-content:space-between; }
.viewer-footer h2 { margin:0; font-size:clamp(1.4rem,3vw,2.4rem); }
@media(max-width:700px) {
  .works,.opening-work { grid-template-columns:1fr; }
  .opening-work { gap:.5rem; }
  .opening-work p { max-width:42ch; }
  header a { font-size:.9rem; }
}
