:root {
  color-scheme: light dark;
  --fg: #000;
  --bg: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #fff;
    --bg: #000;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: InterVariable, Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 54rem;
  padding: 6rem;
}

h1,
h2 {
  font-size: inherit;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

section {
  margin-top: 3rem;
}

p + p,
p + ul {
  margin-top: 1rem;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

ul,
ol {
  list-style: none;
}

.dated li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
}

@media (max-width: 480px) {
  main {
    padding: 4rem 1rem;
  }
}

article time {
  display: block;
  margin-bottom: 1.5rem;
}

article img,
article video {
  display: block;
  width: 100%;
  height: auto;
}

article > video {
  margin-bottom: 1.5rem;
}

.receipts > li + li {
  margin-top: 3rem;
}

.media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.media.three {
  grid-template-columns: repeat(3, 1fr);
}

.media video {
  grid-column: 1 / -1;
}

nav {
  margin-bottom: 3rem;
}
