/* Arlene McCoy — TikTok-inspired girly aesthetic
   Dark canvas, pink + cyan accents, soft rounded type
   ------------------------------------------------------------------ */

:root {
  --bg:           #0a0a0f;
  --bg-soft:      #12121a;
  --bg-card:      #1a1a24;
  --bg-elevated:  #22222e;
  --ink:          #faf8ff;
  --ink-soft:     #b8b4c8;
  --pink:         #FE2C55;
  --pink-soft:    rgba(254, 44, 85, 0.15);
  --cyan:         #25F4EE;
  --cyan-soft:    rgba(37, 244, 238, 0.12);
  --highlight:    rgba(254, 44, 85, 0.25);
  --rule:         rgba(255, 255, 255, 0.08);
  --glow:         0 0 24px rgba(254, 44, 85, 0.35);
  --gradient:     linear-gradient(135deg, var(--cyan) 0%, var(--pink) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(37,244,238,.18) 0%, rgba(254,44,85,.18) 100%);

  --display: "Pacifico", cursive;
  --serif:   "Playfair Display", Georgia, serif;
  --sans:    "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 680px;
  --rail: 196px;
  --gap: 56px;
  --shell: 1080px;
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(254, 44, 85, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(37, 244, 238, 0.08), transparent);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
a:hover { color: var(--pink); text-shadow: 0 0 12px rgba(254, 44, 85, 0.4); }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

/* ---------- shell + rail grid ---------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.band {
  border-top: 1px solid var(--rule);
}
.band:first-of-type { border-top: 0; }

.band > .shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gap);
  padding-top: 56px;
  padding-bottom: 56px;
}

.main {
  min-width: 0;
  width: 100%;
}

.rail {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  position: sticky;
  top: 88px;
  align-self: start;
}

.rail h2, .rail h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 8px;
  line-height: 1.4;
}

.rail p { margin: 0 0 10px; font-size: 13px; }
.rail .note {
  border-left: 2px solid var(--pink);
  padding-left: 12px;
  font-style: italic;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.main > *:first-child { margin-top: 0; }
.main > *:last-child { margin-bottom: 0; }

/* ---------- masthead + mobile nav ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--rule);
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.masthead .shell {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  white-space: nowrap;
  filter: drop-shadow(0 0 8px rgba(254, 44, 85, 0.3));
}
.wordmark:hover {
  text-decoration: none;
  filter: drop-shadow(0 0 14px rgba(37, 244, 238, 0.5));
}

.nav-toggle { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--rule);
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.masthead nav {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}
.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.masthead nav a:hover {
  color: var(--ink);
  background: var(--pink-soft);
  text-shadow: none;
}
.masthead nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--gradient-soft);
  box-shadow: inset 0 0 0 1px rgba(254, 44, 85, 0.35);
}

/* ---------- type ---------- */

h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  background: linear-gradient(135deg, var(--ink) 30%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}

h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}

p { margin: 0 0 18px; color: var(--ink); }

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
}

.byline {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  margin: 0 0 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- hero ---------- */

.hero .shell { padding-top: 48px; padding-bottom: 56px; }
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 2px solid var(--pink);
  box-shadow: 0 0 24px rgba(254, 44, 85, 0.35), 0 0 48px rgba(37, 244, 238, 0.12);
}

.credit-list {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--rule);
}
.credit-list dt {
  color: var(--pink);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 12px;
}
.credit-list dt:first-child { margin-top: 0; }
.credit-list dd { margin: 0; color: var(--ink-soft); font-weight: 500; }

/* ---------- buttons ---------- */

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 24px;
  border: none;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--bg);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(254, 44, 85, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 244, 238, 0.4);
  color: var(--bg);
  text-shadow: none;
}

.btn.ghost {
  background: transparent;
  color: var(--pink);
  border: 2px solid var(--pink);
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--pink-soft);
  color: var(--pink);
  transform: translateY(-2px);
}

.more {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--cyan);
}
.more::after { content: "→"; }

/* ---------- credential strip ---------- */

.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.creds div {
  background: var(--bg-card);
  padding: 18px 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.creds div:hover {
  border-color: rgba(254, 44, 85, 0.35);
  box-shadow: var(--glow);
}
.creds dt {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 4px;
  color: var(--ink);
}
.creds dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- topic + guide entries ---------- */

.entries { margin: 0; padding: 0; list-style: none; }
.entries > li {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  transition: padding-left 0.2s ease;
}
.entries > li:first-child { border-top: 0; padding-top: 0; }
.entries > li:hover { padding-left: 6px; }
.entries h3 { margin-bottom: 6px; }
.entries h3 a { color: var(--ink); text-decoration: none; }
.entries h3 a:hover { color: var(--pink); text-shadow: none; }
.entries p { margin: 0 0 8px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.entries .meta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  letter-spacing: 0.03em;
}

/* ---------- numbered method ---------- */

.method { margin: 0; padding: 0; counter-reset: step; list-style: none; }
.method li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.method li:first-child { border-top: 0; padding-top: 0; }
.method li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  font-family: var(--display);
  font-size: 28px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  padding-top: 2px;
}
.method li h3 {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 4px;
}
.method li p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- back-of-book index ---------- */

