
/* CSS RESET */

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

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
    scroll-behavior: smooth;
  }
}

body {
  line-height: 1.5;
}

img, 
picture
 {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

a {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

:where(ul, ol) {
  list-style-type: "";
  padding: 0;
}

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

h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

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

p {
  text-wrap: pretty;
}

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

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* GENERAL STYLING */

.flow {
    --flow-space: 20px;
}

.flow > * + * {
    margin-block-start: var(--flow-space, 1em);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 16px;
    background-color: #1b1b1b;
    color: #fefefe;
}

.main {
    max-width: 50rem;
    margin-inline: auto;
    padding-block: 2rem;
}

.main-heading {
    text-align: center;
    margin-block-end: 60px;
    font-size: 1.75rem;
}

code {
    color: rgb(201, 226, 234);
    font-size: 2rem;
}

.card {
    --min-width: 300px;
    --gap: 40px;
    display: grid;
    gap: var(--gap);
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min-width)), 1fr))
}

.image {
    border-radius: 50%;
}

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    line-height: 1.2;
}

.fact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
}

.fact__key {
    font-weight: 600;
}