/* Bexby: daylight on a quiet street. Cream paper, terracotta, sage; Fraunces for headings. Laid over the engine's
   tokens, then Bexby's own pages (bx-*). */
:root {
  --bg: #fbf4ec;
  --bg-2: #f4e9dc;
  --card: #fffaf4;
  --card-2: #f6ece0;
  --ink: #2f2420;
  --ink-2: #6d5a51;
  --ink-3: #9a877c;
  --line: #eadccd;
  --line-2: #dccab7;
  --brand: #c8573f;
  --brand-2: #e08a5f;
  --grad: linear-gradient(135deg, #e08a5f 0%, #c8573f 60%, #b5485e 100%);
  --grad-soft: linear-gradient(135deg, rgba(224, 138, 95, .14) 0%, rgba(200, 87, 63, .12) 100%);
  --violet: #8f7bb8;
  --violet-soft: rgba(143, 123, 184, .16);
  --blue: #4f86b0;
  --green: #4f9a6e;
  --gold: #c8962a;
  --danger: #c4453f;
  --ok-bg: rgba(79, 154, 110, .14);
  --ok-ink: #2f7a50;
  --err-bg: rgba(196, 69, 63, .12);
  --err-ink: #a8352f;
  --glass: rgba(251, 244, 236, .88);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --sh-1: 0 1px 2px rgba(80, 50, 30, .08);
  --sh-2: 0 10px 26px rgba(80, 50, 30, .10), 0 2px 6px rgba(80, 50, 30, .06);
  --sh-3: 0 28px 60px rgba(80, 50, 30, .16), 0 8px 18px rgba(80, 50, 30, .08);
  --sh-brand: 0 10px 26px rgba(200, 87, 63, .28);
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  color-scheme: light;
}
h1, h2, h3, .logo-word { font-family: var(--serif); letter-spacing: -.01em; font-weight: 700; }
.btn-primary { color: #fffaf4; }
.logo-mark { border-radius: 50%; }

/* ---- the front page ---- */
.bx-front { max-width: 1060px; margin: 0 auto; padding: 22px 16px 40px; }
.bx-hero { text-align: center; padding: 26px 0 8px; }
.bx-kicker { display: inline-block; font-weight: 800; font-size: 13px; color: var(--brand); background: var(--grad-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.bx-hero h1 { font-size: clamp(30px, 5vw, 52px); max-width: 15ch; margin: 0 auto; line-height: 1.06; }
.bx-sub { max-width: 58ch; margin: 16px auto 0; color: var(--ink-2); font-size: 17px; }
.bx-hero-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 26px; }
.bx-street { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; text-align: left; }
.bx-street a { display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; align-items: center; padding: 14px; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s; }
.bx-street a:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.bx-street img { width: 56px; height: 56px; border-radius: 50%; grid-row: span 2; }
.bx-who { display: flex; flex-direction: column; min-width: 0; }
.bx-who span { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-street q { grid-column: 2; color: var(--ink-2); font-size: 14px; font-style: italic; quotes: "\201C" "\201D"; }
.bx-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 34px 0 10px; }
.bx-facts div { background: var(--bg-2); border-radius: var(--r); padding: 16px; text-align: center; }
.bx-facts dt { font-family: var(--serif); font-size: 30px; color: var(--brand); font-weight: 700; }
.bx-facts dd { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.bx-sec { margin-top: 46px; }
.bx-sec h2, .bx-cta h2, .bx-links h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.bx-intro, .bx-sec > p { color: var(--ink-2); max-width: 70ch; font-size: 16px; }
.bx-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
.bx-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.bx-card h3 { font-size: 19px; margin-bottom: 6px; }
.bx-card p { color: var(--ink-2); }
.bx-compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bx-compare th, .bx-compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.bx-compare tr:last-child th, .bx-compare tr:last-child td { border-bottom: 0; }
.bx-compare thead th { background: var(--bg-2); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.bx-compare td:last-child { color: var(--ink); font-weight: 700; }
.bx-compare td { color: var(--ink-2); }
.bx-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bx-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-2); }
.bx-steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fffaf4; display: grid; place-items: center; font-weight: 800; font-family: var(--serif); }
.bx-steps b { color: var(--ink); }
.bx-faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 8px; }
.bx-faq summary { font-weight: 800; cursor: pointer; }
.bx-faq details p { margin-top: 8px; color: var(--ink-2); }
.bx-cta { margin-top: 46px; text-align: center; padding: 34px 18px; border-radius: var(--r-lg); background: var(--grad); color: #fffaf4; }
.bx-cta p { margin: 0 auto 18px; max-width: 46ch; opacity: .95; }
.bx-cta .btn-primary { background: #fffaf4; color: var(--brand); box-shadow: none; }
.bx-links { margin-top: 40px; }
.bx-links ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 16px; }
.bx-links a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.bx-foot { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink-3); font-size: 13px; }
.bx-foot span { flex: 1 1 100%; }
.bx-foot a { color: var(--ink-2); }

/* ---- documents: about, help, rules, terms, privacy, news ---- */
.bx-doc { max-width: 720px; margin: 0 auto; padding: 26px 16px 50px; }
.bx-doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.bx-doc h2 { font-size: 21px; margin: 26px 0 8px; }
.bx-doc p, .bx-doc li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.bx-doc p + p { margin-top: 10px; }
.bx-doc a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.bx-doc ul, .bx-doc ol { padding-left: 22px; }
.bx-doc-lead { font-size: 18px !important; color: var(--ink) !important; }
.bx-doc-date { color: var(--ink-3) !important; font-size: 14px !important; }
.bx-rules li { margin-bottom: 8px; }
.bx-news { border-left: 3px solid var(--brand-2); padding: 2px 0 2px 16px; margin-top: 22px; }
.bx-news time { color: var(--ink-3); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.bx-news h2 { margin-top: 4px; }

@media (max-width: 760px) {
  .bx-facts { grid-template-columns: repeat(2, 1fr); }
  .bx-cards { grid-template-columns: 1fr; }
  .bx-links ul { grid-template-columns: repeat(2, 1fr); }
  .bx-compare th, .bx-compare td { padding: 10px; font-size: 14px; }
}

/* ---- the engine's dark corners, in daylight ---- */
.thread { background-color: #f7ede2;
  background-image: radial-gradient(circle at 20% 15%, rgba(200, 87, 63, .08) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(143, 123, 184, .08) 0 2px, transparent 3px); }
.msg.her .bubble { background: var(--card); border: 1px solid var(--line); }
.thread-head { background: rgba(255, 250, 244, .92); }
/* the member's banner: her drawn avatar as a circle on warm paper, the words on the left */
.hw { background: var(--card-2); box-shadow: var(--sh-2); height: clamp(320px, 34vw, 400px); }
.hw-bg { filter: blur(60px) saturate(1.1) brightness(1.05); opacity: .45; }
.hw-portrait { width: auto; height: 74%; top: 13%; right: 6%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: var(--sh-2); }
.hw-slide::after { background: none; }
.hw-text { color: var(--ink); bottom: 70px; }
.hw-name .badge-ai { background: var(--violet-soft); color: var(--violet); }
.hw-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.hw-ghost:hover { background: var(--bg-2); }
.hw-nav .stage-arrow { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.gallery-main .photo-bars { display: none; }
.pstats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .hw-portrait { height: 46%; top: 8%; right: 50%; transform: translateX(50%); }
  .hw-text { bottom: 60px; left: 20px; right: 20px; width: auto; }
}
