/*
 * InnClocky — tokens, fonts and base elements.
 *
 * Restraint is the brief. This is a tool people stare at eight hours a day, not
 * a marketing site: black, grey and white everywhere, with the corporate blue
 * and green reserved for the few things that carry meaning.
 *
 * Loaded before layout.css and components.css. Every colour, size and space in
 * the application comes from a custom property declared here.
 */

/* --- Nunito Sans ---------------------------------------------------------- */
/* Self-hosted so nothing is fetched from a CDN at runtime. One variable file  */
/* per subset covers 400 to 700; latin-ext only downloads if a page needs it.  */

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/nunito-sans-latin-4a6f9a47.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: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/nunito-sans-latin-ext-777d78ef.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;
}

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

:root {
  --ink: #111111;
  --ink-soft: #555555;
  --line: #e4e4e4;
  --surface: #ffffff;
  --surface-alt: #f7f7f6;
  --blue: #003571;
  --green: #62800a;
  --alert: #a12b1f;

  /* 4px grid. Nothing in the application uses a value outside this scale. */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s12: 48px;

  --radius: 4px;
  --border: 1px solid var(--line);

  --font: "Nunito Sans", "Avenir Next", Avenir, -apple-system, "Segoe UI", sans-serif;

  --text-dense: 13px;
  --text-body: 15px;
  --text-heading: 20px;
  --text-title: 24px;
  --text-counter: 44px;

  --page-max: 1180px;
}

/* --- Base ----------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.45;
  min-width: 320px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: var(--text-title);
}

h2 {
  font-size: var(--text-heading);
}

h3 {
  font-size: var(--text-body);
}

p {
  margin: 0 0 var(--s3);
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* One focus treatment, everywhere, always visible. */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Durations line up in columns wherever they are listed. */
.tabular {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--ink-soft);
}

.dense {
  font-size: var(--text-dense);
}

.nowrap {
  white-space: nowrap;
}

.right {
  text-align: right;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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