/* yára — the brand layer.

   The product's screens are drawn with the Aurora tokens (tokens.css). This
   file carries what the brand identity adds on top of them: the two brand
   faces, the mark's colours, and the motion rules the loaders and mascot
   follow. It is used by brand surfaces — the sign-in screens, the launch and
   reconnect moments, the mark in the rail — and by the loaders that appear
   inside the product.

   Sources: "yára · loading animations" and "yára · animated mascot
   concepts" (the brand documents), and the sign-up screen design. */

/* ── Type ────────────────────────────────────────────────────────────────── */
/* Figtree is a variable face: one file covers every weight the brand uses. */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../cadence/fonts/figtree-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: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../cadence/fonts/figtree-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../cadence/fonts/instrument-serif-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: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../cadence/fonts/instrument-serif-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../cadence/fonts/instrument-serif-italic-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: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../cadence/fonts/instrument-serif-italic-latin-ext.woff2) format('woff2');
  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;
}

/* ── Colour ──────────────────────────────────────────────────────────────── */
:root {
  /* The mark. Terracotta is the business speaking; slate and dusk are
     customers and people — the colours keep their meaning everywhere. */
  --cadence-slate: #23364A;
  --cadence-terracotta: #C8553D;
  --cadence-dusk: #7D8FA3;
  --cadence-linen: #F1ECE3;
  --cadence-paper: #FBF9F5;
  --cadence-sand: #E9E4DA;
  --cadence-track: #DCD5C8;
  --cadence-line: #D6CFC1;
  --cadence-line-soft: #E4DED2;
  --cadence-ink: #141414;
  --cadence-ink-2: #2E2B26;
  --cadence-ink-3: #4A463F;
  --cadence-ink-4: #6B665C;
  --cadence-night: #141A22;

  /* The sign-in screens use the mark on a cool, near-white canvas with a
     deep teal action colour — measured from the sign-up design. */
  --cadence-teal: #2C4A4C;
  --cadence-teal-hover: #23403F;
  --cadence-sea: #009689;
  --cadence-canvas: #FAFAFA;
  --cadence-canvas-wash: #ECF1FE;
  --cadence-canvas-mid: #F4F6FD;
  --cadence-field-line: #E0E0E0;
  --cadence-field-text: #181818;
  --cadence-field-placeholder: #787880;
  --cadence-field-icon: #505058;
  --cadence-muted: #808088;
  --cadence-muted-2: #888890;
  --cadence-body: #5A5A62;
  --cadence-tick: #D0E0F8;

  /* Slate bars need to read on whatever they sit on: slate on light
     surfaces, linen on dark ones — exactly as the brand's dark cards draw
     the mark. The reply bar is always terracotta. */
  --cadence-bar: var(--cadence-slate);
  --cadence-reply: var(--cadence-terracotta);

  /* Motion: 200–400ms per action with a soft ease-out; idle loops 2–4s. */
  --cadence-ease: cubic-bezier(0.45, 0, 0.25, 1);
  --cadence-action: 320ms;

  --cadence-font-sans: 'Figtree', 'Geist Variable', system-ui, sans-serif;
  --cadence-font-serif: 'Instrument Serif', Georgia, serif;
}

:root[data-theme="aurora-dark"] {
  --cadence-bar: var(--cadence-linen);
}

/* The wordmark, as the sign-up screen sets it. */
.cadence-wordmark {
  font-family: var(--cadence-font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--colors-text-primary, var(--cadence-ink));
}

/* Reduced motion: the loaders rest as the static mark. Each loader renders
   both and this picks one, because SMIL animation cannot be paused from CSS. */
.cadence-loader__motion { display: block; }
.cadence-loader__rest { display: none; }

@media (prefers-reduced-motion: reduce) {
  .cadence-loader__motion { display: none; }
  .cadence-loader__rest { display: block; }
}
