/* AC & AD Billiards — global foundations only (fonts, token mirror, base, keyframes).
   Component styling lives in per-class records (editable in Etch). */
@font-face { font-family: "Archivo"; src: url("../assets/archivo-var.woff2") format("woff2"); font-weight: 400 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../assets/public-sans-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../assets/public-sans-italic-var.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }


*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 1rem); }
body {
  margin: 0; background: var(--base); color: var(--neutral);
  font: 400 var(--text-m) / var(--text-line-height) var(--text-font-family);
  accent-color: var(--primary); caret-color: var(--primary);
  scrollbar-color: var(--neutral-medium) var(--base);
}
::selection { background: var(--primary); color: #f1f8f5; }
img, svg { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4 {
  margin: 0; color: var(--sf-heading); font-family: var(--heading-font-family); font-weight: 800;
  font-variation-settings: "wdth" var(--heading-width); line-height: var(--heading-line-height);
  letter-spacing: var(--heading-tracking); text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--sf-link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: var(--focus-width) solid var(--sf-focus); outline-offset: 3px; }
button, input, select, textarea { font: inherit; }

@keyframes bt-settle { from { transform: scale(1.06); filter: saturate(0.85); } }

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

/* Gallery lightbox: elements are created by bt-gallery.js, so no block links them; this is the documented global-sheet exception. */
.bt-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 2rem 1.25rem; border: 0; background: rgb(18 24 27 / 0.96); color: #edf0ef; }
.bt-lightbox[open] { display: grid; place-items: center; }
.bt-lightbox::backdrop { background: rgb(18 24 27 / 0.8); }
.bt-lightbox__figure { display: grid; gap: 0.875rem; justify-items: center; margin: 0; }
.bt-lightbox__img { max-width: min(92vw, 70rem); max-height: 76dvh; width: auto; border-radius: 3px; }
.bt-lightbox__caption, .bt-lightbox__count { color: #b4bebc; font-size: 0.9375rem; text-align: center; }
.bt-lightbox__count { position: absolute; left: 0; right: 0; bottom: 1.25rem; margin: 0; }
.bt-lightbox__button { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border: 1.5px solid rgb(255 255 255 / 0.4); border-radius: 3px; background: rgb(0 0 0 / 0.35); color: #edf0ef; font: 700 1.5rem/1 sans-serif; cursor: pointer; }
.bt-lightbox__button:hover { background: var(--primary); border-color: var(--primary); }
.bt-lightbox__button:focus-visible { outline: 3px solid #d6b26a; outline-offset: 3px; }
.bt-lightbox__button--prev { left: 1.25rem; top: 50%; translate: 0 -50%; }
.bt-lightbox__button--next { right: 1.25rem; top: 50%; translate: 0 -50%; }
.bt-lightbox__button--close { right: 1.25rem; top: 1.25rem; }
