@font-face {
  font-family: Baskervville;
  src: url("assets/baskervville.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Baskervville;
  src: url("assets/baskervville-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sheet: #ffffff;
  --ink: #22261f;
  --muted: #676b5f;
  --line: #e2dfd3;
  --olive: #56633f;
  --olive-soft: #ebede1;
  --brick: #a4472d;
  --serif: Baskervville, Georgia, serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 4.2vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sheet); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
section { scroll-margin-top: 16px; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2; padding: 10px 16px; background: var(--ink); color: var(--sheet); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.sheet { max-width: 1440px; margin-inline: auto; padding: var(--pad); }

/* Hero: wordmark and facts over the façade on the left, intro over the hall on the right */
/* The hero fills the first screen (up to a cap); extra height opens up space between the text and the photos */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); min-height: min(calc(100svh - var(--pad) * 2), 1040px); }
.hero-main, .hero-side { display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 48px); }
.hero-main { container-type: inline-size; }
.photo { width: 100%; margin-top: auto; border-radius: 2px; object-fit: cover; background: var(--olive-soft); }
.photo-wide { aspect-ratio: 16 / 9; }
/* The entrance photo fills the height beside the left column, up to its own 4:5 shape; beyond that the space goes above it */
.photo-tall { flex: 1 1 0; height: 0; min-height: 320px; max-height: min(49vw, 700px); object-position: 62% 30%; }

.wordmark { color: var(--brick); font-family: var(--serif); font-size: clamp(56px, 18cqi, 156px); font-weight: 500; letter-spacing: -.03em; line-height: .88; }
.wordmark span, .wordmark em { display: block; }
.wordmark em { margin-left: -.04em; font-weight: 400; }

/* Hours and address read as a caption to the wordmark: first line in ink, the rest muted */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 16px clamp(40px, 7cqi, 88px); color: var(--muted); font-size: 15px; line-height: 1.65; }
.facts strong { color: var(--ink); font-weight: 500; }
.facts a { color: var(--ink); }
.status { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a9a698; }
.status.is-open { color: var(--olive); font-weight: 600; }
.status.is-open::before { background: #5f8a4e; }

.intro { max-width: 30em; margin-left: auto; font-size: 15px; line-height: 1.6; }
.intro p { text-wrap: pretty; }
.intro-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-weight: 600; }

/* Sections */
.section { padding-top: clamp(56px, 8vw, 112px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
.section h2 { color: var(--olive); font-family: var(--serif); font-size: clamp(36px, 4.4vw, 60px); font-weight: 400; letter-spacing: -.02em; line-height: 1; }
.section-note { max-width: 36em; margin-top: 14px; color: var(--muted); font-size: 15px; }
.section-head .section-note { margin-top: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; transition: background-color 150ms, border-color 150ms, color 150ms; }
.filters button[aria-pressed="true"] { border-color: var(--olive); background: var(--olive); color: var(--sheet); }

/* Directory: name and type on the left, location on the right, contacts below */
.stands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); margin-top: 32px; }
.stand { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 2px 16px; padding: 18px 0 20px; border-top: 1px solid var(--line); }
.stand > :not(.place) { grid-column: 1; }
.stand h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; hyphens: auto; overflow-wrap: break-word; }
.kind { color: var(--muted); font-size: 15px; }
.place { grid-column: 2; grid-row: 1 / span 2; align-self: start; padding: 3px 10px; border-radius: 999px; background: var(--olive-soft); color: var(--olive); font-size: 13px; font-weight: 600; text-align: right; text-decoration: none; white-space: nowrap; }
a.place { transition: background-color 150ms, color 150ms; }
/* Places not on the plan yet are plain text, so they don't read as links */
span.place { padding-inline: 0; background: none; color: var(--muted); font-weight: 500; }
.contact { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }

