/* ===================================================================
   EmotionalChecklist.com — site styles ("daylight")
   Palette: warm paper + ink, ember accent, sage/rose for control/no-control.
   Type:    Fraunces (display, scripture italics) + Instrument Sans (body).
   =================================================================== */

:root {
  --paper: #f5efe4;
  --paper-2: #ece3d2;
  --paper-3: #e2d7c2;
  --ink: #161b23;
  --ink-2: #2b3240;
  --muted: #5f6774;
  --line: rgba(22, 27, 35, 0.12);
  --line-2: rgba(22, 27, 35, 0.22);

  --ember: #d6852c;
  --ember-2: #b5691a;
  --ember-soft: rgba(214, 133, 44, 0.14);
  --sage: #5e8f77;
  --sage-soft: rgba(94, 143, 119, 0.14);
  --rose: #c2685a;
  --rose-soft: rgba(194, 104, 90, 0.14);
  --dusk: #1a1f2b;

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Instrument Sans', -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --shadow: 0 1px 0 rgba(22, 27, 35, 0.04), 0 12px 30px -18px rgba(22, 27, 35, 0.35);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(214, 133, 44, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(94, 143, 119, 0.12), transparent 60%);
  background-attachment: fixed;
}
/* paper grain */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.28; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 1; }

a { color: var(--ember-2); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
::selection { background: var(--ember); color: #fff; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  font-variation-settings: 'opsz' 96, 'SOFT' 30, 'WONK' 1;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.78rem; letter-spacing: 0.02em; }
em.scripture, .scripture { font-family: var(--display); font-style: italic; font-weight: 400; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ember-2);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }

/* --- nav --- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
}
.brand { font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--ember-2); font-weight: 600; }
.brand small { font-family: var(--body); font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink-2); font-weight: 500; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover { background: rgba(22, 27, 35, 0.06); text-decoration: none; }
.nav-links a.cta { background: var(--ink); color: var(--paper); }
.nav-links a.cta:hover { background: var(--ink-2); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  font-family: var(--body);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); }
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: var(--ember-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(22, 27, 35, 0.05); }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.btn svg { width: 18px; height: 18px; }

/* --- hero --- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 70px); align-items: end; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 .accent { color: var(--ember-2); font-style: italic; font-weight: 400; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 26px; font-size: 0.86rem; color: var(--muted); max-width: 52ch; }

.hero-card {
  background: var(--dusk); color: var(--paper);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px);
  position: relative; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(22, 27, 35, 0.6);
}
.hero-card::after {
  content: ''; position: absolute; inset: auto -30% -50% auto; width: 80%; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle, rgba(214, 133, 44, 0.55), transparent 65%);
  filter: blur(10px); pointer-events: none;
}
.hero-card .eyebrow { color: #eab26b; }
.hero-card h3 { color: #fff; margin: 14px 0 8px; font-size: 1.7rem; }
.hero-card p { color: rgba(245, 239, 228, 0.78); }
.hero-card .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: rgba(245, 239, 228, 0.65); margin: 14px 0 22px; }
.hero-card .btn-primary { background: var(--paper); color: var(--ink); }
.hero-card .btn-primary:hover { background: #fff; }
.hero-card .btn-ghost { color: var(--paper); border-color: rgba(245, 239, 228, 0.3); }
.hero-card .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* --- cards / grids --- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* lessons list */
.lessons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.lesson {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: start;
  padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5); color: var(--ink); text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lesson:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.lesson .num { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--ember-2); font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; }
