/* The FitzWalter Arms — site styles */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #FAF8F3;
  --stone: #F1EDE4;
  --ink: #23221F;
  --ink-2: #3D3B36;
  --muted: #5E5B54;
  --rule: #DCD7CC;
  --photo: #E6E0D4;
  --todo: #E6DCC4;
  --accent: #B4521E;      /* warm orange: white text passes AA (4.8:1) */
  --accent-dark: #96431A;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; font-family: var(--sans); font-size: 15px; }
.skip:focus { top: 12px; color: var(--paper); }

.container { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 1120px; }

.eyebrow { font-family: var(--sans); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.small { font-size: 18px; color: var(--muted); }
.todo { background: var(--todo); padding: 0 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--large { min-height: 54px; padding: 0 28px; font-size: 14px; }
.text-link { font-size: 20px; }

/* Notice bar */
.notice {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px;
  padding: 9px 16px; border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center;
}
.notice a { color: var(--accent); font-weight: 500; text-decoration: none; }
.notice a:hover { text-decoration: underline; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header__inner {
  max-width: 1320px; margin: 0 auto; padding: 14px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  min-height: var(--header-h);
}
.header__nav { display: flex; gap: 28px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.header__nav a { text-decoration: none; }
.header__nav a:hover { text-decoration: underline; }
.wordmark { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; text-decoration: none; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark__name { font-size: 32px; line-height: 1.05; }
.wordmark__place { font-family: var(--sans); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.header__phone { font-size: 20px; text-decoration: none; }

.menu-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

.mobile-menu { border-top: 1px solid var(--rule); padding: 8px var(--gutter) 24px; background: var(--paper); }
.mobile-menu a { display: flex; align-items: center; min-height: 60px; border-bottom: 1px solid var(--rule); font-size: 26px; text-decoration: none; }
.mobile-menu p { margin-top: 18px; font-size: 18px; color: var(--muted); }

/* Hero */
.hero { padding: clamp(0px, 2vw, 24px) clamp(0px, 2vw, 24px) 0; }
.hero img { width: 100%; height: clamp(300px, 45vw, 640px); object-fit: cover; object-position: center 40%; background: var(--photo); }

/* Intro */
.intro {
  max-width: 760px; margin: 0 auto; padding: 88px var(--gutter) 96px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px;
}
.intro h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.08; }
.lede { font-size: 22px; line-height: 1.55; color: var(--ink-2); }
.intro__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 6px; }
.facts { margin-top: 6px; font-size: 18px; color: var(--muted); }

/* Bands */
.band { background: var(--stone); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section { padding-block: 96px; }

/* Booking */
.booking {
  max-width: 1120px; padding-block: 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px 80px; align-items: center;
}
.booking__title { font-size: clamp(34px, 3.6vw, 46px); line-height: 1.1; }
.booking__title em { color: var(--accent); }
.booking__number { display: inline-block; margin-top: 10px; font-size: clamp(38px, 4.4vw, 56px); line-height: 1.15; color: var(--accent); text-decoration: none; }
.booking__number:hover { color: var(--accent-dark); text-decoration: underline; }
.booking__copy { display: flex; flex-direction: column; gap: 16px; color: var(--ink-2); }

/* Section heads */
.section-head { display: flex; flex-direction: column; gap: 10px; }
.section-head h2 { font-size: clamp(36px, 4vw, 52px); line-height: 1.08; }
.section-head--centre { align-items: center; text-align: center; margin-bottom: 48px; }
.section-head--centre p:not(.eyebrow) { margin-top: 6px; max-width: 34em; color: var(--ink-2); }

/* Split (image + text) */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px 80px; align-items: start; }
.split__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--photo); }
.split__text { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.split--reverse .split__img { order: 2; }
@media (max-width: 999px) { .split--reverse .split__img { order: 0; } }

.course { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--rule); padding-top: 24px; color: var(--ink-2); }
.course h3 { font-size: 26px; font-weight: 500; line-height: 1.2; color: var(--ink); }
.course .btn { align-self: flex-start; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.menu li { display: flex; align-items: baseline; gap: 10px; }
.menu__dots { flex: 1; border-bottom: 1px dotted #B9B2A3; }

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 40px 32px; }
.room { display: flex; flex-direction: column; gap: 14px; }
.room img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #E2DBCD; }
.room h3 { font-size: 24px; font-weight: 500; line-height: 1.2; }
.room p { font-size: 18px; color: var(--ink-2); }

/* Timeline */
.timeline { margin: 0; display: flex; flex-direction: column; }
.timeline div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.timeline div:last-child { border-bottom: 1px solid var(--rule); }
.timeline dt { font-weight: 500; }
.timeline dd { margin: 0; color: var(--ink-2); }

/* Visit */
.visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px 80px; }
.visit > div { display: flex; flex-direction: column; gap: 16px; }
.visit h3 { font-size: 26px; font-weight: 500; line-height: 1.2; }
.visit address { font-style: normal; line-height: 1.5; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 10px 0; border-top: 1px solid #D3CDC0; font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid #D3CDC0; }
.hours th { text-align: left; }
.hours td { text-align: right; }
.map { height: 220px; background: #E2DBCD; border: 1px solid var(--rule); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.6); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer {
  border-top: 1px solid var(--rule); padding: 64px var(--gutter) 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; color: var(--ink-2);
}
.footer__name { font-size: 30px; line-height: 1.1; color: var(--ink); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 19px; }
.footer__links a { text-decoration: none; }
.footer__small { margin-top: 24px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Phone call bar */
.callbar { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 999px) {
  .header__nav { display: none; }
  .header__inner { grid-template-columns: 1fr auto; }
  .wordmark { align-items: flex-start; text-align: left; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Phone ---------- */
@media (max-width: 759px) {
  :root { --header-h: 68px; }
  body { font-size: 19px; padding-bottom: 84px; }
  .notice { display: none; }
  .header__inner { padding-block: 10px; }
  .wordmark__name { font-size: 24px; }
  .wordmark__place { font-size: 11px; letter-spacing: 0.22em; }
  .header__phone, .header__cta { display: none; }
  .intro { padding: 40px 20px 44px; gap: 16px; }
  .intro h1 { font-size: 38px; }
  .lede { font-size: 19px; }
  .intro__actions .btn { width: 100%; }
  .facts { font-size: 17px; }
  .booking { padding-block: 40px; gap: 16px; }
  .section { padding-block: 56px; }
  .section-head--centre { margin-bottom: 32px; }
  .split { gap: 32px; }
  .callbar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule);
  }
  .callbar__call { flex: 1; min-height: 52px; font-size: 14px; }
  .callbar__dir { width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); color: var(--ink); }
}

@media print {
  .notice, .header, .callbar, .map { display: none; }
  body { padding: 0; }
}