.book-index { margin: 0; padding: 0; list-style: none; }
.book-index li { padding: 9px 0; }
.book-index .row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 17px;
}
.book-index .row a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.book-index .row a:hover { color: var(--pink); text-shadow: none; }
.book-index .leader {
  flex: 1;
  border-bottom: 1.5px dotted rgba(254, 44, 85, 0.35);
  transform: translateY(-5px);
  min-width: 20px;
}
.book-index .row span.sub {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  text-align: right;
  white-space: nowrap;
}
.book-index .sub-mobile { display: none; }

/* ---------- Q&A ---------- */

.qa { border-top: 1px solid var(--rule); }
.qa details {
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
}
.qa summary {
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.qa details[open] summary::after { content: "\2013"; }
.qa .answer { padding: 0 0 18px; }
.qa .answer p { margin: 0 0 12px; font-size: 16px; color: var(--ink-soft); }
.qa .answer p:last-child { margin-bottom: 0; }

/* ---------- misc blocks ---------- */

.plain-list { margin: 0 0 20px; padding-left: 22px; }
.plain-list li { margin-bottom: 8px; color: var(--ink-soft); }

.record { margin: 0 0 28px; }
.record h3 { margin-bottom: 2px; }
.record .where {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  margin: 0 0 8px;
}

.callout {
  border: 1px solid rgba(254, 44, 85, 0.25);
  background: var(--gradient-soft);
  padding: 24px 26px;
  border-radius: var(--radius);
}
.callout > *:last-child { margin-bottom: 0; }
.callout h2 { font-size: 22px; }

.policy-links {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.signup { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.signup input[type="email"] {
  flex: 1;
  min-width: 220px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink);
}
.signup input[type="email"]::placeholder { color: var(--ink-soft); }

.elsewhere { margin: 0; padding: 0; list-style: none; }
.elsewhere li {
  padding: 16px 18px;
  border-top: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  margin-bottom: 8px;
}
.elsewhere li:first-child { border-top: 0; padding-top: 16px; }
.elsewhere .src {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--pink);
  margin: 0 0 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.elsewhere p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- article body ---------- */

.article-body h2 { margin-top: 40px; }
.article-body h3 { margin-top: 28px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; color: var(--ink-soft); }
.article-body blockquote {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-card);
  font-style: italic;
  color: var(--ink-soft);
}
.article-body .example {
  border: 1px solid var(--rule);
  padding: 18px 20px;
  margin: 0 0 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}
.article-body .example p:last-child { margin-bottom: 0; }
.article-body .example .label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
mark {
  background: var(--highlight);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
  margin-top: 0;
}
.site-foot .shell { padding-top: 48px; padding-bottom: 48px; }
.foot-name {
  font-family: var(--display);
  font-size: 28px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 4px;
}
.foot-role {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 36px;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
  font-family: var(--sans);
  font-size: 14px;
}
.foot-cols h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: 8px; }
.foot-cols a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.foot-cols a:hover { color: var(--cyan); text-shadow: none; }
.foot-legal {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  line-height: 1.6;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--pink); color: var(--bg);
  padding: 10px 16px; font-family: var(--sans); font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip:focus { left: 12px; top: 12px; z-index: 200; }

/* ---------- breadcrumbs ---------- */

.breadcrumbs {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 28px;
  color: var(--ink-soft);
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  align-items: center;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}
.breadcrumbs li + li::before {
  content: "›";
  margin: 0 10px;
  color: var(--pink);
  font-weight: 700;
}
.breadcrumbs a {
  color: var(--cyan);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--pink);
  text-shadow: none;
}
.breadcrumbs li[aria-current="page"] {
  color: var(--ink);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  body { font-size: 16px; }

  .nav-burger { display: flex; }

  .masthead nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 20px;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
  .masthead nav a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .nav-toggle:checked ~ nav { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .masthead .shell { position: relative; flex-wrap: nowrap; }

  .band > .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero .shell { padding-top: 32px; padding-bottom: 40px; }
  .rail { position: static; }
  .rail h2, .rail h3 { font-size: 11px; }
  .portrait { max-width: 220px; margin: 0 auto 16px; }
  .credit-list { max-width: 320px; }
  .hero .rail { text-align: center; }
  .hero .rail .credit-list { margin: 0 auto; }
  h2 { font-size: 24px; }
  .book-index .row span.sub { display: none; }
  .book-index .sub-mobile {
    display: block;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--cyan);
    margin-top: 2px;
  }
  .actions { flex-direction: column; }
  .actions .btn { text-align: center; width: 100%; }
  .signup { flex-direction: column; }
  .signup input[type="email"] { min-width: 0; width: 100%; }
  .signup .btn { width: 100%; text-align: center; }
}

@media (max-width: 560px) {
  .shell { padding: 0 16px; }
  .wordmark { font-size: 22px; }
  .method li { grid-template-columns: 36px 1fr; gap: 12px; }
  .method li::before { font-size: 22px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .creds { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .masthead nav { display: flex !important; }
}

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