/* Onco-Roue: shared tokens and primitives.
   The stage is a deep oncology violet; questions sit on cool clinical "label paper";
   the two teams wear the two halves of a capsule (teal and saffron). */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  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-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --stage: #1d1136;
  --stage-raised: #2a1a4c;
  --stage-line: #45307a;
  --violet: #7b4ff0;
  --lavender: #c9b8ff;
  --label: #f4f6fb;
  --label-line: #d5d9e8;
  --ink: #1b1233;
  --ink-soft: #5b5378;
  --team-a: #19c3b1;
  --team-a-ink: #03302b;
  --team-b: #ffc145;
  --team-b-ink: #3a2600;
  --valid: #1fa866;
  --refuse: #e0434b;
  --text: #f4f1ff;
  --text-soft: #b9addc;
  --radius-label: 18px;
  --radius-control: 12px;
  --font: 'Archivo', 'Arial Narrow', 'Helvetica Neue', system-ui, sans-serif;

  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--stage);
  color: var(--text);
  font-family: var(--font);
  font-stretch: 100%;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
}

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

/* The wordmark: the hyphen of Onco-Roue is a two-tone capsule in the team colours. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
  font-weight: 900;
  font-stretch: 112%;
  letter-spacing: -0.035em;
  line-height: 1;
}

.wordmark__capsule {
  display: inline-block;
  width: 0.78em;
  height: 0.32em;
  border-radius: 1em;
  background: linear-gradient(90deg, var(--team-a) 0 50%, var(--team-b) 50% 100%);
  transform: rotate(-18deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.2em;
  border: 2px solid var(--stage-line);
  border-radius: var(--radius-control);
  background: var(--stage-raised);
  color: var(--text);
  font-weight: 700;
  font-stretch: 90%;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.button:hover {
  border-color: var(--lavender);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button--primary {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.button--valid {
  border-color: var(--valid);
  background: var(--valid);
  color: #fff;
}

.button--refuse {
  border-color: var(--refuse);
  background: var(--refuse);
  color: #fff;
}

.button--a {
  border-color: var(--team-a);
  background: var(--team-a);
  color: var(--team-a-ink);
}

.button--b {
  border-color: var(--team-b);
  background: var(--team-b);
  color: var(--team-b-ink);
}

.button--quiet {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
