:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: #0b1016;
  --panel-soft: #121924;
  --text: #f7fbff;
  --muted: #8995a3;
  --line: #2a3948;
  --accent: #9be7ff;
  --accent-2: #d8f3ff;
  --danger: #ff3f5f;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(155, 231, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 231, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 76% 12%, rgba(155, 231, 255, 0.12), transparent 24rem),
    linear-gradient(180deg, #050608 0%, #090d13 100%);
  background-size: 24px 24px, 24px 24px, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  opacity: 0.16;
}

a {
  color: inherit;
  text-decoration-color: rgba(77, 208, 167, 0.55);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}

.brand {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  padding: clamp(56px, 9vw, 104px) 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: end;
  gap: clamp(28px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font: 700 0.82rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font: 700 0.78rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
}

.status-line span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.72);
}

.intel-panel {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(155, 231, 255, 0.32);
  background: linear-gradient(180deg, rgba(11, 16, 22, 0.9), rgba(5, 6, 8, 0.82));
  box-shadow: inset 3px 0 0 var(--danger), 0 0 32px rgba(155, 231, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.intel-panel::before,
.intel-panel::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--accent);
}

.intel-panel::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.intel-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.panel-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.intel-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.intel-panel div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid rgba(155, 231, 255, 0.12);
}

.intel-panel dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.intel-panel dd {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  text-align: right;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  border-color: rgba(155, 231, 255, 0.65);
  background: #081a24;
}

.section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  display: block;
  min-height: 160px;
  padding: 20px;
  border: 1px solid rgba(155, 231, 255, 0.18);
  border-radius: 0;
  background: rgba(13, 17, 23, 0.86);
  text-decoration: none;
}

.card:hover {
  border-color: rgba(155, 231, 255, 0.55);
  background: rgba(14, 24, 34, 0.92);
}

.log-card {
  min-height: 0;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card p,
.meta,
.empty {
  color: var(--muted);
}

.badge-card {
  text-align: center;
}

.badge-card img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  margin: 16px auto 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.tag {
  color: var(--accent-2);
}

.tag.alert {
  color: var(--danger);
}

.article-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.article {
  max-width: 760px;
  padding: 42px 0 80px;
}

.article h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.content {
  margin-top: 36px;
  color: #dce2ea;
}

.content h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.content h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.content p,
.content ul,
.content ol,
.content pre {
  margin: 16px 0;
}

.content code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.content :not(pre) > code {
  padding: 0.14em 0.35em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-soft);
}

.content pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0d10;
}

.content blockquote {
  margin: 20px 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.content figure {
  margin: 26px 0;
}

.content figure img {
  width: 100%;
  border: 1px solid rgba(155, 231, 255, 0.22);
  border-radius: 0;
  background: var(--panel);
}

.content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }
}
