/* Reiki Lineage — reikilineage.org / reikilineage.com */
:root {
  --ink: #2a2440;
  --ink-soft: #5b5470;
  --indigo: #2e2456;
  --indigo-2: #4a3a7a;
  --gold: #b9852f;
  --flame: #d9622b;
  --cream: #fbf7ef;
  --sand: #f3ead9;
  --card: #ffffff;
  --line: #e6dccb;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(46, 36, 86, .25);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo-2); }
a:hover { color: var(--flame); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--indigo); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
section { padding-block: clamp(64px, 9vw, 112px); }
.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: .8em; display: block;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.center { text-align: center; }
.alt { background: var(--sand); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--indigo); }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: .02em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav ul a { text-decoration: none; color: var(--ink); font-size: .93rem; font-weight: 500; }
.nav ul a:hover { color: var(--flame); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--indigo); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav ul {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 14px 20px; border-top: 1px solid var(--line); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn-primary { background: var(--indigo); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--indigo-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--indigo); color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(70px, 11vw, 140px);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(229, 118, 43, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(74, 58, 122, .14), transparent 60%),
    var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--flame); }
.hero .lead { max-width: 36em; margin-bottom: 1.8em; }
/* both portraits: identical size and shape */
.hero-portraits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.hero-portraits figure { margin: 0; text-align: center; }
.hero-portraits img {
  width: 100%; max-width: 220px; aspect-ratio: 1 / 1; height: auto; margin-inline: auto;
  object-fit: cover; border-radius: 50%;
  border: 6px solid #fff; box-shadow: var(--shadow);
}
.hero-portraits figcaption { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--indigo); margin-top: 14px; line-height: 1.3; }
.hero-portraits figcaption small { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .02em; margin-top: 3px; }
.hero-portraits figcaption small:first-of-type { color: #9a3b16; margin-top: 6px; }
.hero-quals { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.hero-quals li { display: flex; align-items: center; gap: 12px; font-size: .86rem; font-weight: 600; color: var(--indigo); line-height: 1.3; }
.hero-quals img { width: 64px; height: 64px; flex: none; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-portraits { max-width: 480px; margin-inline: auto; width: 100%; }
}

/* ---------- qualifications ---------- */
.quals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 44px; }
.qual {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow); text-align: center;
}
.qual img { width: 132px; height: 132px; margin: 0 auto 18px; }
.qual h3 { margin-bottom: .2em; }
.qual .who { color: var(--gold); font-weight: 600; font-size: .9rem; letter-spacing: .05em; margin-bottom: 1em; }
.qual p { color: var(--ink-soft); font-size: .97rem; }
.qual ul { text-align: left; padding-left: 1.1em; color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- what is reiki ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.pillars { display: grid; gap: 16px; }
.pillar { display: flex; gap: 16px; padding: 18px 20px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.pillar .dot { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--flame); font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.pillar h4 { margin: 0 0 2px; font-size: 1rem; color: var(--indigo); }
.pillar p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- teachers ---------- */
.teachers { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 44px; }
@media (max-width: 880px) { .teachers { grid-template-columns: 1fr; } }
.teacher { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.teacher-head { display: flex; gap: 22px; align-items: center; margin-bottom: 20px; }
.teacher-head img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--sand); flex: none; }
.teacher-head h3 { margin: 0; }
.teacher-head .role { color: var(--ink-soft); font-size: .92rem; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.badges li { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--sand); color: var(--indigo); }
.badges li.fire { background: #fbe4d3; color: #9a3b16; }
.teacher p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- lineage ---------- */
.lineage { list-style: none; padding: 0; margin: 44px auto 0; max-width: 560px; position: relative; }
.lineage::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--indigo-2), var(--flame)); opacity: .5; }
.lineage li { position: relative; display: flex; gap: 20px; align-items: flex-start; padding: 12px 0; }
.lineage .node { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--indigo-2); font-family: var(--serif); font-weight: 700; color: var(--indigo); font-size: 1.1rem; position: relative; z-index: 1; }
.lineage li.you .node { background: var(--flame); border-color: var(--flame); color: #fff; }
.lineage li.gap .node { border-style: dashed; color: var(--ink-soft); }
.lineage h4 { margin: 6px 0 0; font-family: var(--serif); font-size: 1.3rem; color: var(--indigo); }
.lineage p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.note { font-size: .88rem; color: var(--ink-soft); margin-top: 26px; }

/* ---------- classes ---------- */
.notice {
  background: #fff; border-left: 4px solid var(--gold); border-radius: 8px;
  padding: 18px 22px; margin: 32px 0 0; box-shadow: var(--shadow); font-size: .97rem;
}
.notice strong { color: var(--indigo); }
.path { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; position: relative; display: flex; flex-direction: column; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 24px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--indigo); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.step.adv::before { content: "+"; background: var(--flame); }
.step .tag { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; margin: 6px 0 12px; }
.tag.req { background: #e4e0f4; color: var(--indigo); }
.tag.opt { background: #fbe4d3; color: #9a3b16; }
.step h3 { font-size: 1.35rem; }
.step dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .9rem; margin: 0 0 14px; }
.step dt { font-weight: 600; color: var(--indigo); }
.step dd { margin: 0; color: var(--ink-soft); }
.step ul { padding-left: 1.1em; margin: 0; font-size: .93rem; color: var(--ink-soft); }

.table-wrap { overflow-x: auto; margin-top: 44px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--indigo); color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td .yes { color: #2f7a4b; font-weight: 700; }

.step ul { margin-bottom: 20px; }
.step-cta { margin-top: auto; align-self: flex-start; padding: 9px 22px; font-size: .88rem; }
.includes { margin-top: 32px; }
.includes .card { text-align: center; }
.includes h3 { font-size: 1.3rem; }

/* ---------- RMA membership ---------- */
.rma {
  display: flex; align-items: center; gap: 24px; margin: 36px auto 0; max-width: 820px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 22px 28px; box-shadow: var(--shadow);
}
.rma img { width: 120px; height: auto; flex: none; }
.rma strong { color: var(--indigo); font-size: 1.05rem; }
.rma p { margin: 4px 0 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 600px) { .rma { flex-direction: column; text-align: center; } }

/* ---------- sessions ---------- */
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card svg { width: 40px; height: 40px; color: var(--flame); margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ---------- principles ---------- */
.principles {
  background: linear-gradient(160deg, var(--indigo) 0%, #3b2d6b 60%, #5a3466 100%);
  color: #efe9ff;
}
.principles h2 { color: #fff; }
.principles .eyebrow { color: #f7c35a; }
.gokai { list-style: none; padding: 0; margin: 36px auto 0; max-width: 640px; }
.gokai li { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.gokai li:last-child { border-bottom: 0; }
.principles .attrib { margin-top: 26px; font-size: .9rem; opacity: .75; }

/* ---------- contact ---------- */
.contact-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow); text-align: center; }
.contact-box .btn-row { justify-content: center; margin-top: 24px; }

/* ---------- footer ---------- */
.site-footer { background: #221b40; color: #c9c2e0; padding-block: 48px 36px; font-size: .88rem; }
.site-footer a { color: #f7c35a; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer .brand span { color: #fff; }
.tm { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .78rem; opacity: .75; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
