:root {
  --font-body: "JetBrains Mono", ui-monospace, system-ui, sans-serif;
  --font-display: "Share Tech Mono", "JetBrains Mono", monospace;
  --bg-void: #030806;
  --bg-panel: rgba(4, 18, 12, 0.78);
  --text: #d4f0e4;
  --text-muted: rgba(180, 230, 210, 0.55);
  --line: rgba(0, 255, 170, 0.12);
  --glow: rgba(0, 255, 180, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-void);
}

.matrix-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#matrix-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.site-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 40, 30, 0.08) 2px,
      rgba(0, 40, 30, 0.08) 3px
    );
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: #0a1a12;
  color: #8fffd0;
  border: 1px solid var(--line);
  text-decoration: none;
}

.skip-link:focus {
  left: 8px;
}

.site-main {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.site-main--wide {
  max-width: 900px;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 20px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.site-footer a {
  color: #8fd4b8;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.hero {
  margin-bottom: 36px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8fff4;
  text-shadow: 0 0 24px var(--glow);
  margin: 0 0 12px;
}

.hero .tagline {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 42em;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9fffd8;
  margin: 0 0 14px;
  font-weight: 400;
}

.panel p {
  margin: 0 0 12px;
  color: rgba(220, 245, 232, 0.88);
}

.panel p:last-child {
  margin-bottom: 0;
}

.link-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.tile-link {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: #c8ffe8;
  background: rgba(0, 25, 18, 0.5);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tile-link:hover {
  border-color: rgba(0, 255, 200, 0.35);
  box-shadow: 0 0 20px rgba(0, 255, 180, 0.08);
}

.tile-link strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #e0fff0;
}

.tile-link span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.article-list li:last-child {
  border-bottom: 0;
}

.article-list a {
  color: #b4ffd8;
  text-decoration: none;
  font-size: 16px;
}

.article-list a:hover {
  text-decoration: underline;
}

.article-meta {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.prose {
  max-width: 52em;
}

.prose h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #e8fff4;
  margin: 0 0 8px;
}

.prose .byline {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.panel.prose > h2 + .muted {
  margin-top: 0;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9fffd8;
  margin: 28px 0 12px;
  font-weight: 400;
}

.prose p {
  margin: 0 0 14px;
  color: rgba(220, 245, 232, 0.9);
}

.video-grid {
  display: grid;
  gap: 20px;
}

.video-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 12, 8, 0.6);
}

.video-card h3 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  padding: 12px 14px;
  color: #c8ffe8;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 16px;
}

.video-note {
  padding: 10px 14px 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.text-input,
.text-area {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: rgba(0, 8, 6, 0.85);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.text-area {
  min-height: 120px;
  resize: vertical;
}

.btn {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 160, 0.35);
  background: rgba(0, 60, 40, 0.5);
  color: #c8ffe8;
  cursor: pointer;
}

.btn:hover {
  background: rgba(0, 80, 55, 0.55);
}

.btn-danger {
  border-color: rgba(255, 100, 100, 0.4);
  color: #ffb4b4;
  background: rgba(40, 10, 10, 0.4);
}

.muted {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.text-center {
  text-align: center;
  margin: 0;
}

.journal-entry {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: rgba(0, 14, 10, 0.55);
}

.journal-entry h3 {
  font-family: var(--font-display);
  font-size: 14px;
  margin: 0 0 8px;
  color: #d0ffe8;
}

.journal-entry .meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.journal-delete {
  margin-top: 12px;
}
