@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ============ TOKENS ============ */
:root{
  --ink:#211D18;
  --paper:#F1E9D8;
  --paper-deep:#E6D9BE;
  --charcoal:#2C2A25;
  --muted:#8A7F6C;
  --border:#CBB98F;
  --accent-red:#A13D2E;
  --accent-gold:#A8781F;
  --accent-green:#4B6B44;
  --accent-blue:#2A5C78;
  --accent-plum:#6E3F52;
  --surface:#FAF5E7;
  --surface-strong:#EFE2C2;
  --success:#4B6B44;
  --warning:#A8781F;
  --error:#A13D2E;
  --serif:'Source Serif 4', Georgia, serif;
  --sans:'IBM Plex Sans', -apple-system, sans-serif;
  --mono:'IBM Plex Mono', monospace;
  --radius:2px;
  --shadow:none;
  --maxw:1320px;
  color-scheme: light;
}
:root[data-theme="dark"]{
  --ink:#EDE4D0;
  --paper:#1B1814;
  --paper-deep:#141210;
  --charcoal:#EDE4D0;
  --muted:#9C927E;
  --border:#413A2E;
  --accent-red:#D06A56;
  --accent-gold:#D3A24A;
  --accent-green:#7FA073;
  --accent-blue:#6FA3C2;
  --accent-plum:#B37B94;
  --surface:#211D18;
  --surface-strong:#2A251E;
  color-scheme: dark;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;} }

body{
  margin:0; background:var(--paper); color:var(--ink); font-family:var(--sans);
  font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{ font-family:var(--serif); font-weight:600; margin:0; color:var(--ink); }
p{margin:0;}
a{color:inherit; text-decoration:none;}
button{font-family:var(--sans); cursor:pointer;}
input,select,textarea{font-family:var(--sans); font-size:1rem;}
ul{margin:0; padding:0; list-style:none;}
img{max-width:100%; display:block;}

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 32px; }
@media (max-width:900px){ .wrap{padding:0 20px;} }

.grid12{ display:grid; grid-template-columns:repeat(12,1fr); gap:24px; }
@media (max-width:1100px) and (min-width:701px){ .grid12{ grid-template-columns:repeat(8,1fr); } }
@media (max-width:700px){ .grid12{ grid-template-columns:repeat(4,1fr); gap:16px; } }

.mono{ font-family:var(--mono); font-size:0.72rem; letter-spacing:0.03em; color:var(--muted); }
.eyebrow{ font-family:var(--sans); font-size:0.72rem; font-weight:600; letter-spacing:0.06em; color:var(--muted); }
.visually-hidden{ position:absolute; width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap; }
.skip-link{ position:absolute; left:-9999px; top:0; background:var(--ink); color:var(--paper); padding:10px 16px; z-index:999; }
.skip-link:focus{ left:16px; top:16px; }

:focus-visible{ outline:2px solid var(--accent-blue); outline-offset:2px; }

