/* Qualibrium holding page. Values are the design set's tokens
   (docs/design/prototype/tokens.css), light and dark. Nothing is loaded from
   another site: the fonts are served from this one. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --bg: #F7F9F9;
  --border: #D5DDDF;
  --text: #1B2A38;
  --muted: #46535F;
  --primaryText: #0A5960;
  --focus: #0E7C86;
  --wordmark: #0E7C86;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1820;
    --border: #2B3B48;
    --text: #E7EDF0;
    --muted: #B3C0C9;
    --primaryText: #5CC6CF;
    --focus: #5CC6CF;
    --wordmark: #159AA6;
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4.5rem 1rem 3rem;
}

.wordmark {
  display: block;
  width: 13rem;
  height: auto;
  color: var(--wordmark);
  margin: 0 0 3rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; }

.lede { color: var(--muted); }

section {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

a {
  color: var(--primaryText);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 30rem) {
  main { padding-top: 3rem; }
  .wordmark { width: 10.5rem; margin-bottom: 2.25rem; }
  h1 { font-size: 1.5rem; }
}
