/* parenting.loveandmaneuver.com
   Midnight / luminous, edtech palette — near-black canvas, off-white type,
   an electric blue→teal accent system. Space Grotesk display + Inter body.
   A field guide that reads like a premium 2026 learning platform. */

:root {
  --bg: #0a0b10;
  --bg-elev: #14161f;
  --bg-elev-2: #1a1d28;
  --bg-hover: #1f2330;

  --ink: #edeff4;
  --ink-soft: #a0a6b6;
  --ink-faint: #69707f;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  /* edtech: electric blue primary, teal secondary */
  --accent: #4f83ff;
  --accent-bright: #7ba3ff;
  --accent-dim: rgba(79, 131, 255, 0.14);
  --accent-line: rgba(79, 131, 255, 0.50);
  --accent-glow: rgba(79, 131, 255, 0.42);
  --teal: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.35);
  --on-accent: #07090f;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 18px 44px -16px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px var(--accent), 0 0 28px -4px var(--accent-glow);

  --maxw: 880px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ambient luminous field */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 78% -8%, rgba(79, 131, 255, 0.18), transparent 60%),
    radial-gradient(48% 42% at 6% 10%, rgba(45, 212, 191, 0.10), transparent 55%),
    radial-gradient(72% 60% at 50% 122%, rgba(79, 131, 255, 0.12), transparent 60%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 5px; }

