/* Hilary Pollock. Each page sets --bg, --ink, --soft, --accent, --wall and --display on <body> (from the room's
   front matter in content/galleries/, or the house stone-and-rust for the cover and profile). Built from the
   mockup AF approved on 6 Nov 2026 (tools/mockup.py, plan/mockup/). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; }

:root { --ui: "Jost", system-ui, sans-serif; --gutter: clamp(16px, 4vw, 48px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--ui);
  hyphens: none; text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2 { font-family: var(--display), Georgia, serif; font-weight: 400; margin: 0; text-wrap: balance; }
.small { font-size: .82rem; }
.nw { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------------------------------------------------------- cover */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: #75736f; color: #f6f1e7; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,18,16,.25) 0%, rgba(20,18,16,0) 18%, rgba(20,18,16,0) 45%, rgba(20,18,16,.55) 100%); }
.hero-nav { position: absolute; z-index: 1; top: 18px; right: var(--gutter); display: flex; gap: 22px; font-size: .95rem; letter-spacing: .04em; }
.hero-nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid rgba(246,241,231,.6); }
.hero-text { position: absolute; left: var(--gutter); max-width: calc(100% - 2 * var(--gutter)); bottom: clamp(150px, 25vh, 280px); z-index: 2; }
.hero-text::before {   /* the scrim (AF, 7 Nov 2026): the painting quietly darkened behind her name, fading out every way */
  content: ""; position: absolute; z-index: -1; inset: -45% -18% -60% -30%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(20,18,16,.62), rgba(20,18,16,.38) 45%, rgba(20,18,16,0));
}
.hero h1 {   /* heavier than the rest of the site so her name holds its own on the painting (AF, 7 Nov 2026) */
  font-family: "Fraunces", Georgia, serif; font-weight: 560; font-variation-settings: "SOFT" 60, "opsz" 144;
  font-size: clamp(3.2rem, 11vw, 9.5rem); line-height: .9; letter-spacing: -.025em;
  text-shadow: 0 1px 2px rgba(20,18,16,.45), 0 6px 40px rgba(20,18,16,.4);
}
/* her signature in place of the typeset name (AF, 8 Nov 2026): img/site/signature.svg is the black master
   (tools/signature.py); here web/signature.svg is a stencil filled with the text colour, so it shows white on the
   painting. Under it, her name set small in the old face (Hilary, 8 Nov 2026: the signature dominates, the name
   goes back in underneath); in the running head the signature stands alone, with the name kept for screen readers. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sig { display: block; aspect-ratio: 854 / 237; background: currentColor;
  -webkit-mask: url("/signature.svg") center / contain no-repeat; mask: url("/signature.svg") center / contain no-repeat; }
.hero-text { --sig-w: clamp(270px, 74vw, 860px); }
.hero h1 .sig { width: var(--sig-w); filter: none; }
.hero h1 { filter: drop-shadow(0 1px 1.5px rgba(20,18,16,.55)) drop-shadow(0 4px 22px rgba(20,18,16,.4)); }
/* Hilary, 9 Nov 2026: her name and AUSTRALIAN ARTIST in a sans serif, both starting under the o of "ollock"
   (the o's left edge is 28.7% across the signature: measured off img/site/signature-screencap.jpg) */
.hero-text { --under-o: calc(var(--sig-w) * .287); }
.hero h1 .name { display: block; margin: .9rem 0 0 var(--under-o); font: 500 calc(.9rem * 2.3)/1 var(--ui);   /* as wide as AUSTRALIAN ARTIST under it (AF, 8 Nov 2026) */
  letter-spacing: 0; text-shadow: none; }
.cover-mark .sig { height: calc(var(--strip-h) * .62); width: auto; }
.cover-mark { filter: drop-shadow(0 1px 1.5px rgba(20,18,16,.6)) drop-shadow(0 3px 14px rgba(20,18,16,.45)); }
.hero .tag { font-weight: 500; text-shadow: 0 1px 2px rgba(20,18,16,.5); }
.hero .tag { margin: .55rem 0 0 var(--under-o); font: 400 .9rem/1 var(--ui); letter-spacing: .32em; text-transform: uppercase; }
/* Enter the galleries: in the middle at the foot, over a big caret. The cover fills the window, so to show there is
   more below, the bottom of the screen "teases": with the pointer anywhere along the foot of the window (its bottom
   fifth, measured on the screen, so the lift can't pull the strip from under the pointer), the cover and the galleries
   under it lift together until "6 galleries" shows (body.tease, set by lightbox.js); the caret also bobs slowly (AF, 7 Nov 2026). */
/* the whole strip along the foot of the first screen is one link (AF: people read it as an invitation to click); it
   sits outside the picture, so the lift never moves it from under the pointer */
