:root {
  --bg-main: #000000;
  --text-main: #e0e0e0;
  --text-muted: #aaaaaa;
  --accent: #a8d8ea;
  --border-subtle: #3a3a3a;
  --border-accent: #a8d8ea;
}

body {
  font-family: "Courier New", Courier, monospace;
  line-height: 1.8;
  padding: 2rem;
  max-width: 680px;
  margin: 0 auto;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 17px;
}

/* ── nav ── */

nav {
  margin-bottom: 3rem;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 0.25rem;
}

nav a::before { content: "["; }
nav a::after  { content: "]"; }

nav a:hover {
  background: var(--accent);
  color: var(--bg-main);
}

/* ── headings ── */

h1, h2, h3, h4, h5, h6 {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 0.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

main > h2:first-child {
  margin-top: 0;
}

/* ── body copy ── */

main p {
  margin: 0.75rem 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
}

a:hover {
  background: var(--accent);
  color: var(--bg-main);
  text-decoration: none;
}

/* ── timeline ── */

.timeline {
  position: relative;
  padding-left: 20px;
  margin-bottom: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--border-subtle);
}

.timeline-item {
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 7px;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.timeline-item h3 {
  margin: 0 0 0.25rem;
  border: none;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
}

/* ── stats box ── */

.stats-box {
  border: 1px dashed var(--border-accent);
  padding: 1rem;
  margin: 1.5rem 0;
  background: rgba(168, 216, 234, 0.03);
  transition: border-style 0.15s;
}

.stats-box:hover {
  border-style: solid;
}

.stats-box p {
  margin: 0.4rem 0;
  color: var(--text-muted);
}

.stat-value {
  color: var(--accent);
}

/* ── cert badges ── */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.cert-badge {
  border: 1px dashed var(--border-accent);
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: var(--accent);
  transition: border-style 0.15s, background 0.15s;
  cursor: default;
}

.cert-badge:hover {
  border-style: solid;
  background: rgba(168, 216, 234, 0.07);
}

/* ── interests ── */

.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.interest {
  border: 1px dashed var(--border-subtle);
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  transition: border-style 0.15s, color 0.15s;
}

.interest:hover {
  border-style: solid;
  color: var(--text-main);
}

/* ── blog ── */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.post-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
}

.post-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 0.1rem;
}

.post-title {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
}

.post-title:hover {
  background: var(--accent);
  color: var(--bg-main);
}

.post-desc {
  grid-column: 2;
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-empty {
  color: var(--text-muted);
}

/* ── three.js scene ── */

#scene-container {
  width: 100vw;
  box-sizing: border-box;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 2em;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
}

#sceneWrapper {
  width: 100%;
  height: 400px;
  background: transparent;
  overflow: hidden;
  position: relative;
}

#sceneWrapper canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
