/* Cabinet Walk, Swale & Sign 2026. Original AI-created template. */
@font-face {
  font-family: Cabinet Sans;
  src: url("DejaVuSans.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Cabinet Sans;
  src: url("DejaVuSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Cabinet Serif;
  src: url("DejaVuSerif.ttf") format("truetype");
  font-display: swap;
}
:root {
  --paper: #f6f3e9;
  --ink: #202d30;
  --muted: #536164;
  --blue: #243eaf;
  --line: #b7beb7;
  --soft: #e7e9df;
  --radius: 4px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 "Cabinet Sans", sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
button:disabled { opacity: .45; cursor: default; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1, h2 { font-family: "Cabinet Serif", serif; font-weight: 400; }
h1 {
  font-size: clamp(2.6rem, 7.6vw, 6.8rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}
h1 em { font-style: normal; color: var(--blue); }
h2 { font-size: clamp(2rem, 4.3vw, 3.6rem); line-height: 1.18; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; line-height: 1.35; font-weight: 400; }
p { margin-bottom: 18px; }
ul { margin: 0; padding-left: 22px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.eyebrow { font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.7; }
.fine { font-size: .79rem; color: var(--muted); line-height: 1.6; }
.lead { font-size: 1.35rem; line-height: 1.6; }
.text-link { text-decoration: none; border-bottom: 1px solid; padding-bottom: 4px; }
.text-link:hover { color: var(--blue); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 52px;
  padding: 15px 22px;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: .92rem;
  line-height: 1.4;
}
.button:hover { background: #182c82; color: white; }
.button.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.plain-button { background: transparent; border: 0; text-decoration: underline; padding: 12px; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 20; padding: 12px 18px; background: white; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.js-only { display: none; }
.js .js-only { display: block; }
[hidden] { display: none !important; }

/* Shared header: native details keeps the menu usable without JavaScript. */
.demo-bar {
  background: #e5e8de;
  padding: 8px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: .69rem;
  color: #3f5150;
}
.demo-bar a { white-space: nowrap; }
.site-header {
  width: min(1376px, calc(100% - 64px));
  margin-inline: auto;
  min-height: 126px;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: grid;
  grid-template-columns: 36px auto;
  gap: 0 14px;
  align-items: center;
  text-decoration: none;
  font-family: "Cabinet Serif", serif;
  font-size: 1.4rem;
  line-height: 1.2;
}
.wordmark img { grid-row: 1 / 3; }
.wordmark span { font: .63rem/1.6 "Cabinet Sans", sans-serif; letter-spacing: .11em; text-transform: uppercase; margin-top: 5px; }
.navigation summary { display: none; }
.navigation nav { display: flex; gap: 30px; align-items: center; }
.navigation nav a { font-size: .84rem; text-decoration: none; padding: 9px 0; }
.navigation nav a[aria-current="page"] { color: var(--blue); border-bottom: 2px solid var(--blue); }

/* Editorial home and standard page introductions. */
.home-intro { padding: 70px 0 48px; }
.home-intro .eyebrow, .page-intro .eyebrow, .exhibition-intro .eyebrow { margin-bottom: 25px; }
.intro-bottom { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-top: 35px; }
.intro-bottom > p { width: min(620px, 65%); margin: 0; font-size: 1.05rem; }
.hero-figure { margin: 0 32px; }
.hero-figure > img { width: 100%; aspect-ratio: 1800 / 1150; object-fit: contain; object-position: center 54%; }
figcaption { display: flex; justify-content: space-between; gap: 20px; font-size: .72rem; color: var(--muted); padding: 13px 0; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-block: 105px; }
.split-section .eyebrow { margin-bottom: 22px; }
.prose { max-width: 600px; padding-top: 6px; }
.prose .text-link { display: inline-block; margin-top: 12px; }
.selected-section { background: var(--soft); padding: 75px 0 85px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.section-heading .eyebrow { margin-bottom: 15px; }
.section-heading > a { white-space: nowrap; }
.visit-band { background: var(--blue); color: white; padding: 50px; margin-block: 90px; display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.visit-band h2 { margin: 12px 0 18px; }
.visit-band p:last-child { margin-bottom: 0; }
.page-intro { padding-block: 70px 55px; }
.page-intro > p:last-child { max-width: 690px; margin: 30px 0 0; }
.page-intro.compact { padding-bottom: 45px; }
.error-page { min-height: 60vh; }
.error-page .button-row { margin-top: 35px; }

/* The object cards are semantic HTML and remain complete without scripts. */
.object-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 55px 28px; }
.object-card { min-width: 0; }
.object-image { display: block; overflow: hidden; background: #d7d8ce; }
.object-image img { width: 100%; aspect-ratio: 1.1; object-fit: cover; transition: transform .25s ease; }
.object-image:hover img { transform: scale(1.025); }
.object-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 17px; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.object-card h3 { margin: 10px 0 13px; font-family: "Cabinet Serif", serif; font-size: 1.45rem; }
.object-card h3 a { text-decoration: none; }
.object-card > p { font-size: .86rem; color: #455658; line-height: 1.7; }
.collection-section { padding-bottom: 80px; }
.collection-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 25px; padding: 15px 0 35px; border-top: 1px solid var(--line); }
.js .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 10px 16px; min-height: 44px; border: 1px solid #8f9e99; color: var(--ink); background: transparent; border-radius: 30px; font-size: .83rem; }
.filters button[aria-pressed="true"] { color: white; border-color: var(--blue); background: var(--blue); }
#filter-status { font-size: .76rem; color: var(--muted); margin: 0; }
.collection-tools > a { font-size: .83rem; }
#plan-count { font-weight: 700; }
.plan-toggle { width: 100%; background: transparent; color: var(--ink); border: 1px solid #80938b; border-radius: 3px; padding: 12px; min-height: 46px; font-size: .82rem; text-align: left; }
.plan-toggle span { float: right; }
.plan-toggle[aria-pressed="true"] { background: var(--blue); color: white; border-color: var(--blue); }
.object-card > .card-feedback { padding: 12px; margin-top: 12px; background: #eee4d5; color: #5b3920; border-left: 3px solid #8e5c27; }
.notice { padding: 20px; border: 1px solid #9cae9f; background: #eef1e7; }

/* Visit card selection: local in-memory state, never a cart or reservation. */
.js .planner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; border-top: 2px solid var(--ink); padding-block: 60px 90px; }
.planner h2 { margin: 18px 0 25px; }
#plan-status { min-height: 3em; }
#plan-list { padding: 0; list-style: none; }
#plan-list li { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 0; border-top: 1px solid var(--line); font-size: .88rem; }
#plan-list button { border: 1px solid #94a29b; background: transparent; color: var(--ink); padding: 9px 12px; min-height: 44px; border-radius: 3px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 24px; }
.print-card, .practical-print { display: none; }

/* Exhibition, study details and visit pages. */
.exhibition-intro { display: grid; grid-template-columns: 1.8fr 1fr; gap: 65px; align-items: end; padding-block: 70px 65px; }
.exhibition-intro h1 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); }
.exhibition-intro .lead { margin-top: 30px; }
.exhibition-facts > div, .study-facts > div, .visit-facts > div { border-top: 1px solid var(--line); padding: 15px 0; }
dt { font-size: .69rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
dd { font-size: .91rem; }
.exhibition-image img { width: 100%; aspect-ratio: 1800 / 1150; object-fit: contain; }
.programme { padding-bottom: 100px; }
.programme > h2 { margin: 15px 0 40px; }
.programme-row { display: grid; grid-template-columns: 100px 1fr 180px; gap: 32px; padding: 35px 0; border-top: 1px solid var(--line); }
.programme-row h3 { margin-bottom: 14px; }
.programme-row > p { font-size: .9rem; }
.date-block { font-family: "Cabinet Serif", serif; font-size: 2.8rem; line-height: 1; }
.date-block small { font: .65rem/2 "Cabinet Sans", sans-serif; }
.study-jumps { display: flex; flex-wrap: wrap; gap: 12px 25px; margin-top: 35px; font-size: .8rem; }
.study { display: grid; grid-template-columns: 1.15fr 1fr; gap: 65px; align-items: start; padding: 65px 0; border-top: 1px solid var(--line); scroll-margin-top: 30px; }
.study-art img { width: 100%; }
.study-copy h2 { margin: 14px 0 25px; }
.study-copy > p:not(.eyebrow) { font-size: .94rem; }
.study-copy > p.lead { font-size: 1.1rem; }
.study-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 25px; }
.looking-prompt { margin: 22px 0; padding: 20px; border-left: 3px solid var(--blue); background: #e9ece2; }
.looking-prompt p { margin: 10px 0 0; font-family: "Cabinet Serif", serif; font-size: 1.3rem; line-height: 1.4; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-block: 20px 80px; }
.visit-grid h2 { margin-bottom: 28px; }
.visit-facts > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 15px; }
.access-section { border-top: 1px solid var(--line); padding-block: 55px 75px; }
.access-section h2 { margin: 15px 0 25px; }
.access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; margin-top: 35px; }
.access-grid h3 { margin-bottom: 15px; }
.access-grid p { font-size: .9rem; }
.questions { max-width: 850px; padding-bottom: 100px; }
.questions h2 { margin-bottom: 30px; }
.questions details { padding: 20px 0; border-top: 1px solid var(--line); }
.questions summary { cursor: pointer; font-size: 1.02rem; padding-right: 10px; }
.questions details p { margin: 18px 0 0; }
.site-footer { border-top: 1px solid var(--line); padding: 45px 32px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.footer-brand { font-family: "Cabinet Serif", serif; font-size: 1.8rem; text-decoration: none; }
.site-footer > div p { margin: 12px 0 0; color: var(--muted); font-size: .85rem; }
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 25px; align-content: start; font-size: .85rem; }
.site-footer > .fine { grid-column: 1 / -1; max-width: 930px; margin: 8px 0 0; }

@media (max-width: 1000px) {
  .navigation nav { gap: 20px; }
  .split-section, .visit-grid { gap: 55px; }
  .intro-bottom { gap: 35px; align-items: start; }
  .intro-bottom > p { width: 58%; }
  .object-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selected-section .object-grid > :last-child { grid-column: 1 / -1; max-width: 50%; }
  .exhibition-intro, .study { gap: 35px; }
  .programme-row { grid-template-columns: 85px 1fr 145px; gap: 25px; }
}
@media (max-width: 759px) {
  .wrap { width: calc(100% - 36px); }
  .demo-bar { padding-inline: 18px; font-size: .64rem; }
  .site-header { width: calc(100% - 36px); min-height: 102px; padding-block: 25px; align-items: start; position: relative; flex-wrap: wrap; }
  .wordmark { font-size: 1.15rem; gap: 0 11px; }
  .wordmark img { width: 32px; }
  .navigation summary { display: flex; align-items: center; gap: 18px; cursor: pointer; min-height: 44px; font-size: .82rem; }
  .navigation summary::marker { content: ""; }
  .navigation summary::-webkit-details-marker { display: none; }
  .navigation[open] { width: 100%; }
  .navigation[open] summary { position: absolute; top: 25px; right: 0; }
  .navigation nav { flex-wrap: wrap; justify-content: space-between; margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); gap: 12px 20px; }
  .home-intro, .page-intro { padding-block: 45px 35px; }
  .intro-bottom { display: block; margin-top: 30px; }
  .intro-bottom > p { width: 100%; margin-bottom: 25px; }
  .hero-figure { margin-inline: 0; }
  .hero-figure > img { aspect-ratio: 1800 / 1150; }
  figcaption { padding: 14px 18px; font-size: .66rem; }
  .split-section, .visit-grid, .exhibition-intro, .study { grid-template-columns: 1fr; gap: 35px; padding-block: 55px; }
  .split-section .eyebrow { margin-bottom: 15px; }
  .selected-section { padding-block: 50px 60px; }
  .section-heading { align-items: start; margin-bottom: 30px; }
  .section-heading .text-link { font-size: .8rem; }
  .object-grid { gap: 40px 18px; }
  .object-card h3 { font-size: 1.25rem; }
  .object-card > p { font-size: .83rem; }
  .visit-band { width: calc(100% - 36px); margin-block: 55px; padding: 30px; display: block; }
  .visit-band > a { margin-top: 25px; }
  .js .planner { grid-template-columns: 1fr; gap: 30px; padding-block: 40px 60px; }
  .exhibition-facts { display: grid; grid-template-columns: 1fr; }
  .exhibition-image img { aspect-ratio: 1800 / 1150; }
  .programme-row { grid-template-columns: 65px 1fr; gap: 18px; }
  .programme-row > p { grid-column: 2; margin-bottom: 0; }
  .programme { padding-bottom: 65px; }
  .study-art { max-width: 620px; }
  .study-copy h2 { margin-top: 12px; }
  .access-grid { grid-template-columns: 1fr; gap: 20px; }
  .questions { padding-bottom: 65px; }
  .site-footer { padding-inline: 18px; gap: 30px; }
}
@media (max-width: 479px) {
  body { font-size: 16px; }
  h1 { font-size: 2.5rem; }
  .object-grid { grid-template-columns: 1fr; }
  .selected-section .object-grid > :last-child { grid-column: auto; max-width: none; }
  .object-card h3 { font-size: 1.55rem; }
  .object-card > p { font-size: .92rem; }
  .object-meta { font-size: .7rem; }
  .plan-toggle { font-size: .9rem; }
  .hero-figure > img { aspect-ratio: 1800 / 1150; }
  .section-heading { display: block; }
  .section-heading > a { display: inline-block; margin-top: 20px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > .fine { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .object-image img { transition: none; }
}
@media print {
  @page { size: A4; margin: 15mm; }
  body { color: #172a2b; background: white; font-size: 10pt; }
  .demo-bar, .site-header, .site-footer, .skip, .js-only, .button, .text-link { display: none !important; }
  body[data-page="collection"] main > :not(#print-card) { display: none !important; }
  .print-card { display: block; }
  .print-card h1 { font-size: 22pt; letter-spacing: -.6pt; }
  .print-heading p { margin: 8pt 0 15pt; font-size: 9pt; }
  #print-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm 7mm; }
  .print-study { break-inside: avoid; }
  .print-study img { width: 100%; height: 58mm; object-fit: contain; }
  .print-study h2 { font-size: 13pt; margin: 6pt 0; letter-spacing: -.2pt; }
  .print-study p { font-size: 9pt; line-height: 1.5; margin-bottom: 6pt; }
  .print-study .print-prompt { font-weight: 700; }
  .print-card > .fine { margin-top: 0mm; font-size: 7.5pt; }
  .wrap { width: 100%; }
  .page-intro { padding: 0 0 8mm; }
  .page-intro h1 { font-size: 26pt; }
  .page-intro > p:last-child { margin-top: 5mm; }
  .visit-grid { padding: 0 0 8mm; grid-template-columns: 1fr 1fr; gap: 10mm; }
  .visit-grid h2, .access-section h2, .questions h2 { font-size: 18pt; }
  .access-section { padding: 7mm 0; }
  .access-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9mm; margin-top: 4mm; }
  .access-grid p { font-size: 9pt; }
  .access-grid h3 { font-size: 11pt; }
  .questions { display: none; }
  .practical-print { display: block; padding-top: 5mm; }
  .practical-print h2 { font-size: 15pt; margin-bottom: 4mm; }
}

@media print{.access-grid article{min-width:0}.access-grid h3,.access-grid p{overflow-wrap:anywhere}.access-grid p{font-size:8.5pt}.practical-print{margin-top:5mm;clear:both}}

/*107: shared text can wrap without covering the navigation or adjacent facts.*/
.wordmark{min-width:0;grid-template-columns:36px minmax(0,1fr);overflow-wrap:anywhere}.footer-brand,.site-footer p,.exhibition-facts dd,.visit-facts dd,.practical-print{overflow-wrap:anywhere}.exhibition-facts,.visit-grid>div{min-width:0}@media(max-width:759px){.wordmark{max-width:calc(100% - 105px)}}