/* ============ HEADER / NAV ============ */
.site-header{ border-bottom:1px solid var(--border); background:var(--paper); position:sticky; top:0; z-index:80; }
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:76px; }
.wordmark{ font-family:var(--serif); font-weight:700; font-size:1.25rem; letter-spacing:0.01em; }
.wordmark small{ display:block; font-family:var(--sans); font-weight:500; font-size:0.62rem; letter-spacing:0.08em; color:var(--muted); margin-top:2px; }
.primary-nav{ display:flex; gap:28px; }
.primary-nav a{ font-size:0.86rem; font-weight:500; color:var(--charcoal); padding:6px 2px; border-bottom:2px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"]{ border-bottom-color:var(--accent-red); }
.header-actions{ display:flex; align-items:center; gap:14px; }
.icon-btn{ background:none; border:1px solid var(--border); border-radius:var(--radius); width:38px; height:38px; display:flex; align-items:center; justify-content:center; color:var(--ink); }
.icon-btn:hover{ border-color:var(--ink); }
.pill-link{ border:1px solid var(--border); border-radius:20px; padding:7px 16px; font-size:0.82rem; font-weight:500; display:flex; align-items:center; gap:6px; }
.pill-link:hover{ border-color:var(--ink); }
.menu-toggle{ display:none; }
@media (max-width:900px){
  .primary-nav{ display:none; }
  .menu-toggle{ display:flex; }
  .header-actions .nav-text{ display:none; }
}

.mobile-drawer{ position:fixed; inset:0; z-index:200; display:none; }
.mobile-drawer.open{ display:block; }
.mobile-drawer .scrim{ position:absolute; inset:0; background:rgba(20,17,13,0.5); }
.mobile-drawer .panel{ position:absolute; top:0; right:0; height:100%; width:min(340px,86vw); background:var(--paper); border-left:1px solid var(--border); padding:24px; overflow-y:auto; }
.mobile-drawer .panel-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.mobile-drawer nav a{ display:block; padding:14px 4px; font-family:var(--serif); font-size:1.3rem; border-bottom:1px solid var(--border); }
.mobile-drawer .drawer-foot{ margin-top:24px; display:flex; flex-direction:column; gap:10px; }

/* ============ FOOTER ============ */
.site-footer{ border-top:1px solid var(--border); background:var(--surface-strong); margin-top:80px; padding:56px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:32px; }
@media (max-width:900px){ .footer-grid{ grid-template-columns:repeat(2,1fr); } }
.footer-grid h4{ font-family:var(--sans); font-size:0.78rem; font-weight:600; letter-spacing:0.04em; margin-bottom:14px; color:var(--muted); }
.footer-grid a{ display:block; font-size:0.88rem; padding:5px 0; color:var(--charcoal); }
.footer-grid a:hover{ color:var(--accent-red); }
.footer-bottom{ border-top:1px solid var(--border); margin-top:40px; padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:0.78rem; color:var(--muted); }
.footer-note{ max-width:640px; font-size:0.78rem; color:var(--muted); line-height:1.6; }

/* ============ BUTTONS ============ */
.btn{ display:inline-flex; align-items:center; gap:8px; font-size:0.86rem; font-weight:600; padding:12px 22px; border-radius:var(--radius); border:1px solid var(--ink); background:var(--ink); color:var(--paper); }
.btn:hover{ background:transparent; color:var(--ink); }
.btn-outline{ background:transparent; color:var(--ink); border:1px solid var(--border); }
.btn-outline:hover{ border-color:var(--ink); }
.btn-plain{ background:none; border:none; color:var(--ink); font-weight:600; font-size:0.86rem; padding:6px 0; border-bottom:1px solid var(--ink); border-radius:0; }
.btn-sm{ padding:8px 14px; font-size:0.78rem; }
.btn[disabled]{ opacity:0.5; cursor:not-allowed; }
.btn-danger{ border-color:var(--error); color:var(--error); background:transparent; }

/* ============ HERO ============ */
.hero{ padding:64px 0 48px; border-bottom:1px solid var(--border); }
.hero-grid{ display:grid; grid-template-columns:7fr 5fr; gap:40px; align-items:end; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }
.hero-title{ font-size:clamp(2.6rem,6vw,4.6rem); line-height:0.98; letter-spacing:-0.01em; }
.hero-statement{ font-family:var(--serif); font-style:italic; font-size:clamp(1.1rem,2vw,1.4rem); margin-top:18px; color:var(--charcoal); max-width:46ch; }
.hero-sub{ font-size:1rem; color:var(--muted); margin-top:14px; max-width:48ch; line-height:1.6; }
.hero-actions{ display:flex; gap:14px; margin-top:28px; flex-wrap:wrap; }
.hero-fragments{ display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-start; align-content:flex-start; min-height:120px; }
.frag{ border:1px solid var(--border); padding:8px 14px; font-size:0.74rem; font-weight:600; letter-spacing:0.04em; border-radius:20px; color:var(--muted); opacity:0; transform:translateY(6px); animation:fragIn .5s ease forwards; }
@keyframes fragIn{ to{ opacity:1; transform:translateY(0);} }
@media (prefers-reduced-motion: reduce){ .frag{ animation:none; opacity:1; transform:none; } }

/* ============ SECTION HEADERS ============ */
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; margin:64px 0 28px; gap:20px; flex-wrap:wrap; }
.section-head h2{ font-size:clamp(1.6rem,3vw,2.2rem); }
.section-head p{ color:var(--muted); font-size:0.92rem; max-width:50ch; margin-top:6px; }

