/* Prince of Wales – dev build
   Palette taken from "POW Desktop - Home V2 Proof 3". Where the proof fails WCAG 2.2 AAA contrast
   the colour has been darkened/lightened minimally and is marked "AAA:" below. */

@font-face {
  font-family: "Gloock";
  src: url("../fonts/gloock-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #3c3c3c;   /* header, reservations */
  --espresso: #191006;   /* nav bar, footer */
  --sand: #ded4c8;       /* reservations heading, buttons, footer links */
  --taupe: #786d61;      /* proof colour – large headings only (5.05:1, passes AAA for large text) */
  --taupe-text: #5f554b; /* AAA: body copy on white (7.27:1; proof #786d61 = 5.05:1) */
  --panel: #5a5046;      /* AAA: contact/hours panel (white = 7.86:1; proof #786d61/#675d51 = 5.05/6.44) */
  --white: #fff;
  --font-display: "Gloock", "Bodoni 72", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1rem, 5vw, 6.25rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.25rem;       /* 20px as in the proof */
  font-weight: 500;
  line-height: 1.6;         /* AAA 1.4.8: at least 1.5 */
  color: var(--charcoal);
  background: var(--white);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: .02em; }
p { margin: 0 0 1.5em; }
img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }

/* Focus: two-tone ring that is visible on light and dark backgrounds, never clipped (2.4.7 / 2.4.11 / 2.4.13) */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--espresso);
  border-radius: 2px;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -6rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  min-height: 44px;
  background: var(--white);
  color: var(--espresso);
  font-weight: 700;
  text-decoration: none;
  border: 3px solid var(--espresso);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header + navigation ---------- */
.site-header { background: var(--charcoal); padding: clamp(1.25rem, 3.6vw, 3.25rem) 1rem; }   /* 200px tall at 1440 */
.site-header a.logo { display: block; width: min(100%, 207px); margin: 0 auto; border-radius: 2px; }
.site-header img { display: block; width: 100%; height: auto; }

.site-nav { background: var(--espresso); }
.site-nav ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0 clamp(.5rem, 2.5vw, 2.5rem);
  margin: 0; padding: 0 1rem; list-style: none;
}
.site-nav a {
  position: relative;
  display: flex; align-items: center;
  min-height: 70px;          /* proof bar height; also satisfies 2.5.5 target size */
  padding: 0 .75rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
}
.site-nav a::after {
  content: ""; position: absolute; left: .25rem; right: .25rem; bottom: 14px;
  height: 2px; background: var(--sand);
  transform: scaleX(0); transition: transform .2s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { margin: 0; background: var(--charcoal); }
.hero img {
  width: 100%;
  height: clamp(220px, 41.5vw, 597px);   /* 1440 x 597 in the proof */
  object-fit: cover;
  object-position: 100% 50%;   /* centre-right */
}

/* ---------- Welcome ---------- */
.welcome { background: var(--white); text-align: center; padding: clamp(3rem, 6vw, 5.5rem) var(--gutter); }
.welcome h1 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: .02em; color: var(--taupe); font-size: clamp(2.75rem, 7vw, 4rem); margin-bottom: clamp(1rem, 1.7vw, 1.5rem); }
.welcome p { max-width: 45rem; margin: 0 auto; color: var(--taupe-text); font-weight: 400; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem 1.875rem; margin-top: clamp(2rem, 3.9vw, 3.5rem); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 170px; min-height: 50px; padding: .5rem 1.5rem;
  border: 1px solid var(--sand);
  font-size: 1.125rem; font-weight: 500; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn--solid { background: var(--sand); color: var(--espresso); }     /* AAA: proof uses white text (1.46:1) */
.btn--solid:hover { background: var(--espresso); color: var(--sand); border-color: var(--espresso); }
.btn--line { background: var(--white); color: var(--espresso); }
.btn--line:hover { background: var(--sand); }

/* ---------- Reservations ---------- */
.reservations { background: var(--charcoal); color: var(--white); text-align: center; padding: clamp(3rem, 7vw, 6.25rem) var(--gutter); }
.reservations h2 { color: var(--sand); font-size: clamp(2.75rem, 7vw, 4.5rem); margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.reservations p { max-width: 45rem; margin: 0 auto; font-weight: 600; }
.reservations p + p { margin-top: 1.25rem; }
.reservations a { color: var(--white); }
.reservations a:hover { text-decoration-thickness: .16em; }
#rd-widget-frame { max-width: 600px; margin: clamp(2rem, 5vw, 4rem) auto 0; text-align: left; }

/* ---------- Contact + hours ---------- */
.info { display: grid; grid-template-columns: minmax(0, 36.3fr) minmax(0, 63.7fr); color: var(--white); background: var(--panel); }
.info h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--white); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.info h3 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; margin: 0 0 .75rem; }
.info a { color: var(--white); }
.info__contact { padding: clamp(2.5rem, 5vw, 5rem) var(--gutter); background: var(--panel); }
.info__hours {
  padding: clamp(2.5rem, 5vw, 5rem) var(--gutter);
  background:
    linear-gradient(rgba(90, 80, 70, .97), rgba(90, 80, 70, .97)),   /* AAA: dense overlay keeps white text at >= 7:1 over the brightest pixels of the photo (7.28:1 worst case) */
    url("../img/restaurant-1600.jpg") center / cover no-repeat;
}
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; font-weight: 700; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-decoration-thickness: .12em; }
.address { font-style: normal; font-size: 1rem; font-weight: 500; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.social-intro { font-size: 1rem; font-weight: 500; margin: 0 0 .75rem; }
.social { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; }
.social a:hover { background: rgba(255, 255, 255, .18); }
.social img { width: 28px; height: 28px; }

.hours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); }
.hours-grid table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.hours-grid caption { text-align: left; font-weight: 700; font-size: 1.125rem; padding-bottom: .75rem; }
.hours-grid th, .hours-grid td { text-align: left; padding: .35rem 1rem .35rem 0; vertical-align: top; font-weight: 500; }
.hours-grid th { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--sand); font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; padding: .75rem var(--gutter) 4.5rem; }  /* bottom room so the fixed cookie-settings button never covers a link (2.4.12) */
.site-footer .wrap p { margin: 0; }
.site-footer .wrap ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer .wrap a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sand); }
.site-footer .wrap a:hover { color: var(--white); text-decoration-thickness: .16em; }

