/*
 * CornerOS brand tokens: direction "Ringside".
 *
 * These are CornerOS's own colours and type: the marketing site, the
 * platform's own pages (sign-up, onboarding, "no gym here") and anything that
 * speaks as CornerOS. A gym's own site keeps the gym's brand (src/brand.js).
 *
 * Fonts: Archivo Narrow for display and labels, Archivo for body text, served
 * from /brand/fonts (Latin subsets of the variable fonts, SIL Open Font
 * License) so pages never wait on a third party. Preload them in <head>.
 * See brand/README.md for usage rules.
 */
@font-face {
  font-family: 'Archivo Narrow';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/brand/fonts/archivo-narrow-latin.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: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/brand/fonts/archivo-latin.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 {
  /* Colour */
  --cos-ink: #0E0F12;         /* grounds and text */
  --cos-canvas: #F3F1EC;      /* pages: the ring canvas */
  --cos-white: #FFFFFF;       /* cards on canvas */
  --cos-red: #E5402A;         /* Corner Red: actions, the post. Ink text on it */
  --cos-red-text: #B92E1C;    /* red for small text on light grounds */
  --cos-rope: #2B2E34;        /* dark surfaces and rules on ink */
  --cos-steel: #8A9099;       /* decorative lines; not for text on canvas */
  --cos-text-soft: #3A3D44;   /* secondary text on canvas */
  --cos-text-quiet: #5B5F68;  /* labels on canvas */
  --cos-text-on-ink: #C5C9CF; /* secondary text on ink */
  --cos-line: #D8D4CA;        /* borders on canvas */

  /* Type */
  --cos-font-display: 'Archivo Narrow', 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue', sans-serif;
  --cos-font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cos-display-xl: clamp(64px, 9vw, 132px);
  --cos-display-l: clamp(52px, 6.6vw, 96px);
  --cos-display-m: clamp(36px, 4vw, 56px);
  --cos-body: 17px;
  --cos-label-tracking: 0.24em;

  /* Shape */
  --cos-radius: 4px;        /* buttons, inputs */
  --cos-radius-card: 6px;   /* cards, panels */
  --cos-offset: 12px;       /* the hard red offset shadow on a featured card */
}

.cos-display {
  font-family: var(--cos-font-display);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.cos-label {
  font-family: var(--cos-font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--cos-label-tracking);
  text-transform: uppercase;
}

.cos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: var(--cos-radius);
  font-family: var(--cos-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.cos-btn--primary { background: var(--cos-red); color: var(--cos-ink); }
.cos-btn--primary:hover { background: #F0563F; }
.cos-btn--ghost { background: transparent; border-color: currentColor; }
.cos-btn:focus-visible { outline: 3px solid var(--cos-red); outline-offset: 3px; }

.cos-tag {
  display: inline-block;
  padding: 6px 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  font-family: var(--cos-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cos-card {
  background: var(--cos-white);
  border: 1px solid var(--cos-line);
  border-radius: var(--cos-radius-card);
}
.cos-card--featured {
  background: var(--cos-ink);
  color: var(--cos-canvas);
  border-color: var(--cos-ink);
  box-shadow: var(--cos-offset) var(--cos-offset) 0 var(--cos-red);
}

.cos-input {
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid var(--cos-ink);
  border-radius: var(--cos-radius);
  background: var(--cos-canvas);
  color: var(--cos-ink);
  font: inherit;
  font-size: 16px;
}
.cos-input:focus-visible { outline: 3px solid var(--cos-red); outline-offset: 2px; }
