/*
Theme Name: Stumble Toward the Light
Theme URI: https://stumbletowardthelight.com
Author: Sebastian Eduard
Description: Custom dark minimal theme for stumbletowardthelight.com - psychology, meaning, and self-directed living.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: stumble
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --navy-deep: #0a0e1a;
  --navy-mid: #111729;
  --navy-light: #1a2138;
  --navy-surface: #1e2640;
  --gold: #c9a84c;
  --gold-light: #e4c96a;
  --gold-dim: #8a7235;
  --gold-glow: rgba(201, 168, 76, 0.12);
  --text-primary: #e8e4dd;
  --text-secondary: #9a968f;
  --text-muted: #6b6860;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--navy-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* NAVIGATION */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-decoration: none;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  max-width: 780px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero h1 .gold {
  color: var(--gold);
}

.hero-subtext {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

/* EMAIL CAPTURE */
.signup-box {
  width: 100%;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.signup-box.no-animate {
  animation: none;
  opacity: 1;
}

.signup-form {
  display: flex;
  gap: 0;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy-mid);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.signup-form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.1);
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.signup-form input::placeholder {
  color: var(--text-muted);
}

.signup-form button {
  padding: 1rem 1.75rem;
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.signup-form button:hover {
  background: var(--gold-light);
}

.signup-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* VALUE PROPS */
.values {
  padding: 5rem 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.value-item {
  flex: 1;
  min-width: 240px;
  max-width: 280px;
  padding: 1.5rem 0;
}

.value-marker {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.value-item h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.value-item p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* DIVIDER */
.divider {
  width: 60px;
  height: 1px;
  background: var(--gold-dim);
  margin: 2rem auto;
}

/* ABOUT SECTION */
.about {
  padding: 5rem 2rem 6rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(201, 168, 76, 0.2);
  filter: grayscale(15%);
}

.about-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
}

.about p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about .highlight {
  color: var(--text-primary);
  font-weight: 400;
}

/* LATEST ARTICLES */
.articles-section {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 2.5rem;
  text-align: center;
}

.article-card {
  display: block;
  padding: 2rem 0;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-card:hover {
  padding-left: 1rem;
}

.article-card:last-child {
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.article-card .date {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.article-card:hover h3 {
  color: var(--gold);
}

.article-card .excerpt {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* BOTTOM CTA */
.bottom-cta {
  padding: 6rem 2rem 8rem;
  text-align: center;
}

.bottom-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.bottom-cta p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.bottom-cta .signup-box {
  margin: 0 auto;
}

/* FOOTER */
.site-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ARTICLE PAGE */
.article-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.article-page .article-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.article-page .entry-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.article-page .article-intro {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.entry-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.entry-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.entry-content p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--gold);
  background: var(--gold-glow);
  border-radius: 0 4px 4px 0;
}

.entry-content blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0;
}

.entry-content ul, .entry-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.entry-content li {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 0.5rem;
}

.entry-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 76, 0.3);
  text-underline-offset: 3px;
}

.entry-content a:hover {
  text-decoration-color: var(--gold);
}

/* ARTICLE INLINE CTA */
.article-cta {
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--navy-light);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 8px;
  text-align: center;
}

.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.article-cta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.article-cta .signup-form {
  max-width: 400px;
  margin: 0 auto;
}

/* ARCHIVE / BLOG LIST */
.archive-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.archive-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 3rem;
  text-align: center;
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .site-nav {
    padding: 1rem 1.25rem;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 7rem 1.5rem 4rem;
  }
  .values {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .value-item {
    max-width: 100%;
  }
  .signup-form {
    flex-direction: column;
  }
  .signup-form button {
    padding: 1rem;
  }
  .article-page {
    padding: 6rem 1.25rem 3rem;
  }
  .archive-page {
    padding: 6rem 1.25rem 3rem;
  }
}
