/* Shared by the public page and the admin panel: typeface, palette and both themes. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fontes/inter-latin-wght-normal.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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fontes/inter-latin-ext-wght-normal.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;
}

/* The palette is the signature's blue-grey (#719DA6) taken lighter and darker. */
:root {
  color-scheme: light;
  --signature: #719da6;
  --page: #edf3f4;
  --mist-1: #f6f9f9;
  --mist-2: #d6e4e7;
  --mist-3: #c3d7dc;
  --surface: #ffffff;
  --line: #cfdde0;
  --text: #1f353c;
  --text-quiet: #4d6870;
  --button: #2f4a52;
  --button-hover: #263e45;
  --button-text: #f2f7f8;
  --focus: #1f353c;
  --danger: #a3392c;
  --shadow: 0 1px 2px rgb(31 53 60 / 0.1), 0 10px 24px -14px rgb(31 53 60 / 0.45);
  --shadow-pressed: 0 1px 2px rgb(31 53 60 / 0.14);
}

/* Dark values are repeated because CSS cannot share one block between a media query
   (system preference) and an attribute (manual choice). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --signature: #a3c2c9;
    --page: #0f1a1e;
    --mist-1: #0b1418;
    --mist-2: #172a31;
    --mist-3: #21404a;
    --surface: #16252b;
    --line: #2a4049;
    --text: #e6eff1;
    --text-quiet: #93adb4;
    --button: #a3c2c9;
    --button-hover: #b7d1d7;
    --button-text: #0f1d21;
    --focus: #e6eff1;
    --danger: #f0a094;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 24px -14px rgb(0 0 0 / 0.7);
    --shadow-pressed: 0 1px 2px rgb(0 0 0 / 0.35);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --signature: #a3c2c9;
  --page: #0f1a1e;
  --mist-1: #0b1418;
  --mist-2: #172a31;
  --mist-3: #21404a;
  --surface: #16252b;
  --line: #2a4049;
  --text: #e6eff1;
  --text-quiet: #93adb4;
  --button: #a3c2c9;
  --button-hover: #b7d1d7;
  --button-text: #0f1d21;
  --focus: #e6eff1;
  --danger: #f0a094;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 24px -14px rgb(0 0 0 / 0.7);
  --shadow-pressed: 0 1px 2px rgb(0 0 0 / 0.35);
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}
