/* Retrospect — 8 Duke Street, Kingston. Museum of the built and made.
 *
 * Palette: lime wash (#dfe5e2), iron-gall ink (#121817), verdigris (#0f6157).
 * The reason: this museum is free and its subject is fabric — coral stone,
 * lime mortar, cast iron, hollow block. A free civic museum that dresses
 * itself in warm colour reads as a gift shop, and the audience here is a
 * school group, a householder with a hinge, and a researcher who wants a plan
 * chest opened. So the site is the colour of the building's own walls and
 * hardware: a cold lime-wash ground, ink dark enough to read a register in,
 * and one accent — the green of oxidised copper — reserved for the single
 * thing every visitor is trying to find out, whether an object is out on the
 * floor or upstairs in the store. Nothing else is coloured.
 *
 * Type: Space Grotesk for the register and every label, because a register is
 * set in a neutral grotesque and read in columns; Crimson Pro for the
 * museum's own prose, because the object notes are written, not listed; Space
 * Mono for accession numbers, which must line up or they are not numbers.
 */

:root {
  --gutter: clamp(1.25rem, 5.5vw, 6rem);
  --max: 78rem;
  --shell: min(100% - 2 * var(--gutter), var(--max));

  --wash: #dfe5e2;
  --sheet: #f3f6f4;
  --sheet-2: #e9eeeb;
  --ink: #121817;
  --ink-2: #4b5755;
  --ink-3: #75807d;
  --rule: #c2ccc8;
  --rule-2: #d5ddd9;
  --verd: #0f6157;
  --verd-2: #0a473f;
  --verd-tint: #cfe1dd;
  --slate: #16201e;
  --slate-2: #24312e;

  --sans: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Crimson Pro', Iowan Old Style, Georgia, serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --step: clamp(3rem, 1.8rem + 4.4vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + 0.22vw, 1.1875rem);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 1.5rem + 3.1vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }

p { margin: 0 0 0.9em; }
p:last-child { margin-bottom: 0; }

a { color: var(--verd); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--verd-2); }

/* width/height attributes are presentational hints that set a used height, so
 * an image with them ignores its aspect-ratio. Every photograph here is
 * cropped by aspect-ratio, so height is returned to auto. */
img { max-width: 100%; height: auto; display: block; }

em { font-style: italic; }

::selection { background: var(--verd-tint); }

:focus-visible {
  outline: 2px solid var(--verd);
  outline-offset: 3px;
  border-radius: 2px;
}

.rt-shell { width: var(--shell); margin-inline: auto; }

.rt-skip {
  position: absolute; left: -9999px; top: 0; z-index: 90;
  background: var(--ink); color: var(--wash); padding: 0.7rem 1.1rem;
  font-family: var(--sans); font-size: 0.9rem; text-decoration: none;
}
.rt-skip:focus { left: 0; }

/* ─────────────────────────────────────────────────────────── masthead ── */

.rt-top {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--wash) 88%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.rt-top__in {
  width: var(--shell); margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  column-gap: clamp(1rem, 2.4vw, 2.2rem);
  min-height: 4.5rem;
  padding-block: 0.6rem;
}

.rt-mark {
  display: grid; gap: 0.12rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--sans);
}
.rt-mark__name {
  font-size: 1.32rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
}
.rt-mark__sub {
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); line-height: 1;
}

.rt-nav { display: flex; gap: clamp(0.9rem, 1.7vw, 1.7rem); font-family: var(--sans); }
.rt-nav a {
  color: var(--ink-2); text-decoration: none; font-size: 0.875rem;
  padding-block: 0.4rem; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.rt-nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.rt-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--verd); }

.rt-state {
  margin: 0; display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--sans); font-size: 0.78rem; color: var(--ink-2);
  white-space: nowrap;
}
.rt-state i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--verd); flex: none;
}
.rt-state[data-state="shut"] i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.rt-state[data-state="soon"] i { background: var(--ink-3); }
.rt-state strong { font-weight: 500; color: var(--ink); }

