/* SYMEVO Journal — evidence-gated editorial system. */
:root {
  color-scheme: light;
  --canvas: #eef3f5;
  --canvas-deep: #e4ebee;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #f9fbfc;
  --surface-2: #e8eef1;
  --ink: #102027;
  --ink-soft: #31454d;
  --muted: #687b82;
  --line: rgba(20, 54, 65, 0.14);
  --line-strong: rgba(20, 54, 65, 0.28);
  --signal: #007f82;
  --signal-bright: #00a9a5;
  --signal-soft: rgba(0, 169, 165, 0.1);
  --proof: #b85f16;
  --proof-soft: rgba(184, 95, 22, 0.1);
  --danger: #a13d42;
  --shadow: 0 24px 70px rgba(26, 53, 62, 0.11);
  --shadow-small: 0 10px 30px rgba(26, 53, 62, 0.08);
  --radius: 18px;
  --radius-small: 10px;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Avenir Next", Avenir, "Segoe UI Variable Display", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1240px;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --canvas: #081114;
    --canvas-deep: #050b0d;
    --surface: rgba(15, 28, 33, 0.82);
    --surface-solid: #0f1c21;
    --surface-2: #15272d;
    --ink: #ecf5f5;
    --ink-soft: #bbcbce;
    --muted: #7f969b;
    --line: rgba(137, 188, 192, 0.15);
    --line-strong: rgba(137, 188, 192, 0.3);
    --signal: #41d6cf;
    --signal-bright: #83f4ec;
    --signal-soft: rgba(65, 214, 207, 0.1);
    --proof: #f4a45e;
    --proof-soft: rgba(244, 164, 94, 0.11);
    --danger: #ff9ea4;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
    --shadow-small: 0 14px 38px rgba(0, 0, 0, 0.24);
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #081114;
  --canvas-deep: #050b0d;
  --surface: rgba(15, 28, 33, 0.82);
  --surface-solid: #0f1c21;
  --surface-2: #15272d;
  --ink: #ecf5f5;
  --ink-soft: #bbcbce;
  --muted: #7f969b;
  --line: rgba(137, 188, 192, 0.15);
  --line-strong: rgba(137, 188, 192, 0.3);
  --signal: #41d6cf;
  --signal-bright: #83f4ec;
  --signal-soft: rgba(65, 214, 207, 0.1);
  --proof: #f4a45e;
  --proof-soft: rgba(244, 164, 94, 0.11);
  --danger: #ff9ea4;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --shadow-small: 0 14px 38px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, var(--signal-soft), transparent 34rem),
    radial-gradient(circle at 100% 20%, var(--proof-soft), transparent 36rem),
    var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal-bright); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
::selection { background: var(--signal); color: var(--canvas-deep); }

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 55rem);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 18px; top: -70px; z-index: 100;
  padding: 10px 14px; border: 1px solid var(--signal); border-radius: 8px;
  background: var(--surface-solid); color: var(--ink); text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 18px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 84%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}
.header-inner {
  max-width: var(--max);
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  background: transparent;
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-title { font-family: var(--font-display); font-size: 15px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.brand-tagline { margin-top: 6px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .05em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a:hover { background: var(--signal-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--surface-2); color: var(--signal); }
.theme-toggle, .nav-toggle {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
}
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--signal); background: var(--signal-soft); }
.nav-toggle { display: none; padding: 7px 11px; font-size: 12px; font-weight: 700; }

/* Layout and home hero */
.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 28px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 58px;
  align-items: start;
}
.content { min-width: 0; }
.sidebar { position: sticky; top: 102px; display: flex; flex-direction: column; gap: 14px; }
.home-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr);
  gap: 44px;
  align-items: end;
  margin: 0 0 48px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface) 65%, transparent));
  box-shadow: var(--shadow);
}
.home-intro::before {
  content: "∴";
  position: absolute;
  right: -22px;
  top: -70px;
  color: var(--signal-soft);
  font-family: var(--font-display);
  font-size: 260px;
  line-height: 1;
  transform: rotate(-12deg);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
}
.home-intro h1, .page-intro h1 {
  max-width: 12ch;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 78px);
  font-weight: 750;
  letter-spacing: -.06em;
  line-height: .94;
}
.intro-copy, .page-intro p { max-width: 60ch; margin: 0; color: var(--ink-soft); }
.intro-copy { font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.button, .sidebar-search button, .search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--signal);
  border-radius: 9px;
  background: var(--signal);
  color: var(--canvas-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}
