:root {
  color-scheme: dark;
  --ink: #f2eee5;
  --muted: #b7bcb0;
  --accent: #c6d9b9;
  --line: #3d4740;
  --base: #111612;
  font-family: "Trebuchet MS", sans-serif;
  background: radial-gradient(ellipse at top right, #232d25, var(--base) 55rem);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100vh; margin: 0; }
.shell { width: min(100%, 1720px); margin: auto; padding-inline: clamp(12px, 2vw, 34px); }
.masthead, .footer, .viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.masthead { padding: clamp(20px, 4vw, 45px) 4px; }
.eyebrow { color: var(--accent); font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; margin: 0 0 6px; }
h1 { font: 400 clamp(2.5rem, 5vw, 4.4rem)/.95 Georgia, serif; letter-spacing: -.06em; margin: 0; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: end; }
a, button { color: var(--ink); }
a { text-decoration-color: var(--line); text-underline-offset: .35em; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--base); padding: .55rem .8rem; border-radius: 3px; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.opening, .grid { display: grid; gap: clamp(8px, 1vw, 16px); }
.opening { grid-template-columns: 2.1fr 1fr; margin-bottom: clamp(8px, 1vw, 16px); }
.opening:has(> :only-child) { grid-template-columns: 1fr; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: #222b23; }
.tile img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tile:hover img { filter: brightness(1.08); }
.photos .tile { aspect-ratio: 1; }
.photos .opening .tile { height: clamp(400px, 65vh, 720px); aspect-ratio: auto; }
.drawings .grid, .drawings .opening { align-items: start; }
.drawings .tile img { height: auto; }
.status, .footer { color: var(--muted); }
.footer { padding: 30px 4px; justify-content: end; }
dialog { max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; border: 0; padding: 12px; background: #0b0e0cf5; color: var(--ink); }
dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; }
dialog::backdrop { background: #080a09; }
.viewer-bar h2, .viewer-bar p { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.stage { display: grid; place-items: center; }
.stage img { display: block; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
@media (max-width: 700px) {
  .opening { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photos .opening .tile { height: auto; aspect-ratio: 4 / 3; }
  .masthead nav { font-size: .86rem; }
}
