@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --purple-deep:  #3A2A52;
  --purple-mid:   #5B4275;
  --purple-pale:  #EFEAF3;
  --gold-dark:    #A9793A;
  --gold:         #C89A4E;
  --gold-light:   #E7C77E;
  --cream:        #FBF8F2;
  --ink:          #2A1F35;
  --white:        #FFFFFF;

  --display: 'Cormorant Garamond', serif;
  --body: 'Jost', sans-serif;

  --radius: 18px;
  --shadow: 0 12px 30px -14px rgba(58, 42, 82, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 64px);
  border-bottom: 1px solid rgba(58,42,82,0.08);
}

.site-header .logo-link { display: flex; align-items: center; }
.site-header img.logo { height: 46px; width: auto; }

.back-link {
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-mid);
  border: 1px solid rgba(58,42,82,0.25);
  padding: 8px 18px;
  border-radius: 999px;
  transition: all .2s ease;
}
.back-link:hover {
  background: var(--purple-deep);
  color: var(--white);
  border-color: var(--purple-deep);
}

/* ---------- Hero (index page) ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: 72px 24px 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(200,154,78,0.16), transparent 65%);
  pointer-events: none;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--purple-deep);
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}

.hero p.lede {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--purple-mid);
}

.flame-divider {
  width: 64px;
  height: auto;
  margin: 28px auto 0;
  opacity: 0.85;
}

/* ---------- Table of contents grid ---------- */

.toc {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 24px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.skill-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(58,42,82,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 36px -16px rgba(58,42,82,0.45);
}

.skill-card .badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.skill-card .badge svg { width: 28px; height: 28px; stroke: var(--purple-deep); fill: none; }

.skill-card h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--purple-deep);
  margin: 0;
}

.skill-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5A5066;
  flex-grow: 1;
}

.skill-card .go {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
}

/* ---------- Skill detail pages ---------- */

.skill-hero {
  text-align: center;
  padding: 52px 24px 20px;
}

.skill-hero .badge-lg {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 22px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.skill-hero .badge-lg svg { width: 42px; height: 42px; stroke: var(--purple-deep); fill: none; }

.skill-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  color: var(--purple-deep);
  margin: 0 0 10px;
}

.skill-hero .subtitle {
  font-family: var(--body);
  color: var(--purple-mid);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.skill-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 24px 100px;
}

.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58,42,82,0.06);
  padding: clamp(24px, 4vw, 46px);
}

/* numbered / lettered step rows (5-4-3-2-1, STOP, RAIN, HALT) */
.step-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(58,42,82,0.08);
}
.step-row:last-child { border-bottom: none; }

.step-mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--white);
  background: linear-gradient(145deg, var(--purple-mid), var(--purple-deep));
}

.step-content h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--purple-deep);
  margin: 2px 0 6px;
  font-weight: 600;
}

.step-content p, .step-content ul {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4A4155;
}

.step-content ul { padding-left: 18px; margin-top: 6px; }
.step-content li { margin-bottom: 4px; }

.step-content .prompt {
  display: block;
  margin-top: 6px;
  font-style: italic;
  color: var(--gold-dark);
}

.step-content .checks {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}
.step-content .checks li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 5px;
}
.step-content .checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1.5px solid var(--gold-dark);
}

/* coping-statement / quote grid (Radical Acceptance, Power of Yet) */
.statement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.statement {
  background: var(--purple-pale);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--purple-deep);
}

.yet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px dashed rgba(58,42,82,0.18);
  font-size: 1rem;
}
.yet-row:last-child { border-bottom: none; }
.yet-row .before { color: #5A5066; }
.yet-row .arrow { color: var(--gold); flex: 0 0 auto; }
.yet-row .yet {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold-dark);
}

/* box breathing */
.box-breathe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  max-width: 340px;
  margin: 8px auto 26px;
  aspect-ratio: 1;
  gap: 6px;
}
.box-breathe .cell { }
.box-breathe .center {
  grid-column: 2; grid-row: 2;
  background: var(--purple-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--display);
  color: var(--purple-deep);
  font-size: 0.95rem;
  padding: 10px;
  font-weight: 600;
}
.box-breathe .edge {
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-deep);
  font-weight: 600;
  font-family: var(--body);
  font-size: 0.85rem;
  text-align: center;
  padding: 6px;
}

/* senses grid for 5-4-3-2-1 */
.sense-row {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(58,42,82,0.08);
}
.sense-row:last-child { border-bottom: none; }
.sense-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sense-row .icon { flex: 0 0 auto; width: 24px; height: 24px; stroke: var(--purple-deep); fill: none; }
.sense-row .label { font-family: var(--body); font-size: 1.05rem; color: var(--ink); flex-grow: 1; }

/* HALT sections */
.halt-section { margin-bottom: 34px; }
.halt-section:last-child { margin-bottom: 0; }
.halt-letter-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.halt-letter {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.1rem;
  color: var(--white);
  background: linear-gradient(145deg, var(--purple-mid), var(--purple-deep));
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.halt-section h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--purple-deep);
  margin: 0;
  font-weight: 600;
}
.halt-section .questions { margin: 0 0 12px; padding-left: 18px; color: #4A4155; font-size: 0.95rem; line-height: 1.6; }
.halt-section .support-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 8px;
}
.halt-section .checks { list-style: none; padding: 0; margin: 0; }
.halt-section .checks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 6px;
  font-size: 0.93rem;
  color: var(--ink);
}
.halt-section .checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 14px; height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--gold-dark);
}

/* hand / anxiety spot */
.hand-visual {
  display: flex;
  justify-content: center;
  margin: 10px 0 30px;
}

.site-footer {
  text-align: center;
  padding: 40px 24px 56px;
  color: var(--purple-mid);
  font-size: 0.85rem;
}
.site-footer img.logo { height: 34px; margin: 0 auto 14px; opacity: 0.9; }
.site-footer .fine { color: #8A7F94; font-size: 0.78rem; margin-top: 6px; }

@media (max-width: 560px) {
  .site-header { padding: 20px; }
  .step-row { gap: 14px; }
}
