:root {
  --ink:        #1a1209;
  --ink-soft:   #4a3f32;
  --ink-ghost:  #8a7d6e;
  --parch:      #f7f0e4;
  --parch-warm: #ede3d0;
  --coffee:     #6f4e37;
  --coffee-lt:  #a07850;
  --ember:      #c4753a;
  --cream:      #fdf8f0;
  --white:      #ffffff;
  --rule:       rgba(111,78,55,0.15);
  --nav-h:      60px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { font-family: 'Karla', sans-serif; background: var(--cream); color: var(--ink); overflow-x: hidden; line-height: 1.5; }
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
em { font-style: italic; }

/* NAV (mobile-first) */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 20px; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(253,248,240,0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
nav.scrolled, nav.open { border-color: var(--rule); }
.nav-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.1em; font-weight: 400; letter-spacing: 0.06em; color: var(--coffee); text-decoration: none; }
.nav-brand span { font-style: italic; }
.nav-toggle {
  width: 44px; height: 44px; margin-right: -10px; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--coffee); transition: transform 0.3s, opacity 0.3s; }
nav.open .nav-toggle span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
.nav-links {
  list-style: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--cream); border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; padding: 8px 20px 20px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
nav.open .nav-links { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links a { display: block; padding: 14px 0; font-size: 0.82em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--rule); transition: color 0.2s; }
.nav-links li:last-child a { border-bottom: none; }
.nav-links a:hover { color: var(--coffee); }

/* BUTTONS */
.btn { display: inline-block; padding: 14px 26px; font-family: 'Karla', sans-serif; font-size: 0.8em; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: background 0.2s, color 0.2s, transform 0.2s; cursor: pointer; border: none; text-align: center; }
.btn-fill { background: var(--coffee); color: var(--white); }
.btn-fill:hover { background: var(--ink); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--coffee); border: 1.5px solid var(--coffee); }
.btn-outline:hover { background: var(--coffee); color: var(--white); transform: translateY(-1px); }
.btn-ghost-lt { background: transparent; color: rgba(255,255,255,0.85); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost-lt:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.rule { height: 1px; background: var(--rule); margin: 0 24px; }
.eyebrow { display: block; font-size: 0.7em; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember); margin-bottom: 16px; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2em,7vw,3.2em); font-weight: 300; line-height: 1.12; color: var(--ink); margin-bottom: 20px; }
.section-title em { color: var(--coffee); }
.section-body { font-size: 1em; line-height: 1.8; color: var(--ink-soft); font-weight: 300; max-width: 560px; }

/* HERO */
.hero { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr; padding-top: var(--nav-h); overflow: hidden; }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 56px 24px 64px; }
.hero-right { display: none; background: var(--coffee); position: relative; overflow: hidden; }
.hero-right::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 600px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 0 80px rgba(255,255,255,0.03), 0 0 0 160px rgba(255,255,255,0.02), 0 0 0 240px rgba(255,255,255,0.01);
}
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(3.2em,14vw,5.5em); font-weight: 300; line-height: 1; color: var(--ink); margin-bottom: 28px; opacity: 0; animation: fadeUp 0.7s 0.2s forwards; }
.hero-title em { font-style: italic; color: var(--coffee); }
.hero-meaning { font-size: 0.82em; font-style: italic; letter-spacing: 0.02em; color: var(--ink-ghost); margin: -16px 0 28px; max-width: 460px; opacity: 0; animation: fadeUp 0.7s 0.28s forwards; }
.hero-desc { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.4em,5.5vw,1.9em); font-style: italic; font-weight: 300; line-height: 1.4; color: var(--ink-soft); max-width: 460px; margin-bottom: 40px; opacity: 0; animation: fadeUp 0.7s 0.35s forwards; }
.hero-meta { display: flex; flex-direction: column; gap: 10px; opacity: 0; animation: fadeUp 0.7s 0.5s forwards; }
.hero-tag { font-size: 0.72em; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember); line-height: 1.7; }
.hero-founder { font-size: 0.72em; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-ghost); }

/* BOOKS */
.books { background: var(--parch); }
.books-grid { display: grid; grid-template-columns: 1fr; gap: 64px; margin-top: 44px; }
.book { display: flex; flex-direction: column; gap: 28px; }
.book-cover { display: block; align-self: center; width: 180px; max-width: 100%; height: auto; object-fit: contain; border-radius: 2px; }
.book-title { font-family: 'Cormorant Garamond', serif; font-size: 2em; font-weight: 400; line-height: 1.1; color: var(--ink); margin-bottom: 10px; }
.book-tagline { font-family: 'Cormorant Garamond', serif; font-size: 1.3em; font-style: italic; color: var(--coffee); line-height: 1.4; margin-bottom: 20px; }
.book-excerpt { font-family: 'Cormorant Garamond', serif; font-size: 1.2em; font-style: italic; font-weight: 300; line-height: 1.55; color: var(--ink); padding: 4px 0 4px 20px; border-left: 2px solid var(--coffee); margin-bottom: 20px; }
.book-desc { font-size: 0.95em; line-height: 1.8; color: var(--ink-soft); font-weight: 300; }
.book-status { display: inline-block; margin-top: 20px; font-size: 0.7em; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember); }

