:root {
  --scale: clamp(1rem, 0.9511rem + 0.2174vw, 1.125rem);
  --color-bg: oklch(98.5% 0.001 106.423);
  --color-body: oklch(37.1% 0 0);
  --color-muted: oklch(55.6% 0 0);
  --color-accent: #29bdad;

  font-size: var(--scale);
}

html, body {
  margin: 0;
}

body {
  max-width: 800px;
  padding: 1.5em;
  margin-inline: auto;
  font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
  font-weight: normal;
  line-height: 1.5;
  color: var(--color-body);
  background: var(--color-bg);
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  margin-block: 0.25em;
}

h1 {
  font-size: 1.5rem;
}
h2 {
  font-size: 1.25rem;
}
h3 {
  font-size: 1rem;
}

img {
  width: 100%;
}

strong {
  font-weight: 500;
}

p, li {
  max-width: 65ch;
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.15ch;
}

header h1 {
  font-size: 1rem;
}

section + section {
  margin-block: 5rem;
}

hgroup {
  margin-block: 2rem;
}
hgroup > * {
  margin-block: 0.25em;
}
hgroup p {
  color: var(--color-muted);
}

img {
  border: 1px solid rgba(0,0,0,0.1);
}

.list {
  list-style: none;
  padding-inline-start: 0;
}
.list > * + * { 
  margin-block-start: 3rem;
}
.list p {
  margin-block: 0.25em;
}

.grid {
  display: grid;
  grid-gap: 1.5rem;
}

@supports (width: min(300px, 100%)) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  }
}

.tag {
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1ch;
}

.dot {
  font-size: 1.25em;
  font-weight: 500;
  line-height: 1;
}

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