.rt-burger { display: none; }

/* ───────────────────────────────────────────────────────────── buttons ── */

.rt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 500;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: 0.78rem 1.15rem;
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 1px;
  transition: background .14s, color .14s, border-color .14s;
}
.rt-btn:hover { background: var(--ink); color: var(--wash); }

.rt-btn--solid { background: var(--verd); border-color: var(--verd); color: #fff; }
.rt-btn--solid:hover { background: var(--verd-2); border-color: var(--verd-2); color: #fff; }

.rt-btn--ghost { border-color: var(--rule); color: var(--ink-2); }
.rt-btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.rt-btn--light { border-color: rgba(255,255,255,.4); color: #fff; }
.rt-btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.rt-btn--sm { padding: 0.5rem 0.78rem; font-size: 0.78rem; }

.rt-btn[disabled], .rt-btn[aria-busy="true"] { opacity: .55; cursor: default; }

.rt-link {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 500;
  color: var(--verd); text-decoration: none;
  border-bottom: 1px solid var(--verd-tint); padding-bottom: 1px;
}
.rt-link:hover { border-bottom-color: var(--verd); }

.rt-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

/* ───────────────────────────────────────────────────── section anatomy ── */

.rt-band { padding-block: var(--step); }
.rt-band--sheet { background: var(--sheet); border-block: 1px solid var(--rule-2); }
.rt-band--dark { background: var(--slate); color: #dbe3e0; }
.rt-band--dark h2, .rt-band--dark h3 { color: #fff; }
.rt-band--dark a:not(.rt-btn) { color: #8fd0c4; }
.rt-band--tight { padding-block: clamp(1.8rem, 1rem + 2.6vw, 3rem); }

.rt-eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--verd); margin: 0 0 0.75rem;
}
.rt-band--dark .rt-eyebrow { color: #7fc7ba; }

.rt-head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 3.2rem); align-items: end;
  margin-bottom: clamp(1.5rem, 1rem + 1.8vw, 2.6rem);
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule);
}
.rt-head > p { color: var(--ink-2); font-size: 1.02em; }
.rt-band--dark .rt-head { border-bottom-color: var(--slate-2); }
.rt-band--dark .rt-head > p { color: #aebcb8; }

.rt-lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.5; color: var(--ink-2); }

/* ──────────────────────────────────────────────────────────────── hero ── */

.rt-hero {
  width: var(--shell); margin-inline: auto;
  padding-top: clamp(2rem, 1.2rem + 3vw, 4.2rem);
  padding-bottom: clamp(1.6rem, 1rem + 2vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 3.4vw, 4rem); align-items: center;
}
.rt-hero h1 { margin-bottom: 1.1rem; }
.rt-hero h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.rt-hero__fig { margin: 0; }
.rt-hero__fig img {
  width: 100%; aspect-ratio: 4 / 5; max-height: min(34rem, 64svh); object-fit: cover;
  filter: saturate(.72) contrast(1.03);
  border: 1px solid var(--rule);
}
.rt-hero__cap {
  font-family: var(--mono); font-size: 0.68rem; color: var(--ink-3);
  margin-top: 0.55rem; line-height: 1.45;
}

.rt-tally {
  width: var(--shell); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.rt-tally > div { padding: 1rem 1.1rem 1.05rem 0; border-right: 1px solid var(--rule-2); }
.rt-tally > div:last-child { border-right: 0; }
.rt-tally > div:not(:first-child) { padding-left: 1.1rem; }
.rt-tally dt {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.3rem;
}
.rt-tally dd {
  margin: 0; font-family: var(--sans); font-weight: 500;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); letter-spacing: -0.03em;
  line-height: 1;
}
.rt-tally dd small {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 0.82rem; color: var(--ink-2); letter-spacing: 0; margin-top: 0.35rem;
  line-height: 1.35;
}
.rt-tally dd b { color: var(--verd); font-weight: 500; }

/* ──────────────────────────────────────────────────────────── register ── */

.rt-reg { display: grid; gap: 1.1rem; min-width: 0; }
.rt-reg > * { min-width: 0; }

.rt-reg__ctl {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem; align-items: center;
}

.rt-find {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--sheet); border: 1px solid var(--rule);
  padding: 0 0.85rem; min-height: 3rem;
}
.rt-find:focus-within { border-color: var(--verd); box-shadow: inset 0 0 0 1px var(--verd); }
.rt-find svg { flex: none; color: var(--ink-3); }
.rt-find input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  padding-block: 0.7rem; min-width: 0;
}
.rt-find input::placeholder { color: var(--ink-3); }

