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

/* === Root Variables === */
:root {
  --bg: #121214;
  --text: #F4F4F5;
  --accent: #FF8C00;
  --border: #3E4249;
  --muted: #9CA3AF;
  --font-heading: 'Inter Tight', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* === Base === */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
}

/* === Header === */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monolith {
  width: 56px;
  height: 56px;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.monolith-g {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* === Main === */
.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
  flex: 1;
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

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

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 400;
}

/* === Section Heading === */
.section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* === Post Entry (list) === */
.post-entry {
  border-bottom: 1px solid var(--border);
}

.post-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 0;
  color: var(--text);
  transition: color 0.2s;
}

.post-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-link .post-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.post-link .post-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  margin-left: 2rem;
}

/* === Single Post === */
.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-header .post-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.2;
}

.post-header .post-date {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content h2,
.post-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h2 {
  font-size: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: #1e1e22;
  padding: 0.15em 0.4em;
  border: 1px solid var(--border);
  border-radius: 0;
}

.post-content pre {
  background-color: #1e1e22;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* === Responsive === */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .site-nav {
    gap: 1.25rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero {
    padding: 3rem 0 2.5rem;
    margin-bottom: 2.5rem;
  }

  .post-link {
    flex-direction: column;
    gap: 0.25rem;
  }

  .post-link .post-date {
    margin-left: 0;
  }

  .site-main {
    padding: 2rem 1.25rem;
  }
}
