/* Earth Pods — landing preview styles */

:root {
  --sand: #F4EFE6;
  --clay: #E8DFD0;
  --parchment: #FFF9F0;
  --moss: #3D5A3A;
  --moss-dark: #2E4530;
  --terracotta: #B86B4B;
  --terracotta-dark: #9C5739;
  --text-deep: #1F2A1C;
  --text-muted: #5C6B58;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --max-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-deep);
  background: linear-gradient(180deg, var(--sand) 0%, var(--clay) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* subtle grain overlay, CSS-only */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, #1F2A1C 1px, transparent 0);
  background-size: 3px 3px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-deep);
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--moss);
}

/* Header */
.site-header {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--moss-dark);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.header-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--terracotta-dark);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: var(--terracotta-dark);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 3.5rem;
  text-align: center;
}

.hero-animation {
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  margin: 0 auto 1.5rem;
}

.hero-animation svg,
.hero-animation canvas {
  width: 100%;
  height: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 38ch;
  margin: 0 auto;
}

.tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin: 1rem auto 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--parchment);
  box-shadow: 0 6px 16px rgba(184, 107, 75, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--terracotta-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--moss-dark);
  border: 2px solid var(--moss);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--moss);
  color: var(--parchment);
}

/* Pillars */
.pillars {
  position: relative;
  z-index: 1;
  padding: 1rem 0 3.5rem;
}

.section-heading {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.section-subheading {
  text-align: center;
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 2.5rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background: var(--parchment);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(31, 42, 28, 0.06);
  border: 1px solid rgba(61, 90, 58, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pillar-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.pillar-card h3 {
  font-size: 1.15rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.pillar-link {
  margin-top: 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--terracotta-dark);
  text-decoration: none;
}

.pillar-link:hover,
.pillar-link:focus-visible {
  text-decoration: underline;
}

/* About strip */
.about-strip {
  position: relative;
  z-index: 1;
  background: var(--moss);
  color: var(--parchment);
  padding: 3rem 0;
}

.about-strip .container {
  max-width: 46rem;
  text-align: center;
}

.about-strip h2 {
  color: var(--parchment);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  margin-bottom: 1rem;
}

.about-strip p {
  font-size: 1.05rem;
  opacity: 0.92;
}

/* Contact */
.contact {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.contact p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.contact-email {
  display: block;
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.contact-email a {
  color: var(--moss-dark);
  font-weight: 600;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(61, 90, 58, 0.15);
}

/* Reduced motion: static hero still looks intentional */
@media (prefers-reduced-motion: reduce) {
  .btn,
  html {
    scroll-behavior: auto;
  }
}