/* Regular events: one row each, when | name | description */
.events { margin-top: 32px; border-bottom: 1px solid var(--line); }
.events li { display: grid; grid-template-columns: 15rem minmax(0, 20rem) minmax(0, 1fr); align-items: baseline; gap: 6px clamp(24px, 3vw, 48px); padding: 20px 0; border-top: 1px solid var(--line); }
.event-when { color: var(--muted); font-size: 14px; }
.events p { max-width: 38em; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.events a { width: fit-content; color: var(--olive); font-family: var(--serif); font-size: clamp(24px, 2.2vw, 28px); line-height: 1.15; }

/* Hall plan: heading and row index beside the plan, which fits the screen height */
.map-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; grid-template-areas: "head plan" "index plan"; align-items: start; gap: 0 clamp(32px, 5vw, 80px); }
.map-head { grid-area: head; }
#map-title { scroll-margin-top: 32px; }
.plan { grid-area: plan; width: min(58vw, calc((100svh - 192px) * .84 + 64px)); padding: 32px; border-radius: 4px; background: #f4f3ee; }
.row-index { grid-area: index; margin-top: 32px; border-top: 1px solid var(--line); }
.row-index li { border-bottom: 1px solid var(--line); }
.row-entry { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 16px; width: 100%; padding: 10px 0; border: 0; background: none; color: var(--muted); font-size: 14px; text-align: left; }
button.row-entry { cursor: pointer; }
.row-label { color: var(--olive); font-weight: 600; }
.row-entry[aria-pressed="true"] { color: var(--ink); }
.row-entry[aria-pressed="true"] .row-label, .row-names .is-current { color: var(--brick); }
.row-names .is-current { font-weight: 600; }
.plan-fallback { padding: 24px 0; color: var(--muted); }
.floorplan { display: block; width: 100%; height: auto; user-select: none; }
.floorplan rect, .floorplan path { vector-effect: non-scaling-stroke; }
.floorplan text { font-family: var(--sans); text-anchor: middle; dominant-baseline: central; }
.fp-street { fill: var(--muted); font-size: 3px; font-weight: 500; }
.fp-floor { fill: var(--sheet); }
.fp-wall { fill: none; stroke: #9aa08c; stroke-width: 2.5px; stroke-linejoin: miter; }
.fp-door { stroke: var(--sheet); stroke-width: 5px; }
.fp-room { fill: #e9e6da; stroke: #d3d0c2; stroke-width: 1px; }
.fp-unit { stroke-width: 1px; transition: fill .2s, stroke .2s; }
.fp-stall, .fp-area { fill: #a3ad8c; stroke: #8b9574; }
.fp-room.fp-unit { fill: #e9e6da; stroke: #d3d0c2; }
.fp-unit.is-active { fill: var(--brick); stroke: #7f3421; }
.fp-aisle { fill: transparent; transition: fill .2s; }
.fp-aisle.is-active { fill: rgb(164 71 45 / .18); }
.fp-store { fill: rgb(164 71 45 / .35); stroke: var(--brick); stroke-width: 1.5px; }
.fp-tab rect { fill: var(--sheet); stroke: var(--olive); stroke-width: 1px; transition: fill .2s, stroke .2s; }
.fp-tab text { fill: var(--olive); font-size: 2.1px; font-weight: 700; }
.fp-tab.is-active rect { fill: var(--brick); stroke: var(--brick); }
.fp-tab.is-active text { fill: #fff; }
.fp-entrance { fill: var(--brick); }
.fp-entrance-label { fill: var(--brick); font-size: 2.4px; font-weight: 600; }
.fp-label { fill: #8d8c7c; font-size: 1.8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fp-north path { fill: var(--muted); }
.fp-north text { fill: var(--muted); font-size: 1.5px; font-weight: 700; }


/* Footer */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(56px, 8vw, 112px); padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 6px; }
.footer-contact a { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-links a { color: var(--ink); font-weight: 500; text-decoration: none; }

@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--brick); }
  .events a:hover { color: var(--brick); }
  a.place:hover { background: var(--olive); color: var(--sheet); }
  button.row-entry:hover .row-label { color: var(--brick); }
  .filters button[aria-pressed="false"]:hover { border-color: var(--olive); }
}

@media (max-width: 1100px) {
  .events li { grid-template-columns: 12rem minmax(0, 1fr); }
  .event-when { grid-row: span 2; }
  .events p { grid-column: 2; }
}

@media (max-width: 960px) {
  .map-section { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "head" "plan" "index"; }
  .plan { width: 100%; margin-top: 28px; padding: clamp(12px, 2.4vw, 32px); }
}

/* Narrow screens: one column; the two photos sit side by side under the facts */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0; }
  .hero-main, .hero-side { display: contents; }
  .wordmark { grid-area: 1 / 1 / 2 / -1; font-size: clamp(56px, 18.5vw, 120px); }
  .intro { grid-area: 2 / 1 / 3 / -1; margin: 10px 0 0; font-size: 16px; }
  .facts { grid-area: 3 / 1 / 4 / -1; grid-template-columns: 1fr; margin: 14px 0 6px; }
  .photo-wide, .photo-tall { grid-row: 4; height: auto; min-height: 0; max-height: none; aspect-ratio: 3 / 4; }
  .photo-wide { grid-column: 2; }
  .photo-tall { grid-column: 1; }

  .stands { grid-template-columns: 1fr; }
  .stand { grid-template-columns: 1fr; }
  .place { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .events li { grid-template-columns: 1fr; }
  .event-when { grid-row: auto; }
  .events p { grid-column: 1; margin-top: 4px; }
  .events a { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
