*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0B3948;
  --primary-light: #416165;
  --bg: #111214;
  --bg2: #181A1D;
  --bg3: #22252A;
  --border: rgba(52,56,64,0.9);
  --text: #F3F4F6;
  --text-muted: #B8BDC7;
  --text-hint: #7C828C;
  --periwinkle: #D9DBF1;
  --secondary-light: #6A9094;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--periwinkle); }

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 2rem;
  background: rgba(17,18,20,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.nav-links a:hover { color: var(--text); }

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
}

.eyebrow {
  color: var(--secondary-light);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.lead {
  color: var(--text-muted);
  font-size: 1.03rem;
  max-width: 680px;
  margin-bottom: 2rem;
}

.meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.pill {
  color: var(--periwinkle);
  background: rgba(217,219,241,0.07);
  border: 0.5px solid rgba(217,219,241,0.18);
  border-radius: 99px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
}

.panel {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  margin: 1rem 0;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 2.2rem 0 0.65rem;
}

h2:first-child { margin-top: 0; }

p, li { color: var(--text-muted); font-size: 0.94rem; }

ul { padding-left: 1.1rem; margin: 0.65rem 0; }

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

.note {
  color: var(--text-hint);
  font-size: 0.86rem;
  margin-top: 2.5rem;
}

.page-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding-left: 0;
}

.page-list a {
  display: block;
  min-height: 100%;
  padding: 0.95rem;
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.page-list span {
  display: block;
  color: var(--text-hint);
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 0.5px solid var(--border);
  color: var(--text-hint);
  font-size: 0.82rem;
}

@media (max-width: 620px) {
  nav { align-items: flex-start; flex-direction: column; padding: 0.9rem 1.2rem; }
  .nav-links { justify-content: flex-start; }
}