.rt-hide {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.rt-count {
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-2);
  margin: 0; min-width: 0;
}
/* the tally sits on one line once there is room for it; on a phone it wraps,
 * because a nowrap tally sets the min-content width of the whole register and
 * pushes the ledger past the right gutter. */
@media (min-width: 46rem) { .rt-count { white-space: nowrap; } }
.rt-count b { color: var(--ink); font-weight: 700; }

.rt-periods {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.rt-periods button {
  appearance: none; background: transparent; border: 0;
  border-right: 1px solid var(--rule-2);
  font-family: var(--sans); font-size: 0.82rem; color: var(--ink-2);
  padding: 0.7rem 1rem; cursor: pointer; display: flex; align-items: baseline; gap: 0.45rem;
  flex: 1 1 auto; justify-content: space-between;
}
.rt-periods button:last-child { border-right: 0; }
.rt-periods button em {
  font-family: var(--mono); font-style: normal; font-size: 0.7rem; color: var(--ink-3);
}
.rt-periods button:hover { background: var(--sheet-2); color: var(--ink); }
.rt-periods button[aria-pressed="true"] {
  background: var(--ink); color: var(--wash); box-shadow: inset 0 3px 0 var(--verd);
}
.rt-periods button[aria-pressed="true"] em { color: var(--verd-tint); }

.rt-only {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.82rem; color: var(--ink-2); cursor: pointer;
  user-select: none;
}
.rt-only input {
  appearance: none; width: 2.3rem; height: 1.2rem; border-radius: 1rem;
  background: var(--rule); border: 0; position: relative; cursor: pointer;
  transition: background .15s;
}
.rt-only input::after {
  content: ""; position: absolute; inset: 2px auto 2px 2px;
  width: 0.95rem; border-radius: 50%; background: #fff;
  transition: transform .15s;
}
.rt-only input:checked { background: var(--verd); }
.rt-only input:checked::after { transform: translateX(1.1rem); }

/* the ledger itself */

.rt-ledger { border-top: 1px solid var(--ink); }

.rt-ledger__head,
.rt-rec__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(11rem, 1.55fr) 5.5rem minmax(8rem, 1.1fr) minmax(8rem, 1.1fr) 11.5rem;
  gap: 0 1rem; align-items: baseline;
}

.rt-ledger__head {
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.rt-recs { list-style: none; margin: 0; padding: 0; }

.rt-rec { border-bottom: 1px solid var(--rule-2); }
.rt-rec:last-of-type { border-bottom: 1px solid var(--rule); }

.rt-rec__row {
  width: 100%; text-align: left; appearance: none; background: transparent;
  border: 0; border-left: 3px solid transparent; cursor: pointer;
  font-family: var(--sans); font-size: 0.875rem; color: var(--ink-2);
  padding: 0.82rem 0.6rem 0.85rem;
}
.rt-rec__row:hover { background: var(--sheet); border-left-color: var(--rule); }
.rt-rec[data-open] > .rt-rec__row { background: var(--sheet); border-left-color: var(--verd); }

.rt-rec__acc {
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-3);
  letter-spacing: -0.02em;
}
.rt-rec[data-open] .rt-rec__acc { color: var(--verd); }
.rt-rec__name { color: var(--ink); font-weight: 500; font-size: 0.95rem; letter-spacing: -0.012em; }
.rt-rec__made { font-family: var(--mono); font-size: 0.76rem; }
.rt-rec__maker, .rt-rec__from { font-size: 0.82rem; }

