:root {
  --paper: #f3f0e9;
  --ink: #1d1c19;
  --muted: #6f6a61;
  --accent: #9a493a;
  --line: rgba(29, 28, 25, .18);
  --pad: clamp(1.25rem, 3.75vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font: 400 16px/1.65 Arial, Helvetica, sans-serif; }
main, .site-header, footer { width: 100%; margin: 0; }
main, footer { background: var(--paper); }
.site-paused { min-height: 100vh; }
.paused-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; text-align: center; }
.paused-page p { max-width: 22ch; margin: 0; font: 400 clamp(2.4rem, 7vw, 6rem)/1.08 Georgia, serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.hero > *, .section > *, .section-heading > *, .exhibition-copy > *, .people-grid > *, .visit-grid > * { min-width: 0; }
p, h1, h2, h3, a { overflow-wrap: anywhere; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem var(--pad); background: rgba(243, 240, 233, .96); border: 1px solid var(--line); border-top: 0; backdrop-filter: blur(14px); }
.brand { font: 500 1.35rem/1 Georgia, serif; letter-spacing: .035em; }
.site-header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem 1rem; border: 0; border-bottom: 1px solid var(--line); }
.header-actions { justify-self: end; min-width: 0; }
.temporary-message { grid-column: 1 / -1; justify-self: stretch; margin: -1.25rem calc(-1 * var(--pad)) 0; padding: .7rem var(--pad); background: var(--accent); color: #fff; text-align: center; font-size: .95rem; font-weight: 600; line-height: 1.4; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.header-actions { display:flex; align-items:center; gap:clamp(1rem,3vw,2.5rem); }
.language-switch { position: relative; display:flex; padding-left:1rem; }
.language-switch::before { position:absolute; top:50%; left:0; width:1px; height:1.45rem; background:linear-gradient(to bottom, transparent, rgba(29,28,25,.35), transparent); content:""; transform:translateY(-50%); }
.language-switch a { border:0; padding:.4rem .45rem; background:transparent; color:var(--muted); font-size:.75rem; cursor:pointer; }
.language-switch a.active { color:var(--ink); text-decoration:underline; text-underline-offset:.25rem; }
nav a { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
nav a:hover, .text-link:hover { color: var(--accent); }
.menu-toggle { display: none; border: 0; background: transparent; text-transform: uppercase; letter-spacing: .1em; }
.hero { min-height: calc(100vh - 70px); display: grid; grid-template-columns: .9fr 1.1fr; border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(5rem, 8vw, 9rem) var(--pad); }
.eyebrow { margin: 0 0 1.1rem; color: var(--accent); font-family: Arial, Helvetica, sans-serif; font-weight: 400; line-height: 1.5; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; line-height: .98; letter-spacing: -.025em; }
h1 { max-width: 8ch; margin: 0 0 2rem; font-size: clamp(4rem, 9vw, 8.2rem); }
h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 6rem); }
h3 { margin: 0 0 .7rem; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.lede { max-width: 35rem; margin: 0 0 2rem; font: 1.15rem/1.7 Georgia, serif; }
.gallery-about { margin: 0 0 2rem; }
.gallery-about summary { width: fit-content; cursor: pointer; font-size: .85rem; }
.gallery-about summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.gallery-about .lede { margin: .8rem 0 0; }
.text-link { width: fit-content; padding-bottom: .25rem; border-bottom: 1px solid currentColor; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; transition: color .2s; }
.hero-visual { position: relative; min-height: 600px; margin: 0; overflow: hidden; }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section { padding: clamp(3rem, 7vw, 6rem) var(--pad); border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; align-items: start; gap: 2rem; }
.section-heading .eyebrow { padding-top: .6rem; }
.people .section-heading, .visit .section-heading { grid-template-columns: 1fr; }
[hidden] { display: none !important; }
.dates { grid-column: 2; color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.exhibition-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 6vw; margin: 3rem 0; }
.exhibition-copy > p:first-child { margin: 0; font: clamp(1.4rem, 2.4vw, 2.2rem)/1.45 Georgia, serif; }
.detail { max-width: 27rem; margin: .4rem 0 0; color: var(--muted); }
.art-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.7rem, 1.4vw, 1.4rem); }
.art-card { margin: 0; }
.art-card:nth-child(3n+1) { grid-column: span 7; }
.art-card:nth-child(3n+2) { grid-column: span 5; padding-top: 12%; }
.art-card:nth-child(3n+3) { grid-column: 3 / span 8; }
.art-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ddd7cd; }
.art-card figcaption { margin-top: .65rem; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.art-grid > .art-card:only-child { grid-column: 1 / -1; }
.section-heading:not(:has(> :not([hidden]))) { display: none; }
.people:has(.section-heading > [hidden]) .people-grid { margin: 0; }
.exhibition-copy:has(> .detail[hidden]) > p:first-child { grid-column: 1 / -1; }
.people-grid > div:has(> p[hidden]), .visit-grid > div:has(> p[data-field][hidden]) { display: none; }
.exhibition-copy:not(:has(> :not([hidden]))), .art-grid:empty { display: none; }
.people { background: #272521; color: var(--paper); }
.people .eyebrow { color: #c98779; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 3rem; margin: 3rem 0 0 33.333%; }
.people-grid p { margin: 0; font: clamp(1.5rem, 3vw, 2.4rem)/1.35 Georgia, serif; }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 3rem; margin: 3rem 0 0; }
.visit-grid > div:has(#email-link[hidden]):has(#phone-link[hidden]) { display: none; }
.visit-grid p { margin: 0; font: 1.12rem/1.7 Georgia, serif; }
.additional { max-width: 44rem; margin: 0; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); }
.additional:not([hidden]) { margin-top: 2rem; }
footer { display: flex; justify-content: space-between; padding: 2rem var(--pad); border: 1px solid var(--line); border-top: 0; font-size: .78rem; }
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .site-header { gap: .75rem; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .brand { min-width: 0; font-size: 1.1rem; }
  .menu-toggle { display: block; padding:.4rem 0; color:var(--ink); font-size:.75rem; cursor:pointer; }
  nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; padding: 1.5rem var(--pad); background: var(--paper); border-bottom: 1px solid var(--line); }
  .header-actions { flex-shrink:0; gap:.85rem; margin-left:auto; }
  nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { min-height: 0; padding: 3rem var(--pad); }
  .hero-visual { min-height: 0; }
  .hero-visual img { position: static; height: auto; }
  .section-heading, .exhibition-copy { grid-template-columns: 1fr; }
  .dates { grid-column: 1; }
  .people-grid { grid-template-columns: 1fr; margin-left: 0; }
  .visit-grid { grid-template-columns: 1fr; }
  .art-card:nth-child(n) { grid-column: 1 / -1; padding-top: 0; }
  h1 { font-size: clamp(3rem, 16vw, 4.25rem); }
  h2 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  footer { gap: 1rem; }
}

@media (max-width: 390px) {
  .header-actions { gap:.65rem; }
  .language-switch { padding-left:.65rem; }
  .hero-copy { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Palette inspired by the historic shop sign; original typography retained. */
:root { --paper: #f3f0e9; --ink: #293034; --muted: #566872; --accent: #955b60; --line: rgba(85, 105, 113, .3); --slate: #596d76; }
.site-header { background: rgba(243, 240, 233, .97); border-color: var(--line); }
.brand { color: var(--accent); }
h1, #exposition h2 { color: #1d1c19; }
h3 { color: var(--slate); }
.temporary-message { background: var(--accent); color: #fffaf0; }
.people { background: var(--slate); color: var(--paper); }
.people h3, .people .eyebrow { color: var(--paper); }
.language-switch a.active { color: var(--accent); }
.text-link { color: var(--accent); }
.art-card img { background: #d9dedb; }
footer { color: var(--slate); border-color: var(--line); }

.brand { display: block; width: 80px; flex-shrink: 0; }
.brand img { width: 100%; height: auto; }
.hero, .section { scroll-margin-top: 9rem; }
.brand:focus-visible, .visit-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.visit-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 20vw, 260px); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.visit-content { min-width: 0; }
.visit-logo { display: block; width: 100%; max-width: 260px; justify-self: end; }
.visit-logo img { width: 100%; height: auto; }
.exhibition .section-heading { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
.exhibition .section-heading .eyebrow { margin: 0; padding: 0; }
.exhibition .dates { grid-column: 1; margin: .35rem 0 0; }
.exhibition-copy { gap: 1.5rem 4vw; margin: 2.25rem 0; }
.visit .section-heading .eyebrow { margin: 0; }
.visit-grid { gap: 2rem; margin-top: 2rem; }
.people-grid { gap: 2rem; }
@media (max-width: 760px) {
  .brand { width: 64px; max-width: none; }
  .visit-layout { grid-template-columns: 1fr; }
  .visit-logo { width: 180px; justify-self: center; }
}