/* ============ BOOK CARD (typographic) ============ */
.book-card{ border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); padding:20px; display:flex; flex-direction:column; gap:10px; min-height:220px; position:relative; transition:border-color .15s ease, transform .15s ease; }
.book-card:hover, .book-card:focus-visible{ border-color:var(--ink); transform:translateY(-2px); }
.book-card .bc-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.book-card .bc-genre{ font-size:0.66rem; font-weight:600; letter-spacing:0.05em; color:var(--genre-color,var(--accent-red)); }
.book-card .bc-num{ font-family:var(--mono); font-size:0.64rem; color:var(--muted); }
.book-card h3{ font-size:1.25rem; line-height:1.2; margin-top:auto; }
.book-card .bc-author{ font-size:0.88rem; color:var(--charcoal); }
.book-card .bc-year{ font-family:var(--mono); font-size:0.72rem; color:var(--muted); }
.book-card .bc-meta{ display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
.tag{ font-size:0.64rem; font-weight:600; letter-spacing:0.03em; border:1px solid var(--border); border-radius:12px; padding:3px 9px; color:var(--muted); }
.avail-dot{ display:inline-flex; align-items:center; gap:6px; font-size:0.7rem; font-weight:600; }
.avail-dot::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--success); }
.avail-dot.on-loan::before{ background:var(--warning); }
.avail-dot.reserved::before{ background:var(--accent-blue); }
.avail-dot.reference::before{ background:var(--accent-plum); }
.avail-dot.coming::before{ background:var(--muted); }
.bc-arrow{ position:absolute; right:18px; bottom:18px; opacity:0; transform:translateX(-4px); transition:all .15s ease; font-size:1.1rem; }
.book-card:hover .bc-arrow, .book-card:focus-visible .bc-arrow{ opacity:1; transform:translateX(0); }
.book-card.is-saved::after{ content:'SAVED'; position:absolute; top:-1px; left:16px; background:var(--accent-gold); color:var(--paper); font-size:0.6rem; font-weight:700; padding:2px 8px; letter-spacing:0.05em; }

.book-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:1100px) and (min-width:701px){ .book-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:700px){ .book-grid{ grid-template-columns:repeat(2,1fr); gap:14px; } }
@media (max-width:480px){ .book-grid{ grid-template-columns:1fr; } }

/* list view */
.book-list{ display:flex; flex-direction:column; }
.book-row{ display:grid; grid-template-columns:80px 2fr 1.3fr 90px 130px 40px; gap:16px; align-items:center; padding:16px 8px; border-bottom:1px solid var(--border); }
.book-row:hover{ background:var(--surface); }
.book-row .br-title{ font-family:var(--serif); font-size:1.05rem; }
.book-row .br-author{ font-size:0.85rem; color:var(--muted); }
@media (max-width:800px){ .book-row{ grid-template-columns:1fr; gap:4px; padding:14px 8px;} .book-row .mono{display:none;} }

/* Shelf / spine system */
.shelf-strip{ display:flex; gap:2px; overflow-x:auto; padding:24px 0 32px; border-bottom:2px solid var(--ink); scrollbar-width:thin; }
.spine{ min-width:42px; flex:0 0 auto; background:var(--surface-strong); border:1px solid var(--border); border-bottom:none; height:210px; display:flex; flex-direction:column; align-items:center; justify-content:space-between; padding:14px 6px; writing-mode:vertical-rl; text-orientation:mixed; }
.spine:hover{ background:var(--surface); }
.spine .sp-title{ font-family:var(--serif); font-size:0.82rem; }
.spine .sp-meta{ font-family:var(--mono); font-size:0.6rem; color:var(--muted); }

