/* Kituwa Hub public skin — one cream, ink and signal-red system.
   Loaded last so every public page matches the portfolio and the new home. */

:root {
  --ink: #171310;
  --ink2: #2b251f;
  --ink3: #6b625b;
  --paper: #f2ece2;
  --paper2: #fffaf1;
  --white: #fffaf1;
  --cream: #f7ddcb;
  --sky: #f7ddcb;
  --sky2: #ff4d2e;
  --navy: #171310;
  --navy-deep: #171310;
  --grass: #d6cbbc;
  --grass2: #6b625b;
  --grass3: #f7ddcb;
  --forest: #171310;
  --sun: #ff4d2e;
  --sun2: #e33d21;
  --tomato: #ff4d2e;
  --tomato2: #e33d21;
  --teal: #ff4d2e;
  --teal2: #e33d21;
  --line: #d6cbbc;
  --line-soft: #e7dccd;
  --silver: #c9beb1;
  --grey: #6b625b;
  --grey2: #4a433d;
  --radius: 2px;
  --shadow: none;
  --shadow-sm: none;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

html { background: #f2ece2; }
body {
  background: #f2ece2 !important;
  background-image: none !important;
  color: #171310 !important;
  font-family: var(--font-body) !important;
}
a { color: #171310; text-underline-offset: 3px; }
::selection { background: #ff4d2e; color: #fff8ef; }

h1, h2, h3, .h1, .h2, .h3, .display {
  font-family: var(--font-display) !important;
  letter-spacing: -.04em;
  color: #171310;
}
h1 em, .display em, .beta-hero h1 em, .projects-hero h1 em {
  font-family: "Instrument Serif", Georgia, serif !important;
  font-style: italic;
  font-weight: 400;
  color: #ff4d2e !important;
  letter-spacing: -.02em;
}
.eyebrow, .beta-kicker {
  font-family: var(--font-mono) !important;
  color: #6b625b !important;
  letter-spacing: .14em;
}
.lede, .hint, .muted, .small.muted { color: #6b625b !important; }
h1 img, h2 img, h3 img, .btn img { display: none !important; }
.side-card h2 { font-size: 22px !important; line-height: 1.15; }
.side-card h3 { font-size: 17px !important; line-height: 1.25; }

/* Brand mark: the portfolio K, never the teal stash icon. */
.site-brand { gap: 12px !important; }
.kituwa-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  background: #ff4d2e;
  color: #fff8ef;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.kituwa-mark-sm { width: 42px; height: 42px; flex-basis: 42px; font-size: 20px; }

/* Header and footer */
.site-header {
  background: rgba(242, 236, 226, .95) !important;
  border-bottom: 1px solid #d6cbbc !important;
  box-shadow: none !important;
  color: #171310 !important;
}
.site-brand-text { color: #171310 !important; }
.site-brand-text small { color: #6b625b !important; }
.site-nav a, .site-nav .nav-link { color: #6b625b !important; }
.site-nav a:hover, .site-nav .nav-link:hover { background: #f7ddcb !important; color: #171310 !important; }
.site-nav a[aria-current="page"] { background: #171310 !important; color: #fffaf1 !important; }
.site-cta {
  background: #ff4d2e !important;
  color: #fff8ef !important;
  border-color: #ff4d2e !important;
  border-radius: 2px !important;
}
.site-cta:hover { background: #e33d21 !important; color: #fff8ef !important; }
.site-menu-toggle { border-radius: 2px !important; color: #171310 !important; }

.site-footer {
  background: #f2ece2 !important;
  border-top: 1px solid #d6cbbc !important;
  color: #171310 !important;
}
.site-footer strong, .site-footer-brand strong { color: #171310 !important; }
.site-footer p, .site-footer-fine, .site-footer-brand p { color: #6b625b !important; }
.site-footer-links a { color: #6b625b !important; }
.site-footer-links a:hover { color: #171310 !important; }
.footer-badge { background: #171310 !important; color: #fffaf1 !important; }

/* Hero surfaces */
.hero, .projects-hero, .beta-hero, .invest-hero, .compute-hero, .logins-hero {
  background:
    radial-gradient(52% 44% at 12% 14%, rgba(255, 250, 241, .95), transparent 70%),
    radial-gradient(46% 40% at 88% 8%, rgba(255, 77, 46, .12), transparent 72%),
    linear-gradient(180deg, #f7ddcb 0%, #f2ece2 70%, #f2ece2 100%) !important;
  color: #171310 !important;
  border-bottom: 1px solid #d6cbbc !important;
  box-shadow: none !important;
}
.hero, .beta-hero { grid-template-columns: 1fr !important; }
.invest-hero { grid-template-columns: 1.15fr .85fr !important; align-items: center; gap: 40px; }
.invest-hero .qr-card { margin-top: 0; justify-self: end; }
.hero h1, .projects-hero h1, .beta-hero h1, .invest-hero h1, .compute-hero h1, .logins-hero h1 { color: #171310 !important; }
.hero .lede, .projects-hero .lede, .beta-hero .beta-lede, .invest-hero .lede, .compute-hero .lede, .logins-hero .lede { color: #6b625b !important; }
.hero .eyebrow, .projects-hero .eyebrow, .invest-hero .eyebrow, .compute-hero .eyebrow, .logins-hero .eyebrow { color: #6b625b !important; }
.hero .hint, .invest-hero .hint, .compute-hero .hint { color: #6b625b !important; }
.hero-art, .compute-art, .beta-wall { display: none !important; }

/* Buttons */
.btn, .btn-light, .btn-ghost-light {
  background: #fffaf1 !important;
  color: #171310 !important;
  border: 1px solid #171310 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}
.btn:hover, .btn-light:hover { background: #f7ddcb !important; color: #171310 !important; }
.btn-primary { background: #ff4d2e !important; color: #fff8ef !important; border-color: #ff4d2e !important; }
.btn-primary:hover { background: #e33d21 !important; color: #fff8ef !important; }
.hero-actions .btn, .projects-hero-actions .btn, .beta-hero-actions .btn { border-radius: 2px !important; }

/* Cards, forms and tables */
.card, .login-card, .auth-card, .fund-card, .tip-card, .request-layout > .card,
.good-to-know, .compute-form-card, .automation-featured, .automation-group,
.logins-group, .beta-library, .beta-section, .project-summary-tile {
  background: #fffaf1 !important;
  border: 1px solid #d6cbbc !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  color: #171310 !important;
}
.card h2, .card h3, .automation-featured h2, .fund-card h2 { color: #171310 !important; }
input, select, textarea {
  background: #fffdf8 !important;
  color: #171310 !important;
  border: 1px solid #d6cbbc !important;
  border-radius: 2px !important;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #ff4d2e !important;
  outline-offset: 1px;
}
.label, label, legend, .fieldset legend { color: #171310 !important; }
.fieldset { border-color: #d6cbbc !important; }
.fieldset legend { background: #fffaf1 !important; }
table, th, td { border-color: #d6cbbc !important; }
th { background: #f7efe4 !important; color: #171310 !important; }
tr:nth-child(even) td { background: #fffdf8 !important; }

/* Status and feedback */
.pill, .tag, .badge {
  background: #fffaf1 !important;
  border: 1px solid #d6cbbc !important;
  color: #171310 !important;
}
.callout {
  background: #fffaf1 !important;
  border: 1px solid #d6cbbc !important;
  border-radius: 2px !important;
  color: #171310 !important;
}
.callout-warn { background: #f7ddcb !important; border-color: #ff4d2e !important; }
.callout-error { background: #ffe3d9 !important; border-color: #ff4d2e !important; }
.callout-ok { background: #eef3df !important; border-color: #8a9a5b !important; }
.progress { background: #e7dccd !important; }
.progress span { background: #ff4d2e !important; }
.build-num {
  background: #171310 !important;
  color: #fffaf1 !important;
  border: 1px solid #171310 !important;
  border-radius: 2px !important;
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  padding: 2px 7px !important;
}

/* The pool: equal-height cards, no dead gap before Good Egg Points. */
.fund-grid { align-items: stretch !important; }
.fund-grid .fund-card { margin-bottom: 0 !important; height: 100%; }
.fund-grid + .card, #points { margin-top: 22px !important; }

/* The pool keeps its QR, but in the new frame. */
.qr-card {
  background: #fffaf1 !important;
  border: 1px solid #171310 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  color: #171310 !important;
  margin-top: 20px;
  max-width: 320px;
}
.qr-card .qr-label { color: #171310 !important; }

/* Work library */
.beta-promise { background: #fffaf1 !important; border-color: #d6cbbc !important; color: #171310 !important; }
.beta-promise span { color: #171310 !important; }
.beta-stats div { border-color: #d6cbbc !important; }
.beta-stats dt { color: #6b625b !important; }
.beta-stats dd { color: #171310 !important; }
.beta-library-head p { color: #6b625b !important; }
.beta-card, .beta-index a { background: #fffaf1 !important; border-color: #d6cbbc !important; }

/* Keep the deliberate dark closing bands dark ink, not navy. */
.cir-band, .beta-cta, .section.dark {
  background: #171310 !important;
  color: #fffaf1 !important;
  border-radius: 2px !important;
}
.cir-band h2, .beta-cta h2, .section.dark h2 { color: #fffaf1 !important; }
.cir-band p, .beta-cta p, .section.dark p { color: #c9beb1 !important; }
.cir-band .eyebrow, .beta-cta .eyebrow, .section.dark .eyebrow { color: #c9beb1 !important; }

/* Hub landing: a clear set of doors, no project list. */
.hub-landing {
  padding: 88px 0 48px;
  background:
    radial-gradient(52% 44% at 12% 10%, rgba(255, 250, 241, .95), transparent 70%),
    radial-gradient(44% 38% at 90% 4%, rgba(255, 77, 46, .12), transparent 72%),
    linear-gradient(180deg, #f7ddcb 0%, #f2ece2 72%, #f2ece2 100%);
  border-bottom: 1px solid #d6cbbc;
}
.hub-landing .eyebrow { color: #6b625b !important; }
.hub-landing .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #ff4d2e; display: inline-block; }
.hub-landing h1 {
  margin: 18px 0 0;
  max-width: 14ch;
  font-size: clamp(52px, 7.4vw, 104px);
  line-height: .92;
  font-weight: 800;
  letter-spacing: -.06em;
}
.hub-landing .lede { margin-top: 22px; max-width: 58ch; font-size: 19px; }
.hub-landing-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hub-doors { padding: 28px 0 88px; }
.hub-door-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hub-door {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px;
  background: #fffaf1;
  border: 1px solid #171310;
  border-radius: 2px;
  color: #171310;
  transition: background .16s ease, transform .16s ease;
}
.hub-door:hover { background: #f7ddcb; transform: translateY(-2px); }
.hub-door-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: #ff4d2e; }
.hub-door h2 { margin: 8px 0 8px; font-size: 28px; line-height: 1.02; }
.hub-door p { margin: 0; flex: 1 1 auto; color: #6b625b; font-size: 14.5px; line-height: 1.5; }
.hub-door-go { margin-top: 18px; font-size: 13px; font-weight: 700; color: #171310; text-decoration: underline; text-underline-offset: 3px; }

/* Home already carries the new panel; keep its own refinements. */
.hub-cirrus .site-header { background: rgba(242, 236, 226, .95) !important; }
.hub-cirrus .site-cta { background: #ff4d2e !important; color: #fff8ef !important; }

@media (max-width: 1000px) {
  .hub-door-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hub-landing { padding: 56px 0 32px; }
  .hub-landing h1 { font-size: clamp(42px, 12vw, 64px); }
  .hub-door-grid { grid-template-columns: 1fr; }
  .hub-door { min-height: 0; }
}
@media (max-width: 900px) {
  .invest-hero { grid-template-columns: 1fr !important; }
  .invest-hero .qr-card { justify-self: start; }
}

/* Shared admin-session bar on every Hub page. */
.admin-session-bar {
  background: #171310;
  color: #fffaf1;
  border-bottom: 2px solid #ff4d2e;
}
.admin-session-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 12px;
  line-height: 1.4;
}
.admin-session-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff4d2e;
  box-shadow: 0 0 0 4px rgba(255, 77, 46, .18);
}
.admin-session-note { color: #c9beb1; }
.admin-session-open {
  margin-left: auto;
  color: #fffaf1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.admin-session-open:hover { color: #ffd9d0; }
.admin-session-logout {
  padding: 4px 11px;
  border: 1px solid #fffaf1;
  border-radius: 999px;
  background: transparent;
  color: #fffaf1;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.admin-session-logout:hover { background: #ff4d2e; border-color: #ff4d2e; color: #fff8ef; }
.admin-session-logout:disabled { opacity: .65; cursor: wait; }
[data-hub-admin-session][hidden] { display: none !important; }
@media (max-width: 760px) {
  .admin-session-inner { flex-wrap: wrap; }
  .admin-session-note { display: none; }
}
