@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --burgundy: #8b0000;
  --burgundy-dark: #610000;
  --charcoal: #292929;
  --ink: #242424;
  --muted: #626262;
  --paper: #fff;
  --soft-grey: #f3f3f3;
  --line: #d8d8d8;
  --focus: #005fcc;
  --available: #167443;
  --unavailable: #8b0000;
  --closed: #4d4d4d;
  --reserved: #7a4b00;
  --reserved-accent: #f0c96a;
  --shadow: 0 12px 36px rgb(20 20 20 / 12%);
  --radius: 0.8rem;
  --radius-small: 0.45rem;
  --shell: 76rem;
  --header-height: 5.2rem;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

body:has(dialog[open]) {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--burgundy);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--burgundy-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.14;
}

h1 {
  margin-bottom: 1.3rem;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  font-weight: 760;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 720;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.shell {
  width: min(calc(100% - 3rem), var(--shell));
  margin-inline: auto;
}

.prose-width {
  max-width: 54rem;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--compact {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section--tinted {
  background: var(--soft-grey);
}

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--burgundy);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #fff;
}

.plain-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-small);
  background: var(--charcoal);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.brand-rule {
  height: 0.3rem;
  background: var(--burgundy);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 3px 18px rgb(0 0 0 / 10%);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  color: var(--charcoal);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--burgundy);
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.6vw, 1.55rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a {
  display: block;
  position: relative;
  padding-block: 0.8rem;
  color: var(--charcoal);
  font-size: clamp(0.72rem, 1vw, 0.94rem);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.primary-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 0.3rem;
  left: 0;
  height: 2px;
  background: var(--burgundy);
  content: "";
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.primary-navigation a:hover,
.primary-navigation a[aria-current="page"] {
  color: var(--burgundy);
}

.primary-navigation a:hover::after,
.primary-navigation a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  padding: 0.6rem;
  border: 0;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
}

.menu-button__lines {
  display: grid;
  width: 1.8rem;
  gap: 0.32rem;
}

.menu-button__lines span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: currentcolor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-button[aria-expanded="true"] .menu-button__lines span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-button__lines span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-button__lines span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 2px solid var(--burgundy);
  border-radius: var(--radius-small);
  background: var(--burgundy);
  color: #fff;
  cursor: pointer;
  font-weight: 720;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button:hover {
  border-color: var(--burgundy-dark);
  background: var(--burgundy-dark);
  color: #fff;
}

.button--ghost {
  border-color: #fff;
  background: rgb(0 0 0 / 22%);
}

.button--ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--charcoal);
}

.button--outline {
  border-color: #fff;
  background: transparent;
}

.button--outline:hover {
  border-color: #fff;
  background: #fff;
  color: var(--charcoal);
}

.image-band {
  display: grid;
  position: relative;
  min-height: min(72vh, 43rem);
  place-items: center;
  overflow: hidden;
  background: var(--charcoal);
  isolation: isolate;
}

.image-band--compact {
  min-height: clamp(17rem, 38vw, 27rem);
}

.image-band picture,
.image-band img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.image-band img {
  object-fit: cover;
  object-position: center;
}

.image-band::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 72%), rgb(0 0 0 / 24%) 68%, rgb(0 0 0 / 38%));
  content: "";
}

.image-band--visual-only::after {
  background: rgb(0 0 0 / 16%);
}

.hero-copy,
.image-callout {
  max-width: 50rem;
  padding-block: 3rem;
  color: #fff;
}

