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

:root {
  --bg: #0f1923;
  --bg-card: #162231;
  --bg-accent: #1a2b3d;
  --cream: #e8e2d6;
  --cream-dim: #b0a898;
  --gold: #c4922a;
  --gold-light: #d4a94a;
  --white: #ffffff;
  --radius: 12px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--cream);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 60vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--gold);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 25, 35, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 226, 214, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

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

.nav-brand {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--cream);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  background: linear-gradient(180deg, #152538 0%, var(--bg) 100%);
  text-align: center;
  padding: 120px 24px 64px;
}

.hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}

.when-pill {
  display: inline-block;
  background: rgba(196, 146, 42, 0.15);
  border: 1px solid rgba(196, 146, 42, 0.3);
  color: var(--gold-light);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-sub {
  color: var(--cream-dim);
  font-size: 1rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--bg);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(232, 226, 214, 0.25);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--cream);
  background: rgba(232, 226, 214, 0.05);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-accent {
  background: var(--bg-accent);
}

h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.body-text {
  color: var(--cream-dim);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.body-text em { color: var(--cream); }

.link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(196, 146, 42, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.link:hover,
.link:focus-visible { text-decoration-color: var(--gold); }

/* Details Card */
.details-card {
  background: var(--bg-card);
  border: 1px solid rgba(232, 226, 214, 0.08);
  border-radius: var(--radius);
  padding: 8px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.detail-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(232, 226, 214, 0.06);
}

.detail-item:nth-last-child(-n+2) { border-bottom: none; }

.detail-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid rgba(232, 226, 214, 0.08);
  border-radius: var(--radius);
  padding: 24px;
}

.pillar-num {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.pillar h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 8px;
}

.pillar p {
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* What to Expect */
.expect-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.expect-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.expect-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(196, 146, 42, 0.15);
  border: 1px solid rgba(196, 146, 42, 0.3);
  color: var(--gold);
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.expect-item h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.expect-item p {
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Resources */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid rgba(232, 226, 214, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: all 0.2s;
}

.resource-card:hover,
.resource-card:focus-visible {
  border-color: rgba(232, 226, 214, 0.2);
  transform: translateY(-2px);
}

.resource-card h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.resource-card p {
  font-size: 0.85rem;
  color: var(--cream-dim);
  line-height: 1.4;
}

/* News */
.news-item { padding: 8px 0; }

.news-date {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.news-item p {
  margin-top: 6px;
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA */
.cta-section {
  background: linear-gradient(180deg, var(--bg) 0%, #152538 100%);
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
}

.cta-section .body-text {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 24px 100px;
  border-top: 1px solid rgba(232, 226, 214, 0.08);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--gold); }

.footer .nav-brand {
  display: block;
  margin-bottom: 8px;
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--cream-dim);
  margin-top: 4px;
}

.footer-meta a { color: var(--cream-dim); }
.footer-meta a:hover,
.footer-meta a:focus-visible { color: var(--gold); }

/* Mobile sticky CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 25, 35, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(232, 226, 214, 0.08);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.25);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  gap: 10px;
  justify-content: center;
  z-index: 100;
}

.mobile-cta .btn { flex: 1; text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .hero { padding: 100px 24px 48px; }
  .hero-actions { justify-content: center; }

  .section { padding: 48px 0; }

  .details-card {
    grid-template-columns: 1fr;
  }
  .detail-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(232, 226, 214, 0.06); }
  .detail-item:last-child { border-bottom: none; }

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

  .resources-grid { grid-template-columns: 1fr; }

  .mobile-cta { display: flex; }

  main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }

  .hero { padding: 92px 20px 44px; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .details-card { padding: 6px 16px; }
  .detail-item { padding: 16px 0; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.75rem; }
  .when-pill { font-size: 0.85rem; padding: 6px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print styles */
@media print {
  body {
    background: #fff;
    color: #222;
    font-size: 11pt;
  }

  .nav,
  .mobile-cta,
  .skip-link,
  .hero-actions,
  .cta-section {
    display: none !important;
  }

  .hero {
    background: none;
    padding: 24px 0;
  }

  .hero h1 {
    color: #1a2744;
    font-size: 24pt;
  }

  .hero-sub,
  .when-pill {
    color: #444;
  }

  .when-pill {
    background: none;
    border: 1px solid #999;
    color: #333;
  }

  .section,
  .section-accent {
    background: none;
    padding: 16px 0;
  }

  h2 {
    color: #1a2744;
    font-size: 16pt;
    margin-bottom: 8px;
  }

  .body-text,
  .body-text em,
  .pillar p,
  .expect-item p,
  .resource-card p,
  .news-item p {
    color: #333;
  }

  .pillar h3,
  .expect-item h3,
  .resource-card h3 {
    color: #1a2744;
  }

  .details-card,
  .pillar,
  .resource-card {
    background: none;
    border: 1px solid #ccc;
  }

  .detail-label,
  .pillar-num,
  .news-date {
    color: #7a6020;
  }

  .expect-num {
    background: none;
    border: 1px solid #999;
    color: #7a6020;
  }

  .link { color: #7a6020; }

  .footer {
    border-top: 1px solid #ccc;
    padding: 16px 0;
  }

  .footer .nav-brand,
  .footer-meta,
  .footer-meta a {
    color: #444;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  .nav-brand[href]::after,
  .nav-links a[href]::after,
  .btn[href]::after {
    content: none;
  }
}