.peek {
  position: absolute; z-index: 3; left: 0; right: 0; top: calc(max(100svh, 520px) - clamp(120px, 20vh, 220px));
  height: clamp(120px, 20vh, 220px); display: flex; align-items: flex-end; justify-content: center;
  color: #f6f1e7; text-decoration: none; cursor: pointer;
}
.enter {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 24px clamp(18px, 3.5vh, 36px);
  font: 500 clamp(1rem, 1.3vw, 1.2rem)/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  text-shadow: 0 1px 3px rgba(20,18,16,.6);
}
.enter .caret { width: clamp(84px, 9vw, 150px); height: auto; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(20,18,16,.55)); animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.peek:hover .enter, .hero-nav a:hover { color: #fff; border-bottom-color: #fff; }
.peek:focus-visible { outline: none; }
.peek:focus-visible .enter { outline: 2px solid #fff; outline-offset: 4px; }
.cover .hero, .cover .rooms { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.cover.tease .hero, .cover.tease .rooms { transform: translateY(calc(-1 * clamp(110px, 17vh, 200px))); }   /* lightbox.js */
/* while it lifts, Enter the galleries holds still under the pointer (AF: the lift used to carry it away, "like whack a
   mole") and stops bobbing, nudged down */
.cover.tease .enter { color: #fff; }
.cover.tease .enter .caret { animation: none; transform: translateY(6px); transition: transform .3s ease; }

.rooms { padding: clamp(56px, 10vw, 120px) var(--gutter); }
.cover .rooms, .cover .about-strip, .cover .foot { background: var(--bg); }   /* dark (theme COVER in build.py): the doors' pale frames stand out */
.cover .more { color: var(--accent); }
.cover .door { box-shadow: 0 0 0 1px rgba(236,230,220,.14); }   /* a dark doorway (Umbria) keeps its edge on the dark */
.cover .door:hover, .cover .door:focus-visible { box-shadow: 0 0 0 1px rgba(236,230,220,.2), 0 18px 40px -22px rgba(0,0,0,.9); }

/* her name follows you down: once the big name has scrolled away, a running head slides in at the top, a strip of the
   same painting with her name on it, smaller, at the left (body.past-hero, set by lightbox.js; AF, 7 Nov 2026) */
.cover { --strip-h: clamp(64px, 9vh, 104px); }
.cover-bar {
  position: fixed; z-index: 6; top: 0; left: 0; right: 0; height: var(--strip-h); display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter); color: #f6f1e7;
  opacity: 0; transform: translateY(-100%); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1); pointer-events: none;
}
.cover-mark {
  font-family: "Fraunces", Georgia, serif; font-weight: 560; font-variation-settings: "SOFT" 60, "opsz" 72;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1; letter-spacing: -.015em; text-decoration: none;
  text-shadow: 0 1px 2px rgba(20,18,16,.5), 0 4px 22px rgba(20,18,16,.45);
  transform: translateY(14px) scale(1.25); transform-origin: left center; transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.cover-bar nav { display: flex; gap: 22px; font-size: .95rem; letter-spacing: .04em; }
.cover-bar nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid rgba(246,241,231,.6); text-shadow: 0 1px 3px rgba(20,18,16,.7); }
/* once you are in, Enter the galleries goes, and the galleries stop just under the running head */
.peek { transition: opacity .35s ease; }
.entered .peek { opacity: 0; pointer-events: none; }
#rooms { scroll-margin-top: var(--strip-h); }
.past-hero .cover-bar { opacity: 1; transform: none; pointer-events: auto; }
/* no double-up (AF, 7 Nov 2026): while the cover's foot is still on screen the running head is see-through, her name
   and the links floating on the painting itself; when the foot reaches the head's own depth, the head keeps that last
   band of the painting (body.parked; lightbox.js sizes and places it exactly as the cover shows it, and the band carries
   the cover's own darkening at its foot), so the cover seems to park its foot at the top of the screen */
.parked .cover-bar {
  background: linear-gradient(rgba(20,18,16,.45), rgba(20,18,16,.55)),
    var(--strip) var(--strip-pos, 30% 82%) / var(--strip-size, cover) no-repeat, #3a3631;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.8);
}
.past-hero .cover-mark { transform: none; }
.rooms h2 { font-family: "Fraunces", serif; font-weight: 300; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 2.4rem; }
/* the doorways about 30% smaller than at first (AF, 7 Nov 2026), still three across, so half the second row shows
   sooner: the grid of three is 840px wide at most, not 1200 */
.cover .rooms { padding-top: calc(var(--g) * 5); }
.cover .rooms h2 { margin-bottom: calc(var(--g) * 3); }
.doors { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: 1fr; max-width: 840px; }
@media (max-width: 559px) { .doors { max-width: 420px; } }
@media (min-width: 560px) { .doors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .doors { grid-template-columns: repeat(3, 1fr); } }
.door {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--door); color: var(--door-ink); padding: 16px 16px 14px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.door:hover, .door:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.6); }
.door-frame { aspect-ratio: 4 / 5; overflow: hidden; display: block; }
.door-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.door:hover .door-frame img { transform: scale(1.03); }
.door-name { font-family: var(--door-font), serif; font-size: 1.3rem; line-height: 1.15; margin-top: 14px; }
.door-place { font-size: .84rem; opacity: .75; margin-top: .3rem; min-height: 1.3em; }
.swatch { display: flex; margin-top: 14px; height: 6px; }
.swatch i { flex: 1; }

.about-strip { padding: 0 var(--gutter) clamp(56px, 8vw, 100px); max-width: 46rem; }
.about-strip p:first-child { font-family: "Fraunces", serif; font-weight: 300; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.4; }
.more { letter-spacing: .04em; }

/* ---------------------------------------------------------------- bar */
.bar {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--gutter); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); font-size: .95rem;
}
.bar nav { display: flex; gap: 22px; align-items: center; }
.mark, .nav-link { text-decoration: none; letter-spacing: .04em; }
.nav-link { padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-link:hover, .nav-link[aria-current] { border-bottom-color: var(--soft); }
.rooms-menu { position: relative; }
.rooms-menu summary { cursor: pointer; list-style: none; padding: 4px 0; border-bottom: 1px solid var(--soft); letter-spacing: .04em; }
.rooms-menu summary::-webkit-details-marker { display: none; }
/* on a touch screen (her iPad Mini) every link in the top bar is a finger-sized target, 44px tall */
@media (pointer: coarse) {   /* (an invisible tap area round each, so the links look the same) */
  .rooms-menu summary, .nav-link, .hero-nav a, .cover-bar nav a, .mark, .cover-mark { position: relative; }
  .rooms-menu summary::after, .nav-link::after, .hero-nav a::after, .cover-bar nav a::after, .mark::after, .cover-mark::after {
    content: ""; position: absolute; inset: -12px -8px;
  }
  .rooms-menu a { min-height: 44px; }
}
.rooms-menu ul {
  position: absolute; right: 0; top: calc(100% + 10px); margin: 0; padding: 10px 0; list-style: none; min-width: 250px;
  background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); box-shadow: 0 20px 40px -20px rgba(0,0,0,.45);
}
.rooms-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 18px; text-decoration: none; }
.rooms-menu a:hover, .rooms-menu a[aria-current] { background: var(--wall); }
.chip { width: 16px; height: 16px; border: 3px solid; flex: none; }

/* ---------------------------------------------------------------- rooms */
.room-head { padding: clamp(48px, 10vw, 120px) var(--gutter) clamp(24px, 4vw, 40px); max-width: 60rem; }
.room-label { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--soft); margin: 0 0 1rem; }
.room-head h1 { font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1; }
.room-head h1 + p { margin-top: 1.4rem; }
.room-head p { margin: .2rem 0; color: var(--soft); font-size: 1.05rem; }

.wall { padding: 0 var(--gutter); }
.work { margin: 0 auto; padding: clamp(40px, 9vh, 110px) 0; display: flex; flex-direction: column; align-items: center; }
.work .open { all: unset; cursor: zoom-in; display: block; max-width: 100%; }
.work .open:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
.work img { max-height: 84svh; width: auto; box-shadow: 0 30px 60px -36px rgba(0,0,0,.55); }
.work.photo img { max-height: 56svh; box-shadow: none; }
.work figcaption { margin-top: 1.4rem; text-align: center; display: flex; flex-direction: column; gap: .15rem; max-width: 36rem; }
.work figcaption:empty { display: none; }
.work figcaption b { font-family: var(--display), serif; font-weight: 400; font-size: 1.3rem; }
.work .det { color: var(--soft); font-size: .92rem; }