.hero-copy h1 {
  margin-bottom: 0.8rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 48rem;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.image-callout h1,
.image-callout h2 {
  max-width: 44rem;
}

.page-intro {
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.page-intro--grey-gradient {
  background: linear-gradient(90deg, #e4e4e4 0%, var(--soft-grey) 100%);
}

.page-intro__copy {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  margin-bottom: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.info-card,
.article-card,
.contact-panel,
.map-panel {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.info-card {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.8rem;
  border-top: 0.3rem solid var(--burgundy);
}

.info-card a {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 680;
}

.content-section p {
  color: #3d3d3d;
  font-size: 1.05rem;
}

.content-section p + p {
  margin-top: 1.5rem;
}

.article-stack {
  display: grid;
  gap: 2rem;
  padding-top: 0;
}

.article-card {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.article-card header {
  max-width: 54rem;
  margin-bottom: 2rem;
}

.article-card > p {
  max-width: 54rem;
  font-size: 1.05rem;
}

.blog-archive {
  margin-top: 4rem;
}

.archive-item {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: #fff;
}

.archive-item > summary {
  padding: 1rem 1.25rem;
  color: var(--burgundy);
  cursor: pointer;
  font-weight: 720;
}

.archive-item .article-card {
  box-shadow: none;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  overflow-x: auto;
  border-radius: var(--radius-small);
}

.table-scroll:focus-visible {
  outline-offset: 2px;
}

.content-table,
.timetable {
  width: 100%;
  border-collapse: collapse;
}

.content-table {
  min-width: 48rem;
}

.content-table caption,
.timetable caption {
  padding: 0.9rem 1rem;
  background: var(--charcoal);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 720;
  text-align: left;
}

.content-table th,
.content-table td,
.timetable th,
.timetable td {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.content-table thead,
.timetable thead {
  background: #e7e7e7;
}

.content-table tbody tr:nth-child(even),
.timetable tbody tr:nth-child(even) {
  background: #f8f8f8;
}

.content-table__mobile-label {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-tile {
  display: block;
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-small);
  background: var(--charcoal);
  cursor: zoom-in;
}

.gallery-tile picture,
.gallery-tile img {
  width: 100%;
  height: 100%;
}

.gallery-tile img {
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-tile:hover img {
  transform: scale(1.035);
}

dialog {
  max-width: min(92vw, 45rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgb(0 0 0 / 40%);
}

dialog::backdrop {
  background: rgb(0 0 0 / 72%);
}

.gallery-dialog {
  width: min(94vw, 76rem);
  max-width: 76rem;
  background: #171717;
  color: #fff;
}

.gallery-dialog__body {
  display: grid;
  min-height: 60vh;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.gallery-dialog__media {
  min-width: 0;
  text-align: center;
}

.lightbox-picture img {
  width: auto;
  max-height: 75vh;
  margin-inline: auto;
  object-fit: contain;
}

.gallery-dialog__caption {
  margin: 0.8rem 0 0;
}

.gallery-dialog__close {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  right: 0.7rem;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
}

.issue-dialog > p {
  padding-inline: 1.5rem;
}

.issue-dialog > p:last-child {
  padding-bottom: 1.5rem;
}

.icon-button {
  padding: 0.5rem 0.7rem;
  border: 1px solid #c7c7c7;
  border-radius: var(--radius-small);
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
  font-weight: 680;
}

.gallery-dialog .icon-button {
  border-color: #777;
  background: #292929;
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
}

.contact-panel,
.map-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.contact-details {
  margin-block: 2rem;
}

.contact-details div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  font-weight: 720;
}

.contact-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-details address {
  font-style: normal;
}

.map-panel iframe {
  width: 100%;
  min-height: 34rem;
  border: 0;
  border-radius: var(--radius-small);
}

.waiting-list {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  margin-bottom: 2rem;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius-small);
}

.waiting-list span:first-child {
  font-weight: 700;
}

.waiting-list [data-status="open"] {
  color: var(--available);
}

.waiting-list [data-status="closed"] {
  color: var(--burgundy);
}

.status-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  margin: 0 0 2rem;
  list-style: none;
}

.status-legend li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.status-legend p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 720;
  white-space: nowrap;
}

.status__dot {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid currentcolor;
  border-radius: 50%;
  background: currentcolor;
}

.status__marker {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.status--slot {
  display: grid;
  width: 100%;
  min-height: 1.5rem;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0;
}

.status--slot .status__marker {
  width: 100%;
}

.status--slot .status__label {
  display: grid;
  min-width: 0;
  place-items: center;
  line-height: 1.2;
}

.status--available {
  color: var(--available);
}

.status--unavailable {
  color: var(--unavailable);
}

.status--closed {
  color: var(--closed);
}

.status--reserved {
  color: var(--reserved);
}

.status--reserved .status__dot {
  background: var(--reserved-accent);
}

.timetable {
  min-width: 48rem;
}

.timetable th:first-child {
  position: sticky;
  z-index: 1;
  left: 0;
  background: inherit;
}

.timetable td,
.timetable th {
  text-align: center;
  vertical-align: middle;
}

.timetable-mobile {
  display: none;
}

.site-footer {
  background: var(--charcoal);
  color: #eee;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 3.5rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.1rem;
}

.site-footer p,
.site-footer li {
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
}

.footer-links,
.footer-nav {
  display: grid;
  gap: 0.55rem;
}

.site-footer__bottom {
  padding-block: 1rem;
  border-top: 1px solid #4d4d4d;
}

.site-footer__bottom p {
  margin: 0;
}

@media (width <= 68rem) {
  .menu-button {
    display: block;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    background: #ececec;
    box-shadow: 0 16px 28px rgb(0 0 0 / 14%);
    opacity: 0;
    visibility: hidden;
    transition: max-height 200ms ease, opacity 160ms ease, visibility 160ms ease;
  }

  .primary-navigation--open {
    max-height: 34rem;
    opacity: 1;
    visibility: visible;
  }

  .primary-navigation ul {
    display: grid;
    width: min(calc(100% - 3rem), var(--shell));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding-block: 1rem 1.4rem;
    margin-inline: auto;
  }

  .primary-navigation a {
    padding: 0.8rem;
    border-bottom: 1px solid #d1d1d1;
    font-size: 1rem;
  }

  .primary-navigation a::after {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .status-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__grid section:first-child {
    grid-column: 1 / -1;
  }
}

@media (width <= 54rem) {
  .article-card .table-scroll {
    overflow-x: visible;
  }

  .content-table,
  .content-table tbody,
  .content-table tr {
    display: block;
    width: 100%;
  }

  .content-table {
    min-width: 0;
    border-collapse: separate;
  }

  .content-table caption {
    display: block;
    width: 100%;
  }

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

  .content-table tbody {
    display: grid;
    gap: 0.8rem;
    padding-top: 0.8rem;
  }

  .content-table tbody tr,
  .content-table tbody tr:nth-child(even) {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: #fff;
  }

  .content-table tbody th,
  .content-table tbody td {
    display: grid;
    grid-template-columns: minmax(6.5rem, 1fr) minmax(0, 2fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
    overflow-wrap: anywhere;
  }

  .content-table tbody tr > :last-child {
    border-bottom: 0;
  }

  .content-table__mobile-label {
    display: block;
    color: var(--burgundy);
    font-size: 0.74rem;
    font-weight: 760;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .content-table__value {
    min-width: 0;
  }
}

@media (width <= 44rem) {
  :root {
    --header-height: 4.6rem;
  }

  .shell {
    width: min(calc(100% - 1.5rem), var(--shell));
  }

  .primary-navigation ul {
    width: min(calc(100% - 1.5rem), var(--shell));
    grid-template-columns: 1fr;
  }

  .image-band {
    min-height: 33rem;
  }

  .image-band--compact {
    min-height: 18rem;
  }

  .image-band::after {
    background: linear-gradient(90deg, rgb(0 0 0 / 70%), rgb(0 0 0 / 38%));
  }

  .card-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid section:first-child {
    grid-column: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .gallery-dialog__body {
    min-height: 75vh;
    grid-template-columns: 1fr 1fr;
  }

  .gallery-dialog__media {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .contact-details div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .map-panel iframe {
    min-height: 24rem;
  }

  .status-legend {
    grid-template-columns: 1fr;
  }

  .timetable-desktop {
    display: none;
  }

  .timetable-mobile {
    display: grid;
    gap: 0.75rem;
  }

  .timetable-mobile details {
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: #fff;
  }

  .timetable-mobile summary {
    padding: 1rem;
    color: var(--burgundy);
    cursor: pointer;
    font-weight: 760;
  }

  .timetable-mobile dl {
    margin: 0;
  }

  .timetable-mobile dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1rem;
    border-top: 1px solid #ececec;
  }

  .timetable-mobile dt {
    font-weight: 680;
  }

  .timetable-mobile dd {
    width: min(100%, 15rem);
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  [data-site-header],
  [data-site-footer],
  .button-row,
  .status-legend,
  .timetable-mobile {
    display: none !important;
  }

  .timetable-desktop {
    display: block;
    overflow: visible;
  }

  .timetable {
    min-width: 0;
    font-size: 0.72rem;
  }
}
