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

* {
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

ul,
ol {
  list-style: none;
}

a {
  color: currentColor;
}

:root {
  --font-family: "Source Sans 3", sans-serif;

  --font-weight-normal: 400;
  --font-weight-bold: 700;

  --font-size-heading: 2.5rem;
  --font-size-body: 1rem;

  --line-height-heading: 1.2;
  --line-height-body: 1.5;

  --color-text: #122e51;
  --color-background: #ffffff;
  --color-muted: #e3edfb;
  --color-drought: #cc9900;
  --color-flooding: #0a47cc;
  --color-freeze: #0099cc;
  --color-severe-storm: #00ac23;
  --color-tropical-cyclone: #ffd147;
  --color-wildfire: #ff810a;
  --color-winter-storm: #9900cc;
}

body {
  font-family: var(--font-family);
  font-optical-sizing: auto;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-background);
}

h1 {
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-heading);
  text-align: center;
}

.vis {
  font-variant-numeric: tabular-nums, lining-nums;
}

main {
  width: min(calc(100% - 3rem), 90rem);
  margin: 3rem auto;
}

.content {
  max-width: 45rem;
  margin: 3rem auto;
}

.content > * + * {
  margin-block-start: 1rem;
}

.legends {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: center;
}

.legend > * + * {
  margin-block-start: 0.5rem;
}

.legend__title {
  font-weight: var(--font-weight-bold);
}

.swatch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.swatch__swatch {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.size-tick__bg {
  stroke: var(--color-muted);
}

.stream {
  mix-blend-mode: multiply;
}
