:root {
  /* Brand colours taken from the Beauty Collective artwork */
  --brand-deep: #33171a;   /* pattern background */
  --brand: #4d2e30;        /* silhouette */
  --brand-motif: #422929;  /* pattern motif */
  --cream: #f6ebe4;

  --bg: #faf6f3;
  --surface: #ffffff;
  --surface-2: #f4ede9;
  --text: #2a1a1c;
  --muted: #7a6668;
  --border: #eadfda;
  --accent: #6e3b42;
  --accent-soft: #f5e8e8;
  --gold: #a07040;
  --ph-bg: #fbecc4;
  --ph-text: #6b4a05;
  --shadow: 0 1px 2px rgba(51, 23, 26, .05), 0 6px 20px rgba(51, 23, 26, .05);
  --radius: 16px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --p-relocator: #9b4d5a;
  --p-switcher: #9a6a35;
  --p-graduate: #4f7656;
  --p-apprentice: #4a6690;
  --p-host: #6e3b42;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #150b0d;
    --surface: #20141a;
    --surface-2: #2a1c21;
    --text: #f3e8e6;
    --muted: #b9a4a4;
    --border: #3b2a2e;
    --accent: #e2aeb2;
    --accent-soft: #3a2328;
    --gold: #d6ab7a;
    --ph-bg: #4a3a12;
    --ph-text: #f5d98e;
    --shadow: none;
    --p-relocator: #e39ba7;
    --p-switcher: #e0b47c;
    --p-graduate: #96c79f;
    --p-apprentice: #a3bce6;
    --p-host: #dca7ae;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #150b0d; --surface: #20141a; --surface-2: #2a1c21; --text: #f3e8e6; --muted: #b9a4a4;
  --border: #3b2a2e; --accent: #e2aeb2; --accent-soft: #3a2328; --gold: #d6ab7a; --ph-bg: #4a3a12;
  --ph-text: #f5d98e; --shadow: none; --p-relocator: #e39ba7; --p-switcher: #e0b47c;
  --p-graduate: #96c79f; --p-apprentice: #a3bce6; --p-host: #dca7ae; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.15rem; }
li + li { margin-top: 4px; }
a { color: var(--accent); }

/* Placeholders that still need real information */
mark.ph { background: var(--ph-bg); color: var(--ph-text); border-radius: 4px; padding: 0 3px; font-weight: 500; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--text); text-decoration: none; }
.wordmark {
  display: block; flex: none; height: 34px; aspect-ratio: 371.6 / 62.7;
  background: currentColor;
  -webkit-mask: url(/brand/logo.svg) no-repeat center / contain;
  mask: url(/brand/logo.svg) no-repeat center / contain;
}
.brand-sub { color: var(--muted); font-size: .82rem; padding-left: 14px; border-left: 1px solid var(--border); white-space: nowrap; }
.meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; }