/* WAITLIST */
.waitlist-inner { border: 1px solid var(--rule); border-radius: 4px; padding: 40px 24px; position: relative; overflow: hidden; background: var(--white); }
.waitlist-inner::after { content: ''; position: absolute; bottom: -60px; right: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(111,78,55,0.04); pointer-events: none; }
.waitlist-form { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; max-width: 520px; position: relative; z-index: 1; }
.waitlist-inner .formkit-form { margin-top: 32px; position: relative; z-index: 1; }
.check-group { border: none; display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; min-height: 44px; border: 1px solid rgba(111,78,55,0.2); border-radius: 2px; background: var(--cream); cursor: pointer; font-size: 0.92em; color: var(--ink-soft); transition: border-color 0.2s, background 0.2s; }
.check:hover { border-color: var(--coffee); }
.check input { width: 16px; height: 16px; accent-color: var(--coffee); }
.check:has(input:checked) { border-color: var(--coffee); background: var(--parch); color: var(--ink); }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* CAFÉ */
.cafe { background: var(--coffee); color: var(--white); position: relative; overflow: hidden; }
.cafe::before {
  content: ''; position: absolute; top: 0; right: -260px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 0 80px rgba(255,255,255,0.03), 0 0 0 160px rgba(255,255,255,0.02); pointer-events: none;
}
.cafe .container { position: relative; z-index: 1; }
.cafe .eyebrow { color: var(--parch-warm); opacity: 0.7; }
.cafe .section-title { color: var(--white); margin-bottom: 8px; }
.cafe .section-title em { color: var(--parch-warm); }
.cafe-sub { font-family: 'Cormorant Garamond', serif; font-size: 1.4em; font-style: italic; color: rgba(255,255,255,0.65); margin-bottom: 40px; }
.cafe-lead { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5em,5.5vw,2.2em); font-weight: 300; font-style: italic; line-height: 1.35; color: rgba(255,255,255,0.92); max-width: 640px; margin-bottom: 14px; }
.cafe-line { font-size: 1em; line-height: 1.8; color: rgba(255,255,255,0.75); font-weight: 300; max-width: 560px; }
.cafe-split { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 36px 0; }
.cafe-card { padding: 24px; border: 1px solid rgba(255,255,255,0.15); border-radius: 3px; background: rgba(255,255,255,0.04); font-size: 0.95em; line-height: 1.75; color: rgba(255,255,255,0.75); font-weight: 300; }
.cafe-card strong { display: block; font-weight: 400; font-size: 0.74em; letter-spacing: 0.18em; text-transform: uppercase; color: var(--parch-warm); margin-bottom: 8px; }
.cafe-close { margin-bottom: 28px; }

/* ABOUT */
.from-elijah { background: var(--ink); padding: 72px 0; position: relative; overflow: hidden; }
.from-elijah::before { content: '\275D'; font-family: 'Cormorant Garamond', serif; font-size: 20em; color: rgba(255,255,255,0.025); position: absolute; top: -60px; left: -20px; line-height: 1; pointer-events: none; }
.from-elijah .container { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; position: relative; }
.elijah-name { font-family: 'Cormorant Garamond', serif; font-size: 2.2em; font-weight: 300; color: var(--white); line-height: 1.1; }
.elijah-thought { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.4em,5vw,2em); font-weight: 300; color: rgba(255,255,255,0.85); line-height: 1.5; }
.elijah-thought em { color: var(--white); }

/* CONNECT */
.community { background: var(--parch); }
.connect-grid { display: grid; grid-template-columns: 1fr; gap: 48px; margin-top: 44px; }
.sub-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4em; font-weight: 400; color: var(--ink); margin-bottom: 20px; }

/* FORM */
.email-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label, .form-label { font-size: 0.7em; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.form-row input, .form-row textarea { width: 100%; padding: 13px 16px; font-family: 'Karla', sans-serif; font-size: 16px; background: var(--white); border: 1px solid rgba(111,78,55,0.2); border-radius: 2px; color: var(--ink); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--coffee); box-shadow: 0 0 0 3px rgba(111,78,55,0.07); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; margin-top: 4px; }

