@charset "UTF-8";

:root {
  color-scheme: dark;
  --base: #111b28;
  --surface: #151f2b;
  --panel: #192634;
  --raised: #203243;
  --line: #304252;
  --ink: #e8edf3;
  --muted: #a8bac9;
  --quiet: #7f96a9;
  --accent: #8cc2d0;
  --warm: #d5ad85;
  --font: "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 100%; background: var(--base); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(80, 132, 153, .11), transparent 30rem),
    var(--base);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.9;
}
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: -5rem;
  right: 1.25rem;
  padding: .55rem .9rem;
  background: var(--ink);
  color: var(--base);
  text-decoration: none;
}
.skip-link:focus { top: .75rem; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(21, 31, 43, .96);
}
.header-inner,
.page-shell,
.site-footer {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}
.header-inner {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid #648da0;
  border-radius: 50%;
  flex: 0 0 auto;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.brand-mark::before { inset: .45rem; border: 1px solid #648da0; }
.brand-mark::after { inset: 1rem; background: var(--warm); }
.brand-mark span {
  position: absolute;
  width: 1.55rem;
  height: 1px;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--accent);
  transform: rotate(-40deg);
  transform-origin: right center;
}
.brand-name { font-size: 1.75rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.brand-name small { display: block; margin-top: .3rem; color: var(--muted); font-size: .72rem; font-weight: 500; letter-spacing: .14em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.site-nav a {
  padding: .42rem .72rem;
  border-radius: .25rem;
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
}
.site-nav a:hover { background: var(--raised); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--accent); border-radius: 0; }
.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.article { min-width: 0; max-width: 47rem; }
.page-title { margin: 0; font-size: clamp(2.4rem, 7vw, 5.2rem); font-weight: 650; line-height: 1.15; letter-spacing: -.05em; }
.lead { margin: 1.25rem 0 0; max-width: 42rem; color: #c1d0dc; font-size: clamp(1.2rem, 2.5vw, 1.48rem); line-height: 1.8; }
.article-section { padding-top: 2.8rem; margin-top: 2.8rem; border-top: 1px solid var(--line); }
.article-section h2 { margin: 0 0 1rem; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.45; font-weight: 620; }
.article-section h3 { margin: 1.8rem 0 .5rem; font-size: 1.15rem; color: #dce6ee; }
.article-section p { margin: .8rem 0 0; max-width: 43rem; color: var(--muted); }
.article-section ul { margin: .8rem 0 0; padding: 0 1.35rem 0 0; color: var(--muted); }
.article-section li { padding-right: .35rem; margin-block: .45rem; }
.article-section strong { color: var(--ink); font-weight: 600; }
.note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-right: 3px solid var(--warm);
  background: rgba(213, 173, 133, .07);
  color: #d7c1aa;
}
.link-list { list-style: none; padding: 0 !important; }
.link-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.link-list a { color: var(--accent); overflow-wrap: anywhere; }
.rail { align-self: start; position: sticky; top: 2rem; border-top: 1px solid var(--accent); }
.rail-block { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.rail-label { display: block; margin-bottom: .35rem; color: var(--quiet); font-size: .9rem; }
.rail strong { font-weight: 550; }
.rail p { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.75; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: .95rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 780px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 1rem; padding-block: 1.15rem; }
  .site-nav { width: 100%; }
  .site-nav a { padding-inline: .55rem; }
  .page-shell { grid-template-columns: 1fr; padding-top: 2.7rem; }
  .rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top-color: var(--line); }
  .rail-block { padding: 1rem; border: 1px solid var(--line); border-top: 2px solid var(--accent); }
}
@media (max-width: 480px) {
  .header-inner, .page-shell, .site-footer { width: min(100% - 1.5rem, 1160px); }
  .rail { grid-template-columns: 1fr; }
  .page-title { font-size: 2.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
