/* 
  Static Site Styles
  Simplified CSS for static HTML pages
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --font-serif: 'Crimson Pro', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  --color-background: #fafaf9;
  --color-foreground: #1c1917;
  --color-muted: #78716c;
  --color-muted-light: #a8a29e;
  --color-border: #e7e5e4;
  --color-accent: #3B49C4;
  --color-accent-hover: #2d3a9e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-foreground);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

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

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

/* Layout */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-bordered {
  border-top: 1px solid var(--color-border);
}

/* Header */
header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-foreground);
}

.logo:hover {
  color: var(--color-foreground);
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--color-muted);
  font-size: 0.875rem;
  position: relative;
}

nav a:hover {
  color: var(--color-foreground);
}

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

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 1px;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  font-size: 0.875rem;
  margin: 0;
}

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

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

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

/* Hero Section */
.hero {
  display: flex;
  gap: 1.5rem;
}

.hero-accent {
  width: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

.hero h1 {
  text-wrap: balance;
}

.hero-text {
  max-width: 560px;
}

.hero-text p {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Principle Cards */
.principle-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 1.5rem;
}

.principle-card:last-child {
  border-bottom: none;
}

.principle-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
  width: 50px;
  flex-shrink: 0;
}

.principle-content h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--color-foreground);
}

.principle-content p {
  font-size: 1rem;
  margin: 0;
}

/* Essay Cards */
.essay-card {
  display: block;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  padding-left: 0;
  transition: padding-left 0.3s ease;
}

.essay-card:last-child {
  border-bottom: none;
}

.essay-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
  border-radius: 1px;
}

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

.essay-card:hover::before {
  transform: scaleY(1);
}

.essay-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-foreground);
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.essay-card:hover h3 {
  color: var(--color-accent);
}

.essay-card p {
  margin-bottom: 0.75rem;
}

.essay-card .read-time {
  font-size: 0.875rem;
  color: var(--color-muted-light);
}

/* CTA Section */
.cta-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: gap 0.2s ease;
}

.cta-link:hover {
  gap: 0.75rem;
}

.cta-link svg {
  width: 20px;
  height: 20px;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted);
  margin-bottom: 3rem;
}

.back-link:hover {
  color: var(--color-foreground);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* Prose (Article Content) */
.prose {
  max-width: 100%;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose .lead {
  font-size: 1.125rem;
  line-height: 1.7;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 1rem;
  color: var(--color-muted);
}

.prose li strong {
  color: var(--color-foreground);
}

/* Article Header */
.article-header {
  margin-bottom: 3rem;
}

.article-header h1 {
  margin-bottom: 0.5rem;
}

.article-header .read-time {
  color: var(--color-muted);
}

/* About Page */
.about-content .lead {
  font-size: 1.125rem;
  line-height: 1.7;
}

.contact-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.contact-links a {
  font-size: 1.125rem;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 640px) {
  .hero-accent {
    display: none;
  }
  
  nav {
    gap: 1rem;
  }
  
  .principle-number {
    display: none;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