/* ============ FILTERS ============ */
.catalogue-toolbar{ position:sticky; top:76px; background:var(--paper); z-index:40; padding:18px 0; border-bottom:1px solid var(--border); }
.search-field{ position:relative; }
.search-field input{ width:100%; padding:14px 16px; border:1px solid var(--border); background:var(--surface); border-radius:var(--radius); color:var(--ink); }
.search-field input:focus{ border-color:var(--ink); outline:none; }
.toolbar-row{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:12px; justify-content:space-between; }
.toolbar-controls{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.select-field{ padding:9px 10px; border:1px solid var(--border); background:var(--surface); color:var(--ink); border-radius:var(--radius); font-size:0.82rem; }
.view-toggle{ display:flex; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.view-toggle button{ background:var(--surface); border:none; padding:9px 12px; font-size:0.78rem; color:var(--muted); }
.view-toggle button.active{ background:var(--ink); color:var(--paper); }
.result-count{ font-size:0.82rem; color:var(--muted); }
.filter-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.chip{ display:flex; align-items:center; gap:6px; border:1px solid var(--ink); border-radius:20px; padding:5px 10px 5px 12px; font-size:0.72rem; font-weight:600; }
.chip button{ background:none; border:none; color:inherit; font-size:0.9rem; line-height:1; padding:0; }
.clear-all{ font-size:0.75rem; color:var(--muted); text-decoration:underline; background:none; border:none; }

.filter-drawer-btn{ display:none; }
@media (max-width:900px){
  .filter-drawer-btn{ display:inline-flex; }
  .desktop-filters{ display:none; }
}
.filter-sheet{ position:fixed; inset:0; z-index:210; display:none; }
.filter-sheet.open{ display:block; }
.filter-sheet .scrim{ position:absolute; inset:0; background:rgba(20,17,13,0.5); }
.filter-sheet .sheet{ position:absolute; bottom:0; left:0; right:0; max-height:82vh; overflow-y:auto; background:var(--paper); border-top:1px solid var(--border); border-radius:12px 12px 0 0; padding:20px; }
.filter-group{ margin-bottom:20px; }
.filter-group h4{ font-size:0.78rem; letter-spacing:0.03em; color:var(--muted); margin-bottom:10px; }
.filter-opts{ display:flex; flex-wrap:wrap; gap:8px; }
.filter-opt{ border:1px solid var(--border); border-radius:16px; padding:6px 12px; font-size:0.78rem; background:var(--surface); }
.filter-opt.active{ background:var(--ink); color:var(--paper); border-color:var(--ink); }

/* ============ EMPTY / LOADING / ERROR STATES ============ */
.state-block{ text-align:center; padding:80px 20px; border:1px dashed var(--border); border-radius:var(--radius); margin:24px 0; }
.state-block h3{ font-size:1.6rem; margin-bottom:10px; }
.state-block p{ color:var(--muted); max-width:44ch; margin:0 auto 20px; }
.state-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.loading-line{ font-family:var(--mono); font-size:0.85rem; color:var(--muted); letter-spacing:0.05em; }
.loading-rule{ height:2px; background:var(--border); margin-top:14px; overflow:hidden; position:relative; }
.loading-rule::after{ content:''; position:absolute; left:-40%; top:0; bottom:0; width:40%; background:var(--ink); animation:loadmove 1.1s ease-in-out infinite; }
@keyframes loadmove{ 0%{left:-40%;} 100%{left:100%;} }
@media (prefers-reduced-motion: reduce){ .loading-rule::after{ animation:none; left:0; width:100%; } }

/* ============ BOOK DETAIL ============ */
.book-detail-head{ padding:48px 0 32px; border-bottom:1px solid var(--border); }
.detail-num{ font-family:var(--mono); font-size:0.78rem; color:var(--muted); }
.detail-title{ font-size:clamp(2rem,4.6vw,3.4rem); line-height:1.02; margin-top:10px; }
.detail-byline{ font-size:1.05rem; margin-top:12px; color:var(--charcoal); }
.detail-actions{ display:flex; gap:12px; margin-top:24px; flex-wrap:wrap; }
.metadata-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px 28px; padding:32px 0; border-bottom:1px solid var(--border); }
@media (max-width:700px){ .metadata-grid{ grid-template-columns:repeat(2,1fr); } }
.metadata-item .mi-label{ font-size:0.68rem; letter-spacing:0.05em; color:var(--muted); }
.metadata-item .mi-value{ font-size:0.95rem; margin-top:4px; }
.detail-body{ display:grid; grid-template-columns:2fr 1fr; gap:48px; padding:40px 0; }
@media (max-width:900px){ .detail-body{ grid-template-columns:1fr; } }
.detail-description{ font-family:var(--serif); font-size:1.15rem; line-height:1.7; color:var(--charcoal); }
.related-item{ display:flex; justify-content:space-between; padding:14px 0; border-bottom:1px solid var(--border); }
.related-item:hover{ color:var(--accent-red); }

/* ============ COLLECTION / LIST CARDS ============ */
.collection-card{ border:1px solid var(--border); padding:24px; display:flex; flex-direction:column; gap:12px; min-height:200px; border-top:4px solid var(--card-color,var(--accent-red)); }
.collection-card:hover{ background:var(--surface); }
.collection-card h3{ font-size:1.4rem; }
.collection-card p{ color:var(--muted); font-size:0.9rem; line-height:1.5; }
.collections-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:1100px) and (min-width:701px){ .collections-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:700px){ .collections-grid{ grid-template-columns:1fr; } }

