@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Cinzel:wght@400;500;600&family=Jost:wght@200;300;400;500&display=swap');

:root {
  --ink-dark: #0f0c08;
  --ink: #16120c;
  --ink-soft: #383028;
  --ink-ghost: #544c42;
  
  --gold: #bda062;
  --gold-light: #d6bc85;
  --gold-pale: #e3ce9f;
  --gold-glow: rgba(189, 160, 98, 0.15);
  
  --cream: #f6f3eb;
  --cream-deep: #e8e3d5;

  --font-sans: 'Jost', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-display: 'Cinzel', serif;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

body {
  background-color: var(--ink-dark);
  color: var(--cream);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.site-header {
  padding: 2.5rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.site-logo {
  width: clamp(60px, 10vw, 85px);
  height: auto;
  filter: contrast(1.15) saturate(1.1);
}

.logo-arch-anim {
  position: relative;
  display: inline-block;
}

.logo-arch-anim::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse-glow 6s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
  0% { opacity: 0.3; transform: scale(0.95); }
  100% { opacity: 0.8; transform: scale(1.1); }
}

.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
  font-weight: 500;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.hero-intro {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gold-pale);
  font-family: var(--font-serif);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

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

.btn-primary {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dark);
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 1rem 2rem;
  text-decoration: none;
  transition: all 0.4s ease;
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-secondary {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 1rem 2rem;
  text-decoration: none;
  transition: all 0.4s ease;
}

.btn-secondary:hover {
  background: rgba(189, 160, 98, 0.1);
  transform: translateY(-2px);
}

.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.toc {
  border: 1px solid rgba(189, 160, 98, 0.2);
  padding: 1.5rem;
  margin-bottom: 4rem;
  background: rgba(189, 160, 98, 0.03);
}

.toc-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  justify-content: space-between;
  align-items: center;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.toc.collapsed .toc-list {
  max-height: 0;
}

.toc-list a {
  color: var(--cream-deep);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.reflection-btn:focus-visible,
.audio-toggle:focus-visible {
  outline-color: var(--cream);
}

.content-section {
  margin-bottom: 4rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 300;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(189, 160, 98, 0.15);
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.content-section p {
  margin-bottom: 1.5rem;
  color: var(--cream-deep);
  font-size: 1.05rem;
}

.content-section ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--cream-deep);
  font-size: 1.05rem;
}

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

.content-section strong {
  font-weight: 500;
  color: var(--gold-pale);
}

.belief-perspectives {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(189, 160, 98, 0.15);
}

.belief-perspectives h3 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--gold-light);
}

.belief-perspectives .reflection-questions {
  list-style: none;
  padding: 1.5rem 1.75rem;
  border-left: 2px solid var(--gold);
  background: rgba(189, 160, 98, 0.045);
}

.belief-perspectives .reflection-questions li {
  margin-bottom: 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold-pale);
}

.belief-perspectives .reflection-questions li:last-child {
  margin-bottom: 0;
}

.belief-perspectives .awareness-sequence {
  padding-left: 1.5rem;
  border-left: 2px solid rgba(189, 160, 98, 0.55);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--gold-pale);
}

blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gold-pale);
  line-height: 1.5;
}

.founder-story {
  margin-bottom: 5rem;
}

.founder-story-card {
  margin: 2.5rem 0;
  padding: 2.25rem 2.5rem;
  background: linear-gradient(135deg, rgba(246, 243, 235, 0.055), rgba(189, 160, 98, 0.035));
  border: 1px solid rgba(189, 160, 98, 0.2);
  border-left: 3px solid var(--gold);
}

.founder-story-card .founder-story-quote {
  margin: 0;
  padding: 0;
  border: 0;
}

.founder-story-card .founder-story-quote p {
  margin-bottom: 1.4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.25vw, 1.35rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--gold-pale);
}

.founder-story-card .founder-story-quote p:last-child {
  margin-bottom: 0;
}

