/*
 * Shared foundation: fonts, design tokens, reset, accessibility helpers.
 * Values are taken from the published Framer page (findhockey.com, Oct 2026).
 * See docs/REFERENCE.md for where each value came from.
 */

/* ---------- Fonts ---------- */

/* Anton: SIL Open Font License (fonts/OFL-Anton.txt). Main heading. */
@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Inter (variable 400–600): SIL Open Font License (fonts/OFL-Inter.txt).
   Used for the beta line, button result states and the 404 page. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/*
 * TWK Everett stand-in.
 * The live page uses TWK Everett Regular/Medium (a commercial font). Its licence
 * for use outside Framer is not confirmed, so we do NOT ship it. Until it is,
 * Inter is used with metric overrides derived from Framer's own Everett
 * placeholders (Everett size-adjust ÷ Inter size-adjust, against Arial), so text
 * takes up about the same space and the layout doesn't shift.
 *
 * To switch to the licensed files: add them to fonts/, uncomment the two
 * @font-face rules below, and nothing else needs to change.
 */
/*
@font-face {
  font-family: "TWK Everett";
  src: url("../fonts/TWKEverett-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "TWK Everett";
  src: url("../fonts/TWKEverett-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
*/
/* Separate Regular/Medium families, the same way Framer names them. The stand-in
   uses Inter a little heavier (450 / 600) because Everett renders heavier than
   Inter at the same nominal weight (checked against the live screenshots). */
@font-face {
  font-family: "Everett Regular Fallback";
  src: url("../fonts/inter-variable-latin.woff2") format("woff2");
  font-weight: 450;
  size-adjust: 101.9%;
  ascent-override: 91.9%;
  descent-override: 19.2%;
  line-gap-override: 0%;
  font-display: swap;
}
@font-face {
  font-family: "Everett Medium Fallback";
  src: url("../fonts/inter-variable-latin.woff2") format("woff2");
  font-weight: 600;
  size-adjust: 104.2%;
  ascent-override: 89.9%;
  descent-override: 18.8%;
  line-gap-override: 0%;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "TWK Everett", "Everett Regular Fallback", Arial, sans-serif;
  --font-body-medium: "TWK Everett", "Everett Medium Fallback", Arial, sans-serif;
  --font-ui: "Inter", Arial, sans-serif;

  --color-white: #fff;
  --color-off-white: rgb(250, 250, 250);
  --color-ink: rgb(5, 5, 5);
  --color-video-fallback: rgb(71, 64, 64);
  /* Contrast fixes (docs/REFERENCE.md, "Accessibility changes"): Framer values in comments. */
  --color-card-tint: rgba(0, 0, 0, 0.45); /* Framer: none */
  --color-badge-bg: rgba(255, 255, 255, 0.1); /* Framer: 0.18 */
  --color-subtitle: rgba(255, 255, 255, 0.72); /* Framer: 0.56 */
  --color-beta-label: rgb(212, 212, 212); /* Framer: rgb(156, 156, 156) */
  --color-link-hover: rgba(255, 255, 255, 0.85); /* Framer: 0.56 */
  --color-input-bg: rgba(255, 255, 255, 0.12); /* Framer: 0.22 */
  --color-input-border: rgba(255, 255, 255, 0.4); /* proposed outlines; Framer: rgba(136, 136, 136, 0.1) */
  --color-input-text: #fff; /* Framer: rgba(255, 255, 255, 0.69) */
  --color-input-placeholder: rgba(255, 255, 255, 0.94); /* Framer: rgb(227, 227, 227) */
  --color-focus: #09f;
  /* Opaque so the video can't wash it out. Framer: rgb(255, 34, 68) on rgba(255, 34, 68, 0.15). */
  --color-error: rgb(255, 165, 172);
  --color-error-bg: rgb(40, 12, 18);

  --radius-card: 17px;
  --radius-field: 5px;
  --radius-pill: 50px;

  /* Framer's tween used for button/link hover. */
  --ease-framer: cubic-bezier(0.44, 0, 0.56, 1);
  /* Framer springs, sampled into CSS linear() curves (see docs/REFERENCE.md). */
  --spring-soft: linear(0, 0.199, 0.384, 0.524, 0.634, 0.717, 0.783, 0.833, 0.871, 0.901, 0.923, 0.941, 0.954, 0.965, 0.973, 0.979, 0.984, 0.988, 0.99, 0.993, 0.994, 0.996, 0.997, 0.997, 1);
  --spring-soft-duration: 1.5s; /* stiffness 400, damping 100 */
  --spring-pop: linear(0, 0.076, 0.217, 0.366, 0.503, 0.613, 0.702, 0.773, 0.827, 0.868, 0.901, 0.925, 0.943, 0.957, 0.967, 0.975, 0.981, 0.986, 0.989, 0.992, 0.994, 0.995, 0.997, 0.997, 1);
  --spring-pop-duration: 0.78s; /* stiffness 186, damping 30 */
}

/* ---------- Reset ---------- */

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

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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
p {
  margin: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

img,
svg,
video,
canvas {
  display: block;
}

/* ---------- Accessibility helpers ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus ring. Framer showed none on links/buttons; added for accessibility. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* ---------- Shared entrance keyframes (Framer appear effects) ---------- */

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: perspective(1200px) translateY(0) scale(1);
  }
}