.rt-rec__where {
  display: inline-flex; align-items: baseline; gap: 0.45rem;
  font-size: 0.8rem; justify-self: start;
}
.rt-rec__where::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--verd); flex: none; transform: translateY(-1px);
}
.rt-rec__where[data-loc="store"] { color: var(--ink-3); }
.rt-rec__where[data-loc="store"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* the opened record */

.rt-rec__more {
  padding: 0.4rem 0.6rem 1.6rem 1.9rem;
  background: var(--sheet);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2.6rem);
}
.rt-rec__more > div { min-width: 0; }
.rt-rec__note { font-size: 1.02rem; color: var(--ink-2); max-width: 46ch; }
.rt-rec__note p { margin-bottom: 0.7em; }

.rt-facts { margin: 1.1rem 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.32rem 1.1rem; }
.rt-facts dt {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); padding-top: 0.18rem;
}
.rt-facts dd { margin: 0; font-family: var(--sans); font-size: 0.84rem; color: var(--ink); }

.rt-rec__side { display: grid; gap: 0.9rem; align-content: start; }
.rt-rec__side img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border: 1px solid var(--rule); filter: saturate(.72);
}
.rt-nophoto {
  border: 1px dashed var(--rule); padding: 0.9rem 1rem;
  font-family: var(--sans); font-size: 0.78rem; color: var(--ink-3); line-height: 1.5;
}
.rt-rec__acts { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.rt-req[data-in] { background: var(--verd); border-color: var(--verd); color: #fff; }

.rt-none {
  padding: 2rem 0.6rem; font-family: var(--sans); font-size: 0.9rem;
  color: var(--ink-2); border-bottom: 1px solid var(--rule);
}
.rt-none strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 0.3rem; }

.rt-reg__foot {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  align-items: center; font-family: var(--sans); font-size: 0.8rem; color: var(--ink-3);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────── the tray ── */

.rt-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--slate); color: #e6ece9;
  border-top: 2px solid var(--verd);
  box-shadow: 0 -12px 34px rgba(18,24,23,.22);
}
.rt-tray__in {
  width: var(--shell); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem;
  align-items: center; justify-content: space-between;
  padding-block: 0.85rem;
}
.rt-tray__what { margin: 0; font-family: var(--sans); font-size: 0.85rem; min-width: 0; }
.rt-tray__what b { color: #fff; font-weight: 500; }
.rt-tray__list {
  display: block; font-family: var(--mono); font-size: 0.72rem; color: #94a4a0;
  margin-top: 0.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rt-tray__acts { display: flex; gap: 0.6rem; align-items: center; }
.rt-tray__clear {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 0.8rem; color: #94a4a0;
  text-decoration: underline; text-underline-offset: 0.2em; padding: 0.4rem;
}
.rt-tray__clear:hover { color: #fff; }

body[data-tray-open] { padding-bottom: 6rem; }

/* ─────────────────────────────────────────────────────────────── rooms ── */

.rt-rooms { display: grid; gap: clamp(1rem, 2vw, 1.6rem); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.rt-room {
  display: grid; grid-template-rows: auto auto 1fr auto;
  background: var(--sheet); border: 1px solid var(--rule-2);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.rt-room:hover { border-color: var(--verd); transform: translateY(-2px); }
.rt-room img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.7) contrast(1.02); }
.rt-room__floor {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--verd);
  padding: 0.9rem 1.1rem 0;
}
.rt-room h3 { padding: 0.35rem 1.1rem 0; }
.rt-room p { padding: 0.5rem 1.1rem 0; color: var(--ink-2); font-size: 0.95rem; }
.rt-room__n {
  font-family: var(--sans); font-size: 0.74rem; color: var(--ink-3);
  padding: 1rem 1.1rem 1.1rem; display: flex; justify-content: space-between; gap: 0.6rem;
}
.rt-room__n span:last-child { color: var(--verd); }

/* wide room rows (the /rooms page) */

.rt-roomrow {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.2rem, 3vw, 3rem); align-items: center;
  padding-block: clamp(1.6rem, 1rem + 2.2vw, 2.8rem);
  border-bottom: 1px solid var(--rule);
}
.rt-roomrow:first-of-type { border-top: 1px solid var(--ink); }
.rt-roomrow:nth-child(even) > figure { order: 2; }
.rt-roomrow figure { margin: 0; }
.rt-roomrow img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--rule); filter: saturate(.72); }
.rt-roomrow h2 { margin-bottom: 0.7rem; }
.rt-roomrow__body { color: var(--ink-2); }

