/* Choose to Awaken: site styles
   Palette: linen / charcoal / gold from the cover; slate, sage, lavender shared with Our Minds Change and Evolve.
   Fonts: EB Garamond (book text), Playfair Display (display), Open Sans (interface). */

:root {
  --linen: #f4efe6;
  --linen-deep: #ebe3d4;
  --paper: #fbf8f2;
  --charcoal: #2b2b30;
  --ink: #3a3a40;
  --ink-soft: #6a6a72;
  --gold: #f4c95d;
  --gold-deep: #c99a2e;
  --slate: #4a4e69;
  --slate-deep: #383b52;
  --sage: #9cb8a7;
  --lavender: #957dad;
  --light: #e8ecef;
  --rule: rgba(43, 43, 48, 0.14);

  --font-book: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-ui: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 42rem;
  --wide: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(43, 43, 48, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--charcoal);
  font-family: var(--font-book);
  font-size: 1.2rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; height: auto; }

a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--charcoal);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.02em; }

p { margin: 0 0 1.15em; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}

.lede { font-size: 1.35rem; line-height: 1.5; color: var(--ink); }

.ui { font-family: var(--font-ui); font-size: 0.98rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.prose { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--charcoal); color: var(--linen);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 100;
  font-family: var(--font-ui);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--linen) 88%, white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.2rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--charcoal);
  text-decoration: none; letter-spacing: 0.01em;
}
.brand .brand-mark { width: 2.4rem; height: auto; display: block; }
.nav { display: flex; gap: 1.4rem; align-items: center; font-family: var(--font-ui); font-size: 0.92rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-deep); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: 8px;
  padding: 0.45rem 0.6rem; font-family: var(--font-ui); font-size: 0.85rem; color: var(--ink); cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 0.8rem var(--gutter) 1.2rem; gap: 0.9rem; }
  .nav.open { display: flex; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--charcoal); box-shadow: 0 6px 18px rgba(201, 154, 46, 0.25); }
.btn-gold:hover { background: #f7d274; color: var(--charcoal); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--linen); }
.btn-light { background: var(--linen); color: var(--charcoal); }
.btn-light:hover { background: white; color: var(--charcoal); }
.btn-outline-light { background: transparent; color: var(--linen); border-color: var(--linen); }
.btn-outline-light:hover { background: var(--linen); color: var(--charcoal); }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.85rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* ---------- Sections and wave transitions ---------- */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section-tight { padding: clamp(2.2rem, 5vw, 3.5rem) 0; }
.bg-paper { background: var(--paper); }
.bg-linen { background: var(--linen); }
.bg-linen-deep { background: var(--linen-deep); }
.bg-slate { background: var(--slate); color: var(--light); }
.bg-slate h1, .bg-slate h2, .bg-slate h3, .bg-slate .eyebrow { color: var(--light); }
.bg-slate .eyebrow { color: var(--gold); }
.bg-slate a { color: var(--gold); }
.bg-slate .lede { color: var(--light); }
.bg-slate .btn-gold, .bg-charcoal .btn-gold { color: var(--charcoal); }
.bg-slate .btn-light { color: var(--charcoal); }
.bg-charcoal { background: var(--charcoal); color: var(--linen); }
.bg-charcoal h2, .bg-charcoal h3 { color: var(--linen); }
.bg-charcoal .eyebrow { color: var(--gold); }
.bg-charcoal a { color: var(--gold); }

.wave { display: block; width: 100%; height: clamp(40px, 7vw, 90px); }
.wave svg { display: block; width: 100%; height: 100%; }

/* ---------- Hero ---------- */

.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 6vw, 4rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .subtitle { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink-soft); margin-bottom: 1.6rem; }
.hero .hook { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-bottom: 2rem; }
.cover-frame { position: relative; display: flex; justify-content: center; }
.cover-frame::before {
  content: ""; position: absolute; inset: -8% -14%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(244, 201, 93, 0.35), rgba(244, 201, 93, 0) 65%);
  z-index: 0;
}
.cover-frame img, .cover-frame svg.cover-placeholder {
  position: relative; z-index: 1; width: min(100%, 360px); border-radius: 6px;
  box-shadow: var(--shadow); transform: rotate(-2deg);
}
/* The 3D book render carries its own shadow and tilt; only the gold glow sits behind it. */
.book-frame { position: relative; display: flex; justify-content: center; }
.book-frame::before {
  content: ""; position: absolute; inset: 4% 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(244, 201, 93, 0.35), rgba(244, 201, 93, 0) 65%);
  z-index: 0;
}
.book-frame img { position: relative; z-index: 1; width: min(100%, 460px); height: auto; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .cover-frame, .hero .book-frame { order: -1; }
  .cover-frame img, .cover-frame svg.cover-placeholder { width: min(70%, 300px); }
  .book-frame img { width: min(80%, 340px); }
}

/* ---------- Cards and grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; align-items: start; }
.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
}
.bg-slate .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

.circle-img {
  width: clamp(160px, 28vw, 260px); aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  border: 6px solid var(--paper); box-shadow: var(--shadow);
}
.circle-placeholder {
  width: clamp(160px, 28vw, 260px); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--lavender)); border: 6px solid var(--paper); box-shadow: var(--shadow);
  display: grid; place-items: center; color: white; font-family: var(--font-display); font-size: 2.4rem;
}

/* Phases */
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; counter-reset: phase; }
.phase { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--paper); border-top: 4px solid var(--gold); }
.phase:nth-child(2) { border-top-color: var(--sage); }
.phase:nth-child(3) { border-top-color: var(--lavender); }
.phase:nth-child(4) { border-top-color: var(--slate); }
.phase .eyebrow { margin-bottom: 0.3rem; }
.phase h3 { font-size: 1.3rem; }
.phase ol { margin: 0.6rem 0 0; padding-left: 1.2rem; font-size: 1.05rem; line-height: 1.5; }
.phase ol li { margin-bottom: 0.25rem; }

