/* ==========================================================================
   The Convergence Thesis — Stylesheet
   Clean, professional, authority-building design
   ========================================================================== */

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

:root {
  --color-bg: #0a0a0f;
  --color-surface: #12121a;
  --color-surface-2: #1a1a25;
  --color-text: #e8e8ed;
  --color-text-muted: #8a8a9a;
  --color-accent: #4f8fff;
  --color-accent-hover: #6ba3ff;
  --color-accent-subtle: rgba(79, 143, 255, 0.1);
  --color-border: #2a2a35;
  --color-gold: #d4a843;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
  --max-width-narrow: 760px;
  --spacing: 2rem;
}

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }

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

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing); }
.container-narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 var(--spacing); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo { text-decoration: none; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active { color: var(--color-text); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); margin: 5px 0; transition: 0.3s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ==========================================================================
   Pillars Section
   ========================================================================== */
.pillars { padding: 6rem 0; }

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.pillar:hover { border-color: var(--color-accent); transform: translateY(-4px); }

.pillar-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.pillar h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Thesis Teaser
   ========================================================================== */
.thesis-teaser {
  padding: 6rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.teaser-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.teaser-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.teaser-content blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  text-align: left;
  line-height: 1.8;
}

.teaser-content p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ==========================================================================
   Newsletter Form
   ========================================================================== */
.newsletter-section { padding: 6rem 0; }

.newsletter-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 3rem 2.5rem;
}

.newsletter-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.newsletter-box > p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-row input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.form-row input[type="email"]:focus { border-color: var(--color-accent); }

.form-row input[type="email"]::placeholder { color: var(--color-text-muted); }

.form-row button {
  padding: 0.85rem 1.75rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
  white-space: nowrap;
}

.form-row button:hover { background: var(--color-accent-hover); }

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

/* ==========================================================================
   Blog / Posts
   ========================================================================== */
.latest-posts {
  padding: 6rem 0;
  border-top: 1px solid var(--color-border);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s;
}

.post-card:hover { border-color: var(--color-accent); }

.post-card time {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card h3 {
  font-size: 1.15rem;
  margin: 0.75rem 0;
  line-height: 1.4;
}

.post-card h3 a { color: var(--color-text); }
.post-card h3 a:hover { color: var(--color-accent); }

.post-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

/* Posts List (blog index) */
.page-header {
  padding: 5rem 0 3rem;
  text-align: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
}

.page-description {
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  font-size: 1.1rem;
}

.posts-list { padding: 3rem 0 6rem; }

.post-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

.post-item time {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-item h2 {
  font-size: 1.4rem;
  margin: 0.5rem 0 0.75rem;
}

.post-item h2 a { color: var(--color-text); }
.post-item h2 a:hover { color: var(--color-accent); }

.post-item p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.no-posts { color: var(--color-text-muted); text-align: center; padding: 3rem 0; }

/* ==========================================================================
   Article (Single Post / Thesis)
   ========================================================================== */
.article { padding: 3rem 0 6rem; }

.article-header {
  text-align: center;
  padding: 4rem 0 3rem;
}

.article-categories { margin-bottom: 1rem; }

.category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.article-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Article Content Typography */
.article-content {
  font-size: 1.1rem;
  line-height: 1.85;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 3rem 0 1.25rem;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.3rem;
  margin: 2.5rem 0 1rem;
  font-weight: 600;
}

.article-content p { margin-bottom: 1.5rem; }

.article-content blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.article-content ul, .article-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

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

.article-content strong { color: var(--color-text); font-weight: 600; }

.article-content a { text-decoration: underline; text-underline-offset: 3px; }

.article-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 3rem 0;
}

.article-footer { margin-top: 4rem; }

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-note {
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */
@media (max-width: 768px) {
  :root { --spacing: 1.25rem; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .nav-links.active { display: flex; }

  .hero { padding: 5rem 0 4rem; }
  .hero-title { font-size: 2.5rem; }

  .pillars-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }

  .form-row { flex-direction: column; }
  .form-row button { width: 100%; }

  .footer-content { flex-direction: column; gap: 1.5rem; }
  .footer-links { flex-wrap: wrap; }

  .article-meta { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
