/* The Coherence Practice — shared styles */

:root {
  --teal: #233D4D;
  --teal-soft: #2B4856;
  --teal-deep: #1C323F;
  --cream: #EDE3D2;
  --cream-dim: rgba(237, 227, 210, 0.72);
  --cream-faint: rgba(237, 227, 210, 0.42);
  --cream-hairline: rgba(237, 227, 210, 0.18);
  --rule: rgba(237, 227, 210, 0.14);

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --measure: 38rem;        /* ~608px reading column */
  --measure-wide: 44rem;
  --gutter: clamp(1.5rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--teal);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle warmth — a barely-there gradient suggesting light from above */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(237, 227, 210, 0.04), transparent 60%),
    radial-gradient(ellipse 100% 50% at 50% 110%, rgba(28, 50, 63, 0.6), transparent 70%);
  z-index: 0;
}

/* ---------- Navigation ---------- */

.site-header {
  position: relative;
  z-index: 2;
  padding: 2rem var(--gutter) 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
  line-height: 1.2;
}

.brand em {
  font-style: italic;
}

.nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 1.9rem);
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
  transition: color 240ms ease;
}

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

.nav a[aria-current="page"] {
  color: var(--cream);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--cream-faint);
}

/* ---------- Main column ---------- */

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(3rem, 9vh, 7rem) var(--gutter) clamp(4rem, 10vh, 8rem);
}

.column {
  width: 100%;
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
}

.column.wide {
  max-width: var(--measure-wide);
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.005em;
  margin: 0;
}

.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 0.5rem;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cream-faint);
  margin-bottom: 2.5rem;
  display: block;
}

p {
  margin: 0 0 1.4rem;
  color: var(--cream);
}

.lead p {
  font-size: 1.06rem;
}

em, i {
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.06em;
  letter-spacing: 0.005em;
}

/* Opening Tagore quote — centred, italic, generous */
.epigraph {
  text-align: center;
  margin: 0 auto clamp(3rem, 7vh, 5rem);
  max-width: 34rem;
}

.epigraph blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.45;
  letter-spacing: 0.005em;
  margin: 0 0 1.5rem;
  color: var(--cream);
  text-wrap: pretty;
}

.epigraph cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

/* Section breaks within a page — quiet vertical air, no rule */
.movement-break {
  height: clamp(2.5rem, 5vh, 4rem);
}

/* Small whisper line beneath CTAs */
.whisper {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--cream-dim);
  text-align: center;
  margin-top: 1.8rem;
}

.whisper a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--cream-hairline);
  padding-bottom: 1px;
  transition: border-color 240ms ease;
}

.whisper a:hover {
  border-bottom-color: var(--cream-faint);
}

/* ---------- CTA ---------- */

.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}

.cta {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
  padding: 0.85rem 2rem 0.95rem;
  border: 1px solid var(--cream-hairline);
  border-radius: 999px;
  transition: border-color 360ms ease, background-color 360ms ease;
  background: transparent;
  display: inline-block;
}

.cta:hover {
  border-color: var(--cream-faint);
  background: rgba(237, 227, 210, 0.04);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 2rem var(--gutter) 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--rule);
}

.site-footer a {
  color: var(--cream-faint);
  text-decoration: none;
  transition: color 240ms ease;
}

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

/* ---------- Home-specific composition ---------- */

.home main {
  justify-content: center;
}

/* ---------- Manifesto — long-form ---------- */

.manifesto .column {
  max-width: var(--measure-wide);
}

.manifesto p + p {
  /* keep default paragraph rhythm */
}

/* Pull-quote within manifesto */
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.55;
  text-align: center;
  margin: 2.5rem auto;
  max-width: 28rem;
  color: var(--cream);
}

/* Three-line cadence at end of manifesto */
.cadence {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.7;
  text-align: left;
  margin: 1.4rem 0;
}

.cadence span {
  display: block;
}

/* ---------- Book a Call ---------- */

.contact-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  text-align: center;
  margin: 0.6rem 0;
  color: var(--cream);
}

.contact-line a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--cream-hairline);
  padding-bottom: 2px;
}

.contact-line a:hover {
  border-bottom-color: var(--cream-faint);
}

.placeholder-note {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-faint);
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .site-header {
    padding: 1.5rem var(--gutter) 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .nav {
    width: 100%;
    gap: 0.9rem 1.4rem;
  }
  .nav a {
    font-size: 0.74rem;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Subtle entrance — once, never repeated */
@keyframes settle {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

main > .column,
main > .epigraph {
  animation: settle 1100ms cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

main > .epigraph + .column {
  animation-delay: 240ms;
}
