@charset "UTF-8";

:root {
  --paper: #fff;
  --ink: #182e41;
  --body: #354957;
  --muted: #5c7080;
  --accent: #226990;
  --line: #20435b26;
  --wash: #f4f8fa;
  font-family: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--paper);
  color-scheme: light;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { position: relative; display: flex; flex-direction: column; min-height: 100dvh; margin: 0; font-size: 1rem; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--accent); text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
::selection { color: #142e41; background: #c6e2f3; }
h1, h2, h3, h4 { color: var(--ink); }
.site-width { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.page-width { width: min(800px, calc(100% - 64px)); margin-inline: auto; }
main, .page-masthead { position: relative; z-index: 1; }
.atmosphere { position: absolute; z-index: 0; top: 0; left: 0; width: 100%; height: 860px; pointer-events: none; background: linear-gradient(180deg, #ffffff00 0%, #ffffff3b 28%, #ffffffbf 63%, #fff 100%), linear-gradient(112deg, #c1d9ee 0%, #d6e8f3 50%, #e9f2ef 100%); }
.page-masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; }
.section-nav { display: flex; gap: 28px; }
.section-nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; padding-block: 10px; }
.section-nav a:hover, .section-nav a[aria-current="page"] { color: var(--ink); }
.section-nav a[aria-current="page"] { box-shadow: 0 2px var(--accent); }
.wordmark { color: var(--ink); text-decoration: none; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
.site-header { position: fixed; z-index: 20; inset: 0 0 auto; border-bottom: 1px solid #ccd9e2; background: #fffffff5; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transform: translateY(-100%); transition: transform .25s ease, opacity .2s ease, visibility .25s; }
.site-header.is-visible, .site-header:focus-within { opacity: 1; visibility: visible; transform: translateY(0); }
.header-inner { width: min(1184px, calc(100% - 96px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; }
.site-header .wordmark { font-size: 1.2rem; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 1rem; background: var(--ink); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
h1 { margin: 0; font-size: clamp(2rem, 3.7vw, 3rem); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: balance; }
.article-heading { padding-top: 35px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 24px 50px; margin: 28px 0 0; padding-block: 19px 21px; border-top: 1px solid #6c8a9f5c; border-bottom: 1px solid #6c8a9f5c; }
.article-meta dt { margin-bottom: 7px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.article-meta dd { margin: 0; color: var(--ink); font-size: .875rem; line-height: 1.5; }
.article-body { padding-top: 30px; padding-bottom: 75px; }
.prose { font-size: 1.0625rem; line-height: 1.8; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin-block: 0 1.35em; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.6em; margin-bottom: .65em; color: var(--ink); font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.0625rem; }
.prose a { text-decoration-color: #22699060; }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 2px solid #81abc4; font-size: 1.125rem; line-height: 1.75; color: #365b72; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.5em; margin-block: 0 1.35em; }
.prose li { margin-block: .35em; padding-left: .2em; }
.prose li::marker { color: var(--accent); }
.prose pre { padding: 22px 24px; border: 1px solid #dae4eb; border-radius: 4px; background: var(--wash); overflow-x: auto; font-size: .875rem; line-height: 1.8; }
.prose code { padding: .12em .3em; border-radius: 3px; background: #edf3f7; color: #294e66; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .86em; }
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose img { display: block; max-width: 100%; height: auto; margin-block: 2rem; border-radius: 4px; }
.prose table { display: block; max-width: 100%; overflow-x: auto; margin-block: 2rem; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--wash); color: var(--ink); font-weight: 600; }
.prose hr { margin-block: 2.5rem; border: 0; border-top: 1px solid var(--line); }
.writing { padding-block: 25px 75px; }
.writing > h1 { margin-bottom: 12px; font-size: 2rem; }
.article-row { padding-block: 25px 35px; border-bottom: 1px solid var(--line); }
.article-row h2 { margin: 0; font-size: 1.625rem; line-height: 1.35; font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; }
.article-row h2 a { color: var(--ink); text-decoration: none; }
.article-row h2 a:hover { color: var(--accent); }
.article-row .article-meta { margin-top: 16px; padding: 0; border: 0; }
.article-row p { max-width: 800px; margin: 22px 0 0; line-height: 1.8; }
.empty-state { padding-block: 40px; color: var(--muted); }
.not-found { padding-block: 70px 100px; min-height: 65vh; }
.not-found p { margin-top: 30px; }
.site-footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 30px 40px; border-top: 1px solid var(--line); }
.footer-note p { margin: 8px 0 0; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.footer-note .footer-label { margin: 0; color: var(--ink); font-size: .875rem; font-weight: 600; }
.old-site-link { display: inline-flex; align-items: center; gap: 18px; padding-block: 8px; color: var(--ink); font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; text-decoration: none; }
.old-site-link span { color: var(--accent); transition: transform .2s ease; }
.old-site-link:hover { color: var(--accent); }
.old-site-link:hover span { transform: translate(2px, -2px); }
.wiki-group { margin-top: 42px; }
.wiki-group > h2 { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 1.25rem; font-weight: 600; }
.wiki-list, .wiki-pages ul { list-style: none; padding: 0; margin: 0; }
.wiki-row h3 { margin: 0; font-size: 1.625rem; line-height: 1.35; font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; }
.wiki-row h3 a { color: var(--ink); text-decoration: none; }
.wiki-row h3 a:hover { color: var(--accent); }
.wiki-row .wiki-row-source { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.wiki-context { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-block: 25px; font-size: .875rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.wiki-layout { display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, 800px); gap: 50px; align-items: start; }
.wiki-pages { position: sticky; top: 100px; max-height: calc(100dvh - 120px); overflow-y: auto; padding-block: 35px; padding-right: 10px; }
.wiki-pages h2 { margin: 0 0 20px; font-size: .875rem; font-weight: 600; }
.wiki-pages li { margin-block: 12px; font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.wiki-pages a { color: var(--muted); text-decoration: none; }
.wiki-pages a:hover, .wiki-pages a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.wiki-pages summary { padding-block: 4px; color: var(--ink); cursor: pointer; }
.wiki-pages summary::marker { color: var(--accent); }
.wiki-pages summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wiki-pages details > ul { margin-top: 8px; padding-left: 16px; border-left: 1px solid var(--line); }
.wiki-name { margin: 0 0 16px; font-size: .875rem; }
.wiki-name a { color: var(--muted); text-decoration: none; }
.wiki-origin { margin: 22px 0 0; font-size: .8125rem; color: var(--muted); }
.wiki-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.wiki-actions button { padding: 10px 16px; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); background: var(--paper); font: inherit; cursor: pointer; }
.wiki-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 760px) {
  .site-width, .header-inner, .page-width { width: calc(100% - 40px); }
  .page-masthead { min-height: 84px; }
  .wordmark { font-size: 1.25rem; }
  .header-inner { min-height: 64px; }
  .article-heading { padding-top: 25px; }
  .article-heading h1 { font-size: clamp(2rem, 5.3vw, 2.7rem); line-height: 1.25; }
  .article-meta { gap: 20px 28px; margin-top: 26px; padding-block: 19px; }
  .article-meta dd { font-size: .8125rem; }
  .article-body { padding-top: 27px; padding-bottom: 60px; }
  .prose { font-size: 1rem; line-height: 1.8; }
  .prose blockquote { font-size: 1rem; padding-left: 18px; }
  .prose pre { padding: 17px; font-size: .8125rem; }
  .section-nav { gap: 22px; }
  .section-nav a { font-size: .875rem; }
  .site-footer { padding-block: 24px 30px; }
  .wiki-layout { display: flex; flex-direction: column; gap: 0; }
  .wiki-story { width: 100%; }
  .wiki-pages { position: static; width: 100%; max-height: 260px; padding-block: 20px; border-bottom: 1px solid var(--line); }
  .wiki-pages h2 { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .atmosphere, .site-header, .page-masthead, .site-footer, .wiki-pages, .wiki-context { display: none; }
  .wiki-layout { display: block; }
  .page-width { width: 100%; }
  .article-heading { padding-top: 0; }
  .article-heading h1 { font-size: 28pt; }
  .article-body { padding-bottom: 0; }
}
