/* Dark mode lives here because this file is the brand layer and loads
   last. The ten colours below carry nearly all of it; everything else in
   the stylesheets is a one-off that reads acceptably against either
   ground. A viewer has three states, not two — an explicit choice stamps
   data-theme, and the default "system" stamps nothing, so each token is
   redefined in all three places. */
:root {
  color-scheme: light dark;
  --paper-card: #fffdf8;
  --paper-sunken: #f5f1e8;
  --ink: #25231f;
  --ink-muted: #6f6a60;
  --line: #d8d0c2;
  --sage: #e8eee3;
  --sage-deep: #d9dfd3;
  --forest: #275c45;
  --forest-deep: #1f4b38;
  --clay: #c16a4f;
  --banner-surface: #ebe5d9;
  --banner-ink: #443b32;
  --shortcut-surface: #eef5ef;
  --shortcut-line: #c4d5c9;
  --brand-kicker: #586552;
  --brand-soft: #354630;
  --brand-muted: #656f5e;
  --brand-line: #d9dccf;
  --brand-input-line: #cbcfc2;
  --brand-surface: #e9edde;
  --brand-surface-strong: #dfe9df;
  --chat-blue: #007aff;
  --chat-blue-surface: #e9ebef;
  --chat-blue-avatar: #e5efff;
  --chat-muted: #6d6d72;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper-card: #1b1f1c;
    --paper-sunken: #141715;
    --ink: #edefe8;
    --ink-muted: #a3a79b;
    --line: #333833;
    --sage: #242b26;
    --sage-deep: #2c332d;
    /* Forest has to lift off a dark ground or a filled button turns into
       a hole in the page. */
    --forest: #4e9a76;
    --forest-deep: #62b089;
    --clay: #d98a71;
    --banner-surface: #2b312d;
    --banner-ink: #eef3ea;
    --shortcut-surface: #1e2a22;
    --shortcut-line: #45604d;
    --brand-kicker: #b4c5b5;
    --brand-soft: #d8e3d6;
    --brand-muted: #b0bbb0;
    --brand-line: #3e493f;
    --brand-input-line: #556158;
    --brand-surface: #253329;
    --brand-surface-strong: #2d3c31;
    --chat-blue: #4b93ff;
    --chat-blue-surface: #26303e;
    --chat-blue-avatar: #24364d;
    --chat-muted: #b6bcc8;

    /* The generic tokens the rest of the app is built on. Redefined here
       rather than in style.css so dark has exactly one home. */
    --tw-color__text__base: var(--ink);
    --tw-color__text__subtle: var(--ink-muted);
    --tw-color__background__base: var(--paper-card);
    --tw-color__background__subtle: #22271f;
    --tw-color__background__sunken: var(--paper-sunken);
    --tw-color__border__base: var(--line);
    --tw-color__border__subtle: #ffffff14;
    --tw-color__border__bold: #4a504a;
    --tw-color__primary__base: var(--forest-deep);
    --tw-color__primary__surface: var(--sage);
    --tw-color__primary-cta__base: var(--forest);
    --tw-color__primary-cta__on-base: #0f120f;
    --tw-color__alert__surface: #3a2424;
    --tw-color__warning__surface: #3a3323;
    --tw-color__warning__on-surface: #e8d9a8;
    --tw-color__success__surface: #1d3328;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .45);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .55), 0 12px 28px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  --paper-card: #1b1f1c;
  --paper-sunken: #141715;
  --ink: #edefe8;
  --ink-muted: #a3a79b;
  --line: #333833;
  --sage: #242b26;
  --sage-deep: #2c332d;
  --forest: #4e9a76;
  --forest-deep: #62b089;
  --clay: #d98a71;
  --banner-surface: #2b312d;
  --banner-ink: #eef3ea;
  --shortcut-surface: #1e2a22;
  --shortcut-line: #45604d;
  --brand-kicker: #b4c5b5;
  --brand-soft: #d8e3d6;
  --brand-muted: #b0bbb0;
  --brand-line: #3e493f;
  --brand-input-line: #556158;
  --brand-surface: #253329;
  --brand-surface-strong: #2d3c31;
  --chat-blue: #4b93ff;
  --chat-blue-surface: #26303e;
  --chat-blue-avatar: #24364d;
  --chat-muted: #b6bcc8;

    /* The generic tokens the rest of the app is built on. Redefined here
       rather than in style.css so dark has exactly one home. */
    --tw-color__text__base: var(--ink);
    --tw-color__text__subtle: var(--ink-muted);
    --tw-color__background__base: var(--paper-card);
    --tw-color__background__subtle: #22271f;
    --tw-color__background__sunken: var(--paper-sunken);
    --tw-color__border__base: var(--line);
    --tw-color__border__subtle: #ffffff14;
    --tw-color__border__bold: #4a504a;
    --tw-color__primary__base: var(--forest-deep);
    --tw-color__primary__surface: var(--sage);
    --tw-color__primary-cta__base: var(--forest);
    --tw-color__primary-cta__on-base: #0f120f;
    --tw-color__alert__surface: #3a2424;
    --tw-color__warning__surface: #3a3323;
    --tw-color__warning__on-surface: #e8d9a8;
    --tw-color__success__surface: #1d3328;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .45);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .55), 0 12px 28px rgba(0, 0, 0, .5);
}

