
/* ── Font Faces (duplicated here so no-JS users get custom fonts) ────────── */
@font-face {
  font-family: "Moonlight";
  src: url("/fonts/MixtapeExtraCondensed-ExtraBold.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Moonlightest";
  src: url("/fonts/Pressura Mono Light Web.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ── Toggle Logic */

/* When JS is enabled: hide the SEO/no-JS block completely */
.js #seo-content {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* When JS is disabled: hide the React root (it's empty anyway) */
.no-js #root {
  display: none !important;
}

/* ── Base Reset for No-JS */
.no-js body {
  margin: 0;
  background: #0a0a0a;
  color: #efeae5;
  font-family: "Moonlightest", "SF Mono", "Fira Code", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Global site navigation for no-JS users (replaces the React navbar) */
.no-js body::before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(239, 234, 229, 0.06);
  z-index: 1000;
}

/* Push page content below the fixed bar */
.no-js #seo-content {
  padding-top: 60px;
}

/* ── Main Container */
.no-js #seo-content {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px clamp(1.5rem, 5vw, 4rem) 0;
  color: #efeae5;
  background: #0a0a0a;
  min-height: 100vh;
}

/* ── Header / Hero  */
.no-js #seo-content > header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 4rem;
  border-bottom: 1px solid rgba(239, 234, 229, 0.08);
}

.no-js #seo-content h1 {
  font-family: "Moonlight", "Impact", sans-serif;
  font-size: clamp(3.5rem, 12vw, 10rem);
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin: 0 0 2rem 0;
  background: linear-gradient(135deg, #efeae5 0%, #a89f94 50%, #efeae5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-js #seo-content > header > p {
  font-family: "Moonlightest", monospace;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  max-width: 55ch;
  line-height: 1.7;
  color: rgba(239, 234, 229, 0.6);
  margin: 0 0 1rem 0;
}

.no-js #seo-content > header > p:last-child {
  font-family: "Moonlight", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(239, 234, 229, 0.3);
  margin-top: 3rem;
}

/* ── Site-wide Navigation (injected at top of every SSG page) */
.no-js #seo-content .site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  height: 60px;
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid rgba(239, 234, 229, 0.07);
  z-index: 9999;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.no-js #seo-content .site-nav a {
  font-family: "Moonlightest", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(239, 234, 229, 0.45);
  text-decoration: none;
  border-bottom: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(239, 234, 229, 0.08);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.no-js #seo-content .site-nav a:first-child {
  font-family: "Moonlight", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: rgba(239, 234, 229, 0.7);
  border-color: rgba(239, 234, 229, 0.15);
  margin-right: 0.75rem;
}

.no-js #seo-content .site-nav a:hover {
  color: #efeae5;
  border-color: rgba(239, 234, 229, 0.3);
}

/* ── Navigation */
.no-js #seo-content > nav {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(239, 234, 229, 0.08);
  position: sticky;
  top: 60px;
  background: #0a0a0a;
  z-index: 100;
}

.no-js #seo-content > nav a {
  font-family: "Moonlightest", monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(239, 234, 229, 0.5);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(239, 234, 229, 0.12);
  transition: all 0.3s ease;
}

.no-js #seo-content > nav a:hover {
  color: #efeae5;
  border-color: rgba(239, 234, 229, 0.4);
  background: rgba(239, 234, 229, 0.05);
}

/* ── Section Headings */
.no-js #seo-content h2 {
  font-family: "Moonlight", sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin: 10rem 0 3rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(239, 234, 229, 0.1);
  color: #efeae5;
}

.no-js #seo-content h3 {
  font-family: "Moonlight", sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(239, 234, 229, 0.4);
  margin: 3rem 0 1.5rem 0;
}

/* ── Paragraphs */
.no-js #seo-content p {
  font-family: "Moonlightest", monospace;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  max-width: 65ch;
  line-height: 1.75;
  color: rgba(239, 234, 229, 0.65);
  margin: 0 0 1.5rem 0;
}

/* ── Lists (Skills / Tech) */
.no-js #seo-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.no-js #seo-content li {
  font-family: "Moonlightest", monospace;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(239, 234, 229, 0.7);
  transition: border-color 0.3s ease;
}

