:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: #f6f6f3;
  color: #171716;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(178, 38, 38, 0.08), transparent 36rem),
    #f6f6f3;
}

main {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

header {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(23, 23, 22, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  color: #a51f24;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(165, 31, 36, 0.1);
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2.15rem, 7vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.updated,
.intro {
  color: #686865;
}

a {
  color: #a51f24;
  text-underline-offset: 0.16em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  font-weight: 650;
}

.updated {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
}

.intro {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.65;
}

section {
  padding: 28px 0 0;
}

h2 {
  margin: 0 0 9px;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  color: #3e3e3b;
  font-size: 1rem;
  line-height: 1.72;
}

footer {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 23, 22, 0.14);
  color: #777772;
  font-size: 0.88rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #111110;
    color: #f3f3ef;
  }

  body {
    background:
      radial-gradient(circle at top right, rgba(219, 86, 86, 0.1), transparent 36rem),
      #111110;
  }

  header,
  footer {
    border-color: rgba(243, 243, 239, 0.15);
  }

  .brand {
    color: #e06a6f;
  }

  a {
    color: #e06a6f;
  }

  .seal {
    background: rgba(224, 106, 111, 0.13);
  }

  .updated,
  .intro,
  footer {
    color: #aaa9a3;
  }

  p {
    color: #d3d2cc;
  }
}