/* Warm, editorial layer for The Wall. The original stylesheet keeps the
   component mechanics; this file gives the whole product one visual voice. */
.wall-text-shortcut { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; padding:16px; margin:12px 0; border:1px solid var(--shortcut-line); border-radius:16px; background:var(--shortcut-surface); color:var(--ink); }
.wall-text-shortcut > div:first-child { flex:1 1 220px; }
.wall-text-shortcut p { margin:6px 0 0; }
.wall-text-shortcut code { font-size:1.2em; font-weight:700; letter-spacing:.08em; user-select:all; }
.wall-text-shortcut > .hint { flex-basis:100%; }
.wall-text-shortcut .wall-actions { flex-wrap:wrap; }
.wall-text-shortcut a, .wall-text-shortcut button { min-height:44px; }
@media(max-width:600px) { .wall-text-shortcut .wall-actions { width:100%; } .wall-text-shortcut .wall-actions .primary { flex:1 1 100%; text-align:center; } }
:root {
  --tw-color__primary__base: var(--forest);
  --tw-color__primary__base--state-1: var(--forest-deep);
  --tw-color__primary__base--state-2: #173a2b;
  --tw-color__primary__surface: #dfe9df;
  --tw-color__primary-cta__base: var(--forest);
  --tw-color__primary-cta__on-base: var(--paper-card);
  --tw-color__text__base: var(--ink);
  --tw-color__text__subtle: var(--ink-muted);
  --tw-color__background__base: var(--paper-card);
  --tw-color__background__subtle: var(--paper-sunken);
  --tw-color__background__sunken: #ebe5d9;
  --tw-color__border__base: var(--line);
  --tw-color__border__subtle: color-mix(in srgb, var(--ink) 13%, transparent);
  --tw-color__border__bold: #aaa092;
  --tw-color__success__base: var(--forest);
  --tw-color__success__surface: #e2ece3;
  --tw-color__warning__surface: #f7e9ce;
  --tw-color__warning__on-surface: #6e4d1e;
  --tw-color__alert__base: #ad4f3c;
  --tw-color__alert__surface: #f6e2dc;
  --tw-color__utility__focus-ring: var(--clay);
  --tw-type__family__title: Iowan Old Style, Baskerville, Georgia, serif;
  --shadow: 0 1px 2px rgba(52, 43, 31, .06), 0 12px 34px rgba(52, 43, 31, .07);
  --shadow-hover: 0 2px 4px rgba(52, 43, 31, .08), 0 18px 44px rgba(52, 43, 31, .12);
}

body {
  background:
    radial-gradient(circle at 15% -10%, rgba(193, 106, 79, .09), transparent 32rem),
    var(--tw-color__background__subtle);
}

h1, h2, h3 { color: var(--ink); }
h1 { line-height: 1.02; letter-spacing: -.035em; }
h2 { letter-spacing: -.025em; }
a { text-underline-offset: 3px; }

.top {
  background: color-mix(in srgb, var(--paper-card) 92.0%, transparent);
  border-color: color-mix(in srgb, var(--ink) 12%, transparent);
  backdrop-filter: blur(14px);
}
.logo-mark { fill: var(--clay); }
.logo-word { font-family: var(--tw-type__family__title); font-size: 1.2rem; }
.sidebar-toggle-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.who-person { color: var(--clay); font-size: .55rem; }
.who { display: inline-flex; align-items: center; gap: 7px; }
/* The rail reads as a near-white card against the paper ground, the way
   the Library mockup has it — the old tan panel was darker than the page
   it sat beside, so the chrome drew more attention than the photos. */
