@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('./assets/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
}

:root {
  --red: #7a1c22;
  --red-deep: #5c1318;
  --gilt: #c9a35a;
  --gilt-ink: #8a6a2a;
  --gilt-light: #e6cd93;
  --cream: #f5eee1;
  --paper: #fbf7ef;
  --ink: #2b1d19;
  --muted: #6b5a52;
  --rule: #d9cbb4;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--gilt); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
em { font-style: italic; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.kicker { font: 600 0.78rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gilt-ink); margin: 0 0 14px; }
.kicker.light { color: var(--gilt-light); }
.lede { font-size: 1.12rem; }
.small { font-size: 0.9rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .18s ease, background-color .18s ease, color .18s ease; }
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--red); border-color: var(--red); }
.btn.ghost:hover { background: var(--red); color: #fff; }
.btn.light { background: var(--gilt-light); color: var(--red-deep); }
.btn.light:hover { background: #fff; color: var(--red-deep); }
.btn.light-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.light-ghost:hover { border-color: #fff; color: #fff; }

/* Header */
.mast { position: sticky; top: 0; z-index: 20; background: var(--red); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.awning { height: 8px; background: repeating-linear-gradient(90deg, var(--red-deep) 0 22px, var(--cream) 22px 44px); }
.mast-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { font-family: var(--serif); font-weight: 600; color: var(--gilt-light); text-decoration: none; font-size: 1.6rem; line-height: 1; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand-caps { letter-spacing: 0.06em; text-transform: uppercase; }
.brand em { font-weight: 500; font-size: 1.05em; padding: 0 0.02em; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: #fff; text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--gilt-light); border-bottom-color: var(--gilt); }
.demo-pill { font: 600 0.68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gilt-light); border: 1px solid rgba(230,205,147,.55); border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 8px 14px; font: 600 0.9rem var(--sans); cursor: pointer; min-height: 40px; }

/* Hero */
.hero { background: var(--cream); padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.6rem); line-height: 0.98; margin-bottom: 26px; color: var(--ink); }
.hero h1 em { color: var(--red); }
.intro { font-size: 1.15rem; max-width: 36em; }
.today { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: 6px; padding: 14px 18px; margin: 26px 0; max-width: 34em; }
.today p { margin: 0; line-height: 1.45; }
.today strong { display: block; }
.today span#today-note { color: var(--muted); font-size: 0.95rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3f8a4f; margin-top: 8px; flex: none; box-shadow: 0 0 0 4px rgba(63,138,79,.18); }
.today.closed .dot { background: #b07a2a; box-shadow: 0 0 0 4px rgba(176,122,42,.18); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.owners { font-size: 0.95rem; color: var(--muted); margin: 0; }
.owners strong { color: var(--ink); font-weight: 600; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; border-radius: 4px; box-shadow: 0 24px 50px -28px rgba(43,29,25,.6); }
figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 10px; line-height: 1.4; }

/* Rooms */
.rooms { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { margin-bottom: 36px; max-width: 760px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.section-head.split p:last-child { margin: 0; }
.room-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.room { display: grid; grid-template-columns: 170px 1.1fr 1.6fr 120px 32px; align-items: center; gap: 24px; padding: 22px 8px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: transform .2s ease, background-color .2s ease; }
.room:hover { background: var(--cream); transform: scale(1.01); color: var(--ink); }
.room-where { font: 600 0.78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt-ink); }
.room-name { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; line-height: 1; }
.room-line { color: var(--muted); }
.room-snap { width: 120px; height: 80px; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); transform: rotate(-2deg); transition: transform .2s ease; }
.room:hover .room-snap { transform: rotate(0) scale(1.06); }
.room-go { font-size: 1.5rem; color: var(--red); text-align: right; }

/* Snapshots */
.snaps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.snap { margin: 0; background: #fff; padding: 8px 8px 10px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.55); max-width: 260px; }
.snap img { width: 100%; }
.snap figcaption { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink); margin-top: 6px; text-align: center; }
.tilt-l { transform: rotate(-1.6deg); }
.tilt-r { transform: rotate(1.4deg); }
.snap-credit { font-size: 0.8rem; color: var(--muted); margin: 14px 0 0; }

/* Test kitchen */
.kitchen { background: var(--red); color: #fbeee6; padding: clamp(56px, 7vw, 100px) 0; }
.kitchen a { color: var(--gilt-light); }
.kitchen-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 80px); }
.kitchen h2 { color: #fff; margin-bottom: 22px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 30px 0 0; border-top: 1px solid rgba(230,205,147,.5); }
.facts div { padding: 14px 16px 0 0; }
.facts dt { font: 600 0.75rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt-light); margin-bottom: 6px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: #fff; }
.kitchen .snap-credit { color: #e9cfc4; }
.press { margin: 34px 0 0; padding: 0; }
.press p { font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.3; margin-bottom: 10px; }
.press cite { font-style: normal; font-size: 0.9rem; }
.kitchen .press { border-top: 1px solid rgba(230,205,147,.5); padding-top: 22px; }
.press.wide { max-width: 860px; margin: 56px auto 0; text-align: center; border-top: 1px solid var(--rule); padding-top: 32px; }
.press.wide p { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.press.wide cite { color: var(--muted); }

/* Series */
.series { padding: clamp(56px, 7vw, 96px) 0; background: var(--paper); }
.volume-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.volume { display: grid; grid-template-columns: 90px 1.25fr 1.25fr; gap: 24px; align-items: baseline; padding: 18px 8px; border-bottom: 1px solid var(--rule); transition: background-color .2s ease, transform .2s ease; }
.volume:hover { background: var(--cream); transform: scale(1.005); }
.vol-no { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--red); line-height: 1; }
.vol-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.vol-dishes { color: var(--muted); font-size: 0.95rem; }
.series-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.series-foot p { margin: 0; color: var(--muted); }

/* Workshops */
.workshops { background: var(--cream); padding: clamp(56px, 7vw, 100px) 0; }
.workshop-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.snaps.row { margin-top: 30px; }
.ticket { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 0 28px 28px; position: relative; box-shadow: 0 20px 40px -30px rgba(43,29,25,.6); }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 54px; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); border: 1px solid var(--rule); }
.ticket::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -12px; clip-path: inset(0 50% 0 0); }
.ticket-top { margin: 0 -28px 22px; padding: 18px 28px; border-bottom: 2px dashed var(--rule); font: 600 0.75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.ticket h3 { margin-bottom: 14px; }
.ticket-list { list-style: none; margin: 0 0 24px; padding: 0; }
.ticket-list li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.ticket-list span { font: 600 0.75rem/1.9 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gilt-ink); }
.ticket-cta .btn { width: 100%; }
.ticket-cta p { margin: 12px 0 0; text-align: center; font-size: 0.95rem; }
.teachers { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 40px; }
.teachers p { margin: 0; color: var(--muted); }
.teachers strong { color: var(--ink); font-weight: 600; }

/* Books */
.books { padding: clamp(56px, 7vw, 100px) 0; }
.books-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.books h2 { margin-bottom: 22px; }
.chip-label { font-weight: 600; margin: 26px 0 12px; }
.chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: 500 0.98rem/1 var(--sans); background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 12px 16px; min-height: 44px; cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.chip:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-1px); }
.books-side { display: grid; gap: 30px; justify-items: start; }
.snap.big { max-width: 340px; }
.post-panel { border-top: 2px solid var(--ink); padding-top: 20px; }
.post-panel h3 { margin-bottom: 12px; }