/* ───────────────────────────────────────────────────────────── splits ── */

.rt-split {
  width: var(--shell); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3.2vw, 3.6rem); align-items: center;
}
.rt-split img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border: 1px solid var(--rule); filter: saturate(.72); }
.rt-band--dark .rt-split img { border-color: var(--slate-2); }

/* ──────────────────────────────────────────────────────────── ask list ── */

.rt-asks { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.rt-ask {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 1.4rem; align-items: baseline;
  padding: 1.05rem 0.2rem; border-bottom: 1px solid var(--rule-2);
  text-decoration: none; color: var(--ink);
}
.rt-ask:hover { background: var(--sheet); }
.rt-ask h3 { font-size: 1.08rem; }
.rt-ask p { grid-column: 1; margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.rt-ask__cost {
  grid-row: 1 / span 2; grid-column: 2;
  font-family: var(--mono); font-size: 0.78rem; color: var(--verd);
  text-align: right; white-space: nowrap;
}
.rt-ask__cost small { display: block; color: var(--ink-3); margin-top: 0.25rem; }

/* ──────────────────────────────────────────────────────────────── form ── */

.rt-formwrap {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.6rem, 3.5vw, 4rem); align-items: start;
}

.rt-form { display: grid; gap: 1.05rem; background: var(--sheet); border: 1px solid var(--rule); padding: clamp(1.1rem, 2.4vw, 1.9rem); }
.rt-form[data-busy] { opacity: .72; }

.rt-field { display: grid; gap: 0.35rem; min-width: 0; }
.rt-field label {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.02em; color: var(--ink);
}
.rt-field small { font-family: var(--sans); font-size: 0.74rem; color: var(--ink-3); line-height: 1.45; }
.rt-field input, .rt-field textarea, .rt-field select {
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 0;
  padding: 0.68rem 0.75rem; width: 100%; min-width: 0;
}
.rt-field textarea { resize: vertical; line-height: 1.5; }
.rt-field input:focus, .rt-field textarea:focus, .rt-field select:focus {
  outline: none; border-color: var(--verd); box-shadow: inset 0 0 0 1px var(--verd);
}
.rt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }

.rt-hp { position: absolute; left: -9999px; }

.rt-send { display: grid; gap: 0.6rem; justify-items: start; }
.rt-send small { font-family: var(--sans); font-size: 0.76rem; color: var(--ink-3); }
.rt-msg {
  font-family: var(--sans); font-size: 0.88rem; margin: 0;
  padding: 0.7rem 0.9rem; width: 100%;
  border-left: 3px solid var(--verd); background: var(--verd-tint); color: var(--ink);
}
.rt-msg[data-state="err"] { border-left-color: #8c2f2f; background: #f2dede; }

/* the basket the register fills */

.rt-basket { border: 1px solid var(--verd); background: #fff; padding: 0.9rem 1rem; }
.rt-basket h3 { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--verd); font-family: var(--sans); }
.rt-basket ul { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.rt-basket li {
  display: flex; gap: 0.6rem; align-items: baseline; justify-content: space-between;
  font-family: var(--sans); font-size: 0.84rem; border-bottom: 1px dotted var(--rule); padding-bottom: 0.35rem;
}
.rt-basket li span:first-child { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); flex: none; }
.rt-basket li span:nth-child(2) { flex: 1; min-width: 0; }
.rt-basket__drop {
  appearance: none; background: transparent; border: 0; cursor: pointer; flex: none;
  color: var(--ink-3); font-family: var(--sans); font-size: 0.74rem; text-decoration: underline;
  text-underline-offset: 0.2em; padding: 0 0.1rem;
}
.rt-basket__drop:hover { color: var(--ink); }
.rt-basket__none { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-2); margin-top: 0.5rem; }