a { color: var(--accent-bright); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

/* ── chrome / header ── */
.chrome {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.mark { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--accent-bright); text-decoration: none; }
.heart { width: 1.2rem; height: 1.2rem; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.mark-word {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.chrome-nav { display: flex; align-items: center; gap: 1.4rem; }
.chrome-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
  transition: color 0.15s;
}
.chrome-nav a:hover { color: var(--accent-bright); }

/* ── layout ── */
main { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.15rem, 4vw, 2.5rem); }

.eyebrow {
  font-family: var(--display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-bright);
  font-weight: 600;
}

.display {
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0.7rem 0 0.7rem;
  color: var(--ink);
}
.display em {
  font-style: normal;
  background: linear-gradient(105deg, var(--accent-bright) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.55;
}

.prose { max-width: 64ch; }
.prose p { margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

.rule {
  display: block;
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 1.8rem 0;
}

/* ── hub: area cards ── */
.areas { display: grid; gap: 1rem; margin-top: 2.75rem; }
@media (min-width: 620px) { .areas { grid-template-columns: 1fr 1fr; } }

.area {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.6rem;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.area.live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(140deg, var(--accent-line), var(--teal-glow) 70%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
.area.live:hover { transform: translateY(-3px); background: var(--bg-elev-2); box-shadow: var(--shadow-md); }
.area.live:hover::after { opacity: 1; }
.area.soon { opacity: 0.5; cursor: default; }
.area-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.area-title { font-family: var(--display); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.area-badge {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
}
.area-badge.live { background: var(--accent); color: #fff; box-shadow: 0 0 16px -2px var(--accent-glow); }
.area-badge.soon { background: transparent; color: var(--ink-faint); border: 1px solid var(--line-strong); }
.area-desc { color: var(--ink-soft); font-size: 0.94rem; margin-top: 0.55rem; line-height: 1.55; }

/* ── reading guide: the pyramid ── */
.pyramid-wrap { margin: 2.75rem 0 1rem; }
.pyramid-cap { font-family: var(--display); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-faint); text-align: center; margin-bottom: 0.7rem; }
.pyramid {
  display: flex;
  flex-direction: column-reverse; /* base (step 1) at the bottom */
  align-items: center;
  gap: 6px;
}
.tier {
  --w: 100%;
  width: var(--w);
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.64rem 1.05rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.12s, box-shadow 0.2s;
}
/* widen toward the base: tier-1 widest … tier-8 narrowest */
.tier[data-step="8"] { --w: 44%; }
.tier[data-step="7"] { --w: 52%; }
.tier[data-step="6"] { --w: 60%; }
.tier[data-step="5"] { --w: 68%; }
.tier[data-step="4"] { --w: 76%; }
.tier[data-step="3"] { --w: 84%; }
.tier[data-step="2"] { --w: 92%; }
.tier[data-step="1"] { --w: 100%; }
.tier:hover { border-color: var(--accent-line); background: var(--bg-hover); transform: translateY(-1px); }
.tier.active { background: var(--accent-dim); border-color: var(--accent); box-shadow: var(--shadow-glow); }
.tier.active .tier-label { color: #fff; }
.tier.active .tier-num { background: var(--accent); color: #fff; box-shadow: 0 0 14px -2px var(--accent-glow); }
.tier.active .tier-sub { color: var(--accent-bright); }
.tier-num {
  flex: 0 0 auto;
  width: 1.65rem; height: 1.65rem;
  display: grid; place-items: center;
  background: var(--accent-dim);
  color: var(--accent-bright);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tier-label { font-family: var(--display); font-size: 0.92rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier-sub { font-size: 0.7rem; color: var(--ink-faint); margin-left: auto; white-space: nowrap; font-weight: 500; letter-spacing: 0.01em; }
@media (max-width: 560px) {
  .tier { --w: 100% !important; }
  .tier-sub { display: none; }
  .pyramid { gap: 5px; }
}

.foundation-note, .apex-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.apex-note { margin-bottom: 0.6rem; }
.foundation-note { margin-top: 0.6rem; }

/* ── reading guide: step sections ── */
.steps { margin-top: 3.25rem; display: flex; flex-direction: column; gap: 0.9rem; }
.step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-margin-top: 5.5rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.step[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.step:hover { border-color: var(--line-strong); }
.step > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.15rem 1.5rem;
  user-select: none;
}
.step > summary::-webkit-details-marker { display: none; }
.step-num {
  flex: 0 0 auto;
  width: 2.05rem; height: 2.05rem;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent-bright), var(--accent) 55%, var(--teal) 130%);
  color: #fff;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 18px -4px var(--accent-glow);
}
.step-titles { display: flex; flex-direction: column; gap: 0.12rem; }
.step-title { font-family: var(--display); font-size: 1.28rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.step-gloss { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.4; }
.step-chev { margin-left: auto; color: var(--ink-faint); transition: transform 0.22s, color 0.18s; flex: 0 0 auto; }
.step[open] .step-chev { transform: rotate(180deg); color: var(--accent-bright); }

.step-body { padding: 0 1.5rem 1.6rem; }

/* strands within a step */
.strand { padding: 1.35rem 0; border-top: 1px solid var(--line); }
.strand:first-child { border-top: none; padding-top: 0.3rem; }
.strand-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-bright);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.strand-label .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.strand p { color: var(--ink-soft); margin-bottom: 0.6rem; line-height: 1.7; }
.strand p:last-child { margin-bottom: 0; }
.strand em { color: var(--ink); font-style: italic; }

/* tradition lenses */
.lenses { display: grid; gap: 0.7rem; }
@media (min-width: 640px) { .lenses { grid-template-columns: 1fr 1fr; } }
.lens {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.9rem 1.05rem;
  transition: border-color 0.16s;
}
.lens:hover { border-color: var(--line-strong); }
.lens-name { font-family: var(--display); font-size: 0.82rem; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; margin-bottom: 0.3rem; }
.lens p { font-size: 0.87rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* sources placeholder */
.sources { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.sources li { font-size: 0.9rem; color: var(--ink-soft); display: flex; gap: 0.55rem; align-items: baseline; }
.sources li::before { content: "→"; color: var(--accent-bright); flex: 0 0 auto; }
.sources-empty {
  font-size: 0.84rem;
  color: var(--ink-faint);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 0.85rem 1.05rem;
}

/* optional notes slot */
.notes-slot {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 0.85rem 1.05rem;
  background: rgba(255, 255, 255, 0.015);
}
.notes-slot p { font-size: 0.84rem; color: var(--ink-faint); margin: 0; font-style: italic; }

/* ── callout (intro framing) ── */
.callout {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.15rem 1.35rem 1.15rem 1.5rem;
  margin: 1.8rem 0;
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-bright), var(--teal));
  box-shadow: 0 0 16px var(--accent-glow);
}
.callout p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; line-height: 1.65; }
.callout strong { color: var(--ink); font-weight: 600; }
.callout em { color: var(--accent-bright); font-style: normal; }

/* ── disclaimer / footer ── */
.disclaimer {
  margin-top: 3.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.7;
  max-width: 64ch;
}
.footer-back { margin-top: 1.6rem; }
.footer-back a { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; font-weight: 600; font-family: var(--display); text-decoration: none; }
.footer-back a:hover { color: var(--accent-bright); }

/* source links + tradition tag */
.sources a { color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-strong); transition: color 0.14s, border-color 0.14s; }
.sources a:hover { color: var(--accent-bright); border-color: var(--accent-line); }
.sources li { line-height: 1.5; }
.src-tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent-bright);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 0.08rem 0.5rem;
  margin-left: 0.4rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* closing "start here & go deeper" section */
.go-deeper { margin-top: 3.25rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.gd-title { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.7rem); font-weight: 500; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 1.4rem; }
.gd-group { margin-bottom: 1.7rem; }
.gd-group:last-child { margin-bottom: 0; }