.button { padding: 11px 14px; }
.button:hover, .sidebar-search button:hover, .search-form button:hover { background: var(--signal-bright); color: var(--canvas-deep); }
.text-link { color: var(--ink-soft); font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.text-link:hover { color: var(--signal); }
.verification-loop { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; }
.verification-loop::before { content: ""; position: absolute; left: 16px; top: 27px; bottom: 27px; width: 1px; background: var(--line-strong); }
.verification-loop li { position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 8px 0; }
.verification-loop li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}
.verification-loop li:last-child > span { color: var(--proof); }
.verification-loop div { display: grid; }
.verification-loop strong { font-size: 13px; letter-spacing: .02em; }
.verification-loop small { color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.section-heading .eyebrow { margin: 0; }
.section-heading > span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }

/* Cards */
.featured-wrap { margin-bottom: 18px; }
.post-list { display: grid; gap: 14px; }
.post-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.post-card.featured { display: grid; grid-template-columns: minmax(260px, 1.05fr) minmax(300px, .95fr); }
.post-card.featured::after {
  content: "FEATURED / 01";
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  background: rgba(5, 14, 17, .76);
  color: #dffcf9;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .12em;
}
.card-cover { min-height: 230px; overflow: hidden; background: var(--surface-2); }
.featured .card-cover { min-height: 340px; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s ease; }
.post-card:hover .card-cover img { transform: scale(1.025); filter: saturate(1.08); }
.card-body { padding: 24px 26px; }
.featured .card-body { display: flex; flex-direction: column; justify-content: center; padding: 36px; }
.card-meta, .post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card-title { margin: 0 0 10px; font-family: var(--font-display); font-size: 27px; font-weight: 750; letter-spacing: -.035em; line-height: 1.08; }
.featured .card-title { font-size: clamp(30px, 3.5vw, 43px); }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--signal); }
.card-summary { margin: 0 0 20px; color: var(--ink-soft); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}
.chip:hover { border-color: var(--signal); color: var(--signal); }
.read-more { color: var(--signal); font-family: var(--font-mono); font-size: 10px; font-weight: 800; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 10px; }
.page-next { text-align: right; }
.page-count { color: var(--muted); }

