:root {
  color: #1f2328;
  background: #f6f7f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
}

header {
  border-bottom: 1px solid #d8dee4;
  background: #ffffff;
}

.header-inner {
  display: flex;
  width: min(100% - 40px, 720px);
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 650;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

nav { display: flex; gap: 20px; }

nav a {
  color: #57606a;
  font-size: 0.92rem;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: #1f2328;
  text-decoration: underline;
}

main {
  width: min(100% - 40px, 720px);
  margin: 40px auto 64px;
  padding: 34px 38px 44px;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  background: #ffffff;
}

h1 {
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d8dee4;
  font-size: 2rem;
  line-height: 1.25;
}

h2 {
  margin: 36px 0 8px;
  font-size: 1.2rem;
  line-height: 1.35;
}

p {
  margin: 0 0 16px;
}

a {
  color: #0969da;
}

.link-list { display: grid; gap: 12px; }

.link-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid #d8dee4;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
}

.link-list a:hover {
  border-color: #8c959f;
  background: #f6f8fa;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f6f8fa;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #e6edf3;
    background: #0d1117;
  }

  header,
  main {
    border-color: #30363d;
    background: #161b22;
  }

  h1 {
    border-color: #30363d;
  }

  a {
    color: #58a6ff;
  }

  code {
    background: #161b22;
  }

  nav a { color: #8c959f; }

  nav a:hover,
  nav a[aria-current="page"] { color: #e6edf3; }

  .link-list a { border-color: #30363d; }

  .link-list a:hover {
    border-color: #6e7681;
    background: #0d1117;
  }
}

@media (max-width: 560px) {
  .header-inner { min-height: 64px; }
  .brand img { width: 34px; height: 34px; }
  main {
    width: auto;
    margin: 20px;
    padding: 26px 22px 34px;
  }
}