/* Story */
.story { background: var(--cream); padding: clamp(56px, 7vw, 100px) 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.story h2 { margin-bottom: 22px; }
.story h2 em { color: var(--red); }
.owners-note { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 26px 120px 22px 26px; margin-top: 28px; }
.owners-note p { font-family: var(--serif); font-size: 1.28rem; line-height: 1.4; }
.owners-note .sig { font-style: italic; font-size: 1.3rem; color: var(--red); margin: 0; }
.owners-note .sig span { display: block; font: 600 0.72rem/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--muted); }
.mascot { position: absolute; right: 16px; bottom: 16px; width: 82px; }
.story-photo { margin: 0; }
.story-photo img { width: 100%; border-radius: 4px; }
.timeline { list-style: none; margin: 64px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 18px 8px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.timeline .yr { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--red); line-height: 1.1; }
.timeline p { margin: 0; max-width: 52em; }
.old-front { margin: -96px 28px 0 auto; max-width: 210px; position: relative; }
.story-photo figcaption { max-width: calc(100% - 270px); }
.story-side { display: grid; }

/* Visit */
.visit { background: var(--red-deep); color: #f6e7df; padding: clamp(56px, 7vw, 100px) 0; }
.visit h2 { color: #fff; margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.2rem); }
.visit a { color: var(--gilt-light); }
.visit .btn.light { color: var(--red-deep); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.maps { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 28px; }
.contact-lines { border-top: 1px solid rgba(230,205,147,.4); margin-bottom: 26px; }
.contact-lines p { display: grid; grid-template-columns: 90px 1fr; margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(230,205,147,.4); }
.contact-lines span { font: 600 0.75rem/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt-light); }
.contact-lines a { font-size: 1.1rem; }
.hours-card { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 24px 26px; margin-bottom: 30px; }
.hours-card h3 { margin-bottom: 10px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--rule); font-weight: 500; }
.hours td { text-align: right; font-weight: 600; }
.hours-card .small { margin: 0; }
.routes { margin: 0; }
.routes div { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(230,205,147,.4); }
.routes dt { font: 600 0.75rem/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt-light); }
.routes dd { margin: 0; }

