/* Mono editorial — paper, ink, and a single warm accent (sun) */
:root, :root.auto, :root.auto light {
  --bg: #f4ede0;
  --text: #161310;
  --text-muted: #4a443c;
  --text-faint: #8a8275;
  --accent: #161310;
  --sun: #a8481f;
  --sun-deep: #7a3315;
  --border: #161310;
  --rule: #161310;
  --line-soft: rgba(22, 19, 16, 0.18);
  --code-bg: #ebe3d2;
  --card-bg: #faf3e3;
  --ink: #161310;
}

:root.auto dark {
  --bg: #16140f;
  --text: #ece2cc;
  --text-muted: #8a8377;
  --text-faint: #5e5849;
  --accent: #ece2cc;
  --sun: #ce5e32;
  --sun-deep: #a8481f;
  --border: #ece2cc;
  --rule: #ece2cc;
  --line-soft: rgba(236, 226, 204, 0.18);
  --code-bg: #1f1c14;
  --card-bg: #1a1812;
  --ink: #ece2cc;
}

:root.light {
  --bg: #f4ede0;
  --text: #161310;
  --text-muted: #4a443c;
  --text-faint: #8a8275;
  --accent: #161310;
  --sun: #a8481f;
  --sun-deep: #7a3315;
  --border: #161310;
  --rule: #161310;
  --line-soft: rgba(22, 19, 16, 0.18);
  --code-bg: #ebe3d2;
  --card-bg: #faf3e3;
  --ink: #161310;
}

:root.dark {
  --bg: #16140f;
  --text: #ece2cc;
  --text-muted: #8a8377;
  --text-faint: #5e5849;
  --accent: #ece2cc;
  --sun: #ce5e32;
  --sun-deep: #a8481f;
  --border: #ece2cc;
  --rule: #ece2cc;
  --line-soft: rgba(236, 226, 204, 0.18);
  --code-bg: #1f1c14;
  --card-bg: #1a1812;
  --ink: #ece2cc;
}

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

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/jetbrainsmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-color: var(--text);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  -webkit-mask-size: 280px 280px;
  mask-size: 280px 280px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  opacity: 0.09;
}

body::after {
  content: "";
  position: absolute;
  top: -260px;
  right: -260px;
  width: 780px;
  height: 780px;
  pointer-events: none;
  z-index: 0;
  border: 1px solid var(--sun);
  border-radius: 50%;
  background-color: var(--sun);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='5' height='5'><circle cx='1' cy='1' r='1.1' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='5' height='5'><circle cx='1' cy='1' r='1.1' fill='black'/></svg>");
  -webkit-mask-size: 5px 5px;
  mask-size: 5px 5px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  opacity: 0.18;
}

body > * { position: relative; z-index: 1; }
body > header { z-index: 10; }

.page-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page-art-moon {
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 380px;
  height: 380px;
  border: 1px solid var(--sun);
  border-radius: 50%;
  background-color: var(--sun);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='5' height='5'><circle cx='1' cy='1' r='1.1' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='5' height='5'><circle cx='1' cy='1' r='1.1' fill='black'/></svg>");
  -webkit-mask-size: 5px 5px;
  mask-size: 5px 5px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  opacity: 0.14;
}

.page-art-mark {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--sun);
  opacity: 0.5;
  letter-spacing: 0.1em;
}
.mark-tl { top: 1.25rem; left: 0; }
.mark-tr { top: 1.25rem; right: 0; }
.mark-bl { bottom: 1.25rem; left: 0; }
.mark-br { bottom: 1.25rem; right: 0; }
.mark-1 { top: 18%; left: 0; }
.mark-2 { top: 18%; right: 0; }
.mark-3 { top: 35%; left: 0; }
.mark-4 { top: 35%; right: 0; }
.mark-5 { top: 52%; left: 0; }
.mark-6 { top: 52%; right: 0; }
.mark-7 { top: 68%; left: 0; }
.mark-8 { top: 68%; right: 0; }
.mark-9 { top: 84%; left: 0; }
.mark-10 { top: 84%; right: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 100;
}
.skip-link:focus { left: 1rem; }

body {
  font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  transition: background-color 0.2s, color 0.2s;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--line-soft);
  transition: text-decoration-color 0.15s;
}

a:hover {
  text-decoration-color: var(--sun);
}

header {
  padding: 1.5rem 0 0;
  margin-bottom: 2rem;
  border-bottom: none;
  position: relative;
}

.regmark {
  position: absolute;
  top: -0.25rem;
  left: -1.5rem;
  width: 14px;
  height: 14px;
  color: var(--text-faint);
}
.regmark::before,
.regmark::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.regmark::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}
.regmark::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

header > nav { position: relative; z-index: 1; }

header::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 1rem;
  background: var(--rule);
  position: relative;
  z-index: 1;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px double var(--rule);
  position: relative;
}

