/* Rootinator: an editorial shell for research and long-form technical writing. */
:root {
  color-scheme: dark;
  --bg: #111413;
  --surface: #191e1b;
  --surface-hover: #202722;
  --ink: #eceee7;
  --muted: #a4aea5;
  --accent: #c2dda1;
  --border: #343d35;
  --code-bg: #171c19;
  --code-border: #343d35;
  --text-primary: #eceee7;
  --text-secondary: #a4aea5;
  --text-link: #c2dda1;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button, input { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1.1rem; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; overflow-wrap: break-word; }
.shell { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; background: var(--accent); color: var(--bg); padding: 10px 18px; clip-path: inset(50%); }
.skip-link:focus { clip-path: none; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 14px; align-items: center; font-size: 25px; font-weight: 700; letter-spacing: -.06em; }
.brand-mark { color: var(--accent); font: 22px var(--mono); letter-spacing: -.08em; }
.brand-dot, .accent-text { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.site-nav a { padding-block: 8px; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] { box-shadow: 0 1px var(--accent); }
.nav-github { margin-left: 12px; }
.eyebrow { font: 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.accent-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.hero { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: center; padding: 86px 0 78px; }
.hero .eyebrow { margin-bottom: 25px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 4.6vw, 64px); font-weight: 400; letter-spacing: -.06em; line-height: 1.13; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-description { max-width: 540px; margin: 24px 0 30px; color: var(--muted); font-size: 17px; }
.hero-links { display: flex; align-items: center; gap: 28px; }
.button-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--accent); color: var(--bg); padding: 12px 20px; font-size: 14px; font-weight: 600; border-radius: 3px; }
.button-link:hover { background: #d1e7b6; color: var(--bg); }
.text-link { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; color: var(--ink); }
.text-link span { color: var(--accent); }
.hero-art { color: var(--accent); opacity: .85; }
.hero-art svg { display: block; width: 100%; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.featured-article { display: grid; grid-template-columns: 1fr 240px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.featured-copy { padding: 38px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font: 11px/1.6 var(--mono); color: var(--muted); }
.article-kind { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.cve-label { color: var(--ink); border: 1px solid var(--border); padding: 2px 7px; border-radius: 3px; }
.featured-copy h3 { font-size: clamp(24px, 2.7vw, 34px); line-height: 1.25; margin: 18px 0; max-width: 650px; }
.featured-copy p { color: var(--muted); max-width: 620px; font-size: 15px; margin-bottom: 24px; }
.featured-note { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; border-left: 1px solid var(--border); padding: 28px; text-align: center; font: 11px var(--mono); color: var(--muted); }
.featured-note img { width: 128px; height: 128px; object-fit: contain; }
.latest-section { margin-top: 66px; }
.article-row { display: flex; justify-content: space-between; align-items: center; gap: 26px; border-top: 1px solid var(--border); padding: 30px 0; }
.article-row:last-child { border-bottom: 1px solid var(--border); }
.article-row h2 { margin: 12px 0 10px; font-size: 23px; line-height: 1.35; max-width: 860px; letter-spacing: -.025em; }
.article-row h2 a { text-decoration: none; }
.article-row p { max-width: 760px; color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.row-arrow { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--accent); font-size: 24px; flex-shrink: 0; border-radius: 3px; }
.row-arrow:hover { background: var(--surface); }
.article-tags { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 8px; }
.article-tags li { font: 10px/1.7 var(--mono); color: var(--muted); background: var(--surface); padding: 3px 8px; border-radius: 3px; }
.author-strip { display: flex; align-items: center; gap: 24px; padding: 40px 0; margin: 52px 0 28px; }
.author-monogram { display: flex; align-items: center; justify-content: center; flex: 0 0 64px; height: 64px; border: 1px solid var(--border); border-radius: 50%; color: var(--accent); font: 19px Georgia, serif; }
.author-strip .eyebrow { margin-bottom: 5px; }
.author-strip h2 { font-size: 21px; margin-bottom: 6px; }
.author-strip p:last-child { color: var(--muted); font-size: 14px; margin: 0; }
.author-strip > .text-link { margin-left: auto; white-space: nowrap; }
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { padding: 36px 0; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer-brand { font-size: 18px; font-weight: 650; letter-spacing: -.05em; }
.footer-inner p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.footer-inner nav { display: flex; gap: 24px; margin-left: auto; font-size: 12px; color: var(--muted); }
.copyright { font: 10px var(--mono); color: var(--muted); }
.page-intro { padding: 68px 0 46px; }
.page-intro .eyebrow { margin-bottom: 18px; }
.page-intro h1 { font-family: Georgia, "Times New Roman", serif; font-size: 56px; font-weight: 400; margin-bottom: 20px; }
.page-intro > p:last-child { color: var(--muted); font-size: 17px; max-width: 620px; }
.blog-page { padding-bottom: 40px; }
.blog-controls { display: grid; grid-template-columns: minmax(200px, 360px) minmax(0, 1fr); gap: 36px; align-items: start; border-top: 1px solid var(--border); padding-top: 28px; }
.filter-groups { display: grid; gap: 22px; min-width: 0; }
.search-field { flex: 1; max-width: 440px; }
.search-field label, .article-filters legend { display: block; color: var(--muted); font: 11px var(--mono); margin-bottom: 12px; }
.search-field input { width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--ink); padding: 10px 14px; font-size: 14px; }
.search-field input::placeholder { color: var(--muted); }
.article-filters { border: 0; padding: 0; margin: 0; min-width: 0; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { padding: 10px 16px; font-size: 12px; line-height: 22px; border: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--muted); }
.filter-button:hover { color: var(--ink); background: var(--surface); }
.filter-button[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.blog-count { margin: 24px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font: 11px var(--mono); color: var(--muted); }
.blog-count p { margin: 0; }
.clear-search { background: none; border: 0; color: var(--accent); font-size: 12px; text-decoration: underline; padding: 8px 0; }
.empty-state { color: var(--muted); padding: 44px 0; border-top: 1px solid var(--border); }
.empty-state a { color: var(--accent); text-decoration: underline; }
.simple-page { padding-bottom: 50px; }
.simple-page .prose { max-width: 740px; }
.article-page { padding: 42px 0 36px; }
.back-link { display: inline-block; color: var(--muted); font-size: 13px; margin-bottom: 40px; }
.article-header { padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.article-header h1 { font: 400 clamp(32px, 4.2vw, 52px)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.04em; max-width: 980px; margin: 20px 0; }
.article-description { max-width: 780px; font-size: 18px; color: var(--muted); }
.article-byline { font: 12px/1.8 var(--mono); color: var(--muted); margin: 20px 0 0; }
.article-byline span { margin-inline: 6px; }
.disclosure-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 28px 0 0; padding: 24px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.disclosure-details dt { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.disclosure-details dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.advisory-link { margin-top: 18px; font-size: 13px; color: var(--accent); }
.article-body-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 220px); gap: 72px; padding-top: 34px; align-items: start; }
.article-toc { position: sticky; top: 30px; max-height: calc(100vh - 60px); overflow-y: auto; padding-left: 20px; border-left: 1px solid var(--border); margin-top: 14px; }
.article-toc .eyebrow { margin-bottom: 14px; }
.article-toc a { display: block; font-size: 12px; line-height: 1.6; margin: 10px 0; color: var(--muted); overflow-wrap: break-word; }
.article-toc a:hover, .article-toc a[aria-current] { color: var(--accent); }
.article-end { max-width: 760px; border-top: 1px solid var(--border); padding-top: 28px; margin-top: 44px; }
.article-end-links { display: flex; justify-content: space-between; gap: 24px; margin-top: 24px; }
.prose { font-size: 17px; line-height: 1.8; color: #d8dfd7; min-width: 0; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { color: var(--ink); margin: 2em 0 .8em; scroll-margin-top: 24px; }
.prose h1 { font-size: 34px; }
.prose h2 { font-size: 27px; }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 18px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li > p { margin-bottom: .5em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: #61744e; text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: 4px; }
.prose blockquote { margin: 24px 0; padding: 16px 24px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
/* Published CVSS scores: visible labels accompany the severity colors. */
.cvss--none { --severity: var(--muted); }
.cvss--low { --severity: #c2dda1; }
.cvss--medium { --severity: #e5d492; }
.cvss--high { --severity: #edbe8c; }
.cvss--critical { --severity: #f5a99d; }
.cvss-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--severity); font: 10px/1.7 var(--mono); border: 1px solid var(--border); border-radius: 3px; padding: 2px 7px; }
.cvss-badge > :last-child { border-left: 1px solid var(--border); padding-left: 8px; }
.cvss-panel { max-width: 480px; margin-top: 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.cvss-summary { display: flex; align-items: center; gap: 20px; padding: 18px 22px; }
.cvss-dial { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.cvss-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 5; }
.cvss-track { stroke: var(--border); }
.cvss-progress { stroke: var(--severity); stroke-linecap: round; }
.cvss-dial-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cvss-dial-value strong { color: var(--severity); font: 600 27px/1.15 var(--mono); letter-spacing: -.06em; }
.cvss-dial-value span { color: var(--muted); font: 10px/1.7 var(--mono); }
.cvss-caption { min-width: 0; }
.cvss-kicker { margin: 0 0 3px; color: var(--muted); font: 11px/1.6 var(--mono); }
.cvss-severity { margin: 0 0 4px; color: var(--severity); font-size: 24px; font-weight: 600; line-height: 1.3; }
.cvss-source { color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.cvss-details { border-top: 1px solid var(--border); padding: 0 22px; }
.cvss-details summary { width: fit-content; padding: 11px 0; color: var(--muted); cursor: pointer; font: 11px/1.6 var(--mono); }
.cvss-details summary:hover { color: var(--ink); }
.cvss-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cvss-vector-label { margin: 4px 0 7px; color: var(--muted); font-size: 11px; }
.cvss-vector { display: block; overflow-wrap: anywhere; color: var(--ink); font: 11px/1.8 var(--mono); }
.cvss-attribution { margin: 12px 0 16px; color: var(--muted); font-size: 10px; }
.cvss-attribution a { text-decoration: underline; }
code, pre { font-family: var(--mono); }
.prose :not(pre) > code { font-size: .85em; background: var(--surface); padding: 3px 6px; border-radius: 3px; overflow-wrap: anywhere; }
.prose pre { width: fit-content; max-width: 100%; font-size: 13px; line-height: 1.6; border: 1px solid var(--border); border-radius: 4px; padding: 12px 14px; overflow-x: auto; background: var(--code-bg); margin: 24px 0; }
.prose pre code { background: transparent; padding: 0; font-size: inherit; border: 0; white-space: pre; }
.prose .highlight { background: var(--code-bg); }
.prose div.highlight { width: fit-content; max-width: 100%; margin: 24px 0; border-radius: 4px; }
.prose div.highlight pre { width: auto; margin: 0; }
/* Keep Copy beside the scrollable code without reserving an empty header. */
.code-block-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: fit-content; max-width: 100%; margin: 24px 0; border: 1px solid var(--border); border-radius: 4px; background: var(--code-bg); }
.prose .code-block-wrap pre, .prose .code-block-wrap div.highlight { width: auto; min-width: 0; margin: 0; border: 0; }
.code-copy { align-self: start; margin: 8px 8px 0 0; border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 3px; padding: 3px 9px; font: 10px var(--mono); }
.code-copy:hover { color: var(--ink); }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 24px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; vertical-align: top; }
.prose th { color: var(--ink); background: var(--surface); }
.prose .mermaid { overflow-x: auto; margin: 24px 0; padding: 16px; background: var(--surface); border-radius: 4px; }
.archive-notice { border-left: 2px solid var(--accent); padding: 10px 16px; color: var(--muted); font-size: 13px; background: var(--surface); max-width: 760px; }
.archive-list { list-style: none; padding: 0; }
.archive-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding: 14px 0; }
.archive-list span { color: var(--muted); font-size: 12px; }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 240px; gap: 20px; }
  .hero h1 { font-size: 48px; }
  .article-body-grid { grid-template-columns: minmax(0, 1fr) 180px; gap: 40px; }
  .copyright { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 80px; gap: 12px; }
  .brand { font-size: 22px; gap: 10px; }
  .brand-mark { font-size: 19px; }
  .site-nav { gap: 20px; font-size: 13px; }
  .nav-social { display: none; }
  .hero { display: block; padding: 52px 0; }
  .hero h1 { font-size: clamp(35px, 7vw, 48px); }
  .hero-art { display: none; }
  .hero-description { font-size: 16px; }
  .hero-links { gap: 22px; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-copy { padding: 26px; }
  .featured-note { display: none; }
  .featured-copy h3 { font-size: 28px; }
  .latest-section { margin-top: 44px; }
  .article-row { gap: 12px; padding: 24px 0; }
  .article-row h2 { font-size: 21px; }
  .author-strip { align-items: flex-start; flex-wrap: wrap; gap: 20px; margin-top: 28px; padding: 28px 0; }
  .author-strip > div { flex: 1; }
  .author-strip > .text-link { margin-left: 84px; }
  .footer-inner { align-items: flex-start; gap: 24px; padding: 28px 0; }
  .footer-inner nav { margin-left: 0; flex-basis: 100%; }
  .page-intro { padding: 48px 0 28px; }
  .page-intro h1 { font-size: 44px; }
  .blog-controls { display: flex; align-items: stretch; flex-direction: column; gap: 24px; }
  .search-field { max-width: none; }
  .article-page { padding-top: 26px; }
  .article-header { padding-bottom: 24px; }
  .back-link { margin-bottom: 28px; }
  .article-header h1 { font-size: 36px; }
  .cvss-summary { padding: 16px; gap: 14px; }
  .cvss-details { padding-inline: 16px; }
  .cvss-dial { width: 76px; height: 76px; }
  .cvss-severity { font-size: 22px; }
  .article-description { font-size: 16px; }
  .article-body-grid { display: flex; flex-direction: column; gap: 26px; padding-top: 26px; }
  .article-content { width: 100%; }
  .article-toc { position: static; order: -1; width: 100%; max-height: 190px; margin: 0; padding-left: 16px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 24px; }
  .prose pre { font-size: 12px; }
  .article-end-links { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .brand { font-size: 20px; }
  .site-nav { gap: 14px; }
  .hero-links { flex-wrap: wrap; gap: 18px; }
  .hero h1 { font-size: 33px; }
  .article-header h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { color-scheme: light; }
  body, .prose { color: #111; background: white; }
  .site-header, .site-footer, .article-toc, .code-copy, .back-link, .hero-art { display: none !important; }
  .shell { width: 100%; }
  .article-body-grid { display: block; }
  h1, h2, h3, .prose h2, .prose h3 { color: #111; }
  .prose pre { white-space: pre-wrap; background: #f3f3f3; }
}