/* the answer the study-room form gives in the page */

.rt-done { padding: 1.4rem 1.5rem; border-left-width: 4px; }
.rt-done p { margin: 0.6rem 0 0; }
.rt-done b { font-weight: 600; }
.rt-done__what {
  font-family: var(--sans); font-size: 0.9rem; line-height: 1.55;
  background: var(--verd-tint); color: var(--slate);
  padding: 0.7rem 0.85rem; margin-top: 0.9rem;
}
.rt-done__what b { font-family: var(--mono); font-size: 0.82rem; }
.rt-done .rt-row { margin-top: 1.1rem; }

/* the enhanced dropdown (shared select.js, our vocabulary) */

.rt-dd { position: relative; }
.rt-dd__button {
  width: 100%; text-align: left; cursor: pointer;
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 0;
  padding: 0.68rem 2.2rem 0.68rem 0.75rem; position: relative;
}
.rt-dd__button::after {
  content: ""; position: absolute; right: 0.85rem; top: 50%;
  width: 0.45rem; height: 0.45rem; border-right: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg);
}
.rt-dd__button.is-placeholder { color: var(--ink-3); }
.rt-dd.is-open .rt-dd__button { border-color: var(--verd); box-shadow: inset 0 0 0 1px var(--verd); }
.rt-dd__list {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 3px);
  background: #fff; border: 1px solid var(--verd);
  max-height: 17rem; overflow: auto; box-shadow: 0 14px 34px rgba(18,24,23,.16);
}
.rt-dd__option { padding: 0.6rem 0.8rem; cursor: pointer; border-bottom: 1px solid var(--rule-2); }
.rt-dd__option:last-child { border-bottom: 0; }
.rt-dd__option.is-active, .rt-dd__option:hover { background: var(--sheet-2); }
.rt-dd__option.is-selected { box-shadow: inset 3px 0 0 var(--verd); }
.rt-dd__title { display: block; font-family: var(--sans); font-size: 0.9rem; color: var(--ink); }
.rt-dd__meta { display: block; font-family: var(--sans); font-size: 0.76rem; color: var(--ink-3); margin-top: 0.15rem; }

/* ───────────────────────────────────────────────── quotes, Q&A, notes ── */

.rt-quotes { display: grid; gap: clamp(1rem, 2vw, 1.6rem); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.rt-quote {
  margin: 0; background: var(--sheet); border: 1px solid var(--rule-2);
  border-top: 2px solid var(--verd); padding: 1.3rem 1.3rem 1.1rem;
  display: grid; align-content: start; gap: 0.9rem;
}
.rt-quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.rt-quote figcaption { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-3); }
.rt-stars { color: var(--verd); letter-spacing: 0.12em; font-size: 0.9rem; }

.rt-qa { border-top: 1px solid var(--ink); }
.rt-qa details { border-bottom: 1px solid var(--rule-2); }
.rt-qa summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2.4rem 1.05rem 0.2rem;
  font-family: var(--sans); font-size: 1.02rem; font-weight: 500; color: var(--ink);
  position: relative;
}
.rt-qa summary::-webkit-details-marker { display: none; }
.rt-qa summary::after {
  content: "+"; position: absolute; right: 0.4rem; top: 0.95rem;
  font-family: var(--mono); color: var(--verd); font-size: 1.1rem;
}
.rt-qa details[open] summary::after { content: "–"; }
.rt-qa summary:hover { background: var(--sheet); }
.rt-qa__a { margin: 0; padding: 0 2.4rem 1.3rem 0.2rem; color: var(--ink-2); max-width: 62ch; }

