/*
 * Foundations shared by every page of the Ramdam website: fonts, reset, labels, footer. The tokens come from
 * tokens.css, generated from the application. Nothing loads from a third party (see _headers).
 */

@font-face {
  font-family: 'Unbounded Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('/assets/fonts/unbounded-latin-wght-normal.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;
}

@font-face {
  font-family: 'Figtree Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('/assets/fonts/figtree-latin-wght-normal.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 {
  --gutter: clamp(1rem, 4.5vw, 4.5rem);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bf-bg);
  /* The light grain of the application's backgrounds: an inline SVG, so that the page never meets a flat colour. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color: var(--bf-text);
  font-family: var(--bf-family-body);
  font-size: var(--bf-font-body);
  font-weight: var(--bf-weight-regular);
  line-height: 1.55;
  text-wrap: pretty;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--bf-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 3px;
}

:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--bf-focus);
  outline-offset: 3px;
}

svg {
  display: block;
}

/* Tilted posters and rings may run past the edges of the screen, never widen the page. */
main {
  display: block;
  overflow-x: clip;
}

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

/* The glyphs of the seats are symbols: the same on every device, where ♥ may otherwise turn into an emoji. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.glyph {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentcolor;
}

/* A seat's colour, and with it its glyph: colour is never the only cue. */
.p-tangerine {
  --p: var(--bf-player-tangerine);
}
.p-sky {
  --p: var(--bf-player-sky);
}
.p-sun {
  --p: var(--bf-player-sun);
}
.p-orchid {
  --p: var(--bf-player-orchid);
}
.p-jade {
  --p: var(--bf-player-jade);
}
.p-rose {
  --p: var(--bf-player-rose);
}

.label {
  color: var(--bf-accent);
  font-size: var(--bf-font-label);
  font-weight: var(--bf-weight-bold);
  letter-spacing: var(--bf-tracking-label);
  text-transform: uppercase;
}

/* The brand's short lime bar, under the name, as on the application's home screen. */
.bar {
  display: block;
  width: 11.5rem;
  max-width: 45%;
  height: 0.75rem;
  border-radius: var(--bf-radius-chip);
  background: var(--bf-accent);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--bf-space-2) var(--bf-space-6);
  padding: var(--bf-space-6) var(--gutter) var(--bf-space-7);
  border-top: 1px solid var(--bf-surface-2);
  color: var(--bf-text-muted);
  font-size: var(--bf-font-label);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--bf-space-6);
}

/* 48 dp targets, like the application's. */
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  color: var(--bf-text);
}
