:root {
  color-scheme: light dark;
  --page-bg: #f7ffff;
  --surface: #fffffb;
  --surface-soft: #e3fdfd;
  --text: #141714;
  --muted: #566a68;
  --border: #bfe8ea;
  --accent: #71c9ce;
  --accent-strong: #1e5e64;
  --accent-soft: #cbf1f5;
  --accent-fill: #a6e3e9;
  --warm: #1e5e64;
  --linen: #e3fdfd;
  --shadow: rgba(30, 94, 100, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #071d20;
    --surface: #0d282c;
    --surface-soft: #123f43;
    --text: #eefafa;
    --muted: #a6c4c3;
    --border: #245c61;
    --accent: #71c9ce;
    --accent-strong: #a6e3e9;
    --accent-soft: #123f43;
    --accent-fill: #174d52;
    --warm: #a6e3e9;
    --linen: #0e3438;
    --shadow: rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-bg);
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 28px 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 58px;
}

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 8px 22px var(--shadow);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav a,
.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 82%, var(--surface-soft));
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 120ms ease;
}

.nav a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  background: var(--accent-soft);
  color: var(--text);
}

.nav a:hover,
.pill-link:hover,
.text-link:hover {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border));
  color: var(--accent-strong);
}

.nav a:hover,
.pill-link:hover {
  background: color-mix(in srgb, var(--accent-soft) 66%, var(--surface));
  box-shadow: 0 8px 22px var(--shadow);
}

.nav a:active,
.pill-link:active {
  transform: translateY(1px);
}

.page-intro {
  display: grid;
  gap: 16px;
  max-width: 780px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: 2.65rem;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-top: 38px;
}

.note-panel {
  position: sticky;
  top: 24px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--linen) 92%, var(--surface)) 0%, var(--linen) 100%);
}

.note-panel h2 {
  margin: 0 0 14px;
  font-size: 0.96rem;
  line-height: 1.35;
}

.note-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.note-panel p + p,
.note-panel .pill-link {
  margin-top: 14px;
}

.document {
  max-width: 680px;
}

.doc-section {
  padding: 0 0 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}

.doc-section:last-child {
  margin-bottom: 0;
}

.doc-section h2,
.link-card h2 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  font-weight: 650;
  line-height: 1.3;
}

.doc-section p,
.link-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.doc-section p:last-child,
.link-card p:last-child {
  margin-bottom: 0;
}

.plain-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.plain-list li + li {
  margin-top: 8px;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 650;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.link-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--shadow) 76%, transparent);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer {
  padding: 32px 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .site {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 38px;
  }

  .nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 2.05rem;
  }

  .document-layout,
  .link-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .note-panel {
    position: static;
  }

  .page-intro {
    padding-bottom: 28px;
  }
}
