/* =====================
   VARIABLES
   ===================== */
:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --border: #222222;
  --text: #e8e8e8;
  --text-muted: #666;
  --accent: #00ff88;
  --accent2: #ff6b35;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* =====================
   RESET
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; max-width: 1100px; margin: 0 auto; padding: 0 2rem; width: 100%; }

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }

/* =====================
   NAV
   ===================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav__logo:hover { opacity: 1; color: var(--accent); }

.blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.nav__links a:hover { color: var(--accent); opacity: 1; }

/* =====================
   HERO
   ===================== */
.hero {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero__tag {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

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

.hero__sub {
  max-width: 580px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 2px;
}

.hero__status strong { color: var(--text); }

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.btn:hover { background: transparent; color: var(--accent); opacity: 1; }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* =====================
   STATUS DOT
   ===================== */
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0,255,136,0); }
}

/* =====================
   POSTS
   ===================== */
.section__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 3rem 0 1.5rem;
}

.posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 4rem;
}

.post__card {
  background: var(--bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
}

.post__card:hover { background: var(--bg2); }

.post__card--muted { opacity: 0.4; }

.post__tag {
  font-size: 0.7rem;
  color: var(--accent2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.post__excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.post__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}

.post__read { color: var(--accent); font-size: 0.8rem; }

/* =====================
   PAGE HEADER
   ===================== */
.page__header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.page__sub { color: var(--text-muted); font-size: 0.9rem; }

/* =====================
   ABOUT
   ===================== */
.about__content { padding: 4rem 0; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

.about__text p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.about__text strong { color: var(--text); }

.about__stack { margin: 2rem 0; }

.about__stack h3 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stack__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack__tags span {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--accent);
}

.about__links { display: flex; gap: 1rem; margin-top: 2rem; }

.sidebar__card {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  margin-bottom: 1px;
  background: var(--bg2);
}

.sidebar__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.sidebar__value {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =====================
   EMPTY STATE
   ===================== */
.empty__state {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =====================
   FOOTER
   ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
}

.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--accent); }
.footer__stack { margin-top: 0.4rem; opacity: 0.4; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .hero__title { letter-spacing: -1px; }
  .posts__grid { grid-template-columns: 1fr; }
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__tag { animation: fadeUp 0.5s ease both; }
.hero__title { animation: fadeUp 0.5s ease 0.1s both; }
.hero__sub { animation: fadeUp 0.5s ease 0.2s both; }
.hero__cta { animation: fadeUp 0.5s ease 0.3s both; }
.hero__status { animation: fadeUp 0.5s ease 0.4s both; }