.next-room {
  display: block; margin-top: clamp(40px, 8vw, 100px); padding: clamp(56px, 10vw, 120px) var(--gutter);
  background: var(--next); color: var(--next-ink); text-decoration: none;
}
.next-label { display: block; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; opacity: .7; }
.next-name { display: block; font-family: var(--next-font), serif; font-size: clamp(2rem, 6vw, 4rem); line-height: 1.05; margin-top: .6rem; }
.next-room:hover .next-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* ---------------------------------------------------------------- profile */
.profile .room-head h1 { font-family: "Fraunces", serif; font-weight: 300; font-variation-settings: "SOFT" 100; }
.profile-text { padding: 0 var(--gutter); max-width: 42rem; }
.profile-text p { font-family: "Fraunces", serif; font-weight: 300; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; margin: 0 0 1.2rem; }
.profile-pics { display: grid; gap: clamp(20px, 4vw, 48px); padding: clamp(32px, 6vw, 72px) var(--gutter); align-items: end; }
@media (min-width: 800px) { .profile-pics { grid-template-columns: repeat(3, 1fr); } }
.profile-pics .work { padding: 0; }
.profile-pics .work img { max-height: 70svh; }

.foot { padding: 28px var(--gutter) 40px; color: var(--soft); font-size: .88rem; }
.foot p { margin: .2rem 0; }
.foot a { text-decoration: none; }

/* ---------------------------------------------------------------- per-room character */
.room-designed-from-life .room-head h1 { font-weight: 300; letter-spacing: -.01em; }
.room-designed-from-life .work figcaption b { font-family: "Jost", sans-serif; font-weight: 400; font-size: 1.15rem; letter-spacing: .02em; }

.room-bella-italia .room-head h1 { font-style: italic; font-weight: 300; }
.room-bella-italia .work figcaption b { font-style: italic; font-size: 1.45rem; }
.room-bella-italia .work img { box-shadow: 0 34px 70px -30px rgba(0,0,0,.8); }

.room-artist-in-umbria .room-head h1 { font-size: clamp(2.2rem, 6.4vw, 4.8rem); letter-spacing: .04em; }
.room-artist-in-umbria .work img { box-shadow: 0 34px 70px -30px rgba(0,0,0,.85); }
.room-artist-in-umbria .work figcaption b { letter-spacing: .06em; font-size: 1.1rem; }

.room-drawings .work img { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 60px -30px rgba(0,0,0,.9); }

.room-extras .work img { box-shadow: none; }

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: color-mix(in srgb, var(--bg) 96%, #000); color: var(--ink);
  display: none; grid-template-rows: 1fr auto auto; overscroll-behavior: contain;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: var(--bg); }
.lightbox img { justify-self: center; align-self: center; max-width: calc(100vw - 2 * var(--gutter)); max-height: calc(100svh - 130px);
  width: auto; height: auto; object-fit: contain; touch-action: pan-y pinch-zoom; user-select: none; margin-top: 16px; }
.lb-cap { text-align: center; margin: 10px var(--gutter) 0; font-family: var(--display), serif; font-size: 1.1rem; min-height: 1.4em; }
.lb-cap .det { font-family: var(--ui); font-size: .9rem; color: var(--soft); }
.lb-controls { display: flex; justify-content: center; align-items: center; gap: clamp(10px, 3vw, 28px); padding: 12px var(--gutter) 18px; }
.lb-controls button {
  font: 400 .92rem/1 var(--ui); color: var(--ink); background: none; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  padding: 10px 16px; cursor: pointer; min-width: 44px; min-height: 44px;
}
.lb-controls button:hover, .lb-controls button:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.lb-count { color: var(--soft); font-size: .85rem; min-width: 4em; text-align: center; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .bar nav { gap: 16px; }
  .work { padding: 36px 0; }
  .work img { max-height: none; }
  .lb-controls { gap: 8px; }
  .lb-controls button { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* ================================================================ looks
   A gallery with `look: <name>` in its front matter hangs every work on one wall, small enough to take in at once
   (sized by area: --s is the square root of the picture's width / height), with Stroll the gallery for one work at
   a time, large: sideways on a computer, downwards on a phone (body.strolling, toggled by lightbox.js). The
   .look-<name> rules below are that gallery's skin. Beijing (AF, 6 Nov 2026) is the first. */
.look { --unit: clamp(120px, min(27vh, 11.4vw), 320px); }   /* at 1920x1080 every Beijing work fits on one rail */
/* the grid (AF, 7 Nov 2026: "establish a grid and align everything with it"): one vertical unit --g sets every gap
   (label, title and intro 1g apart; Stroll the gallery 3g below; the wall 5g down, captions 1.5g under the works);
   across, everything lines up on the page margins (--gutter): the heading's left edge, the first work's left edge,
   the last work's right edge and anything hung at the top right (Bella Italia's window). */
:root { --g: clamp(8px, 1.2vh, 13px); }   /* on :root, so the cover shares it (the layout editor, tools/layout.py) */
.look .gallery-space { display: flex; flex-direction: column; min-height: calc(100svh - 52px); }
.look .gallery-space > .wall { flex: 1; align-content: center; }
.look .next-room { margin-top: 0; }
.look .room-head { position: relative; padding: calc(var(--g) * 4) var(--gutter) 0; max-width: none; }
.look .room-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.1; max-width: 40rem; }
.look .room-label { margin: 0 0 var(--g); }
.look .room-head h1 + p { margin-top: var(--g); }
.view-switch { margin: 1rem 0 0; }
.look .view-switch { margin: calc(var(--g) * 3) 0 0; }
.stroll-toggle, .stroll-nav button {
  font: 500 .95rem/1 var(--ui); letter-spacing: .06em; color: #fff; background: var(--accent); border: 0;
  padding: 12px 18px; min-height: 44px; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.15);
}
.stroll-toggle:hover, .stroll-nav button:hover { filter: brightness(1.08); }
/* the instruction beside Stroll the gallery (or under the intro): Tap on a touch screen, Click with a mouse */
.view-switch { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--g) * 1.5) calc(var(--g) * 2.5); }
.hint { font-size: .95rem; color: var(--soft); }
.by-touch { display: none; }
@media (pointer: coarse) { .by-touch { display: inline; } .by-mouse { display: none; } }
/* while strolling it stays, on a pale band with the button (AF: or people think the works are as big as they get) */
body.strolling .view-switch { background: color-mix(in srgb, var(--bg) 88%, transparent); padding: 6px 6px 6px 14px; flex-direction: row-reverse; box-shadow: 0 2px 10px -4px rgba(0,0,0,.25); }
body.strolling .hint { color: var(--ink); }
@media (max-width: 799px) {   /* iPad upright and phone: the band runs the width, button first */
  body.strolling .view-switch { flex-direction: row; padding: 6px 14px 6px 6px; }
  body.strolling.look-italia .room-head > .view-switch { grid-column: 1 / -1; }
}
.stroll-toggle:focus-visible, .stroll-nav button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* the wall: works hang from a rail, tops in line, bottoms where they fall */
.look .wall {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: calc(var(--g) * 4) clamp(18px, 2.4vw, 52px); padding: calc(var(--g) * 5) var(--gutter) calc(var(--g) * 5);
}
.look .work { padding: 0; width: calc(var(--unit) * var(--s)); margin: 0; align-items: stretch; }
.look .work .open { display: block; width: 100%; position: relative; }
.look .work img { width: 100%; max-height: none; height: auto; box-shadow: none; }
.look .work figcaption { margin-top: calc(var(--g) * 1.5); flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .1rem .5rem; text-align: center; }
.look .work figcaption b { font-size: 1rem; }
.look .work .det { flex-basis: 100%; font-size: .82rem; }
.hang { position: relative; }
.stroll-nav { display: none; }

