/* ==========================================================================
   RetroTech.io — Minimalist Editorial Theme
   Targeting the Neve FSE configuration from retrotech.io (April 2025).
   Clean Inter typography, generous vertical space, contained dark footer,
   and mobile-responsive navigation.
   ========================================================================== */

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

html {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #202020;
  background-color: #ffffff;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #202020;
  background-color: #ffffff;
}

a {
  color: #202020;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease, color 0.15s ease;
}

a:hover {
  opacity: 0.75;
}

/* --- Site Header --- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #f2f2f2;
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #111111;
}

.brand-group:hover {
  opacity: 1;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.brand-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: #111111;
}

/* --- Desktop Navigation --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #202020;
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}

.site-nav a:hover {
  color: #000000;
  text-decoration: underline;
  opacity: 1;
}

.site-nav a.active {
  font-weight: 700;
  color: #000000;
  border-bottom: 2px solid #000000;
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  color: #111111;
  font-size: 16px;
  line-height: 1;
}

.mobile-menu-btn:hover {
  background: #f7f7f7;
}

/* --- Main Layout Containers --- */
main.main-content {
  flex: 1;
  width: 100%;
}

.content-constrained {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.content-wide {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 24px 72px;
}

/* --- Typography (Neve FSE Alignment) --- */
h1.hero-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #111111;
  text-align: center;
}

p.hero-subhead {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: #202020;
  margin: 0 0 64px;
  text-align: center;
}

h2.section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 20px;
  color: #111111;
  text-align: center;
}

p.center-paragraph {
  font-size: 16.5px;
  line-height: 1.8;
  color: #202020;
  text-align: center;
  margin: 0 0 32px;
}

/* --- Contained Clean Footer (Black Text on White Background) --- */
.footer-wrap {
  width: 100%;
  padding: 0 24px 32px;
  margin-top: auto;
}

footer.site-footer {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #ffffff;
  color: #202020;
  border-top: 1px solid #eeeeee;
  padding: 24px 20px 8px;
  text-align: center;
}

.footer-links {
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
}

.footer-links a {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.footer-links a:hover {
  color: #000000;
  opacity: 0.7;
}

.footer-sep {
  color: #a1a1aa;
  font-size: 12px;
  user-select: none;
}

.gpg-full {
  display: inline;
}

.gpg-short {
  display: none;
}

/* --- Posts & Dispatches List --- */
.post-stream {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.post-stream-item {
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
}

.post-stream-item:first-child {
  padding-top: 0;
}

.post-date-tag {
  font-size: 13px;
  color: #71717a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin-bottom: 6px;
}

.post-headline {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
}

.post-headline a {
  text-decoration: none;
  color: #111111;
}

.post-headline a:hover {
  text-decoration: underline;
}

.post-excerpt {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
}

/* --- Inline Full Post Reader --- */
.post-reader-box {
  background: #fbfbfb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 28px;
  margin: 24px 0 40px;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: #111111;
}

/* --- Projects Catalog --- */
.project-row {
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
}

.project-row:first-child {
  padding-top: 0;
}

.project-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.project-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.project-title a {
  color: #111111;
  text-decoration: none;
}

.project-title a:hover {
  text-decoration: underline;
}

.project-badge {
  font-size: 12px;
  font-family: ui-monospace, monospace;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-summary {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.65;
  margin: 0 0 12px;
}

/* --- Subtle Button Styling --- */
.btn-dark {
  display: inline-block;
  padding: 7px 16px;
  background-color: #1a1919;
  color: #ffffff;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.btn-dark:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #ffffff;
}

.btn-text {
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  text-decoration: underline;
}

/* --- Responsive & Mobile Menu Support --- */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 0;
    z-index: 1000;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 8px;
    border-bottom: 1px solid #f4f4f5;
    font-size: 16px;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a.active {
    border-bottom: none;
    font-weight: 700;
  }

  h1.hero-title {
    font-size: 34px;
  }

  p.hero-subhead {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .content-constrained, .content-wide {
    padding: 40px 20px 56px;
  }

  .gpg-full {
    display: none;
  }

  .gpg-short {
    display: inline;
  }

  .footer-links {
    font-size: 13.5px;
    gap: 6px 10px;
  }
}