/* ---------- Policy pages ---------- */
.breadcrumb { background: var(--white); padding: 1.25rem var(--gutter) 0; font-size: 1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0 auto; padding: 0; max-width: 62rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--taupe-text); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }

.policy { background: var(--white); padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) clamp(3rem, 7vw, 6.25rem); }
.prose { max-width: 62rem; margin: 0 auto; font-size: 1.125rem; font-weight: 500; }
.prose > * { max-width: 70ch; }                 /* AAA 1.4.8: no more than 80 characters per line */
.prose > table, .prose > .cookie-table { max-width: none; }
.prose .summary { max-width: 70ch; margin: 0 0 3rem; padding: 1.25rem 1.5rem; background: #f3eee8; border-left: .375rem solid var(--taupe-text); }
.prose .summary h2 { margin-top: 0; }
.prose .summary ul { margin-bottom: 0; }
.prose .summary li { margin-bottom: .75rem; }
.prose .summary li:last-child { margin-bottom: 0; }
.prose h1 { color: var(--taupe); font-size: clamp(2.5rem, 6vw, 3.75rem); text-align: center; margin: 0 0 2rem; max-width: none; }
.prose h2 { color: var(--taupe-text); font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin: 3rem 0 1rem; }
.prose h3 { color: var(--taupe-text); font-size: clamp(1.375rem, 2.5vw, 1.75rem); margin: 2.25rem 0 .75rem; }
.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.5rem; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--espresso); font-weight: 600; }
.prose a:hover { background: var(--sand); }
.prose .updated { margin-top: 2.5rem; }