header nav .nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text);
  letter-spacing: 0.05em;
}
.nav-toggle:hover { color: var(--sun); }

header nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0;
  transition: opacity 0.15s;
}

header nav a:hover,
header nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

header nav a:not([aria-current="page"]) { opacity: 0.7; }

header .masthead {
  text-align: center;
  padding: 0.5rem 0 0.75rem;
}

header .masthead p.site-title { line-height: 1.2; }
header .masthead .site-title a { color: inherit; text-decoration: none; }
header .masthead .site-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
header .masthead .site-title {
  font-family: 'Charter', 'Georgia', serif;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) {
  header .masthead .site-title { white-space: nowrap; }
}
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-transform: none;
}

header .masthead .tagline {
  font-family: 'Charter', 'Georgia', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

header .masthead .bio {
  font-family: 'Charter', 'Georgia', serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  font-style: normal;
}

.theme-toggle {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color 0.15s;
}
.theme-toggle:hover { color: var(--sun); }

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}
.bio {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-style: normal;
  max-width: 60ch;
}

.cursor { animation: blink 0.8s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

article {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

article:last-child { border-bottom: none; }

article h2 { font-size: 1.15rem; margin-bottom: 0.3rem; }
article h2 a { color: var(--text); text-decoration: none; }
article h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

article .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

article .badge {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.7rem;
  color: var(--text);
  padding: 0;
  margin-right: 0.5rem;
  font-weight: 600;
}

article .excerpt { font-size: 0.95rem; color: var(--text); margin-bottom: 0.5rem; }
article .read-more {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  line-height: 1;
  display: inline-block;
}

.home-section { margin-bottom: 2.5rem; }
.home-section:last-child { margin-bottom: 4rem; }
.home-section .section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.home-section .section-title::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--sun);
  border-radius: 50%;
  flex: none;
}
.home-section .section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.badge-cve, .badge-event {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text);
  padding: 0;
  margin-right: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.home-section article .title-plain a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.home-section article .title-plain a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.badge-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0;
  margin-right: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.home-section article {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.home-section article:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.section-footer {
  margin-top: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  line-height: 1;
}
.section-footer a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--text); }
.section-footer a:hover { color: var(--text-muted); border-bottom-color: var(--text-muted); }
.home-section .meta .severity {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0;
  vertical-align: middle;
}
.home-section article h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 400;
}
.home-section article .title-plain {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-family: 'Charter', 'Georgia', serif;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.home-section article h2 a {
  color: var(--text);
  text-decoration: none;
}

.single-article { padding-bottom: 3rem; }
.single-article h1 {
  font-family: 'Charter', 'Georgia', serif;
  font-size: 2rem;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.single-article .meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.single-article .meta .badge {
  background: transparent;
  color: var(--text);
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.single-article .meta .cvss {
  background: transparent;
  color: var(--text);
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.single-article h2 {
  font-family: 'Charter', 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}
.single-article h3 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; }
.single-article p { margin-bottom: 1rem; }
.single-article > p:first-of-type::first-letter {
  font-family: 'Charter', 'Georgia', serif;
  font-size: 3.5em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin: 0.15em 0.12em 0 0;
  color: var(--text);
}
.single-article ul, .single-article ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.single-article li { margin-bottom: 0.3rem; }
.single-article a { color: var(--accent); }
.single-article code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: transparent;
  padding: 0 0.15rem;
  border: 1px solid var(--rule);
  border-radius: 0;
}
.single-article pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 0;
  border: 1px solid var(--rule);
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}
.single-article pre code { background: none; padding: 0; font-size: inherit; border: none; }

.code-block {
  position: relative;
  margin: 1rem 0;
}
.code-block .code-lang {
  position: absolute;
  top: 0.4rem;
  right: 3.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
  font-weight: 600;
}
.code-block .copy-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.15rem 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text);
  cursor: pointer;
  transition: background-image 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.code-block .copy-btn:hover { color: var(--text-muted); }