.founder-story-card figcaption {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(189, 160, 98, 0.18);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.founder-story-guide a {
  color: var(--gold-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.founder-story-guide a:hover {
  color: var(--gold-pale);
}

/* Branded audio player */
.static-audio-player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  color: var(--cream-deep);
}

.audio-toggle {
  min-width: 4.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-pale);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.audio-toggle:hover {
  background: rgba(189, 160, 98, 0.12);
}

.audio-seek {
  width: 100%;
  min-height: 2.75rem;
  accent-color: var(--gold);
  cursor: pointer;
}

.audio-time {
  min-width: 5.5rem;
  font-size: 0.9rem;
  color: var(--gold-pale);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.faq-item {
  margin-bottom: 2rem;
}

.faq-item h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 0.5rem;
  margin-top: 0;
  border: none;
}

/* 11:11 Reset Section */
.reset-section {
  background: var(--ink);
  border: 1px solid rgba(189, 160, 98, 0.2);
  padding: 3rem 2rem;
  text-align: center;
  margin: 4rem 0;
}

.reset-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.reset-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reset-step-name {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.15em;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.reset-step-desc {
  font-size: 0.85rem;
  color: var(--ink-ghost);
}

.interactive-reset {
  margin-top: 2rem;
}

.reset-timer {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-light);
  margin: 2rem 0;
  display: none;
}

.interactive-reset.active .reset-timer {
  display: block;
}
.interactive-reset.active .btn-primary {
  display: none;
}

/* Reflection Selector */
.reflection-box {
  background: var(--ink);
  padding: 2.5rem;
  border: 1px solid rgba(189, 160, 98, 0.1);
  margin: 3rem 0;
}

.reflection-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.reflection-btn {
  background: transparent;
  border: 1px solid rgba(189, 160, 98, 0.3);
  color: var(--cream-deep);
  padding: 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.reflection-btn:hover, .reflection-btn.selected {
  border-color: var(--gold);
  color: var(--gold-pale);
  background: rgba(189, 160, 98, 0.05);
}

.reflection-result {
  margin-top: 2rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-light);
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.reflection-result.visible {
  display: block;
  opacity: 1;
}

/* Form */
.story-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--gold-pale);
  letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  background: var(--ink);
  border: 1px solid rgba(189, 160, 98, 0.3);
  color: var(--cream);
  padding: 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
}

.checkbox-group input {
  margin-top: 0.2rem;
}

.checkbox-group span {
  font-size: 0.85rem;
  color: var(--cream-deep);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.honeypot-container {
  display: none !important;
}

.form-message {
  padding: 1rem;
  margin-top: 1rem;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(189, 160, 98, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold-pale);
}
.form-message.error {
  display: block;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  color: #ffb3b8;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.75rem;
  color: var(--ink-ghost);
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Sub-pages grid */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.discover-card {
  border: 1px solid rgba(189, 160, 98, 0.15);
  padding: 2.5rem 2rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.4s ease;
  display: block;
  background: var(--ink);
}

.discover-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  background: var(--ink-dark);
}

.discover-card h3 {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--gold-pale);
}

.discover-card p {
  color: var(--cream-deep);
  font-size: 0.95rem;
  margin: 0;
}

.site-footer {
  border-top: 1px solid rgba(189, 160, 98, 0.15);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 6rem;
}

.site-footer a {
  color: var(--gold-pale);
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.site-footer a:hover {
  color: var(--gold);
}

.wellbeing-note {
  max-width: 680px;
  margin: 3rem auto 0;
  color: rgba(232, 227, 213, 0.58);
  font-size: 0.74rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-align: center;
}

.wellbeing-note a {
  color: rgba(227, 206, 159, 0.8);
  text-decoration-color: rgba(189, 160, 98, 0.55);
  text-underline-offset: 3px;
}

/* Media Queries */
@media (max-width: 768px) {
  .site-header {
    padding: 1.5rem;
  }

  .hero {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  .article-container {
    padding: 0 1.25rem 4rem;
  }

  .content-section {
    margin-bottom: 3rem;
  }

  .founder-story {
    margin-bottom: 4rem;
  }

  .founder-story-card {
    margin: 2rem 0;
    padding: 1.6rem 1.35rem;
  }

  .founder-story-card .founder-story-quote p {
    font-size: 1.1rem;
    line-height: 1.65;
  }

  .founder-story-card figcaption {
    font-size: 0.68rem;
    letter-spacing: 0.11em;
  }

  .belief-perspectives {
    margin-top: 3rem;
  }

  .belief-perspectives .reflection-questions {
    padding: 1.25rem;
  }

  .belief-perspectives .reflection-questions li {
    font-size: 1.05rem;
  }

  .content-section p,
  .content-section ul {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .toc {
    padding: 1.25rem;
    margin-bottom: 3rem;
  }

  .toc-title {
    min-height: 2.75rem;
  }

  .static-audio-player {
    grid-template-columns: auto 1fr;
  }

  .audio-time {
    grid-column: 1 / -1;
    text-align: center;
  }

  .site-footer {
    margin-top: 4rem;
    padding: 2.5rem 1rem;
  }

  .site-footer a {
    display: inline-block;
    min-height: 2.75rem;
    padding-top: 0.6rem;
    margin: 0 0.45rem;
  }

  .reset-steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