/* ---------- Menu pages (HTML versions of the food and drinks menus) ---------- */
.menu-page .prose > * { max-width: 48rem; }
.menu-page .prose > .menu-group, .menu-page .prose > .page-toc { max-width: 48rem; }
.menu-page h1 { margin-bottom: 1rem; }
.menu-page .menu-group { margin: 0 0 2.5rem; display: flow-root; }
.menu-page .menu-group .menu-group { margin-bottom: 2rem; }
.menu-page h2, .menu-page h3 { margin-top: 2.5rem; }
.menu-page h4 { color: var(--taupe-text); font-size: 1.375rem; margin: 2rem 0 .75rem; }
.menu-page h5 { color: var(--taupe-text); font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; letter-spacing: 0; margin: 1.5rem 0 .5rem; }
.menu-page .menu-note { margin: 0 0 1.25rem; }
.menu-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.prose .menu-list { padding-left: 0; }
.menu-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; margin: 0; padding: .625rem 0; border-bottom: 1px solid var(--sand); }
.menu-list .dish { font-weight: 600; }
.menu-list .price { font-weight: 700; text-align: right; white-space: nowrap; }
.menu-list .desc, .menu-list .diets, .menu-list .addon { grid-column: 1 / -1; font-size: 1rem; font-weight: 500; color: var(--taupe-text); }
.menu-list .addon { margin-top: .25rem; }
.menu-list .diet { display: inline-block; margin: .375rem .5rem 0 0; padding: .125rem .625rem; border: 1px solid var(--taupe-text); border-radius: 3px; font-size: .9375rem; font-weight: 600; color: var(--espresso); }
.menu-illus { float: right; width: 8.5rem; margin: 0 0 1rem 1.5rem; }
.menu-illus img { display: block; width: 100%; height: auto; }
.menu-table, .menu-page .menu-note--logo { clear: both; }
.menu-page .menu-note--logo { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 1rem 1.25rem; background: #f3eee8; }
.menu-note--logo .coravin { width: 9rem; height: auto; }
.menu-list .price .size { font-weight: 500; font-size: .9375rem; color: var(--taupe-text); margin-left: .5rem; }
.menu-list .price .size:first-child { margin-left: 0; }
@media (max-width: 40rem) { .menu-illus { width: 6rem; margin-left: 1rem; } }
.menu-page .menu-download { margin: 2rem 0 1.5rem; }
.menu-download a { display: inline-flex; align-items: center; min-height: 44px; }
.menu-key { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1rem; padding: 0; }
.prose .menu-key { padding-left: 0; }
.menu-key li { margin: 0; }
.page-toc { margin: 0 0 2.5rem; padding: 1rem 1.5rem; background: #f3eee8; border-left: .375rem solid var(--taupe-text); }
.page-toc h2 { margin: 0 0 .5rem; font-size: 1.375rem; color: var(--espresso); }
.page-toc ul { list-style: none; margin: 0; padding: 0; }
.page-toc li { margin: 0; }
.page-toc a { display: inline-flex; align-items: center; min-height: 44px; }
.menu-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 1rem; }
.menu-table th, .menu-table td { padding: .625rem .5rem; border-bottom: 1px solid var(--sand); vertical-align: top; }
.menu-table thead th { text-align: right; font-weight: 700; color: var(--taupe-text); }
.menu-table thead th:first-child, .menu-table tbody th { text-align: left; }
.menu-table tbody th { font-weight: 600; }
.menu-table td { text-align: right; font-weight: 700; white-space: nowrap; }
@media (max-width: 40rem) {
  .menu-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-table, .menu-table tbody, .menu-table tr, .menu-table th, .menu-table td { display: block; width: 100%; }
  .menu-table tr { padding: .5rem 0; border-bottom: 1px solid var(--sand); }
  .menu-table th, .menu-table td { border: 0; padding: .125rem 0; text-align: left; white-space: normal; }
  .menu-table td::before { content: attr(data-label) ": "; font-weight: 500; color: var(--taupe-text); }
}

.cookie-table { width: 100%; border-collapse: collapse; margin: 0 0 2rem; font-size: 1rem; }
.cookie-table caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
.cookie-table th, .cookie-table td { text-align: left; vertical-align: top; padding: .75rem 1rem; border: 1px solid var(--taupe); }
.cookie-table thead th { background: var(--sand); color: var(--espresso); }
.cookie-table td:first-child { font-weight: 700; word-break: break-word; }

/* ---------- Responsive ---------- */
@media (max-width: 62rem) {
  .info { grid-template-columns: 1fr; }
}
/* Mobile nav: four links stay on one row while they fit, then drop to a 2 x 2 grid.
   Breakpoints are in rem so they also respond when people enlarge their text. */
@media (max-width: 40rem) {
  .site-nav ul { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 0; padding: 0 .5rem; }
  .site-nav a { justify-content: center; min-height: 56px; padding: 0 .5rem; font-size: .9375rem; }
  .site-nav a::after { bottom: 10px; }
}
@media (max-width: 22rem) {
  .site-nav ul { grid-template-columns: repeat(2, 1fr); padding: .25rem 1rem; }
  .site-nav a { min-height: 48px; }
  .site-nav a::after { bottom: 6px; }
}
@media (max-width: 40rem) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .cookie-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cookie-table, .cookie-table caption, .cookie-table tbody, .cookie-table tr, .cookie-table td { display: block; width: 100%; }
  .cookie-table tr { margin-bottom: 1.25rem; border: 1px solid var(--taupe); }
  .cookie-table td { border: 0; border-bottom: 1px solid var(--sand); padding: .5rem .75rem; }
  .cookie-table td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--taupe-text); font-size: .875rem; }
}
@media print {
  .site-nav, .skip-link, .btn-row { display: none; }
}

