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

:root {
  --accent: #a8b89a;
  --accent-light: #c4d4b8;
  --accent-dim: #7a8a6e;
  --parchment: #e8e4dc;
  --bg-dark: #0a0808;
  --card-bg: rgba(12, 10, 10, 0.75);
  --border: rgba(168, 184, 154, 0.15);
  --muted: rgba(168, 184, 154, 0.45);
  --hover-accent: #c4d4b8;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background: var(--bg-dark);
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--parchment);
  line-height: 1.7;
  font-size: 18px;
}

/* ===== BACKGROUND ===== */
.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('lonely_fire.gif') center center / cover no-repeat;
  image-rendering: auto;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  border-bottom: 2px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(10, 8, 8, 0.6);
}

.logo {
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.logo:hover {
  color: var(--accent-light);
}

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

.site-nav a {
  font-family: 'VT323', monospace;
  font-size: 1.15rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: var(--accent-light);
}

.site-nav a.active {
  color: var(--accent);
}

.site-nav a.active::before {
  content: '> ';
}

/* ===== CONTENT ===== */
.content {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.4rem 1.2rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'VT323', monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--accent);
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--parchment);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

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

/* ===== DIVIDER ===== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.2rem 0;
}

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  border-color: rgba(200, 170, 120, 0.3);
  background: rgba(20, 16, 14, 0.8);
}

.card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-title {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: var(--parchment);
  margin-bottom: 0.3rem;
}

.card-meta {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-body {
  font-size: 0.95rem;
  color: rgba(240, 230, 210, 0.7);
  margin-top: 0.5rem;
}

/* ===== LABEL ===== */
.label {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ===== FEATURED LINKS (home) ===== */
.featured-links {
  list-style: none;
  padding: 0;
}

.featured-links li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.featured-links li:last-child {
  border-bottom: none;
}

.featured-links a {
  font-size: 1.05rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== SECTION LIST (thoughts, reading) ===== */
.section-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  border-top: 2px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(10, 8, 8, 0.6);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-year {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ===== PROSE (about page, long text) ===== */
.prose p {
  margin-bottom: 1.2rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose blockquote {
  border-left: 3px solid var(--accent-dim);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: rgba(240, 230, 210, 0.7);
  font-style: italic;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .site-header {
    padding: 1rem 1.2rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 1rem;
  }

  .content {
    padding: 1.8rem 0.8rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .site-footer {
    padding: 1rem 1.2rem;
  }

  .footer-links {
    gap: 1rem;
  }
}