/* SOCIAL */
.social-cards { display: flex; flex-direction: column; gap: 10px; }
.social-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--white); border: 1px solid var(--rule); border-radius: 3px; text-decoration: none; color: var(--ink); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.social-card:hover { border-color: var(--coffee); transform: translateX(4px); box-shadow: 0 4px 16px rgba(111,78,55,0.08); }
.social-icon-wrap { width: 38px; height: 38px; background: var(--coffee); border-radius: 3px; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.95em; flex-shrink: 0; }
.social-info { flex: 1; }
.social-name { font-size: 0.88em; font-weight: 500; color: var(--ink); }
.social-handle { font-size: 0.75em; color: var(--ink-ghost); font-weight: 300; }
.social-arrow { color: var(--ink-ghost); font-size: 0.8em; transition: transform 0.2s; }
.social-card:hover .social-arrow { transform: translateX(3px); }

/* ARCHIVE */
.page-head { padding-top: calc(var(--nav-h) + 56px); }
.episodes-layout { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 44px; }
.ep-card { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 32px 26px; position: relative; overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; }
.ep-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--coffee); transform: scaleY(0); transform-origin: bottom; transition: transform 0.3s; }
.ep-card:hover { box-shadow: 0 12px 40px rgba(111,78,55,0.1); transform: translateY(-3px); }
.ep-card:hover::before { transform: scaleY(1); }
.ep-num { font-family: 'Cormorant Garamond', serif; font-size: 0.7em; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember); margin-bottom: 18px; display: block; }
.ep-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6em; font-weight: 400; line-height: 1.25; color: var(--ink); margin-bottom: 14px; }
.ep-desc { font-size: 0.92em; line-height: 1.7; color: var(--ink-soft); font-weight: 300; margin-bottom: 24px; }
.ep-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-tag { font-size: 0.65em; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; background: var(--parch); color: var(--ink-soft); border-radius: 2px; }
.yt-embed-wrap { margin-top: 44px; border-radius: 6px; overflow: hidden; box-shadow: 0 8px 40px rgba(111,78,55,0.12); border: 1px solid var(--rule); }
.yt-embed-wrap iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: none; }
.yt-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 24px; background: var(--parch); border-top: 1px solid var(--rule); }
.yt-cta p { font-size: 0.85em; color: var(--ink-soft); font-weight: 300; }

/* SIMPLE PAGE (thank-you) */
.simple-page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 60px; }

/* FOOTER */
footer { background: var(--ink); padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1em; color: rgba(255,255,255,0.35); }
.footer-brand span { font-style: italic; color: rgba(255,255,255,0.55); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 0.72em; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); text-decoration: none; padding: 8px 0; display: inline-block; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-note { font-size: 0.75em; color: rgba(255,255,255,0.2); letter-spacing: 0.06em; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-title, .hero-meaning, .hero-desc, .hero-meta { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ≥ 600px */
@media (min-width: 600px) {
  .container { padding: 0 40px; }
  .rule { margin: 0 40px; }
  nav { padding: 0 40px; }
  .hero-left { padding: 72px 40px; }
  .hero-meta { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
  .waitlist-inner { padding: 56px 48px; }
  .form-submit { width: auto; align-self: flex-start; }
  .cafe-split { grid-template-columns: 1fr 1fr; }
  .yt-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 20px 28px; }
  .episodes-layout { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ≥ 900px */
@media (min-width: 900px) {
  :root { --nav-h: 64px; }
  nav { padding: 0 48px; }
  .nav-toggle { display: none; }
  .nav-links {
    position: static; flex-direction: row; gap: 28px; padding: 0; background: none; border: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-links a { padding: 0; border: none; font-size: 0.78em; }
  .container { padding: 0 48px; }
  .rule { margin: 0 48px; }
  .section { padding: 100px 0; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-right { display: block; }
  .hero-left { padding: 80px 64px 80px 80px; }
  .books-grid { grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 56px; }
  .book-cover { width: 240px; }
  .from-elijah { padding: 100px 0; }
  .from-elijah::before { font-size: 28em; top: -80px; }
  .from-elijah .container { grid-template-columns: 1fr 2fr; gap: 80px; }
  .connect-grid { grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 52px; }
  .waitlist-inner { padding: 64px; }
  footer { flex-direction: row; justify-content: space-between; text-align: left; padding: 40px 48px; }
  .page-head { padding-top: calc(var(--nav-h) + 80px); }
}

/* Simple nav link (archive / thank-you pages) */
.nav-home { font-size: 0.78em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; padding: 12px 0; transition: color 0.2s; }
.nav-home:hover { color: var(--coffee); }