.code-block .copy-btn.copied { text-decoration: underline; text-decoration-thickness: 2px; }
.code-block pre { margin: 0; }
.single-article blockquote {
  border-left: 4px solid var(--rule);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text);
  font-style: italic;
  font-family: 'Charter', 'Georgia', serif;
  font-size: 1.05rem;
}
.single-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  font-family: 'Charter', 'Georgia', serif;
}
.single-article th, .single-article td {
  border: 1px solid var(--rule);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.single-article th { background: var(--code-bg); font-weight: 700; text-transform: uppercase; font-family: 'Inter', sans-serif; font-size: 0.7rem; letter-spacing: 0.08em; }

.data-page h1 {
  font-family: 'Charter', 'Georgia', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
  text-align: center;
}
.data-page .page-subtitle {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 2rem;
  font-family: 'Inter', sans-serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding-bottom: 1rem;
  border-bottom: 3px double var(--rule);
}

.data-table {
  width: 100%;
  font-family: 'Charter', 'Georgia', serif;
  font-size: 0.95rem;
}
.data-table .header {
  display: grid;
  grid-template-columns: 110px 1fr 90px 76px 90px 70px;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.data-table .row {
  display: grid;
  grid-template-columns: 110px 1fr 90px 76px 90px 70px;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.data-table .row:hover { background: var(--code-bg); }
.data-table .cve { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text); font-weight: 600; }
.data-table .cwe-link { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); text-decoration: none; }
.data-table .cwe-link:hover { text-decoration: underline; }
.data-table .title { color: var(--text); text-decoration: none; font-weight: 500; }
.data-table .title:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.data-table .date { color: var(--text-muted); font-size: 0.8rem; font-family: 'Inter', sans-serif; }
.data-table .cvss { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text); font-weight: 700; }
.data-table .cvss-version { font-weight: 400; font-size: 0.65rem; color: var(--text-muted); }
.cvss-info code { font-size: 0.72rem; word-break: break-all; text-transform: none; letter-spacing: 0; }
.cvss-info + .cwe-info { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.data-table .severity {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.3rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  text-align: center;
  background: var(--bg);
}

.severity-critical { border-top: 3px solid var(--sun); border-bottom: 3px solid var(--sun); font-weight: 800; color: var(--sun-deep); }
.severity-high { border-top: 2px solid var(--rule); font-weight: 700; }
.severity-medium { border-top: 1px solid var(--rule); font-weight: 700; }
.severity-low { border-top: 1px dotted var(--rule); font-weight: 500; opacity: 0.7; }

.single-article h1.project-title { display: flex; align-items: center; gap: 0.75rem; }
.project-logo { display: inline-flex; flex: none; }
.project-logo svg { width: 3.6rem; height: auto; display: block; }
.project-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.single-article .project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
}
.single-article .project-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
}
.single-article .project-links a:hover { color: var(--sun); border-bottom-color: var(--sun); }
.projects-table .header, .projects-table .row { grid-template-columns: 110px 1fr 90px; }

.comments {
  margin-top: 1rem;
  padding: 2rem 0 3rem;
  border-top: 3px double var(--rule);
}
.comments h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 0.15rem;
}
.back-link:hover { color: var(--text); border-bottom-color: var(--text); }

.cwe-info {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 3px double var(--rule);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cwe-info a { color: var(--text); text-decoration: underline; text-decoration-style: dotted; }

.cwe-mitre-link {
  font-size: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.cwe-mitre-link:hover { text-decoration: underline; }

.header-link {
  color: var(--text);
  text-decoration: none;
}

.header-link:hover { text-decoration: underline; }

.cwe-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.cwe-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  background: transparent;
}
.cwe-item:first-child { border-top: 1px solid var(--rule); }

.cwe-item:hover { color: var(--text-muted); }
.cwe-item:hover .cwe-name { color: var(--text-muted); }

.cwe-item .cwe-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.cwe-item .cwe-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

footer {
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-top: 3px double var(--rule);
  padding-top: 1.5rem;
}
footer a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--text); }
footer a:hover { color: var(--text-muted); border-bottom-color: var(--text-muted); }

@media (max-width: 600px) {
  body { font-size: 16px; padding: 0 1rem; overflow-x: clip; }
  body::after {
    width: 160px;
    height: 160px;
    top: -80px;
    right: 0;
  }
  .page-art-moon {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -60px;
  }
  .page-art-mark { font-size: 0.7rem; }
  .data-table .header { display: none; }
  .data-table .row, .projects-table .row { grid-template-columns: 1fr; gap: 0.3rem; padding: 1rem 0; }
  .data-table .date { font-size: 0.75rem; }
  .data-table .severity { justify-self: start; }
  .data-table .cve { justify-self: start; }
  .data-table .cvss { justify-self: start; }
  .data-table .cwe-link { justify-self: start; }
  .single-article h1 { font-size: 1.6rem; }
  .single-article > p:first-of-type::first-letter { font-size: 2.6em; }
  .data-page h1 { font-size: 1.6rem; }

  .nav-toggle {
    display: inline-block;
    position: static;
    z-index: auto;
  }
  .theme-toggle { position: static; z-index: auto; }

  header nav .nav-links {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: -1rem;
    right: -1rem;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--rule);
    border-bottom: 2px double var(--rule);
    padding: 0.5rem 1rem;
    z-index: 5;
  }
  header nav .nav-links.is-open { display: flex; }
  header:has(.nav-links.is-open) .masthead { margin-top: 15rem; }
  header nav .nav-links a {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line-soft);
  }
  header nav .nav-links a:last-child { border-bottom: none; }
}
/* Responsive 16:9 video embed */
.video-embed { margin: 1.5rem 0; aspect-ratio: 16 / 9; border: 1px solid var(--border); }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
