:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f6f7f8;
  color: #1b1d21;
}

main {
  width: min(820px, calc(100% - 32px));
  margin: 48px auto;
  padding: 40px;
  background: #ffffff;
  border: 1px solid #e4e6e8;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

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

ul {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.35rem;
}

.updated,
.summary-note {
  color: #62666d;
}

.updated {
  margin-bottom: 2rem;
}

.summary {
  margin: 1.5rem 0 2rem;
  padding: 1.1rem 1.2rem;
  background: #f3f5f6;
  border: 1px solid #e4e6e8;
  border-radius: 12px;
}

.summary p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

address {
  font-style: normal;
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e4e6e8;
  color: #62666d;
  font-size: 0.95rem;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: #ffffff;
  color: #1b1d21;
  border: 1px solid #1b1d21;
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 640px) {
  main {
    width: auto;
    margin: 0;
    padding: 28px 20px 40px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: #111315;
    color: #f2f3f5;
  }

  main {
    background: #191b1e;
    border-color: #2b2e33;
    box-shadow: none;
  }

  .updated,
  .summary-note,
  footer {
    color: #aeb2b8;
  }

  .summary {
    background: #202328;
    border-color: #2b2e33;
  }

  footer {
    border-top-color: #2b2e33;
  }

  .skip-link {
    background: #191b1e;
    color: #f2f3f5;
    border-color: #f2f3f5;
  }
}
