*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

a, button, label, select,
[role="button"], [role="link"],
input[type="submit"], input[type="button"], input[type="reset"],
input[type="checkbox"], input[type="radio"] {
  cursor: pointer;
}

input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
textarea {
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}

/* Images inherit cursor so logo/icon inside <a> or <button> shows pointer */
img { cursor: inherit; }

/* And so does everything else inside a link or a button.
   The universal rule at the top of this file sets `cursor: default` on every
   element, and a universal selector BEATS INHERITANCE — so `cursor: pointer`
   on an <a> stopped at the <a> itself and any element nested inside it showed
   an arrow. The `img` line above was the one-off remedy when the nav logo hit
   this; the problem is general. Anything whose content is divs or spans rather
   than an image had it, and nobody noticed because the cursor is the one thing
   a screenshot cannot show.
   Measured on 2026-09-24, before this rule: 64 elements inside the /events
   frame wall's links, every `tempo-frame`, and the Reserve button and drawer
   login on EVERY page. Found because Bailey reported it on the careers frames
   and the same shape was grepped for site-wide. */
a *, button *, [role="button"] * { cursor: inherit; }

/* Pass pointer events through img/svg to the parent link/button.
   Prevents the browser treating a click-start on an image as a drag,
   which was swallowing click events on the nav logo. */
a img, a svg,
button img, button svg {
  pointer-events: none;
  -webkit-user-drag: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-bg);
  line-height: var(--leading-loose);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* clip on both html+body covers all browsers without creating a scroll container (which hidden does, breaking position:sticky) */
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
}

textarea {
  resize: none;
}

/* ── Layout helpers */

.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 720px;
}

/* ── Accessibility */

.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;
}

/* ── 404 page */

.page-404 {
  padding-block: var(--space-section);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-404__eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.page-404__title {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  margin-bottom: var(--space-6);
}

.page-404__body {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-10);
}

.page-404__home {
  display: inline-flex;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  border: 1px solid var(--color-border-strong);
  padding: 14px 28px;
  transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.page-404__home:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ── What's On archive */

.page-whats-on {
  padding-bottom: var(--space-section);
}

.page-whats-on__header {
  padding-top: calc(72px + var(--space-12));
  padding-bottom: var(--space-10);
}

.page-whats-on__eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.page-whats-on__title {
  font-family: var(--font-accent);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: var(--tracking-tight);
}

.page-whats-on__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-8);
}

.event-listing-card {
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.event-listing-card__thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.event-listing-card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.event-listing-card__category {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.event-listing-card__title {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
}

.event-listing-card__title a:hover {
  color: var(--color-accent);
}

.event-listing-card__meta {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.page-whats-on__empty {
  grid-column: 1 / -1;
  color: var(--color-text-muted);
}

.page-whats-on__pagination {
  padding-top: var(--space-12);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ── Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