/* strolling, computer: one work per screen, side by side; wheel, arrows, swipe or the buttons move along */
@media (min-width: 800px) {
  body.strolling .wall {
    flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 0; padding: 0;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    height: calc(100svh - 64px); scrollbar-width: thin;
  }
  body.strolling .work { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; justify-content: center; align-items: center; }
  body.strolling .work .hang, body.strolling .work .open { width: auto; }
  body.strolling .work img { width: auto; max-width: min(70vw, 1400px); max-height: calc(100svh - 64px - 190px); }
  body.strolling .work.photo img { max-height: calc(100svh - 64px - 260px); }
  body.strolling .work figcaption b { font-size: 1.25rem; }
  body.strolling .stroll-nav { display: flex; justify-content: space-between; position: fixed; left: 0; right: 0; top: 50%; padding: 0 var(--gutter); pointer-events: none; z-index: 4; }
  body.strolling .stroll-nav button { pointer-events: auto; }
  body.strolling .next-room, body.strolling .foot { display: none; }
  body.strolling .room-head { position: static; padding: 0; }
  body.strolling .room-head > :not(.view-switch) { display: none; }
  body.strolling .room-head > .view-switch { position: fixed; z-index: 6; right: var(--gutter); bottom: 22px; margin: 0; }
  body.strolling .gallery-space { min-height: 0; }
  body.strolling .gallery-space > .wall { flex: none; }
}
/* strolling, iPad upright and phone: the works one under the other, each 75% of the width and centred (AF, 7 Nov 2026:
   full width was too big; tapping a work gives it full size, unframed, in the lightbox) */
@media (max-width: 799px) {
  .look { --unit: clamp(96px, 30vw, 170px); }
  body.strolling .wall { display: block; padding: 8px var(--gutter) 30px; }
  body.strolling .work { width: 75%; margin: 0 auto 56px; }
  body.strolling .work .hang, body.strolling .work .open { width: 100%; }
  body.strolling .work img { width: 100%; max-width: 100%; }
  body.strolling .room-head > .view-switch { position: sticky; top: 64px; z-index: 4; margin: .6rem 0 0; }
}

/* ---------------------------------------------------------------- Beijing: a whitewashed 798 studio, May 2008
   Her own photos of the residency are the model (img/beijing/nsew.jpg, artist5.jpg): long sheets of cream paper
   clipped along the top and curling at the foot, on a smooth painted-render wall over a bare concrete floor with a
   dark grey-green skirting (textures from tools/beijing_textures.py). Behind them, the gallery's title painted large
   and faded like the slogans kept on 798's factory arches, each work's Chinese name printed down the wall beside it,
   and a round red seal before its English name like those she painted on her scrolls (north, south, east, west).
   Type (AF, 6 Nov 2026: "only fonts that China itself used"): the faces of Chinese computers in 2008. The Chinese is
   rendered from them at build time (zh_png in tools/build.py: the slogan in Microsoft YaHei Bold, the names and seals in
   KaiTi, falling back to SimHei / SimSun); the English is set in Microsoft YaHei where the visitor has it (every Windows since Vista), else the Mac's
   SinoType Heiti, else Noto Sans SC. China red is the Games' own red. */