/* Quotes */
.pull {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35;
  text-align: center; max-width: 36rem; margin: 0 auto; color: var(--charcoal);
}
.pull cite { display: block; font-family: var(--font-ui); font-style: normal; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 1rem; }

/* Poem */
.poem {
  font-family: var(--font-book); font-style: italic; font-size: 1.25rem; line-height: 1.55;
  margin: 2rem auto; max-width: 30rem; white-space: pre-line;
}
.poem .stanza { margin-bottom: 1.3em; }
.poem .stanza:last-child { margin-bottom: 0; }

.journey-map h2 { font-size: 1.35rem; margin-top: 2rem; }
.journey-map p em:first-child { font-style: normal; font-weight: 500; font-family: var(--font-display); display: block; margin-bottom: 0.1em; }
.book-text h2 { font-size: 1.5rem; margin-top: 2rem; }

/* ---------- Forms ---------- */

form { font-family: var(--font-ui); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.35rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.75rem 0.9rem; border-radius: 10px;
  border: 1.5px solid var(--rule); background: white; color: var(--charcoal);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-deep); }
.field .hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.3rem; }
.field input[type="file"] { padding: 0.55rem; background: var(--paper); }
.form-note { font-family: var(--font-ui); font-size: 0.9rem; color: var(--ink-soft); }
.alert { font-family: var(--font-ui); font-size: 0.95rem; border-radius: 10px; padding: 0.9rem 1.1rem; margin: 1rem 0; border: 1px solid; }
.alert-ok { background: #eef5f0; border-color: var(--sage); color: #2e4a3a; }
.alert-warn { background: #fdf4df; border-color: var(--gold); color: #5a4612; }
.alert-err { background: #f9e9e9; border-color: #d99; color: #6a2a2a; }
.alert[hidden] { display: none; }

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

.site-footer { background: var(--charcoal); color: var(--linen); padding: 3rem 0 2.2rem; font-family: var(--font-ui); font-size: 0.9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: var(--linen); text-decoration: none; opacity: 0.85; }
.site-footer a:hover { color: var(--gold); opacity: 1; }
.site-footer h4 { color: var(--gold); margin-bottom: 0.6rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.2rem; margin-top: 1rem; font-size: 0.8rem; opacity: 0.7; }
.site-footer .brand { color: var(--linen); font-size: 1.3rem; margin-bottom: 0.6rem; }
.site-footer .brand .brand-mark { width: 2.6rem; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Press kit ---------- */
.press-block { border-left: 3px solid var(--gold); padding: 0.2rem 0 0.2rem 1.2rem; margin: 1.4rem 0; }
.press-block p:last-child { margin-bottom: 0; }
.copy-btn { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; color: var(--ink-soft); }
.copy-btn:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.spec-list { font-family: var(--font-ui); font-size: 0.95rem; display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.2rem; margin: 1rem 0; }
.spec-list dt { font-weight: 600; color: var(--ink); }
.spec-list dd { margin: 0; }

/* ---------- Resources ---------- */
.works { list-style: none; padding: 0; margin: 1rem 0 0; }
.works li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.works li:last-child { border-bottom: 0; }
.work-title { display: block; font-size: 1.2rem; }
.work-author { display: block; font-family: var(--font-ui); font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.15rem; }
.works p { margin: 0.4rem 0 0; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 2rem; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }
.divider { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem auto; max-width: 8rem; }
.ornament { text-align: center; color: var(--gold-deep); margin: 2rem 0; letter-spacing: 0.6em; }

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

@media print {
  .site-header, .site-footer, .nav-toggle, .btn, .no-print { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
}

/* Notify-me form (home page hero and sample page) */
.notify-form { margin: 1.4rem 0 0; max-width: 32rem; position: relative; }
.notify-form.center { margin: 1.4rem auto 0; text-align: center; }
.notify-lead { font-family: var(--font-display); font-size: 1.2rem; color: var(--charcoal); margin-bottom: 0.7rem; }
.notify-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.notify-row[hidden] { display: none; }
.notify-form.center .notify-row { justify-content: center; }
.notify-row input[type=email] { flex: 1 1 14rem; font: inherit; font-size: 1rem; padding: 0.75rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--rule); background: white; color: var(--charcoal); }
.notify-row input[type=email]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-deep); }
.notify-note { color: var(--ink-soft); margin: 0.6rem 0 0; }
.notify-note.is-error { color: #6a2a2a; }

/* Companions and crisis block on the resources page */
.works.companions .work-title a { font-style: normal; }
.crisis { margin-top: 2rem; padding: 1.3rem 1.5rem; background: var(--linen); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.crisis h3 { margin: 0 0 0.4rem; }
.crisis p { margin-bottom: 0.9rem; }
.crisis .btn-row { gap: 0.6rem; }

/* Course sales page */
.join-price { font-family: var(--font-display); font-size: 2rem; color: var(--charcoal); margin: 0.6rem 0 1rem; }
.join-price-note { font-family: var(--font-ui); font-size: 0.9rem; color: var(--ink-soft); margin-left: 0.4rem; }
.join-form { max-width: 28rem; }
.hint.is-error { color: #6a2a2a; }
[data-when-open][hidden] { display: none !important; }