.lesson h3 { font-size: 1.2rem; margin-bottom: 4px; }
.lesson .found { font-size: 0.86rem; color: var(--muted); }
.lesson .found b { color: var(--ink-2); font-weight: 600; }
.lesson .teaser { font-size: 0.9rem; color: var(--ink-2); margin: 8px 0 0; }
.pill {
  display: inline-block; padding: 5px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.pill-live { background: var(--sage-soft); color: var(--sage); }
.pill-soon { background: rgba(22, 27, 35, 0.06); color: var(--muted); }
.lesson.is-live { border-color: rgba(94, 143, 119, 0.4); background: rgba(255, 255, 255, 0.7); }
.lesson.is-soon { opacity: 0.85; }

/* --- lesson page header --- */
.lesson-head { padding: clamp(36px, 6vw, 70px) 0 clamp(30px, 4vw, 50px); }
.lesson-head .big-num {
  font-family: var(--display); font-size: clamp(4rem, 12vw, 9rem); line-height: 0.85; color: var(--ember);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; opacity: 0.9;
}
.lesson-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 6px 0 14px; }
.lesson-head .meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }
.lesson-head .meta b { color: var(--ink-2); }
.lesson-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.run-of-show { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px 16px; align-items: baseline; }
.run-of-show .t { font-weight: 700; color: var(--ember-2); font-variant-numeric: tabular-nums; }
.run-of-show .m { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.run-of-show > div { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.run-of-show > div:nth-last-child(-n+3) { border-bottom: 0; }

.video-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.video-list li a {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55); color: var(--ink); text-decoration: none !important;
}
.video-list li a:hover { border-color: var(--ember); }
.video-list .play {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
}
.video-list .play svg { width: 14px; height: 14px; margin-left: 2px; }
.video-list .dur { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.88rem; }
.video-list .where { display: block; font-size: 0.8rem; color: var(--muted); }

/* --- checklist (persisted) --- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist label {
  display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start;
  padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55); cursor: pointer; transition: background 0.15s;
}
.checklist label:hover { background: rgba(255, 255, 255, 0.85); }
.checklist input {
  appearance: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px;
  border: 2px solid var(--line-2); background: #fff; cursor: pointer; position: relative;
}
.checklist input:checked { background: var(--ember); border-color: var(--ember); }
.checklist input:checked::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(22, 27, 35, 0.3); }
.checklist .letter { font-family: var(--display); font-weight: 600; color: var(--ember-2); margin-right: 8px; }

.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  font: inherit; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); width: 100%;
}
.field input:focus { outline: 2px solid var(--ember); outline-offset: 1px; border-color: transparent; }

.copyables { display: grid; gap: 10px; }
.copyable {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-sm); border: 1px dashed var(--line-2);
  background: rgba(255, 255, 255, 0.5); font-size: 0.95rem;
}
.copyable button {
  font: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; color: var(--ink-2);
}
.copyable button:hover { border-color: var(--ember); color: var(--ember-2); }
.copyable button.done { background: var(--sage); color: #fff; border-color: var(--sage); }

/* --- scripture callout --- */
.callout {
  border-left: 3px solid var(--ember); padding: 6px 0 6px 22px; margin: 22px 0;
}
.callout .scripture { font-size: 1.28rem; line-height: 1.45; color: var(--ink); }
.callout .ref { display: block; margin-top: 8px; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; }

/* --- breather (box breathing) --- */
.breather-wrap-site {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.breather { display: grid; gap: 18px; justify-items: center; }
.breather-stage {
  aspect-ratio: 1; width: min(100%, 380px); margin: 0 auto; position: relative;
  display: grid; place-items: center;
}
.breather-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line-2);
}
.breather-ring.r2 { inset: 12%; border-style: dashed; opacity: 0.6; }
.breather-orb {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3b76a, var(--ember) 55%, var(--ember-2));
  box-shadow: 0 30px 60px -20px rgba(214, 133, 44, 0.7), inset 0 -10px 30px rgba(0, 0, 0, 0.15);
  transform: scale(0.72);
  transition: transform 4s cubic-bezier(0.45, 0, 0.35, 1);
}
.breather.is-in .breather-orb { transform: scale(1.35); }
.breather.is-hold-in .breather-orb { transform: scale(1.35); }
.breather.is-out .breather-orb { transform: scale(0.72); }
.breather.is-hold-out .breather-orb { transform: scale(0.72); }
.breather-label {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  pointer-events: none; color: var(--ink);
}
.breather-label .phase { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; }
.breather-label .count { font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.breather-copy h3 { margin-bottom: 10px; }
.breather-steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; counter-reset: s; }
.breather-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.breather-steps li::before {
  counter-increment: s; content: counter(s);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 0.85rem;
}
.breather-steps b { display: block; }
.breather-controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.breather-controls .round { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.breather-controls button {
  font: inherit; font-weight: 600; font-size: 0.92rem; padding: 12px 20px; border-radius: 999px;
  border: 1px solid transparent; background: var(--ink); color: var(--paper); cursor: pointer;
}
.breather-controls button:hover { background: var(--ink-2); }

/* --- help strip --- */
.help {
  background: var(--dusk); color: rgba(245, 239, 228, 0.85);
  border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px);
}
.help h2 { color: #fff; }
.help a { color: #eab26b; }
.help .grid-3 > div { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.help .big { font-family: var(--display); font-size: 2.2rem; color: #fff; line-height: 1; }

/* --- footer --- */
footer { padding: 40px 0 60px; color: var(--muted); font-size: 0.88rem; }
footer .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--ink-2); }
footer .sisters a { margin-right: 14px; }

/* --- do / don't table (facilitators) --- */
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dodont ul { margin: 8px 0 0; padding-left: 18px; }
.dodont li { margin: 4px 0; }
.dodont .do h3 { color: var(--sage); }
.dodont .dont h3 { color: var(--rose); }

/* --- pager --- */
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }
.pager a { flex: 1; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; background: rgba(255,255,255,.5); }
.pager a:hover { border-color: var(--line-2); }
.pager a span { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pager a.next { text-align: right; }

/* --- reveal on load --- */
[data-rise] { opacity: 0; transform: translateY(14px); animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { [data-rise] { animation: none; opacity: 1; transform: none; } .breather-orb { transition: none; } }

/* --- responsive --- */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .dodont, .breather-wrap-site { grid-template-columns: 1fr; }
  .lessons { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lesson { grid-template-columns: 48px 1fr; }
  .lesson .pill { grid-column: 2; justify-self: start; }
  .run-of-show { grid-template-columns: 70px 1fr; }
  .run-of-show .m { grid-column: 2; padding-top: 0; }
}