/* ---------- CookieYes banner (overrides the dashboard colours; AAA contrast) ---------- */
.cky-consent-bar,
.cky-preference-center,
.cky-modal .cky-preference-center { background-color: var(--charcoal) !important; border-color: var(--charcoal) !important; color: #fff !important; }
.cky-consent-bar .cky-title,
.cky-consent-bar .cky-notice-des,
.cky-consent-bar .cky-notice-des p,
.cky-preference-center,
.cky-preference-center .cky-preference-title,
.cky-preference-center .cky-preference-content-wrapper,
.cky-preference-center .cky-accordion-header .cky-accordion-btn,
.cky-preference-center .cky-always-active { color: #fff !important; }
.cky-consent-bar .cky-notice-des, .cky-consent-bar .cky-notice-des p,
.cky-preference-center .cky-preference-content-wrapper p { font-size: 1rem !important; line-height: 1.6 !important; }
.cky-consent-bar a, .cky-preference-center a { color: #fff !important; text-decoration: underline !important; }
.cky-btn { font-family: var(--font-body) !important; font-size: 1rem !important; font-weight: 600 !important; min-height: 44px; }
.cky-btn-accept { background-color: #fff !important; border-color: #fff !important; color: var(--charcoal) !important; }   /* 11:1 */
.cky-btn-reject, .cky-btn-customize, .cky-btn-preferences { background-color: transparent !important; border-color: #fff !important; color: #fff !important; }
.cky-btn-revisit-wrapper { background-color: var(--charcoal) !important; width: 48px !important; height: 48px !important; }
/* AAA 2.5.5 target size: the whole circle is the button (48px, above the 44px minimum) */
.cky-btn-revisit-wrapper .cky-btn-revisit { display: grid !important; place-items: center; width: 48px !important; height: 48px !important; border-radius: 50%; }
.cky-btn-revisit-wrapper .cky-btn-revisit img { width: 26px !important; height: 26px !important; }
.cky-btn-revisit:focus-visible { outline: 3px solid #fff !important; outline-offset: -6px !important; box-shadow: 0 0 0 3px var(--espresso) !important; }
.cky-preference-center .cky-btn-close { min-width: 44px !important; min-height: 44px !important; display: grid; place-items: center; }
.cky-preference-center .cky-accordion-header .cky-accordion-btn { min-height: 44px; }
.cky-btn:focus-visible, .cky-banner-element:focus-visible, .cky-switch input:focus-visible {
  outline: 3px solid #fff !important; outline-offset: 2px !important; box-shadow: 0 0 0 6px var(--espresso) !important;
}
/* No advertising on this site: hide the empty Advertisement category from the preferences panel */
#ckyDetailCategoryadvertisement { display: none !important; }
.cky-preference-center .cky-show-desc-btn { color: #fff !important; text-decoration: underline !important; }   /* was #609fff on charcoal (4.15:1); white is 11.6:1 */
.cky-footer-shadow { background: linear-gradient(180deg, rgba(60, 60, 60, 0) 0%, var(--charcoal) 100%) !important; }
.cky-preference-center .cky-footer-wrapper, .cky-preference-center .cky-prefrence-btn-wrapper { background-color: var(--charcoal) !important; }
