@font-face {
  font-family: Poppins;
  src: url('/assets/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --gold: #ffc800;
  --paper: color-mix(in srgb, Canvas 97%, var(--gold));
  --ink: CanvasText;
  --muted: color-mix(in srgb, CanvasText 71%, Canvas);
  --line: color-mix(in srgb, CanvasText 16%, Canvas);
  --display: Poppins, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 2.75rem);
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, sans-serif;
  overflow-wrap: anywhere;
}

h1, p { margin: 0; }

h1 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip {
  position: fixed;
  z-index: 1;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: #000;
  transform: translateY(calc(-100% - 1rem));
}

.skip:focus { transform: none; }

.teaser-page {
  background:
    radial-gradient(ellipse 32rem 27rem at 50% 37%, rgb(255 200 0 / 0.16), transparent),
    var(--paper);
}

.teaser-main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter);
  text-align: center;
}

.teaser-content { width: min(100%, 35rem); }

.mascot {
  display: block;
  width: min(100%, clamp(9rem, 32vw, 12rem));
  height: auto;
  margin: 0 auto;
  border-radius: 23%;
  background: var(--gold);
  box-shadow: 0 1rem 2.5rem rgb(71 49 0 / 0.16), 0 0 0 1px rgb(100 69 3 / 0.1);
}

.teaser-content h1 {
  margin-top: 1.55rem;
  font-size: clamp(2.65rem, 10vw, 4.9rem);
  letter-spacing: -0.055em;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
  padding: 0.36rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.availability::before {
  content: '';
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

.footer {
  padding: 0 var(--gutter) 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.footer a, .teaser-main a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (prefers-color-scheme: dark) {
  .teaser-page {
    background:
      radial-gradient(ellipse 32rem 26rem at 50% 35%, rgb(255 200 0 / 0.095), transparent),
      linear-gradient(90deg, rgb(16 15 14 / 0.96), rgb(16 15 14 / 0.93) 55%, rgb(16 15 14 / 0.81)),
      url('/assets/barbell-gym.webp') right center / cover no-repeat #100f0e;
  }

  .mascot { box-shadow: 0 1rem 3rem rgb(0 0 0 / 0.42), 0 0 0 1px rgb(255 200 0 / 0.22); }
  .teaser-content h1 span { color: var(--gold); }
}

@media (forced-colors: active) {
  .teaser-page { background: Canvas; }
  .availability::before { background: CanvasText; }
}
