@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #080d0a;
  --panel: #101712;
  --panel-2: #16201a;
  --line: #2a3a30;
  --ink: #d6e4d8;
  --muted: #95a799;
  --accent: #79ffa5;
  --accent-soft: #1a2e22;
  --reading-width: 46rem;
  --page-width: 74rem;
  --radius: 0.55rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.65;
}

body {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shell {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.25rem;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header nav,
.footer-links,
.trust-links,
.meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.site-header nav a,
.footer-links a {
  color: var(--ink);
  font-size: 0.93rem;
}

.brand {
  color: var(--ink);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero,
.section,
.article-shell,
.policy-shell,
.topic,
.card,
.list-card,
.summary-box,
.source-box,
.note-box,
.article-toc,
.faq-list details,
.signature-card,
.checklist,
.article-figure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero,
.section {
  margin: 1rem 0 1.35rem;
  padding: 1.65rem;
}

.hero {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.article-shell,
.policy-shell {
  margin: 1rem 0 1.35rem;
  padding: 2rem;
}

.eyebrow,
.card-kicker,
.meta,
.article-meta,
.signature-title,
.section-label {
  color: var(--accent);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 13ch;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
}

h3 {
  font-size: 1.15rem;
}

.lead {
  font-size: 1.1rem;
  max-width: 48rem;
  color: #c6d3c8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.admin-shell {
  display: grid;
  gap: 0.5rem;
}

.admin-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.admin-auth-shell {
  max-width: 56rem;
  margin: 2rem auto;
}

.admin-login-form {
  display: grid;
  gap: 0.8rem;
  max-width: 26rem;
  margin: 1.5rem 0;
}

.field-label {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--panel-2);
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

.admin-table-wrap {
  overflow-x: auto;
}

.button {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 0.35rem;
  padding: 0.68rem 0.95rem;
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.button:hover {
  text-decoration: none;
  background: #203628;
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
}

.button-secondary:hover {
  background: #152019;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.card-grid,
.topic-grid,
.list-grid,
.signature-grid {
  display: grid;
  gap: 0.9rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.topic-grid {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.list-grid {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.signature-grid {
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  margin: 1.35rem 0;
}

.topic,
.card,
.list-card {
  padding: 1.1rem;
}

.topic strong,
.card h3 a,
.list-card h3 a {
  color: var(--ink);
}

.topic span {
  display: block;
  margin-top: 0.42rem;
  color: var(--muted);
}

.article-header,
.policy-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.55rem;
  padding-bottom: 1rem;
}

.article-shell article,
.policy-shell article {
  max-width: var(--reading-width);
}

.article-shell p,
.article-shell li,
.policy-shell p,
.policy-shell li {
  font-size: 1.03rem;
}

.summary-box,
.source-box,
.note-box,
.article-toc,
.checklist {
  margin: 1.35rem 0;
  padding: 0.95rem 1rem;
  background: var(--panel-2);
}

.article-figure {
  margin: 1.2rem 0 1.45rem;
  overflow: hidden;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure figcaption {
  padding: 0.7rem 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
  background: #101813;
}

.article-toc h2 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.article-toc ul {
  margin: 0.15rem 0 0;
}

.faq-list {
  margin: 1.2rem 0;
}

.faq-list details {
  margin-bottom: 0.6rem;
  padding: 0.7rem 0.9rem;
}

.faq-list details[open] {
  background: #17231c;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 0.95rem;
  border-left: 3px solid var(--accent);
  color: #d2dfd5;
  background: #15201a;
}

.signature-card {
  padding: 0.85rem;
}

.signature-title {
  margin-bottom: 0.35rem;
}

.signature-card p {
  margin: 0;
  color: #cedacf;
  font-size: 0.96rem;
}

.checklist {
  border-style: dashed;
}

.checklist h3 {
  margin-bottom: 0.45rem;
}

.breadcrumbs {
  margin-bottom: 0.95rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.breadcrumbs a {
  color: var(--muted);
}

ul,
ol {
  padding-left: 1.2rem;
}

pre,
code {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
}

code {
  font-size: 0.93em;
  color: #c4ffd9;
}

pre {
  background: #0d1410;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.7rem;
  text-align: left;
}

th {
  background: var(--panel-2);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
}

.trust-block p {
  max-width: 58rem;
}

@media (max-width: 760px) {
  .shell {
    padding: 1rem;
  }

  .site-header,
  .site-footer,
  .section-heading {
    display: block;
  }

  .site-header nav,
  .footer-links,
  .trust-links,
  .meta-links {
    margin-top: 0.7rem;
  }

  .hero,
  .section,
  .article-shell,
  .policy-shell {
    padding: 1.25rem;
  }
}