.rt-notes { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.rt-note {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 0.6rem 1.6rem; align-items: start;
  padding: 1.3rem 0.2rem; border-bottom: 1px solid var(--rule-2);
  text-decoration: none; color: var(--ink);
}
.rt-note:hover { background: var(--sheet); }
.rt-note time { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); padding-top: 0.25rem; }
.rt-note h3 { margin-bottom: 0.4rem; }
.rt-note p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.rt-note img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--rule); filter: saturate(.7); }

/* ───────────────────────────────────────────────────── article / detail ── */

.rt-article { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }
.rt-crumbs { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-3); margin-bottom: 1rem; }
.rt-crumbs a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.rt-crumbs a:hover { color: var(--verd); border-bottom-color: var(--verd); }
.rt-article h1 { margin-bottom: 0.9rem; }
.rt-article > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--rule); margin: 1.5rem 0; filter: saturate(.72); }
.rt-article__body { font-size: 1.1rem; }
.rt-article__body p { margin-bottom: 0.95em; }

.rt-stamp {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0; margin-bottom: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.3rem 1rem;
}
.rt-stamp b { color: var(--verd); font-weight: 700; }

.rt-where {
  border-left: 3px solid var(--verd); background: var(--sheet);
  padding: 1rem 1.2rem; margin: 1.6rem 0;
  font-family: var(--sans); font-size: 0.92rem;
}
.rt-where strong { display: block; font-weight: 500; margin-bottom: 0.25rem; }

/* ───────────────────────────────────────────────────── visiting blocks ── */

.rt-visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: clamp(1.2rem, 2.6vw, 2.4rem); }
.rt-visit > div { border-top: 1px solid var(--ink); padding-top: 0.9rem; }
.rt-visit h3 { font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.7rem; }

.rt-hours { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0; font-family: var(--sans); font-size: 0.87rem; }
.rt-hours dt { color: var(--ink-2); }
.rt-hours dd { margin: 0; color: var(--ink); white-space: nowrap; }

.rt-big { font-family: var(--sans); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; }

.rt-floors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rt-floors li {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.4rem 1.4rem; padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--rule-2);
  font-family: var(--sans); font-size: 0.92rem;
}
.rt-floors b { font-family: var(--mono); font-size: 0.74rem; font-weight: 400; color: var(--verd); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.2rem; }

/* ────────────────────────────────────────────────────────────── footer ── */

