:root {
  color-scheme: dark light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: #171918;
  color: #f2f4f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #171918;
  color: #f2f4f2;
  line-height: 1.65;
}

header,
main,
footer {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 0 18px;
  border-bottom: 1px solid #28745a;
}

header img {
  width: 38px;
  height: 38px;
}

header a {
  color: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

main {
  padding: 36px 0 48px;
}

h1,
h2 {
  line-height: 1.25;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 7vw, 3.25rem);
}

h2 {
  margin-top: 2rem;
  color: #bbf7d0;
  font-size: 1.2rem;
}

p,
li {
  color: #d7ddd9;
}

a {
  color: #67e8c0;
}

.lede {
  max-width: 66ch;
  font-size: 1.08rem;
}

.notice {
  padding: 16px 18px;
  border: 1px solid #28745a;
  border-radius: 12px;
  background: #1d211f;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 18px 0 28px;
  border-top: 1px solid #28745a;
  color: #aab3ad;
  font-size: 0.9rem;
}

@media (prefers-color-scheme: light) {
  :root,
  body {
    background: #f7faf8;
    color: #17201b;
  }

  p,
  li {
    color: #35453c;
  }

  h2 {
    color: #17603f;
  }

  a {
    color: #146c4a;
  }

  .notice {
    background: #edf7f1;
  }
}
