/* vanity123.com — static rebuild. Mobile-first, light/dark via custom properties. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5fb;
  --surface: #ffffff;
  --text: #16172b;
  --muted: #565873;
  --line: #e2e3ef;
  --brand: #3b1fd6;
  --brand-ink: #ffffff;
  --brand-soft: #ecebff;
  --accent: #ffb020;
  --accent-ink: #1a1300;
  --focus: #ff7a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 20 50 / 6%), 0 8px 24px rgb(20 20 50 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 72rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1020;
    --bg-soft: #161830;
    --surface: #1b1d38;
    --text: #ecedf7;
    --muted: #a9abc7;
    --line: #2c2f52;
    --brand: #8f80ff;
    --brand-ink: #0f1020;
    --brand-soft: #24224a;
    --accent: #ffc04d;
    --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; letter-spacing: -.01em; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.8rem); margin-top: .2em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; } h4, h5, h6 { font-size: 1.05rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px;
  padding: .6rem 1.1rem; border-radius: 999px; font-weight: 650; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem; line-height: 1.2; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.05rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: .75rem; min-height: 64px; }
.logo img { display: block; height: 44px; width: auto; }
@media (prefers-color-scheme: dark) { .logo img { background: #fff; border-radius: 8px; padding: 2px 6px; } }
.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .5rem; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); min-width: 14rem; padding: .4rem; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: .6rem .8rem; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 550; }
.menu a:hover, .menu a[aria-current] { background: var(--brand-soft); color: var(--brand); }
.btn-call { display: none; flex-direction: column; align-items: flex-start; background: var(--accent); color: var(--accent-ink);
  border-radius: 12px; padding: .35rem .9rem; }
.call-kicker { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.call-num { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .menu summary { display: none; }
  .menu nav { position: static; display: block; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .menu:not([open]) > nav { display: block; }
  .menu ul { display: flex; gap: .1rem; }
  .menu a { padding: .5rem .6rem; font-size: .95rem; }
  .btn-call { display: inline-flex; }
}

/* sticky mobile call bar */
.sticky-call { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; justify-content: center;
  padding: .8rem 1rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800;
  text-decoration: none; box-shadow: 0 6px 20px rgb(0 0 0 / 22%); }
body { padding-bottom: 76px; }
@media (min-width: 900px) { .sticky-call { display: none; } body { padding-bottom: 0; } }

/* hero */
.hero { background: radial-gradient(1200px 400px at 10% -10%, var(--brand-soft), transparent 70%), var(--bg-soft);
  border-bottom: 1px solid var(--line); padding: 2.5rem 0 2rem; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin: 0; }
.hero h1 { max-width: 22ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.trust { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-size: .95rem; }
.trust li::before { content: "✓ "; color: var(--brand); font-weight: 800; }

.cards { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.1rem 1.2rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--brand); }
.card-t { font-weight: 750; color: var(--brand); }
.card-d { color: var(--muted); font-size: .95rem; }

/* page */
.page { padding-top: 1rem; padding-bottom: 3rem; }
.crumbs ol { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .3rem; }
.crumbs a { color: var(--muted); }
.page-head .meta { color: var(--muted); margin-top: -.2rem; }
.prose { max-width: 46rem; overflow-wrap: anywhere; }
.landing .prose, .home-prose { max-width: none; }
.landing .prose > :not(.board), .home-prose > :not(.board) { max-width: 46rem; }
.prose figure { margin: 1.5rem 0; }
.prose img { border-radius: 10px; }
.prose blockquote { margin: 1.5rem 0; padding: .5rem 1rem; border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 0 10px 10px 0; }
.prose .note { color: var(--muted); font-size: .95rem; font-style: italic; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .7rem; vertical-align: top; }
.featured img { width: 100%; max-height: 420px; object-fit: cover; }
.home-prose p:has(> img:only-child) { display: inline-block; margin: .25rem; }
.home-prose p > img:only-child { height: 48px; width: auto; background: #fff; padding: 4px 8px; border: 1px solid var(--line); }

/* number board */
.board { margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .75rem; }
.board-title { margin: 0; font-weight: 750; }
.board-title .count { color: var(--muted); font-weight: 500; }
.filter input { width: 100%; min-width: 14rem; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text); font: inherit; }
.group-label { margin: .75rem 0 .4rem; font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
.numbers { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.numbers a { display: block; padding: .5rem .65rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 650; font-size: .95rem; text-decoration: none; color: var(--text); }
.numbers a:hover { border-color: var(--brand); color: var(--brand); }
.numbers li[hidden], .post-list li[hidden], .board-group[hidden] { display: none; }
.board-note { margin: .75rem 0 0; font-size: .9rem; color: var(--muted); }

/* CTA */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0;
  padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--brand); color: var(--brand-ink); }
.cta-band .btn-primary { background: var(--accent); color: var(--accent-ink); }
.cta-band .btn-ghost { border-color: currentColor; color: var(--brand-ink); }
.cta-title { margin: 0; font-weight: 800; font-size: 1.2rem; }
.cta-sub { margin: .2rem 0 0; opacity: .9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cta-band.compact { margin: .5rem 0 1.5rem; padding: .9rem 1.1rem; }
.cta-band.compact .cta-sub { display: none; }

/* lists */
.index-list h2 { margin-top: 2rem; }
.grid, .chips { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.grid a, .chips a { display: block; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--surface); }
.grid a:hover, .chips a:hover { border-color: var(--brand); }
.related { margin: 2rem 0; }
.related-h { font-weight: 800; font-size: 1.15rem; }
.post-list { list-style: none; padding: 0; margin: 1rem 0; }
.post-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
.post-list time { color: var(--muted); font-size: .9rem; white-space: nowrap; }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: .25rem 1rem; margin: .75rem 0; background: var(--surface); }
.faq summary { cursor: pointer; list-style-position: outside; }
.faq summary h2 { display: inline; font-size: 1.1rem; margin: 0; }
.faq details > p { margin: .5rem 0 1rem; }

/* forms */
.form-card { margin: 2rem 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); max-width: 40rem; }
.form-card h2 { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 1rem; }
.field label { font-weight: 650; }
.field input, .field select, .field textarea { min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; }
.form-status { min-height: 1.5em; color: var(--muted); }

/* footer */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--bg-soft); padding: 2rem 0 1rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand, .footer-h { font-weight: 800; margin: 0 0 .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.copyright { color: var(--muted); font-size: .85rem; margin-top: 1.5rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header, .sticky-call, .cta-band, .site-footer nav { display: none; } }
