/* The landing's typefaces (SIL Open Font License, see /fonts/<name>/OFL.txt), Latin letters only: Inter for
   the text and Newsreader, a serif with optical sizes, for the titles, the prices and the scores. Newsreader
   comes in one weight (500), upright and italic; its optical size follows the font size by itself. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/inter/inter-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: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/newsreader/newsreader-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: "Newsreader";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/newsreader/newsreader-latin-italic.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;
}

/* «Informe»: warm paper, white sheets on it, the logo's navy as the ink and one accent, cobalt. Every pair
   of text and background below reads at 4.5:1 or more (WCAG AA); a field's border, at 3:1 or more. */
:root {
  --color-paper: #f6f4ef;
  --color-surface: #ffffff;
  --color-ink: #0b1f3a;
  --color-ink-hover: #17335c;
  --color-text: #1a2233;
  --color-text-muted: #586174;
  --color-text-soft: #666d7a;
  --color-border: #e2ded4;
  --color-border-strong: #cbc5b8;
  --color-field-border: #8f887a;
  /* The accent, cobalt (the only one): the focus ring, links, the headline's second sentence and the one-off's border. */
  --color-blue: #2442e0;
  --color-blue-dark: #1b33b8;
  /* Text on the navy panels. */
  --color-on-ink: #ffffff;
  --color-on-ink-muted: #c9cfdb;
  --color-focus-on-ink: #9fb0ff;
  --color-error-on-ink: #fda29b;
  --color-error: #b42318;
  --color-error-soft: #fbe9e6;
  --color-warning: #a24a06;
  --color-warning-soft: #fbf0dc;
  --color-notice: var(--color-ink);
  --color-notice-soft: #ecebe5;
  --color-success: #157347;
  --color-success-soft: #e7f3ec;
  /* Solid, so the focus ring keeps 3:1 or more against the page (7.2:1 on white, 6.5:1 on the paper). */
  --color-focus: var(--color-blue);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --radius: 12px;
  --radius-small: 8px;
  --content-width: 1360px;
  --page-gutter: 48px;
  --header-height: 68px;
  --space-section: clamp(80px, 9vw, 128px);
}

@media (max-width: 40em) {
  :root {
    --page-gutter: 40px;
    --header-height: 60px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  /* Newsreader has one weight: a bolder one is never faked. */
  font-synthesis-weight: none;
  /* With a larger font (the browser's setting), a word longer than its line breaks rather than widen the page. */
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--color-ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}

/* The titles (every h1 and h2) in the serif, in its one weight. */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

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

[hidden] {
  display: none !important;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Every control shows where the keyboard is: a ring in the accent color around it. */
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* The main action: navy, the ink of the page. */
.button--primary {
  color: var(--color-on-ink);
  background: var(--color-ink);
}

.button--primary:hover {
  background: var(--color-ink-hover);
}

.button--secondary {
  color: var(--color-ink);
  background: var(--color-surface);
  border-color: var(--color-border-strong);
}

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

/* The main action on a navy panel: white, with a lighter ring (the cobalt would not show on the navy). */
.button--inverse {
  color: var(--color-ink);
  background: var(--color-surface);
}

.button--inverse:hover {
  background: var(--color-paper);
}

.button--inverse:focus-visible {
  outline-color: var(--color-focus-on-ink);
}

.button--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Hidden from view but read by screen readers (live announcements, the scan field's label). */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}
