:root {
  color-scheme: dark;
  --background: #000;
  --surface: #151517;
  --border: #2c2c2e;
  --text: #fff;
  --secondary: #b9b9be;
  --pink: #ff61ca;
  --lime: #ecec5e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.8 "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  overflow-wrap: break-word;
}

.shell {
  width: min(100% - 3rem, 46rem);
  margin-inline: auto;
}

.header {
  border-bottom: 1px solid var(--border);
}

.header .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.brand { display: flex; }
.brand img { display: block; width: 7.5rem; height: auto; }

nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
nav a { color: var(--secondary); font-size: .875rem; }
nav a[aria-current="page"] { color: var(--pink); }

main { padding-block: clamp(2.5rem, 8vw, 5rem); }

h1, h2, p, ul { margin-block: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.22; }
h2 { margin-block: 2rem .5rem; font-size: 1.25rem; line-height: 1.4; }
p + p, ul { margin-top: .75rem; }
li + li { margin-top: .5rem; }
a { color: var(--lime); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

.intro {
  max-width: 40rem;
  margin-block: 1rem 1.5rem;
  color: var(--secondary);
}

.page-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}

.page-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.page-links a:hover { border-color: var(--pink); }
.page-links span { color: var(--pink); }

@media (max-width: 24rem) {
  .shell { width: calc(100% - 2rem); }
  .brand img { width: 6rem; }
  nav { column-gap: .75rem; }
}