.no-js #seo-content li:hover {
  border-color: rgba(239, 234, 229, 0.2);
}

/* ── Articles (Projects) */
.no-js #seo-content article {
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(239, 234, 229, 0.3);
  transition: border-color 0.3s ease;
}

.no-js #seo-content article:hover {
  border-left-color: #efeae5;
}

.no-js #seo-content article h3 {
  font-family: "Moonlight", sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #efeae5;
  margin: 0 0 1rem 0;
}

.no-js #seo-content article p {
  font-size: 0.95rem;
  color: rgba(239, 234, 229, 0.55);
}

.no-js #seo-content article p:last-child {
  font-size: 0.8rem;
  color: rgba(239, 234, 229, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1.5rem;
}

/* ── Blog Grid (list of posts) */
.no-js #seo-content .blog-grid {
  margin: 4rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.no-js #seo-content .blog-grid article {
  border-left: 3px solid rgba(239, 234, 229, 0.15);
}

.no-js #seo-content .blog-grid article:hover {
  border-left-color: rgba(239, 234, 229, 0.6);
}

.no-js #seo-content article h3 a {
  color: #efeae5;
  text-decoration: none;
  border-bottom: none;
  font-family: "Moonlight", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.no-js #seo-content article h3 a:hover {
  color: rgba(239, 234, 229, 0.7);
}

/* ── Features List */
.no-js #seo-content .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.no-js #seo-content .feature-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.no-js #seo-content .feature-card h4 {
  font-family: "Moonlight", sans-serif;
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  color: #efeae5;
}

/* ── Workflow */
.no-js #seo-content .workflow-list {
  margin: 4rem 0;
}

.no-js #seo-content .workflow-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(239, 234, 229, 0.05);
}

.no-js #seo-content .step-number {
  font-family: "Moonlight", sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: rgba(239, 234, 229, 0.2);
}

/* ── Case Study Sections (Problem/Solution/Results) */
.no-js #seo-content .case-study-section {
  margin: 6rem 0;
}

.no-js #seo-content .case-study-section h3 {
  color: #efeae5;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.no-js #seo-content .metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.no-js #seo-content .metric-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-js #seo-content .metric-value {
  display: block;
  font-family: "Moonlight", sans-serif;
  font-size: 3.5rem;
  color: #efeae5;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.no-js #seo-content .metric-label {
  font-family: "Moonlightest", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(239, 234, 229, 0.5);
}

/* ── Tech Stack Badges */
.no-js #seo-content .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}

.no-js #seo-content .tech-tag {
  font-family: "Moonlightest", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  background: rgba(239, 234, 229, 0.05);
  border: 1px solid rgba(239, 234, 229, 0.1);
  color: rgba(239, 234, 229, 0.6);
}

/* ── Links */
.no-js #seo-content a {
  color: rgba(239, 234, 229, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(239, 234, 229, 0.15);
  transition: all 0.2s ease;
}

.no-js #seo-content a:hover {
  color: #efeae5;
  border-bottom-color: #efeae5;
}

/* ── Footer */
.no-js #seo-content > footer {
  margin-top: 15rem;
  padding: 5rem 0;
  border-top: 1px solid rgba(239, 234, 229, 0.08);
}

.no-js #seo-content > footer p {
  color: rgba(239, 234, 229, 0.3);
  font-size: 0.85rem;
}

.no-js #seo-content > footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.no-js #seo-content > footer nav a {
  font-family: "Moonlightest", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(239, 234, 229, 0.1);
}

/* ── Responsive */
@media (max-width: 768px) {
  .no-js #seo-content {
    padding: 0 1.5rem;
  }

  .no-js #seo-content > header {
    min-height: 60vh;
    padding: 4rem 0 3rem;
  }

  .no-js #seo-content h1 {
    font-size: clamp(3rem, 15vw, 6rem);
  }

  .no-js #seo-content h2 {
    margin-top: 6rem;
    font-size: 3rem;
  }

  .no-js #seo-content .workflow-step {
    flex-direction: column;
    gap: 1rem;
  }

  .no-js #seo-content .step-number {
    font-size: 2rem;
  }

  .no-js #seo-content article {
    padding: 1.5rem;
  }

  .no-js #seo-content .metric-value {
    font-size: 2.5rem;
  }
}