/* Article */
.post-header { max-width: 880px; margin: 16px auto 34px; text-align: center; }
.post-header h1 { margin: 12px auto 16px; font-family: var(--font-display); font-size: clamp(42px, 6.2vw, 72px); font-weight: 750; letter-spacing: -.06em; line-height: .96; }
.post-header .chips { justify-content: center; margin-bottom: 10px; }
.post-meta { justify-content: center; }
.post-deck { max-width: 64ch; margin: 18px auto 0; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }
.post-hero { max-width: 980px; margin: 0 auto 42px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface-2); box-shadow: var(--shadow); }
.post-hero img { width: 100%; aspect-ratio: 16 / 8.8; object-fit: cover; }
.post-content, .page .post-content { max-width: 760px; margin: 0 auto; color: var(--ink-soft); font-size: 18px; line-height: 1.78; }
.post-content > p:first-child::first-letter { float: left; margin: .06em .12em 0 0; color: var(--signal); font-family: var(--font-display); font-size: 4.1em; line-height: .78; }
.post-content h2, .post-content h3, .post-content h4 { color: var(--ink); font-family: var(--font-display); font-weight: 750; letter-spacing: -.035em; line-height: 1.12; scroll-margin-top: 100px; }
.post-content h2 { margin: 2em 0 .6em; font-size: 34px; }
.post-content h3 { margin: 1.8em 0 .5em; font-size: 26px; }
.post-content h4 { margin: 1.6em 0 .45em; font-size: 21px; }
.post-content p { margin: 0 0 1.2em; }
.post-content a { font-weight: 650; }
.post-content ul, .post-content ol { margin: 0 0 1.25em; padding-left: 1.45em; }
.post-content li { margin: .35em 0; }
.post-content blockquote { position: relative; margin: 1.8em 0; padding: 18px 22px 18px 26px; border: 1px solid var(--line); border-left: 3px solid var(--proof); border-radius: 0 12px 12px 0; background: var(--proof-soft); color: var(--ink); font-family: var(--font-display); font-size: 21px; line-height: 1.5; }
.post-content blockquote p { margin: 0; }
.post-content code { padding: .14em .36em; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); font-family: var(--font-mono); font-size: .86em; }
.post-content pre { margin: 1.5em 0; padding: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas-deep); box-shadow: inset 3px 0 0 var(--signal); font-size: 13px; line-height: 1.65; }
.post-content pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.post-content hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.post-content table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: 14px; }
.post-content th, .post-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.post-content th { background: var(--surface-2); color: var(--ink); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.post-content img { margin: 1.5em auto; border-radius: 12px; }
.post-figure { margin: 2em 0; }
.post-figure img { margin: 0 auto; }
.post-figure figcaption, .post-gallery figcaption { margin-top: 9px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; text-align: center; }
.post-gallery { max-width: 980px; margin: 42px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.post-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-small); }
.post-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-gallery figcaption { padding: 0 12px 12px; }
.post-footer { max-width: 760px; margin: 38px auto 0; padding-top: 22px; border-top: 1px solid var(--line); }
.share { display: flex; align-items: center; gap: 15px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; flex-wrap: wrap; text-transform: uppercase; }
.share span { font-weight: 800; letter-spacing: .1em; }
.share a, .copy-link { padding: 0; border: 0; background: none; color: var(--ink-soft); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.post-nav { max-width: 760px; margin: 36px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-nav a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-family: var(--font-display); font-size: 19px; line-height: 1.3; text-decoration: none; }
.post-nav a:hover { border-color: var(--signal); }
.post-nav a span { display: block; margin-bottom: 5px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.post-nav-next { text-align: right; }
.related { max-width: 980px; margin: 56px auto 0; }
.related h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

/* Sidebar */
.side-card { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-small); }
.side-card h2 { margin: 0 0 11px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.profile-card { position: relative; overflow: hidden; padding-top: 22px; text-align: left; }
.profile-card::before { content: "SYSTEM IDENTITY"; position: absolute; right: 12px; top: 10px; color: var(--signal); font-family: var(--font-mono); font-size: 7px; letter-spacing: .1em; }
.profile-card .avatar { width: 68px; height: 68px; margin: 0 0 14px; border: 0; border-radius: 0; background: transparent; object-fit: contain; filter: none; }
.profile-card h2 { margin: 0 0 7px; color: var(--ink); font-family: var(--font-body); font-size: 17px; letter-spacing: 0; text-transform: none; }
.profile-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.social-links { display: flex; gap: 14px; margin-top: 13px; font-family: var(--font-mono); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.sidebar-search { display: flex; gap: 7px; }
.sidebar-search input, .search-form input { min-width: 0; flex: 1; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); font-family: var(--font-mono); font-size: 11px; }
.sidebar-search button { padding: 8px 10px; }
.label-list, .archive-list, .recent-list { margin: 0; padding: 0; list-style: none; }
.label-list li, .archive-list li, .recent-list li { border-bottom: 1px solid var(--line); }
.label-list li:last-child, .archive-list li:last-child, .recent-list li:last-child { border-bottom: 0; }
.label-list a, .archive-list a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; color: var(--ink-soft); font-size: 12px; font-weight: 600; text-decoration: none; }
.label-list a span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.recent-list li { padding: 8px 0; }
.recent-list a { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 650; line-height: 1.4; text-decoration: none; }
.recent-list span { color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
.label-list a:hover, .archive-list a:hover, .recent-list a:hover { color: var(--signal); }
.muted { color: var(--muted); font-size: 12px; }

/* Index pages */
.page-intro { margin: 0 0 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.page-intro h1 { max-width: none; font-size: clamp(42px, 6vw, 68px); }
.archive-group { margin: 34px 0 0; }
.archive-group h2 { margin: 0 0 10px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 30px; font-weight: 750; letter-spacing: -.035em; }
.archive-group ul { margin: 0; padding: 0; list-style: none; }
.archive-group li { display: flex; gap: 18px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.archive-group time { flex: 0 0 120px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
.archive-group a { color: var(--ink); font-weight: 650; text-decoration: none; }
.label-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.label-card { display: flex; flex-direction: column; gap: 5px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; }
.label-card strong { color: var(--ink); }
.label-card span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
.label-card:hover { border-color: var(--signal); transform: translateY(-2px); }
.search-form { display: flex; gap: 9px; max-width: 680px; margin: 24px 0 10px; }
.search-form input { padding: 12px 14px; font-size: 13px; }
.search-form button { padding: 11px 15px; }
.search-status { min-height: 1.2em; color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.search-results { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.search-result { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.search-result img { width: 130px; height: 86px; border-radius: 8px; object-fit: cover; }
.search-result h3 { margin: 0 0 5px; font-family: var(--font-display); font-size: 22px; }
.search-result h3 a { color: var(--ink); text-decoration: none; }
.search-result p { margin: 0 0 7px; color: var(--muted); font-size: 13px; }
.empty-state { padding: 30px 0; color: var(--muted); }

/* Footer and lightbox */
.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--canvas-deep) 70%, transparent); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 22px 28px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .03em; text-transform: uppercase; }
.footer-inner p { margin: 0; }
.footer-inner .status-dot { margin-right: 6px; }
.footer-inner a { color: var(--muted); }
.lightbox { max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(2, 7, 9, .9); backdrop-filter: blur(8px); }
.lightbox figure { margin: 0; display: grid; place-items: center; gap: 10px; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.lightbox figcaption { max-width: 70ch; color: #b9cccf; font-family: var(--font-mono); font-size: 10px; text-align: center; }
.lightbox-close { position: fixed; right: 18px; top: 16px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 24px; }
.post-content img, .post-gallery img, .post-hero img { cursor: zoom-in; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; gap: 38px; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-card { grid-row: span 2; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 68px; padding: 10px 18px; gap: 10px; flex-wrap: wrap; }
  .brand-tagline { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .theme-label { display: none; }
  .theme-toggle { padding: 0 10px; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 2px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; }
  .layout { padding: 34px 18px 60px; }
  .home-intro { grid-template-columns: 1fr; gap: 26px; padding: 28px; }
  .home-intro h1 { font-size: clamp(43px, 14vw, 62px); }
  .verification-loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .verification-loop::before { left: 16%; right: 16%; top: 24px; bottom: auto; width: auto; height: 1px; }
  .verification-loop li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .post-card.featured { grid-template-columns: 1fr; }
  .featured .card-cover { min-height: 230px; }
  .featured .card-body { padding: 26px; }
  .post-header h1 { font-size: 42px; }
  .post-content { font-size: 17px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .post-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { grid-template-columns: 1fr 1fr; }
  .profile-card { grid-column: 1 / -1; grid-row: auto; }
  .archive-group li { flex-direction: column; gap: 3px; }
}
@media (max-width: 520px) {
  .brand-title { font-size: 13px; }
  .home-intro { padding: 24px 20px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .verification-loop small { display: none; }
  .section-heading > span { display: none; }
  .sidebar, .post-gallery { grid-template-columns: 1fr; }
  .search-result { grid-template-columns: 1fr; }
  .search-result img { width: 100%; height: 150px; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card, .card-cover img, .label-card { transition: none; }
}
@media print {
  .ambient-grid, .site-header, .sidebar, .site-footer, .share, .post-nav, .related { display: none; }
  .layout { display: block; padding: 0; }
  body { background: #fff; color: #000; }
}

/* About page: the lifecycle diagram is a standalone SVG asset so it survives
   every full-site rebuild. The source of this page is content/about.md. */
.about-page .post-figure img { padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); box-sizing: border-box; }
.about-page .post-figure figcaption { margin-top: 10px; font-size: 11px; line-height: 1.5; text-align: left; }
.about-page .post-content table { display: block; overflow-x: auto; }