.rl-card{ border:1px solid var(--border); padding:22px; display:flex; flex-direction:column; gap:10px; }
.rl-progress-bar{ height:5px; background:var(--surface-strong); border-radius:3px; overflow:hidden; }
.rl-progress-fill{ height:100%; background:var(--accent-green); }

/* ============ EVENTS ============ */
.event-card{ border:1px solid var(--border); padding:20px; display:grid; grid-template-columns:90px 1fr auto; gap:18px; align-items:center; }
@media (max-width:640px){ .event-card{ grid-template-columns:1fr; gap:8px; } }
.event-date-block{ text-align:center; border-right:1px solid var(--border); padding-right:16px; }
@media (max-width:640px){ .event-date-block{ border-right:none; text-align:left; padding-right:0; } }
.event-date-block .day{ font-family:var(--serif); font-size:1.8rem; }
.event-date-block .mon{ font-size:0.68rem; letter-spacing:0.05em; color:var(--muted); }

/* ============ FORMS / MODALS ============ */
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:0.8rem; font-weight:600; margin-bottom:6px; }
.field input, .field select, .field textarea{ width:100%; padding:12px 14px; border:1px solid var(--border); background:var(--surface); border-radius:var(--radius); color:var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--ink); outline:none; }
.field .err{ color:var(--error); font-size:0.76rem; margin-top:5px; display:none; }
.field.invalid input, .field.invalid select, .field.invalid textarea{ border-color:var(--error); }
.field.invalid .err{ display:block; }
.checkbox-field{ display:flex; gap:10px; align-items:flex-start; font-size:0.86rem; }

.modal-overlay{ position:fixed; inset:0; background:rgba(20,17,13,0.55); display:none; align-items:center; justify-content:center; z-index:300; padding:20px; }
.modal-overlay.open{ display:flex; }
.modal-box{ background:var(--paper); border:1px solid var(--border); max-width:520px; width:100%; max-height:88vh; overflow-y:auto; padding:32px; position:relative; }
.modal-close{ position:absolute; top:16px; right:16px; background:none; border:none; font-size:1.3rem; color:var(--muted); }
.modal-box h3{ font-size:1.5rem; margin-bottom:6px; }
.modal-box .modal-sub{ color:var(--muted); font-size:0.86rem; margin-bottom:20px; }
.demo-note{ font-size:0.76rem; color:var(--muted); background:var(--surface-strong); padding:10px 12px; border-radius:var(--radius); margin-top:16px; }

/* ============ TOASTS ============ */
.toast-region{ position:fixed; bottom:20px; right:20px; z-index:400; display:flex; flex-direction:column; gap:10px; max-width:320px; }
@media (max-width:640px){ .toast-region{ left:20px; right:20px; max-width:none; } }
.toast{ background:var(--ink); color:var(--paper); padding:14px 16px; border-radius:var(--radius); font-size:0.86rem; display:flex; justify-content:space-between; gap:12px; align-items:center; animation:toastIn .2s ease; }
@keyframes toastIn{ from{ opacity:0; transform:translateY(8px);} to{opacity:1; transform:none;} }
.toast button{ background:none; border:none; color:var(--paper); opacity:0.7; }

