/* ==========================================================================
   Base: design tokens, reset, utilities.
   Shared by every page of the site. Fonts: fonts.css and fonts-*.css.
   ========================================================================== */

/* Design tokens
   ========================================================================== */

:root {
  --color-text: #0e110e;
  --color-text-soft: #38413a;
  --color-muted: #6b7280;
  --color-muted-blue: #4a516e;
  --color-accent: #09ad4f;
  --color-accent-bright: #03cb58;
  /* WCAG AA on white: 3:1 for large text (24px+), 4.5:1 for normal text */
  --color-accent-text: #08a64b;
  --color-accent-strong: #07843c;
  --color-accent-strong-hover: #066c31;
  --color-page: #ffffff;
  --color-surface: #ffffff;
  --color-row: #f7f7f9;
  --color-border: #d3d3d3;

  --container-width: 1600px;
  --container-gutter: 16px;
}

@media (min-width: 768px) {
  :root {
    --color-page: #fafafa;
    --container-gutter: 32px;
  }
}

@media (min-width: 1280px) {
  :root {
    --container-gutter: 40px;
  }
}

/* Scale the 1920px desktop composition with the viewport, including browser zoom. */
@media (min-width: 1440px) {
  html {
    width: 1920px;
    zoom: calc(100vw / 1920px);
  }
}

/* Keep the 2000px composition centered without enlarging it further. */
@media (min-width: 2000px) {
  html {
    zoom: 1.0416666667;
    margin-inline: auto;
  }
}

/* Reset
   ========================================================================== */

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

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-page);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

:where(ul, ol)[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  margin: 0;
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

/* Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