.sidebar { background: var(--paper-card); border-color: color-mix(in srgb, var(--ink) 12%, transparent); }
.sidebar-row { border-radius: 7px; }
.sidebar-row:hover { background: var(--sage); }
.sidebar-row.is-active { background: var(--sage); color: var(--forest); }
.sidebar-label {
  font-size: .66rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: color-mix(in srgb, var(--ink) 50%, transparent);
}
/* Sage, not the generic grey surface: the chips are chrome, and chrome in
   this product is sage. */
.tag-chip { background: var(--sage); color: var(--brand-muted); letter-spacing: .04em; text-transform: uppercase; }
.sidebar-avatar { background: var(--forest); }
/* Trending walls are not yours, and that is the only thing this swatch has
   to say. Filled terracotta made it look like a category with meaning, and
   spent the logo's colour on a list of walls that are not even yours. An
   outline says "also a wall, not one of your walls" without claiming the
   accent. */
.sidebar-avatar-alt {
  background: transparent;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent);
}
.sidebar-lock { stroke: color-mix(in srgb, var(--ink) 50%, transparent); }

button.primary, .btn-link.primary, a.primary {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper-card);
  box-shadow: 0 4px 14px rgba(39, 92, 69, .16);
}
button.primary:hover, .btn-link.primary:hover, a.primary:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
}
.btn-link, button, input, textarea, select { border-radius: 10px; }
.panel {
  background: color-mix(in srgb, var(--paper-card) 94.0%, transparent);
  border-color: color-mix(in srgb, var(--ink) 13%, transparent);
  box-shadow: var(--shadow);
}
.eyebrow {
  color: var(--clay);
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 750;
}
.banner { background: var(--banner-surface); border-color: var(--line); color: var(--banner-ink); }
.flash { border-radius: 0; }