/* Layout */
.layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 36px; max-width: 1300px; margin: 0 auto; padding: 28px; }
.sidebar { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.sidebar a { padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .92rem; }
.sidebar a:hover { color: var(--text); background: var(--surface-2); }
.sidebar a.active { color: var(--accent); background: var(--accent-soft); }

main { display: flex; flex-direction: column; gap: 64px; min-width: 0; }
.loading, .error { color: var(--muted); }
section { display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-direction: column; gap: 6px; }
.eyebrow { color: var(--gold); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.lede { color: var(--muted); max-width: 72ch; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }

/* Cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.label { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.num { font: 600 1rem var(--font-display); color: var(--gold); }

/* Brand panels: deep burgundy with the swirl pattern */
.brand-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--brand-deep); color: var(--cream);
  border-radius: calc(var(--radius) + 4px);
}
.brand-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url(/brand/pattern-motif.svg) 0 0 / 420px auto;
  opacity: .09;
}
.brand-panel .eyebrow { color: #d9b48a; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 40px 44px 0; min-height: 320px; }
.hero-text { display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; }
.hero .wordmark { height: auto; width: min(460px, 100%); background: var(--cream); }
.hero h1 { font-size: 1.5rem; font-weight: 500; color: #e8cfc4; }
.hero p { max-width: 64ch; color: #ead9d2; font-size: 1.02rem; }
.hero-figure { align-self: end; height: 300px; width: auto; display: block; filter: brightness(1.9) saturate(.8); opacity: .9; }

.callout { border-left: 3px solid var(--gold); padding: 14px 18px; background: var(--surface-2); border-radius: 0 12px 12px 0; }
.callout strong { color: var(--accent); }

.location h3 { font-size: 1.25rem; }
.location .addr { color: var(--muted); font-size: .9rem; }
.location .tagline { font-size: .82rem; color: var(--gold); font-weight: 600; }

.checklist { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.checklist li { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.checklist li::before { content: ""; flex: none; width: 15px; height: 15px; margin-top: 3px; border: 1.5px solid var(--gold); border-radius: 4px; }

/* Personas */
.chip {
  --p: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  color: var(--p); background: color-mix(in srgb, var(--p) 13%, var(--surface));
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
[data-p="relocator"] { --p: var(--p-relocator); }
[data-p="switcher"] { --p: var(--p-switcher); }
[data-p="graduate"] { --p: var(--p-graduate); }
[data-p="apprentice"] { --p: var(--p-apprentice); }
[data-p="host"] { --p: var(--p-host); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.persona { padding: 0; overflow: hidden; gap: 0; }
.persona-head { --p: var(--accent); padding: 22px 24px 18px; border-top: 5px solid var(--p); display: flex; flex-direction: column; gap: 6px; }
.persona-head .who { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--p); }
.persona-head h3 { font-size: 1.6rem; }
.persona-head .tag { color: var(--muted); font-style: italic; }
.persona-body { padding: 0 24px 22px; display: flex; flex-direction: column; gap: 16px; }
.quote {
  font: 600 1.3rem/1.35 var(--font-display); color: var(--accent);
  padding: 14px 18px; background: var(--accent-soft); border-radius: 12px;
}
.persona-lists { display: grid; gap: 16px 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.persona-lists ul { font-size: .9rem; }
.persona-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.persona-foot .cta { font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: 600 .84rem var(--font-body); padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); color: var(--surface); }
.btn.copied { border-color: var(--p-graduate); color: var(--p-graduate); }

/* Messaging */
.promise { padding: 40px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.promise .big { font: 600 clamp(1.8rem, 4vw, 2.8rem)/1.1 var(--font-display); color: var(--cream); }
.word-list { display: flex; flex-wrap: wrap; gap: 6px; }
.word { padding: 4px 10px; border-radius: 8px; font-size: .84rem; background: var(--surface-2); }
.word.no { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); color: var(--muted); }

/* Events */
.event-hero { padding: 36px 40px; display: grid; gap: 14px; }
.event-hero h3 { font-size: 1.8rem; color: var(--cream); }
.event-hero p { max-width: 75ch; color: #ead9d2; }
.event-type h4 { font-size: 1.15rem; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--surface); font: 600 .9rem var(--font-display); }
.script { font: 500 1.12rem/1.6 var(--font-display); white-space: pre-wrap; }

/* Content library */
.filters { display: flex; flex-direction: column; gap: 10px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter-row .label { width: 64px; }
.fbtn {
  cursor: pointer; font: 500 .84rem var(--font-body); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.fbtn:hover { color: var(--text); }
.fbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.fbtn .n { opacity: .7; margin-left: 4px; font-size: .78rem; }
.lib-count { color: var(--muted); font-size: .86rem; }

.item { padding: 0; gap: 0; }
.item > summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
}
.item > summary::-webkit-details-marker { display: none; }
.item > summary::after { content: "+"; font: 400 1.4rem/1 var(--font-body); color: var(--muted); transition: transform .2s; }
.item[open] > summary::after { transform: rotate(45deg); }
.item-title { font-weight: 600; }
.item-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.type-badge {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.05rem;
}
.item-body { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--border); }
.item-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: .86rem; padding-top: 14px; }
.item-meta dt { color: var(--muted); font-weight: 500; }
.item-meta dd { margin: 0; }
.copy-block {
  background: var(--surface-2); border-radius: 12px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px; font-size: .93rem;
}
.copy-block h4 { margin-top: 6px; }
.copy-block h4:first-child { margin-top: 0; }
.copy-block.sms, .copy-block.plain { display: block; white-space: pre-wrap; }
.copy-block.sms { max-width: 380px; border-radius: 18px 18px 18px 4px; }
.item-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Roadmap */
.phases { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.phase .when { font-size: .8rem; color: var(--muted); }
.phase ul { font-size: .9rem; }

/* KPIs */
.kpi-label { color: var(--muted); font-size: .85rem; font-weight: 500; }
.kpi-value { font: 600 1.7rem var(--font-display); color: var(--accent); }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.done { color: var(--p-graduate); background: color-mix(in srgb, var(--p-graduate) 13%, var(--surface)); }
.pill.progress { color: var(--p-switcher); background: color-mix(in srgb, var(--p-switcher) 13%, var(--surface)); }
.pill.draft { color: var(--accent); background: var(--accent-soft); }

/* Actions table */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
th { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--brand-deep); color: var(--cream); padding: 10px 18px; border-radius: 999px; font-size: .88rem;
  transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Mobile */
@media (max-width: 860px) {
  html { scroll-padding-top: 128px; }
  .topbar { padding: 12px 16px; }
  .wordmark { height: 26px; }
  .brand-sub, .meta .updated { display: none; }
  .layout { grid-template-columns: 1fr; gap: 20px; padding: 0 16px 40px; }
  .sidebar {
    position: sticky; top: 59px; z-index: 15; flex-direction: row; overflow-x: auto;
    margin: 0 -16px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--border); scrollbar-width: none;
  }
  .sidebar a { white-space: nowrap; }
  main { gap: 48px; }
  h2 { font-size: 1.75rem; }
  .hero { grid-template-columns: 1fr; padding: 28px 22px 0; }
  .hero-text { padding-bottom: 0; }
  .hero-figure { height: 180px; justify-self: end; margin-top: -20px; }
  .event-hero, .promise { padding: 26px 22px; }
  .filter-row .label { width: 100%; }
  .item > summary { padding: 14px 16px; gap: 12px; }
  .item-body { padding: 4px 16px 16px; }
  .type-badge { width: 34px; height: 34px; }
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  td { border: 0; padding: 2px 0; }
  td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
}