/* Footer */
.foot { background: var(--ink); color: #d8cabe; padding: 44px 0; font-size: 0.9rem; }
.foot a { color: var(--gilt-light); }
.foot-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.foot-brand { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: center; }
.foot-brand img { grid-row: span 2; background: var(--cream); border-radius: 6px; padding: 4px; width: 56px; height: auto; }
.foot-brand .brand { color: var(--gilt-light); font-size: 1.5rem; margin: 0; }
.foot-brand p:last-child { margin: 0; }
.foot-notes p { margin: 0 0 10px; }
.demo-line { color: #b9a99c; }

/* Dialog */
dialog { border: 0; border-radius: 10px; padding: 0; width: min(520px, calc(100vw - 32px)); color: var(--ink); background: var(--paper); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(43,29,25,.55); }
.enquiry-form { padding: 28px; display: grid; gap: 14px; }
.enquiry-form h2 { font-size: 2rem; }
.dlg-kicker { font: 600 0.72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gilt-ink); margin: 0; }
.topic { margin: 0; color: var(--red); font-weight: 600; }
.topic:empty { display: none; }
.enquiry-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.enquiry-form input, .enquiry-form textarea, .enquiry-form select { font: 16px/1.4 var(--sans); padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); }
.workshop-only { display: none; gap: 14px; }
.workshop-only.on { display: grid; }
.note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.dlg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dlg-actions .btn { min-height: 44px; }

/* Responsive */
@media (max-width: 980px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--red); flex-direction: column; gap: 0; padding: 8px var(--pad) 18px; box-shadow: 0 12px 20px -12px rgba(0,0,0,.4); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 1.05rem; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .mast-row { gap: 12px; }
  .hero-grid, .kitchen-grid, .workshop-grid, .books-grid, .story-grid, .visit-grid, .foot-grid { grid-template-columns: 1fr; }
  .section-head.split { grid-template-columns: 1fr; gap: 16px; }
  .teachers { grid-template-columns: 1fr; gap: 12px; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 70%; }
  .old-front { margin: 28px auto 0; }
  .story-photo figcaption { max-width: none; }
  .room { grid-template-columns: 1fr 96px; grid-template-areas: "where snap" "name snap" "line line"; gap: 6px 16px; padding: 20px 4px; }
  .room-where { grid-area: where; }
  .room-name { grid-area: name; }
  .room-line { grid-area: line; margin-top: 6px; }
  .room-snap { grid-area: snap; width: 96px; height: 70px; }
  .room-go { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { font-size: 1.32rem; }
  .demo-pill { padding: 4px 7px; font-size: 0.6rem; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .facts { grid-template-columns: 1fr; }
  .facts div { padding: 12px 0; border-bottom: 1px solid rgba(230,205,147,.3); }
  .volume { grid-template-columns: 56px 1fr; gap: 4px 14px; }
  .vol-no { grid-row: span 2; font-size: 1.6rem; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .owners-note { padding: 22px 22px 120px; }
  .mascot { right: 22px; bottom: 16px; width: 64px; }
  .ticket { padding: 0 20px 22px; }
  .ticket-top { margin: 0 -20px 20px; padding: 16px 20px; }
  .ticket-list li { grid-template-columns: 1fr; gap: 2px; }
  .snaps { gap: 12px; }
  .snap { padding: 6px 6px 8px; }
  .snap figcaption { font-size: 0.92rem; }
  .old-front { margin: 28px auto 0; }
  .btn { width: 100%; }
  .actions .btn, .maps .btn { flex: 1 1 100%; }
  .series-foot .btn, .post-panel .btn { width: 100%; }
  .dlg-actions .btn { width: auto; flex: 1; }
  .contact-lines p { grid-template-columns: 70px 1fr; }
}