.look-beijing {
  --bg: #f3f1eb; --china-red: #c8281e; --accent: #c4302a;
  --ui: "Microsoft YaHei", "微软雅黑", "Heiti SC", "STHeiti", "Noto Sans SC", sans-serif;
  --display: "Microsoft YaHei", "微软雅黑", "Heiti SC", "STHeiti", "Noto Sans SC", sans-serif;
  background: var(--bg) url("/beijing-wall.png") repeat;
}
.look-beijing .bar { background: color-mix(in srgb, #f3f1eb 90%, transparent); }
.look-beijing .gallery-space { position: relative; overflow: hidden; }
.look-beijing .gallery-space::after {   /* the skirting and the concrete floor */
  content: ""; display: block; height: clamp(44px, 8vh, 90px);
  background:
    linear-gradient(180deg, #4b5049 0, #4b5049 11px, rgba(0,0,0,.28) 11px, rgba(0,0,0,0) 22px),
    url("/beijing-floor.png") repeat;
}
body.strolling.look-beijing .gallery-space::after { display: none; }
.look-beijing .slogan {   /* painted on the wall, faded and worn */
  /* its own band at the top of the grid, right-aligned on the margin, so it never runs under the heading */
  position: relative; z-index: 0; display: block; margin: 0 0 calc(var(--g) * 3) auto;
  width: min(100%, 1500px); height: auto; opacity: .21; pointer-events: none;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .03' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.45'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .03' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.45'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.look-beijing .room-head { padding-top: calc(var(--g) * 2); }
.look-beijing .room-head > :not(.slogan) { position: relative; z-index: 1; }
.look-beijing .room-head h1 { font-weight: 700; color: #2b1d19; letter-spacing: -.01em; }
.look-beijing .room-label { letter-spacing: .3em; }
.look-beijing .wall { position: relative; z-index: 1; padding-inline: calc(var(--gutter) + var(--unit) * .05); }

/* a work on paper: AF's photo of a hanging sheet (img/site/paper_hang.jpg), cut by tools/paper_sheet.py into a
   9-slice that stretches to any size: two bulldog clips in the top corners and one in the middle (its own image, so it
   never stretches), the curled foot and its shadow on the wall. The sheet is a layer behind the work, pushed out past
   it so the paper's edge sits just outside the work's margin. Every length is in em, and the work's font-size sets
   1em = its width / 700, so the clips and the curl keep their size relative to the sheet. Slices, in the source's
   pixels: top 78, sides 260, bottom 280; the paper's edge is 29 in from the sides and 43 down from the top; the curl's
   lip is 145 into the bottom slice, and the curl starts to bend about 100 above its lip. The bottom padding (190em)
   leaves blank paper between the painting and the start of the curl (AF, 6 Nov 2026). */
.look-beijing .work.art .open {
  font-size: calc(var(--unit) * var(--s) / 700); isolation: isolate;
  padding: 40em 40em 190em;
}
.look-beijing .work.art .open::before {
  content: ""; position: absolute; z-index: -1; inset: -43em -29em -135em;
  border-style: solid; border-width: 78em 260em 280em;
  border-image: url("/paper-sheet.png") 78 260 280 fill / 78em 260em 280em stretch;
}
.look-beijing .work.art .open::after {   /* the middle clip */
  content: ""; position: absolute; top: -37em; left: 50%; width: 61em; height: 68em; transform: translateX(-50%);
  background: url("/paper-clip.png") center / 100% 100% no-repeat;
}
.look-beijing .work.art .open img { box-shadow: none; }
.look-beijing .work.art figcaption { margin-top: calc(var(--unit) * var(--s) * .14); }
.look-beijing .work.art:nth-child(odd) .open { transform: rotate(-.3deg); }
.look-beijing .work.art:nth-child(even) .open { transform: rotate(.25deg); }

/* a photograph: a print taped to the wall, a little askew */
.look-beijing .work.photo { width: calc(var(--unit) * var(--s) * .82); }
.look-beijing .work.photo .open { background: #fdfcf9; padding: 5%; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 10px 16px -12px rgba(0,0,0,.4); transform: rotate(-1.2deg); }
.look-beijing .work.photo:nth-child(even) .open { transform: rotate(1deg); }
.look-beijing .tape {
  position: absolute; z-index: 2; top: -8px; left: 50%; width: 34%; height: 18px; transform: translateX(-50%) rotate(-2deg);
  background: rgba(228,214,178,.75); box-shadow: 0 1px 1px rgba(0,0,0,.08);
}

/* each work's Chinese name, printed down the wall beside it (an image in SimSun: see zh_png) */
.look-beijing .work img.zh-float {
  position: absolute; z-index: -1; top: 4%; left: calc(100% + 6px);
  width: calc(var(--unit) * .2); height: auto; max-height: none; box-shadow: none; opacity: .3; pointer-events: none;
}
/* the seal before each name, like the round red seals on her scrolls */
.look-beijing .work img.seal { width: 1.6em; height: auto; max-height: none; box-shadow: none; flex: none; align-self: center; }
.look-beijing .work figcaption b { font-weight: 700; color: #2b1d19; font-size: .98rem; }
.lightbox .seal { display: none; }

body.strolling.look-beijing .work img.zh-float { width: clamp(2.2rem, 6.4vh, 4.6rem); left: calc(100% + 2vw); top: 3%; opacity: .32; }
body.strolling.look-beijing .work.photo { width: 100%; }
@media (min-width: 800px) {
  /* the sheet's scale follows the screen's height (at most the source at 85%, so it stays crisp); the painting gets
     what is left after the bar, the clips, the paper margins (40em above, 190em below), the curl and the caption */
  body.strolling.look-beijing .work.art .open { font-size: clamp(.4px, calc((100svh - 200px) / 900), .85px); }
  body.strolling.look-beijing .work.art .open img { max-height: calc(100svh - 215px - 307em); }
  body.strolling.look-beijing .work.art figcaption { margin-top: 1.4rem; }
  body.strolling.look-beijing .work.photo .open { padding: 22px; }
}
@media (max-width: 799px) {
  .look-beijing .work img.zh-float { display: none; }
  body.strolling.look-beijing .work img.zh-float { display: block; width: 2.4rem; left: calc(100% + 3vw); right: auto; opacity: .3; }
  body.strolling.look-beijing .work.photo { width: 75%; }   /* the prints too, like every work in the narrow Stroll */
}

/* ---------------------------------------------------------------- Bella Italia: a Tuscan farmhouse, Contignano, 2016
   AF (7 Nov 2026): we are living and painting in a Tuscan farmhouse (her Artist's Retreat, Contignano, 2016). So: an
   old limewashed wall (pittura a calce) over a cotto floor and cotto skirting, low sun through shutter slats, and
   AF's photo of a Tuscan window with green shutters, looking out on her own painted Tuscany (the view cropped from her
   second painting by tools/italia_horizon.py; the window and the wall's plaster from tools/italia_window.py), the gallery's name on a hand-painted maiolica panel like the street and farm signs of
   Tuscan villages, its Italian line painted faded across the plaster, every canvas in a walnut frame with a gold slip,
   and its number on a maiolica tile like a village house number. Textures: tools/italia_textures.py. Type: Bodoni
   (Parma, 1790s), Italy's own. Cobalt and ochre on tin-white are maiolica's colours and her own. */
.look-italia {
  --bg: #d4beb0; --ink: #2f2118; --soft: #6e5640; --accent: #26409a; --cobalt: #26409a;
  --ui: "Bodoni Moda", "Bodoni MT", Didot, serif; --display: "Bodoni Moda", "Bodoni MT", Didot, serif;
  /* the plaster tile (700px, the photo's scale beside the window) under big soft stains at a size it doesn't divide */
  background: url("/italia-wall-blotch.png") 0 0 / 1066px repeat, var(--bg) url("/italia-wall.png") 0 0 / 700px repeat;
  --unit: clamp(110px, min(24vh, 9.6vw), 300px);
}
.look-italia .bar { background: color-mix(in srgb, #d4beb0 90%, transparent); }
.look-italia .bar, .look-italia .rooms-menu summary, .look-italia .nav-link { font-family: "Bodoni Moda", serif; }
.look-italia .gallery-space { position: relative; overflow: hidden; }
.look-italia .gallery-space::after {   /* cotto skirting, then the cotto floor */
  content: ""; display: block; height: clamp(48px, 8.5vh, 96px);
  background:
    linear-gradient(180deg, #a85a3a 0, #9c5034 12px, #6f3824 13px, rgba(60,25,10,.35) 14px, rgba(0,0,0,0) 26px),
    url("/italia-floor.png") center top / cover no-repeat;
}
body.strolling.look-italia .gallery-space::after { display: none; }
.look-italia .gallery-space::before {   /* low sun through the slats of a shutter, falling across the wall */
  content: ""; position: absolute; z-index: 0; pointer-events: none; top: -10%; left: 8%; width: 46%; height: 120%;
  background: repeating-linear-gradient(180deg, rgba(255,240,200,.55) 0 26px, rgba(255,240,200,0) 26px 44px);
  transform: skewX(-24deg); filter: blur(9px); mix-blend-mode: soft-light; opacity: .45;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
body.strolling.look-italia .gallery-space::before { position: fixed; }

/* the Italian line, painted on the plaster long ago and faded */
.look-italia .sign {
  position: absolute; z-index: 0; left: var(--gutter); right: var(--gutter); top: calc(var(--g) * 2); margin: 0;
  font: 700 var(--sign)/1 "Bodoni Moda", serif; letter-spacing: .14em; text-transform: uppercase;
  text-align: right; color: #7a3a22; opacity: .3; pointer-events: none; white-space: nowrap; overflow: hidden;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .03' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.45'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .03' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.45'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.look-italia .room-head > :not(.sign):not(.view-switch), body.look-italia:not(.strolling) .room-head > .view-switch { position: relative; z-index: 1; }
/* the heading on the grid: the sign along the top, then the name panel and Stroll the gallery on the left margin, and
   the window on the right margin, its shutters running from the panel's top to the button's foot */
.look-italia { --sign: clamp(1rem, 2.5vw, 3.1rem); }
.look-italia .room-head {
  padding-top: calc(var(--g) * 2 + var(--sign) + var(--g) * 3); padding-bottom: calc(var(--g) * 3);   /* room for the sill */
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: calc(var(--g) * 3);
}
.look-italia .room-title { grid-column: 1; grid-row: 1; justify-self: start; }
.look-italia .room-head > .view-switch { grid-column: 1; grid-row: 2; }

/* the gallery's name on a maiolica panel set into the plaster: tin-white glaze, a cobalt band, an ochre line */
.look-italia .room-title {
  display: block; max-width: min(100%, 34rem); margin: 0;
  padding: calc(var(--g) * 2) calc(var(--g) * 3);
  background: radial-gradient(90% 70% at 28% 22%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%), #f3ecdb;
  border: 7px solid var(--cobalt); border-radius: 6px; outline: 2px solid #d6a034; outline-offset: -15px;
  color: var(--cobalt);
  box-shadow: 0 0 0 3px #efe6d2, 0 0 0 4px rgba(90,60,30,.35), 2px 4px 8px rgba(60,30,5,.35);
}
.look-italia .room-title .room-label { color: var(--cobalt); opacity: .9; letter-spacing: .3em; font-weight: 600; margin: var(--g) 0; }
.look-italia .room-title h1 { font: italic 700 clamp(2.2rem, 4.4vw, 3.9rem)/1 "Bodoni Moda", serif; letter-spacing: -.01em; color: var(--cobalt); }
.look-italia .room-title p:not(.room-label) { font-size: 1.05rem; font-weight: 500; letter-spacing: .02em; color: #8a5a1c; margin: var(--g) 0; }

/* the window: AF's photo of a Tuscan window (tools/italia_window.py), her painted Tuscany in its opening. The element
   is the shutters' box (x 387-2436, y 196-1270 of the 2804x1504 photo) and the photo hangs out past it on every side,
   so the shutters sit on the grid and the CSS mask fades only the wall round them, never their photographed edges. */
.look-italia .window {
  grid-column: 3; grid-row: 1 / 3; align-self: stretch; justify-self: end; position: relative; z-index: 0;
  aspect-ratio: 2049 / 1074; height: auto; pointer-events: none;
}
.look-italia .window img {
  position: absolute; display: block; max-width: none; width: 136.85%; height: auto; left: -18.89%; top: -18.25%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12.5%, #000 87.3%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 91.5%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 12.5%, #000 87.3%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 91.5%, transparent);
  mask-composite: intersect;
}
@media (max-width: 1099px) {   /* tablet and phone: the panel across, then the button with a small window beside it */
  .look-italia .room-head { grid-template-columns: 1fr auto; }
  .look-italia .room-title { grid-column: 1 / -1; }
  .look-italia .window { grid-column: 2; grid-row: 2; align-self: end; height: clamp(64px, 17vw, 150px); margin-top: calc(var(--g) * 3); }
}
@media (min-width: 600px) and (max-width: 1099px) {   /* her iPad Mini (upright or sideways): two equal columns, the
     name panel and the window beside it, centred on each other (AF, 7 Nov 2026) */
  .look-italia .room-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--g) * 4); }
  .look-italia .room-title { grid-column: 1; align-self: center; }
  .look-italia .window { grid-column: 2; grid-row: 1; align-self: center; justify-self: stretch; width: 100%; height: auto; margin-top: 0; }
  .look-italia .room-title { padding: calc(var(--g) * 1.5) calc(var(--g) * 2.5); }
  .look-italia .room-title h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
  /* Hilary's iPad Mini upright (744 x 1133; AF, 7 Nov 2026: design for it first): three paintings to a row, not five,
     and captions she can read without zooming */
  .look-italia { --unit: clamp(96px, 28vw, 240px); }
  .look-italia .work figcaption b { font-size: 1.15rem; }
  .look-italia .work figcaption .it { font-size: 1rem; }
  .look-italia .numtile { width: 2.4rem; height: 2.4rem; font-size: 1.2rem; }
}

.look-italia .stroll-toggle, .look-italia .stroll-nav button { font-family: "Bodoni Moda", serif; font-weight: 600; letter-spacing: .08em; background: var(--cobalt); color: #fbf6ea; }

/* a canvas in a walnut frame with a gold slip (italia-frame.png, a mitred 9-slice); 1em = the hang's unit / 1000 */
.look-italia .work.art .open {
  font-size: calc(var(--unit) / 1000); border: 44em solid transparent;
  border-image: url("/italia-frame.png") 40 / 44em stretch;
  box-shadow: 2px 3px 4px rgba(50,25,5,.35), 10px 22px 30px -16px rgba(50,25,5,.55);
}
.look-italia .work.art:nth-child(3n+1) .open { transform: rotate(-.35deg); }
.look-italia .work.art:nth-child(3n+2) .open { transform: rotate(.25deg); }
.look-italia .work .open img { box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }

/* captions: the number on a maiolica tile, the English title, the Italian under it */
.look-italia .work figcaption { align-items: center; column-gap: .55rem; }
.look-italia .numtile {
  flex: none; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem;
  background: url("/italia-tile.png") center / 100% 100%; box-shadow: 1px 2px 2px rgba(50,25,5,.3);
  font: italic 700 1.05rem/1 "Bodoni Moda", serif; color: var(--cobalt); padding-bottom: .05em;
}
.look-italia .work figcaption b { font: italic 600 1.05rem/1.1 "Bodoni Moda", serif; color: var(--ink); }
.look-italia .work figcaption .it { flex-basis: 100%; font: italic 400 .88rem/1.1 "Bodoni Moda", serif; color: var(--soft); }
.lightbox .numtile { display: none; }

@media (min-width: 800px) {
  body.strolling.look-italia .work.art .open { font-size: .7px; }
  body.strolling.look-italia .work.art .open img { max-height: calc(100svh - 64px - 230px); }
  body.strolling.look-italia .work figcaption b { font-size: 1.3rem; }
}
@media (max-width: 799px) {
  .look-italia .sign { white-space: normal; text-align: left; font-size: 1rem; line-height: 1.25; top: 6px; }
  .look-italia { --sign: 1rem; }
  .look-italia .room-head { padding-top: calc(var(--g) * 2 + 2.5rem + var(--g) * 2); }
  .look-italia .gallery-space::before { width: 90%; left: 0; }
}

/* ---------------------------------------------------------------- An Artist in Umbria: the stencilled studio
   AF (8 Nov 2026): every part of the gallery made from Hilary's own work, without distracting from it; "more
   sophisticated than just bits of the painting in the background ... the horses and the trees ... and the horizon
   lines which are often quite hidden in the art." Nothing here is a piece of a painting: each motif is traced from
   one and drawn back in a single colour (tools/umbria_motifs.py). The wall is her medallion stencil (the Pianist's
   dress) in a lighter blue on deep ultramarine, half-drop, under the fleck of her sponged ground, on the wall, in Stroll
   and behind the full-size view (AF, 8 Nov 2026: a run of different panels "distracts from the art"). Above it a real horizon (AF, 8 Nov
   2026: "a real horizon with the blue sky from above the village at the top of the page"): her sky behind the heading,
   then a painted strip of land with soft brushed edges (her hill lines filled with the speckled paint of the Pianist's
   hills, a slope in her field ochre, and her hill village and her striped field with its cypresses cut from the
   paintings), fading into the wall where the paintings hang; the horse
   drawn on the jar in Etruscan Dreaming is the gallery's mark, and the white figurine from
   Etruscan Still Life closes the wall like a printer's tailpiece. The frames are flat and painted in the cornflower
   blue of the easels and window frames she paints. Type: Cinzel (Roman inscriptional capitals), as the lettering
   scratched into her jars. */
.look-umbria {
  --bg: #1d2246; --ink: #ebe2cf; --soft: #b4a684; --accent: #545989; --ochre: #c9a35b; --corn: #7981a6;
  --ui: "Cinzel", Georgia, serif;
  background: var(--bg) url("/umbria-roundels.jpg") 0 0 / 230px repeat;   /* 460px tile at half size */
  --unit: clamp(120px, min(30vh, 11vw), 330px);
  --land: clamp(110px, 12.5vw, 240px);   /* the depth of the strip of land under the sky */
  --sky: #86a3de;                        /* her sky above the village (Renaissance Robe); the strip's top row */
  --sky-ink: #1e2558;                    /* type on the sky: her darkest ultramarine */
}
.look-umbria .bar { background: color-mix(in srgb, #2a2330 92%, transparent); }
.look-umbria .gallery-space { position: relative; }
.look-umbria .wall { position: relative; z-index: 1; }
/* the heading sits a layer above the wall: in Stroll its Back to the wall button is pinned over the works, and on the
   same layer the wall (later on the page) covered it and took its clicks (AF, 8 Nov 2026: "doesn't do anything") */
.look-umbria .room-head { position: relative; z-index: 2; }

/* the heading, on her sky: label, the name in incised capitals, the intro, all in her darkest ultramarine; her jar
   horse as the gallery's mark on the right margin */
body.look-umbria:not(.strolling) .room-head { background: var(--sky); }
.look-umbria .room-label { font: 600 .8rem/1 "Cinzel", serif; letter-spacing: .3em; color: #6e3417; }
.look-umbria .room-head h1 { font: 600 clamp(2rem, 4.2vw, 3.6rem)/1.05 "Cinzel", serif; letter-spacing: .06em; color: var(--sky-ink);
  text-shadow: 0 1px 0 rgba(255,255,255,.22); }
.look-umbria .room-head h1 + p { font: 500 1.05rem/1.3 "Cinzel", serif; letter-spacing: .08em; color: #2c3470; }
body.look-umbria:not(.strolling) .room-head .hint { color: var(--sky-ink); }
.look-umbria .room-head::after {
  content: ""; position: absolute; right: var(--gutter); top: calc(var(--g) * 4); bottom: calc(var(--g) * 1); aspect-ratio: 457 / 560;
  background: var(--sky-ink); opacity: .55; pointer-events: none;
  -webkit-mask: url("/umbria-jarhorse.svg") right top / contain no-repeat; mask: url("/umbria-jarhorse.svg") right top / contain no-repeat;
}
body.strolling.look-umbria .room-head::after { display: none; }
.look-umbria .stroll-toggle, .look-umbria .stroll-nav button { font-family: "Cinzel", serif; font-weight: 600; letter-spacing: .1em; background: #2b3474; color: #fff; }

/* the horizon: the strip of land straight under the sky (tools/umbria_motifs.py, umbria-land.jpg, 2400 x 300,
   repeating sideways), lifted a fifth of its depth into the heading's sky (its top rows are that same sky). The gold
   slope in front carries on below the strip in its own deepest gold and fades slowly into the wall, its last tinge
   1mm above the tops of the paintings, which hang 1cm below the strip (AF, 8 Nov 2026) */
.look-umbria { --lift: calc(var(--land) * .2); }
.look-umbria .wall { padding-top: calc(var(--land) - var(--lift) + 1cm); }
.look-umbria .wall::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: calc(var(--lift) * -1); pointer-events: none;
  height: calc(var(--land) + 1cm - 1mm);
  background: #746439 url("/umbria-land.jpg") calc(var(--land) * -1.5) 0 / auto var(--land) repeat-x;
  -webkit-mask: linear-gradient(#000 calc(var(--land) * .72), transparent); mask: linear-gradient(#000 calc(var(--land) * .72), transparent);
}
body.strolling.look-umbria .wall::before { display: none; }
/* the cut-outs from her paintings (the village, the farm rows and cypresses), each its own picture hung over the strip
   (AF, 9 Nov 2026), so the layout editor can move, size, skew and flip each one. Every number is in horizon steps,
   --hz, a thirtieth of the strip's depth, so they keep their place on the hills at every screen size: --x across from
   the page's left edge, --y down from the strip's top, --s the height, --k skew (degrees, leaning right), --t slope
   (degrees, the right side lower), --f -1 to flip. These defaults stand them where tools/umbria_motifs.py first put
   them, on the gold slope; the LAYOUT block at the foot overrides them. They fade into the wall with the strip. */
.look-umbria { --hz: calc(var(--land) / 30); }
.look-umbria .horizon {
  position: absolute; z-index: -1; left: 0; right: 0; top: calc(var(--lift) * -1); height: calc(var(--land) + 1cm - 1mm);
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 calc(var(--land) * .72), transparent); mask: linear-gradient(#000 calc(var(--land) * .72), transparent);
}
.look-umbria .horizon > img {
  --x: 0; --y: 0; --s: 10; --k: 0; --t: 0; --f: 1;
  position: absolute; left: calc(var(--hz) * var(--x)); top: calc(var(--hz) * var(--y)); height: calc(var(--hz) * var(--s));
  width: auto; max-width: none; transform-origin: 50% 100%;
  transform: skewX(calc(var(--k) * 1deg)) skewY(calc(var(--t) * 1deg)) scaleX(var(--f));
}
.look-umbria .horizon > .hz-village { --x: 5; --y: 12.2; --s: 13; }
.look-umbria .horizon > .hz-farm { --x: 86.5; --y: 11.7; --s: 16.5; }
.look-umbria .horizon > .hz-far-farm { --x: 154.4; --y: 14.7; --s: 12.5; --f: -1; }
body.strolling.look-umbria .horizon { display: none; }

/* frames: flat, painted in her cornflower blue, a dark keyline at the sight edge; the photo hangs as an unframed print */
.look-umbria .work.art .open {
  padding: calc(var(--unit) * .035); background: var(--corn);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 2px 3px rgba(0,0,0,.45), 0 22px 36px -18px rgba(0,0,0,.8);
}
.look-umbria .work.art .open img { box-shadow: 0 0 0 1px rgba(20,15,30,.55); }
.look-umbria .work.photo .open { padding: 6px 6px 18px; background: #f1ebde; box-shadow: 0 2px 6px rgba(0,0,0,.5); transform: rotate(-.6deg); }
.look-umbria .work figcaption b { font: 600 .95rem/1.15 "Cinzel", serif; letter-spacing: .08em; color: var(--ink); }

/* a faint swell under the mouse (AF, 8 Nov 2026), as if the picture leans out to meet you; only where there is a
   mouse, and not in Stroll, where each work already fills the screen */
@media (hover: hover) {
  .look-umbria .work .open { transition: transform .45s cubic-bezier(.2, .7, .3, 1), box-shadow .45s; }
  body.look-umbria:not(.strolling) .work.art .open:hover {
    transform: scale(1.035);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 4px 8px rgba(0,0,0,.45), 0 30px 46px -18px rgba(0,0,0,.85);
  }
  body.look-umbria:not(.strolling) .work.photo .open:hover { transform: rotate(-.6deg) scale(1.035); }
}
@media (prefers-reduced-motion: reduce) { .look-umbria .work .open { transition: none; } }
/* the full-size view hangs on the same roundels */
.look-umbria .lightbox { background: var(--bg) url("/umbria-roundels.jpg") 0 0 / 230px repeat; }

/* the tailpiece: her white figurine, small, centred under the wall */
.look-umbria .gallery-space::after {
  content: ""; display: block; position: relative; z-index: 1; width: 40px; aspect-ratio: 580 / 820; margin: 0 auto calc(var(--g) * 5);
  background: var(--ink); opacity: .7;
  -webkit-mask: url("/umbria-horse.svg") center / contain no-repeat; mask: url("/umbria-horse.svg") center / contain no-repeat;
}
body.strolling.look-umbria .gallery-space::after { display: none; }
@media (max-width: 1099px) {
  .look-umbria .room-head::after { top: calc(var(--g) * 4); bottom: auto; height: clamp(84px, 15vw, 140px); }
  .look-umbria .room-title { padding-right: clamp(80px, 16vw, 150px); }
  .look-umbria { --land: 160px; }   /* her iPad: a deeper strip */
}
@media (min-width: 600px) and (max-width: 1099px) {   /* her iPad Mini upright: three paintings to a row */
  .look-umbria { --unit: clamp(96px, 23vw, 220px); }
  .look-umbria .work figcaption b { font-size: 1.05rem; }
}
@media (min-width: 800px) {
  body.strolling.look-umbria .work.art .open { padding: 12px; }
  body.strolling.look-umbria .work figcaption b { font-size: 1.25rem; }
}

/* ===== HER HAND (AF, 9 Nov 2026): everything below title level is set in Hilary's own handwriting, the two cuts
   tools/handwriting.py builds from the sheets she filled in. In type still: the title level only (each gallery's h1
   title, Bella Italia's painted Italian sign, Beijing's slogan, the cover's signature, name and AUSTRALIAN ARTIST, the
   doorway names and the big name under Next gallery). Bold (her line drawn heavier): the gallery's top lines (number
   and the lines under its title), work titles, buttons, 6 galleries and the running head's name; everything else
   (instructions such as Tap any image..., details, menus, running text) is regular. Her hand has no italic and is
   never tracked or set in capitals, so the looks' slopes, tracking and capitals are switched off here. The looks keep
   their colours and dressing (seals, number tiles, the maiolica sign, button fills). ===== */
@font-face { font-family: "Hilary Hand"; src: url("/hilary-hand.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hilary Hand"; src: url("/hilary-hand-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --hand: "Hilary Hand", "Jost", system-ui, sans-serif; }   /* Jost only for a sign she didn't write ($) */
body, body :where(:not(h1, .sign, .hero-text, .hero-text *, .door-name, .next-name)) {
  font-family: var(--hand) !important; font-weight: 400 !important; font-style: normal !important;
  font-synthesis: none; letter-spacing: normal !important; text-transform: none !important;
  font-variation-settings: normal !important;
}
.room-label, .room-title p, .work figcaption b, .lb-cap b, .rooms h2, body button, .bar .mark { font-weight: 700 !important; }
.room-label { font-size: 1.05rem !important; }
.room-title p:not(.room-label) { font-size: 1.1rem; }
.door-place { font-size: 1rem; }
.look .work .det { font-size: .95rem; }
.lb-cap .det { font-size: 1rem; display: block; }   /* the details on their own line under the title */

/* ===== LAYOUT: generated by tools/layout.py from content/layout.json. Do not edit by hand: change it in the layout
   editor (EDIT.bat), press Download changes, then double-click APPLY-LAYOUT.bat. Every length is a number of
   grid units (--g); Stroll the gallery keeps its own layout. ===== */
@media (min-width: 1100px) {
  body.room-artist-in-umbria:not(.strolling) .wall > .horizon > .hz-village { --x: 12; --y: 13; }
  body.room-artist-in-umbria:not(.strolling) .wall > .horizon > .hz-farm { --x: 88; --y: 8; }
  body.room-artist-in-umbria:not(.strolling) .wall > .horizon > .hz-far-farm { --x: 173; --y: 12; }
}
@media (min-width: 800px) and (max-width: 1099px) {
  body.room-artist-in-umbria:not(.strolling) .wall > .horizon > .hz-village { --x: 25; --y: 13; }
  body.room-artist-in-umbria:not(.strolling) .wall > .horizon > .hz-farm { --x: 88; --y: 9; }
  body.room-artist-in-umbria:not(.strolling) .wall > .horizon > .hz-far-farm { --x: 129; --y: 11; }
}
@media (max-width: 799px) {
  body.room-artist-in-umbria:not(.strolling) .wall > .horizon > .hz-village { --x: 16; --y: 13; }
  body.room-artist-in-umbria:not(.strolling) .wall > .horizon > .hz-farm { --x: 91; --y: 9; }
}
/* ===== /LAYOUT ===== */
