/* ==========================================================================
   Ogle School Microsite — base: fonts, tokens, reset, shared patterns
   Fluid convention: values interpolate linearly from the 390px mobile design
   to the 1680px desktop design:
     clamp(MINpx, calc(MINpx + (MAX-MIN) * (100vw - 390px) / 1290), MAXpx)
   Desktop-layout media query: @media (min-width: 900px)
   ========================================================================== */

/* ---- Fonts (local, subset latin) ---- */
@font-face {
  font-family: 'Anton';
  src: url('/wp-content/themes/ogle/assets/fonts/anton-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/wp-content/themes/ogle/assets/fonts/plus-jakarta-sans-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/wp-content/themes/ogle/assets/fonts/montserrat-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/wp-content/themes/ogle/assets/fonts/roboto-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ---- */
:root {
  --c-pink: #ff0487;       /* bright accent: headings, eyebrows, buttons */
  --c-pink-deep: #d20068;  /* stat cards, pressed button state */
  --c-gray-card: #161616;  /* dark card surfaces */
  --c-black: #000000;
  --c-white: #ffffff;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;         /* design: Anton */
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;    /* design: Gordita */
  --font-label: 'Montserrat', 'Helvetica Neue', sans-serif;    /* design: Proxima Nova */

  --container: 1200px;
  /* container side padding: 20px @390 -> 240px handled by max-width center @1680 */
  --pad-x: clamp(20px, calc(20px + 220 * (100vw - 390px) / 1290), 240px);
}

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

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

body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.425;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }

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

/* Author styles must not resurrect [hidden] elements (e.g. form success state) */
[hidden] { display: none !important; }

/* ---- Focus visibility ---- */
:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 3px;
}

/* ---- Shared patterns ---- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--pad-x));
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* Eyebrow label above section headings */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.425;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--c-pink);
}

/* Glitter (silver sequin texture) display text via background-clip */
.glitter {
  background-image: url('/wp-content/themes/ogle/assets/img/glitter-texture.webp');
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent { color: var(--c-pink); }

/* Floating-label form field (lead form; shared by home hero + template pages) */
.field {
  position: relative;
  height: 66px;
}
.field__input {
  position: absolute;
  left: 0;
  top: 26px;
  width: 100%;
  height: 40px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--c-black);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #111111;
  caret-color: #0056fe;
  outline: none;
}
.field__label {
  position: absolute;
  left: 0;
  top: 26px;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-black);
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-26px);
  font-size: 12px;
}
.field__input:focus-visible {
  border-bottom-color: var(--c-pink);
  outline: 2px solid var(--c-pink);
  outline-offset: 3px;
}
.field__error {
  position: absolute;
  left: 0;
  top: 67px;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: var(--c-pink-deep);
}

/* Shared outline button (square variant: 16px, letterspaced uppercase) */
.btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  border: 1px solid var(--c-pink);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--c-pink);
  transition: background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
}
.btn--outline:hover {
  background: var(--c-pink);
  color: var(--c-white);
}
.btn--outline:active {
  background: var(--c-pink-deep);
  border-color: var(--c-pink-deep);
  color: var(--c-white);
}

/* Screen-reader-only utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--c-pink);
  color: var(--c-white);
  font-weight: 700;
  transition: top 150ms ease-out;
}
.skip-link:focus { top: 16px; }
