/* Daylight: a quiet gallery wall. One window's light falls across it, placed by the visitor's own clock;
   after hours the wall goes dark and the light turns to moonlight. Nothing else moves. */

:root {
  --wall: #e3ddd1; --ink: #1d1b18; --muted: #69635a; --rule: rgba(29, 27, 24, .18);
  --sun: #fff6e6; --sun-op: .8; --blur: 9px;
  --bx: 50%; --by: 50%; --skew: 0deg; --sx: 1; --sy: 1;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  color-scheme: light;
}
:root[data-phase="night"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--wall); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  transition: background-color 1.4s ease, color 1.4s ease;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule); transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: 12px; transform: translateY(-300%); background: var(--ink); color: var(--wall); padding: 8px 12px; z-index: 9; }
.skip:focus { transform: none; }

/* ---------- the light ---------- */
.daylight { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.beam {
  position: absolute; left: var(--bx); top: var(--by);
  width: clamp(280px, 52vw, 780px); height: clamp(340px, 72vh, 660px);
  transform: translate(-50%, -50%) skewX(var(--skew)) scale(var(--sx), var(--sy));
  transition: left 40s linear, top 40s linear, transform 40s linear;
}
.window { width: 100%; height: 100%; display: grid; grid-template: repeat(3, 1fr) / repeat(2, 1fr); gap: 4.2% 5.5%; filter: blur(var(--blur)); opacity: var(--sun-op); transition: opacity 2s ease, filter 2s ease; }
.window i { background: var(--sun); transition: background-color 2s ease; }
:root.scrub .beam { transition: left .35s ease-out, top .35s ease-out, transform .35s ease-out; }
:root.scrub .window, :root.scrub .window i, :root.scrub body { transition-duration: .35s; }
.top, main, .foot { position: relative; z-index: 1; }

/* ---------- frame of every room ---------- */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 28px var(--gutter) 0; }
.house { font: 400 24px/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.top nav { display: flex; gap: 6px 28px; flex-wrap: wrap; font-size: 15px; }
.top nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.top nav a span { display: inline-block; min-width: 1.1em; margin-right: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.top nav a:hover, .top nav a[aria-current="page"] { border-bottom-color: currentColor; }
main { flex: 1; padding: clamp(56px, 12vh, 140px) var(--gutter) 40px; }
.kicker { margin: 0 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.out { margin-left: 3px; font-size: .85em; }
.onward { margin: clamp(56px, 10vh, 110px) 0 0; font: 400 20px/1.4 var(--serif); }
.onward a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.onward a:hover { border-bottom-color: currentColor; }

/* ---------- entrance ---------- */
.entrance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 6vw, 110px); align-content: center; }
.entrance .kicker, .wall-title { grid-column: 1 / -1; }
.wall-title { margin: 0 0 clamp(36px, 7vh, 72px) -.04em; font: 300 clamp(76px, 14vw, 216px)/.86 var(--serif); letter-spacing: -.035em; font-variation-settings: "opsz" 72; }
.wall-text p { margin: 0 0 18px; font: 400 clamp(19px, 1.65vw, 23px)/1.5 var(--serif); max-width: 34ch; }
.wall-text .aside { font-style: italic; color: var(--muted); }
.directory { align-self: end; border-top: 1px solid var(--rule); }
.directory a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.directory .no { grid-row: span 2; font-size: 13px; color: var(--muted); padding-top: 7px; }
.directory .what { font: 400 26px/1.15 var(--serif); }
.directory .what::after { content: " \2192"; display: inline-block; margin-left: 4px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.directory a:hover .what::after, .directory a:focus-visible .what::after { opacity: 1; transform: none; }
.directory .note { font-size: 15px; color: var(--muted); }

/* ---------- rooms ---------- */
.room-head { max-width: 980px; margin-bottom: clamp(48px, 9vh, 96px); }
.room-head h1 { margin: 0; font: 300 clamp(56px, 8vw, 112px)/.95 var(--serif); letter-spacing: -.03em; }
.room-note { margin: 22px 0 0; max-width: 46ch; font: 400 19px/1.5 var(--serif); color: var(--muted); }

.checklist { margin-left: clamp(0px, 24vw, 380px); max-width: 720px; }
.label { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 20px; padding: 34px 0 40px; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.cat { margin: 7px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.label h2 { margin: 0; font: 400 32px/1.15 var(--serif); letter-spacing: -.01em; }
.label cite { font-style: italic; }
.medium, .credit { margin: 4px 0 0; font-size: 15px; }
.credit { color: var(--muted); }
.line { margin: 20px 0 0; font: 400 20px/1.45 var(--serif); }
.interp p { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.extra { margin: 14px 0 0; display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.view { margin: 22px 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-weight: 500; }

.statement { max-width: 640px; margin-left: clamp(0px, 12vw, 200px); }
.statement p { margin: 0 0 22px; font: 400 clamp(19px, 1.6vw, 22px)/1.55 var(--serif); }
.statement .lead { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.3; letter-spacing: -.01em; }
.materials { max-width: 640px; margin: clamp(48px, 9vh, 90px) 0 0 clamp(0px, 12vw, 200px); }
.materials h2, .card dt { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.materials dl { margin: 0; border-top: 1px solid var(--rule); }
.materials dl > div { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.materials dt { color: var(--muted); font-size: 15px; }
.materials dd { margin: 0; }

.desk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px clamp(40px, 7vw, 120px); align-items: start; }
.enquiries .room-note { margin-top: 0; }
.mail { margin: 18px 0 20px; font: 300 clamp(34px, 4.6vw, 66px)/1.05 var(--serif); letter-spacing: -.02em; overflow-wrap: anywhere; }
.mail a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.mail a:hover { border-bottom-color: currentColor; }
.copy { font: 500 14px/1 var(--sans); padding: 11px 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.copy:hover { background: var(--ink); color: var(--wall); }
.copied { margin-left: 12px; font-size: 14px; color: var(--muted); }
.card { margin: 6px 0 0; }
.card > div { padding: 16px 0 18px; border-top: 1px solid var(--rule); }
.card dt { margin-bottom: 8px; }
.card dd { margin: 0; }
.elsewhere { list-style: none; margin: 0; padding: 0; }
.elsewhere li { display: flex; gap: 12px; padding: 3px 0; }
.where { min-width: 74px; color: var(--muted); }

/* ---------- foot: the hour ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding: 22px var(--gutter) 28px; border-top: 1px solid var(--rule); font-size: 14px; }
.hour { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--muted); }
.hour output { color: var(--ink); font-variant-numeric: tabular-nums; margin-left: 4px; }
.hour-name { margin-left: 8px; font-style: italic; font-family: var(--serif); font-size: 16px; }
.hour input { width: min(260px, 60vw); accent-color: var(--ink); }
.now { font: 500 13px/1 var(--sans); padding: 7px 10px; border: 1px solid var(--rule); background: none; color: var(--ink); cursor: pointer; }
.now:hover { border-color: var(--ink); }
.exit { text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .entrance { grid-template-columns: 1fr; }
  .directory { margin-top: 36px; }
  .checklist, .statement, .materials { margin-left: 0; }
  .desk { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top nav { gap: 4px 18px; font-size: 14px; }
  .label { grid-template-columns: 1fr; }
  .cat { margin: 0 0 8px; }
  .label h2 { font-size: 28px; }
  .materials dl > div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .beam, .window, .window i, body { transition: none !important; }
  .directory .what::after { transition: none; }
}