.rt-foot {
  background: var(--slate); color: #aebcb8;
  padding-top: clamp(2.4rem, 1.6rem + 3vw, 4rem); padding-bottom: 1.6rem;
  margin-top: var(--step);
  font-size: 0.97rem;
}
.rt-foot__in {
  width: var(--shell); margin-inline: auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 3rem);
}
.rt-foot__col--wide { max-width: 34ch; }
.rt-foot h2 {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #74847f; margin-bottom: 0.8rem;
}
.rt-foot__mark { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.rt-foot__free { font-family: var(--mono); font-size: 0.76rem; color: #8fd0c4; margin-top: 0.9rem; }
.rt-foot__note { font-family: var(--sans); font-size: 0.78rem; color: #74847f; margin-top: 0.8rem; }
.rt-foot a { color: #cdd8d4; text-decoration: none; }
.rt-foot a:hover { color: #fff; text-decoration: underline; }
.rt-foot .rt-hours dt { color: #74847f; }
.rt-foot .rt-hours dd { color: #cdd8d4; }
.rt-foot__nav { display: grid; gap: 0.42rem; font-family: var(--sans); font-size: 0.87rem; }
.rt-foot__fine {
  width: var(--shell); margin: clamp(2rem, 3vw, 3rem) auto 0;
  border-top: 1px solid var(--slate-2); padding-top: 1.1rem;
  font-family: var(--mono); font-size: 0.7rem; color: #6c7c77;
}

/* ─────────────────────────────────────────────────────────── responsive ── */

/* Between the full masthead and the burger there is a band where the clock
 * is the thing that can go: the hours are in the footer of every page. */
@media (max-width: 84rem) {
  .rt-state { display: none; }
  /* drop its track too, or the empty fourth column and its gap hold the
   * register button 26px short of the right gutter. */
  .rt-top__in { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 68rem) {
  .rt-ledger__head { display: none; }
  .rt-ledger__head, .rt-rec__row {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }
  .rt-rec__row {
    grid-template-areas:
      "acc name"
      "acc meta"
      "acc where";
    row-gap: 0.28rem;
  }
  .rt-rec__acc { grid-area: acc; padding-top: 0.15rem; }
  .rt-rec__name { grid-area: name; }
  .rt-rec__made { display: none; }
  .rt-rec__maker { grid-area: meta; color: var(--ink-3); font-size: 0.8rem; }
  .rt-rec__from { display: none; }
  .rt-rec__where { grid-area: where; }
  .rt-rec__more { grid-template-columns: 1fr; padding-left: 0.6rem; }
  .rt-note { grid-template-columns: 1fr; }
  .rt-note img { display: none; }
  .rt-roomrow, .rt-roomrow:nth-child(even) > figure { grid-template-columns: 1fr; order: 0; }
}

@media (max-width: 62rem) {
  .rt-top__in { grid-template-columns: 1fr auto auto; min-height: 4rem; }
  .rt-nav {
    grid-column: 1 / -1; display: none;
    flex-direction: column; gap: 0;
    border-top: 1px solid var(--rule); margin-top: 0.6rem; padding-top: 0.3rem;
  }
  .rt-top[data-menu] .rt-nav { display: flex; }
  .rt-nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--rule-2); font-size: 1rem; }
  .rt-nav a[aria-current="page"] { border-bottom-color: var(--rule-2); color: var(--verd); }
  .rt-state { display: none; }
  .rt-burger {
    display: inline-flex; align-items: center; gap: 0.5rem;
    appearance: none; background: transparent; border: 1px solid var(--rule);
    padding: 0.55rem 0.7rem; cursor: pointer; color: var(--ink);
  }
  .rt-burger span { display: block; width: 15px; height: 1.5px; background: var(--ink); }
  .rt-burger span + span { margin-top: 4px; }
  .rt-burger em {
    font-family: var(--sans); font-style: normal; font-size: 0.78rem;
    letter-spacing: 0.04em;
  }
  .rt-top[data-menu] .rt-burger { background: var(--ink); color: var(--wash); border-color: var(--ink); }
  .rt-top[data-menu] .rt-burger span { background: var(--wash); }
  .rt-foot__in { grid-template-columns: 1fr 1fr; }
  .rt-formwrap { grid-template-columns: 1fr; }
  .rt-tally { grid-template-columns: 1fr 1fr; }
  .rt-tally > div:nth-child(2) { border-right: 0; }
  .rt-tally > div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--rule-2); }
  .rt-tally > div:nth-child(4) { border-top: 1px solid var(--rule-2); }
}

@media (max-width: 52rem) {
  .rt-hero { grid-template-columns: 1fr; }
  .rt-hero__fig img { aspect-ratio: 3 / 2; }
  .rt-split { grid-template-columns: 1fr; }
  .rt-head { grid-template-columns: 1fr; align-items: start; }
  .rt-reg__ctl { grid-template-columns: 1fr; }
  .rt-periods button { flex: 1 1 45%; }
  .rt-ask { grid-template-columns: 1fr; }
  .rt-ask__cost { grid-row: auto; grid-column: 1; text-align: left; }
}

@media (max-width: 40rem) {
  .rt-top__cta, .rt-mark__sub { display: none; }
  .rt-wide { display: none; }
  .rt-two { grid-template-columns: 1fr; }
  .rt-foot__in { grid-template-columns: 1fr; }
  .rt-floors li { grid-template-columns: 1fr; }
  .rt-tray__in { justify-content: stretch; }
  .rt-tray__acts { width: 100%; justify-content: space-between; }
  .rt-rec__row { grid-template-columns: 5.6rem minmax(0, 1fr); font-size: 0.85rem; }
  .rt-periods button { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--rule-2); }
}

@media (min-width: 40.0625rem) { .rt-narrow { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