/* ============ COMMAND PALETTE ============ */
.cmdk-overlay{ position:fixed; inset:0; background:rgba(20,17,13,0.5); display:none; z-index:500; align-items:flex-start; justify-content:center; padding-top:12vh; }
.cmdk-overlay.open{ display:flex; }
.cmdk-box{ background:var(--paper); border:1px solid var(--border); width:min(560px,90vw); max-height:60vh; overflow-y:auto; }
.cmdk-input{ width:100%; padding:18px; border:none; border-bottom:1px solid var(--border); background:transparent; color:var(--ink); font-size:1.05rem; }
.cmdk-input:focus{ outline:none; }
.cmdk-item{ padding:14px 18px; display:flex; justify-content:space-between; font-size:0.92rem; }
.cmdk-item.active, .cmdk-item:hover{ background:var(--surface-strong); }

/* ============ MISC PAGE PATTERNS ============ */
.page-head{ padding:56px 0 32px; border-bottom:1px solid var(--border); }
.page-head h1{ font-size:clamp(2.2rem,5vw,3.4rem); }
.page-head p{ color:var(--muted); margin-top:14px; max-width:56ch; font-size:1.02rem; line-height:1.6; }

.principle-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px 32px; }
@media (max-width:700px){ .principle-list{ grid-template-columns:1fr; } }
.principle-item{ display:flex; gap:14px; padding:18px 0; border-bottom:1px solid var(--border); }
.principle-item .p-num{ font-family:var(--mono); color:var(--muted); font-size:0.8rem; }

.team-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
@media (max-width:700px){ .team-list{ grid-template-columns:1fr; } }
.team-item{ border:1px solid var(--border); padding:22px; display:flex; gap:16px; }
.team-initials{ font-family:var(--serif); font-weight:700; font-size:1.3rem; border:1px solid var(--ink); width:56px; height:56px; flex:0 0 auto; display:flex; align-items:center; justify-content:center; }

.spaces-diagram{ display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(2,140px); gap:10px; }
@media (max-width:700px){ .spaces-diagram{ grid-template-columns:repeat(2,1fr); grid-template-rows:repeat(3,130px); } }
.space-room{ border:1px solid var(--border); background:var(--surface); padding:14px; display:flex; flex-direction:column; justify-content:space-between; text-align:left; }
.space-room:hover{ background:var(--surface-strong); border-color:var(--ink); }
.space-room h4{ font-family:var(--sans); font-weight:600; font-size:0.88rem; }

.tier-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px){ .tier-grid{ grid-template-columns:1fr; } }
.tier-card{ border:1px solid var(--border); padding:28px; display:flex; flex-direction:column; gap:16px; }
.tier-card.selected{ border-color:var(--ink); border-width:2px; background:var(--surface); }
.tier-card ul li{ font-size:0.86rem; padding:6px 0; border-bottom:1px solid var(--border); }
.tier-price{ font-family:var(--serif); font-size:1.6rem; }

.notfound-hero{ text-align:center; padding:100px 20px; }
.notfound-hero h1{ font-size:clamp(2rem,6vw,3.2rem); }

/* discovery */
.discovery-panel{ border:1px solid var(--border); padding:28px; background:var(--surface); }
.discovery-opts{ display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }

/* search results */
.search-result{ display:flex; justify-content:space-between; gap:16px; padding:18px 0; border-bottom:1px solid var(--border); }
.search-result .sr-type{ font-size:0.66rem; letter-spacing:0.05em; color:var(--muted); font-weight:600; }
.search-group-title{ font-size:0.78rem; letter-spacing:0.05em; color:var(--muted); margin:32px 0 8px; }

/* print */
@media print{
  .site-header, .site-footer, .catalogue-toolbar, .hero-actions, .detail-actions, .toast-region, .mobile-drawer, .filter-sheet, .cmdk-overlay, .modal-overlay, .skip-link{ display:none !important; }
  body{ background:#fff; color:#000; }
  a{ color:#000; }
}

/* utility */
.mt-0{margin-top:0;} .center{text-align:center;}
.stack{display:flex; flex-direction:column; gap:8px;}
.divider{ border-top:1px solid var(--border); margin:40px 0; }
.badge-count{ font-family:var(--mono); font-size:0.7rem; color:var(--muted); }
