/* =========================================================
   Claritti — pearl, ivory & champagne-gold design system
   ========================================================= */

:root {
  --ivory: #faf6ef;
  --pearl: #f3ecdf;
  --champagne: #d9bf8f;
  --gold: #c2a364;
  --gold-deep: #a8853f;
  --ink: #4a4234;        /* warm dark brown instead of black */
  --ink-soft: #7d7261;
  --glass: rgba(255, 252, 245, 0.55);
  --glass-border: rgba(216, 191, 143, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: linear-gradient(160deg, #fdfbf7 0%, #f7f0e3 45%, #f0e6d2 100%);
  overflow-x: hidden;
}

/* The 3D canvas sits behind all content */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
  color: var(--ink);
}

h1 em {
  font-style: italic;
  background: linear-gradient(100deg, #8a6a2f, var(--gold-deep) 55%, #8f6e33);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.4rem; }
h3 { font-size: 1.55rem; margin-bottom: 0.7rem; }

p { line-height: 1.75; font-size: 1.04rem; color: var(--ink-soft); }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem clamp(1.5rem, 5vw, 4rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(253, 251, 247, 0.45);
  border-bottom: 1px solid rgba(216, 191, 143, 0.18);
}

.nav__logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav nav a {
  margin-left: 2.2rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav nav a:hover { color: var(--gold-deep); }

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.5rem, 7vw, 7rem);
  max-width: 60rem;
}

/* soft ivory glow behind the hero text so it stays readable over the 3D scene */
.hero::before {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  width: min(100vw, 64rem);
  height: 78vh;
  background: radial-gradient(ellipse 65% 50% at 45% 50%,
    rgba(253, 250, 243, 0.95) 0%,
    rgba(253, 250, 243, 0.8) 50%,
    rgba(253, 250, 243, 0) 80%);
  pointer-events: none;
  z-index: -1;
}
.hero > * { position: relative; }

.hero__eyebrow,
.section__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.4rem;
}

.hero__sub {
  margin-top: 1.6rem;
  max-width: 32rem;
  font-size: 1.15rem;
}

.hero__actions { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  color: #fffdf8;
  background: linear-gradient(110deg, var(--gold-deep), var(--champagne));
  box-shadow: 0 8px 30px rgba(194, 163, 100, 0.35);
}
.btn--gold:hover { box-shadow: 0 12px 38px rgba(194, 163, 100, 0.5); }

.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(8px);
}

/* scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.5rem, 7vw, 7rem);
  width: 1px; height: 64px;
  background: rgba(168, 133, 63, 0.25);
  overflow: hidden;
}
.hero__scroll span {
  display: block;
  width: 100%; height: 40%;
  background: var(--gold-deep);
  animation: scrollhint 2.2s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 7vw, 7rem);
}

.section__inner { max-width: 46rem; padding: clamp(2rem, 5vw, 4rem); }
.section__inner p + p { margin-top: 1rem; }
.section__head { margin-bottom: 2.5rem; }

.statement {
  margin-top: 2rem !important;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold-deep);
}

/* ===== Glassmorphism ===== */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(168, 133, 63, 0.08);
}

/* ===== Principles ===== */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.principle { padding: 2.2rem; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.principle:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(168, 133, 63, 0.16);
}

.principle__num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  color: var(--champagne);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1rem;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.card {
  display: block;
  padding: 2.4rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(168, 133, 63, 0.18);
}

.card__link {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ===== Newsletter CTA ===== */
.glass--cta {
  margin: 0 auto;
  text-align: center;
  max-width: 44rem;
}

.substack-embed {
  width: 100%;
  max-width: 480px;
  height: 150px;
  margin-top: 1.8rem;
  border-radius: 16px;
  background: transparent;
}

.signoff {
  margin-top: 2rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-deep);
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  border-top: 1px solid rgba(216, 191, 143, 0.18);
}
.footer p { font-size: 0.85rem; }
.footer__note { margin-top: 0.4rem; opacity: 0.7; }

/* in-content + footer links (legal pages, etc.) */
.footer a,
.section__inner p a {
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 133, 63, 0.35);
  transition: border-color 0.3s;
}
.footer a:hover,
.section__inner p a:hover { border-color: var(--gold-deep); }

.section__inner h3 {
  font-size: 1.35rem;
  color: var(--ink);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