.home-hero {
  position: relative;
  padding-top: 64px;
}
.home-hero h1 { font-size: clamp(3rem, 7vw, 6.4rem); max-width: 10ch; }
.hero-copy .lede { max-width: 36rem; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-demo {
  background: #fffaf1;
  border: 1px solid var(--line);
  box-shadow: 12px 14px 0 var(--sage-deep);
  transform: rotate(1deg);
}
.hero-demo { background: #fff; transform: none; }
.demo-message { background: var(--chat-blue-surface); color: var(--ink); box-shadow: none; border-radius: 20px 20px 20px 6px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.demo-message-own { width: fit-content; background: var(--chat-blue); color: #fff; border-radius: 20px 20px 6px 20px; }
.demo-chat-header { display: flex; flex-direction: column; align-items: center; gap: 5px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.demo-chat-header > span:last-child, .demo-chat-time { color: var(--chat-muted); font-size: .75rem; }
.demo-chat-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--chat-blue-avatar); color: var(--chat-blue); font-size: 24px; }
.demo-chat-time { text-align: center; margin: 16px 0; }
.demo-wall-reply > span { margin: 0 0 5px; color: var(--brand-muted); font-size: .75rem; font-weight: 700; }
.how-it-works li { background: transparent; border-color: var(--line); }
.step-number { color: var(--paper-card); background: var(--clay); }
.create-section { border-color: var(--line); }

.page-head h1 { font-size: clamp(2.3rem, 5vw, 4.6rem); }
.wall-nav { border-color: var(--line); overflow-x: auto; flex-wrap: nowrap; }
.wall-nav a { color: var(--ink-muted); white-space: nowrap; }
.wall-nav a[aria-current] { border-color: var(--clay); color: var(--ink); }
.wall-nav-secondary { font-size: .84em; opacity: .82; }
.wall-nav-secondary[aria-current] { opacity: 1; }
.tile { background: var(--paper-card); border-color: color-mix(in srgb, var(--ink) 12%, transparent); }
.tile:hover { box-shadow: var(--shadow-hover); }
.add-fab { background: var(--forest); color: var(--paper-card); }
.reactor-details { position: relative; margin: 0 14px 12px; color: var(--ink-muted); font-size: .78rem; }
.reactor-details summary { cursor: pointer; list-style: none; width: max-content; font-weight: 650; }
.reactor-details summary::-webkit-details-marker { display: none; }
.reactor-details summary:hover { color: var(--forest); }
.reactor-people { width: 100%; margin-top: 8px; padding: 10px 12px; background: var(--paper-sunken); border: 1px solid var(--line); border-radius: 10px; }
.reactor-people p { margin: 3px 0; }
.reactor-people small { display: block; margin-top: 8px; color: #8a8377; }
.post-card .reactor-details { margin-left: 18px; }

.plan-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0 20px;
  padding: 13px 16px;
  color: #574426;
  background: #f7e9ce;
  border: 1px solid #e6cfa8;
  border-radius: 12px;
}
.plan-notice a { color: var(--forest); font-weight: 700; margin-left: auto; }
.quick-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 10px 0 24px; }
.quick-start-card { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; min-height: 92px; padding: 18px; color: var(--ink); text-align: left; text-decoration: none; background: var(--paper-card); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.quick-start-card:hover { border-color: #aaa092; background: #fffaf1; }
.quick-start-primary { color: var(--paper-card); background: var(--forest); border-color: var(--forest); }
.quick-start-primary:hover { color: var(--paper-card); background: var(--forest-deep); border-color: var(--forest-deep); }
.quick-start-card strong { font: 650 1.05rem var(--tw-type__family__text); }
.quick-start-card small { grid-column: 2; color: inherit; opacity: .72; }
.quick-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 50%; font-size: 1.35rem; }
.pricing-heading { max-width: 52rem; margin: 32px auto 38px; text-align: center; }
.pricing-heading h1 { font-size: clamp(3rem, 7vw, 5.8rem); margin: 8px 0 18px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.price-card {
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.price-card-event { color: #f8f5ed; background: #284b3a; border-color: #284b3a; }
.price-card-event h2, .price-card-event .price-amount { color: var(--paper-card); }
.price-card-event .eyebrow { color: #efb29e; }
.price-card-event .hint, .price-card-event .availability-note { color: #d9e3db; }
.price-card-event a { color: var(--paper-card); }
.price-card-event button.primary { background: #fff7e8; color: #214332; border-color: #fff7e8; }
.price-amount { margin: 14px 0 20px; font-family: var(--tw-type__family__title); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.price-amount span { display: block; margin-top: 9px; font: 600 .78rem var(--tw-type__family__text); letter-spacing: .04em; text-transform: uppercase; }
.price-card ul { padding-left: 1.25rem; line-height: 1.8; }
.pricing-fineprint { max-width: 58rem; margin: 22px auto; color: var(--ink-muted); font-size: .9rem; }
.pricing-faq { max-width: 52rem; margin: 56px auto; }
.pricing-faq details { padding: 18px 0; border-top: 1px solid var(--line); }
.pricing-faq summary { cursor: pointer; font-weight: 700; }

.usage-panel { padding: clamp(22px, 4vw, 38px); }
.usage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.usage-grid > div { padding: 18px; background: var(--paper-sunken); border-radius: 14px; }
.usage-grid strong { font-size: 1.5rem; }
.usage-grid strong span { color: var(--ink-muted); font-size: .9rem; font-weight: 500; }
.usage-grid p { margin: 4px 0 12px; color: var(--ink-muted); }
.usage-grid progress { width: 100%; accent-color: var(--clay); }
.plan-badge { padding: 6px 10px; color: var(--forest); background: #dfe9df; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.activation-box { margin: 28px 0; padding: 22px; border-left: 4px solid var(--clay); background: #fff8eb; }
.host-allowance { display: block; padding: 10px 14px; margin: 10px 0 14px; }
.upload-allowance { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; padding-block: 4px; }
.upload-allowance > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.host-usage-count { margin: 5px 0; font-weight: 700; }
.host-usage-count span { display: block; margin-top: 2px; font-size: .76rem; font-weight: 400; }
.host-upgrade-action { margin-top: 7px; }
.host-payment-options { display: flex; flex-wrap: wrap; gap: 10px; }
.paypal-button { background: #ffc439; color: #17365d; border-color: #e6b031; }
.new-wall-plans { padding: 22px 0; }
.new-wall-plans h2 { margin-top: 0; }
.new-wall-plan-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.new-wall-plan { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-card); }
.new-wall-plan h3 { margin: 4px 0 10px; }
.new-wall-plan .eyebrow { font-size: .65rem; }
.host-upgrade-action button { min-height: 38px; max-width: 100%; padding: 7px 14px; font-size: .88rem; }
.host-upgrade-note { margin: 5px 0; font-size: .76rem; line-height: 1.35; }
.host-allowance > a { display: inline-block; margin: 2px 0 0; font-size: .8rem; }

.event-sign { min-height: 100vh; margin: 0; padding: 32px; display: grid; place-items: center; background: var(--paper-sunken); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: center; }
.event-sign main { width: min(100%, 720px); padding: 52px; background: var(--paper-card); border: 3px solid var(--forest); box-shadow: 16px 16px 0 var(--sage-deep); }
.event-sign h1 { margin: 8px 0 10px; font: 600 clamp(3rem, 8vw, 6rem)/.95 Iowan Old Style, Baskerville, Georgia, serif; }
.event-sign h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); }
.event-sign img { max-width: 70%; height: auto; padding: 12px; background: white; border-radius: 8px; }
.sign-kicker { margin: 0; color: #9b4d3a; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.event-sign small { display: block; max-width: 34rem; margin: 18px auto 0; color: var(--ink-muted); }
.print-help { margin-top: 28px; color: var(--ink-muted); font-size: .85rem; }

@media (max-width: 720px) {
  .home-hero { padding-top: 28px; gap: 28px; }
  .home-hero h1 { font-size: clamp(2.4rem, 10vw, 3.8rem); max-width: 16ch; }
  .hero-copy .lede { font-size: 1rem; line-height: 1.5; margin-bottom: 18px; }
  input, textarea, select { font-size: 16px; }
  button, .btn-link, .pick-btn { min-height: 44px; }
  .hero-demo { transform: none; box-shadow: 7px 8px 0 var(--sage-deep); }
  .pricing-grid, .usage-grid { grid-template-columns: 1fr; }
  .quick-start { grid-template-columns: 1fr; }
  .price-card { border-radius: 16px; }
  .plan-notice a { width: 100%; margin-left: 0; }
  .event-sign { padding: 14px; }
  .event-sign main { padding: 28px 18px; box-shadow: 7px 8px 0 var(--sage-deep); }
}

@media print {
  .event-sign { padding: 0; background: white; }
  .event-sign main { box-shadow: none; border-width: 2px; }
  .print-help { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-demo { transform: none; }
}

.hero-ways { margin: 20px 0; border-left: 3px solid #b95f49; padding-left: 16px; }
.hero-ways p { margin: 0 0 12px; font-size: 1rem; line-height: 1.5; }
.chat-phone { white-space: nowrap; }

@media (min-width: 721px) and (max-width: 1000px) { .pricing-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; } }

.host-payment-options .payment-method-label { display: block; margin-top: 3px; font-size: .72rem; font-weight: 400; }
.home-pending { background: #fdebec; color: #9d3b3b; }
.home-view-toggle button.on { background: var(--sage); color: var(--forest); }
.home-chip.on { background: var(--forest); border-color: var(--forest); color: var(--paper-card); font-weight: 600; }
.home-chip.on span { opacity: .85; }
.home-chip-texted { border-color: color-mix(in srgb, var(--chat-blue) 38%, var(--line)); }
.home-chip-texted:not(.on) { color: var(--chat-blue); }
/* These sit in theme.css because theme.css loads after style.css and sets
   .sidebar-avatar's fill — an outline declared over there at the same
   specificity loses, which is why "New wall" and everything reusing its
   style rendered as a filled green tile. */
.sidebar-avatar-new {
  background: transparent;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  border: 1px dashed color-mix(in srgb, var(--ink) 28%, transparent);
}
.sidebar-avatar-quiet {
  background: transparent;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 20%, transparent);
}
.sidebar-avatar-quiet svg {
  width: 13px; height: 13px; fill: none;
  stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round;
}
.sidebar-new-wall:hover .sidebar-avatar-new,
.sidebar-texted:hover .sidebar-avatar-quiet { color: var(--forest); }
.tag-chip.tag-live { background: var(--forest); color: var(--paper-card); }
.theme-toggle button.on { background: var(--sage); color: var(--forest); font-weight: 600; }
.tag-chip.tag-new { background: var(--clay); color: var(--paper-card); }
.feed-new-line { color: var(--forest); }
