@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;600&display=swap");

/* BearStack component styles. Every value comes from tokens.css. */
.bs-root { background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 25.6px; }

/* Theme-aware logo swap: show the light-ground or dark-ground file */
.bs-on-dark { display: none; }
[data-theme="dark"] .bs-on-light { display: none; }
[data-theme="dark"] .bs-on-dark { display: inline-block; }

.bs-focus:focus-visible,
.bs-button:focus-visible,
.bs-link:focus-visible,
.bs-input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Button: the one primary action per view */
.bs-button { display: inline-flex; align-items: center; gap: var(--space-8); border: 0; border-radius: var(--radius-pill);
  background: var(--action); color: var(--on-action); font-family: var(--font-sans); font-size: 16px; line-height: 25.6px; font-weight: 600;
  padding: var(--space-8) var(--space-24); cursor: pointer; text-decoration: none; }
.bs-button--small { font-size: 14px; line-height: 22.4px; padding: 4px var(--space-16); }
@media (prefers-reduced-motion: no-preference) { .bs-button { transition: transform 150ms ease-out; } .bs-button:active { transform: translateY(1px); } }

/* Link: text plus a visible underline */
.bs-link { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-underline); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Card */
.bs-card { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius-card); padding: var(--space-32); }
.bs-card--brand { background: var(--brand-plane); color: var(--on-brand); border-color: var(--brand-plane); }
.bs-card--inverse { background: var(--surface-inverse); color: var(--ink-inverse); border-color: var(--surface-inverse); }
.bs-card__title { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 500; margin: 0 0 var(--space-8); }
.bs-card__meta { font-family: var(--font-mono); font-size: 11px; line-height: 16px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 var(--space-16); }

/* Input */
.bs-field { display: grid; gap: var(--space-8); }
.bs-field__label { font-size: 14px; line-height: 22.4px; font-weight: 600; }
.bs-field__hint { font-size: 12.5px; line-height: 21px; }
.bs-input { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-input); padding: 12px var(--space-16); }
.bs-input::placeholder { color: var(--ink); opacity: .7; }

/* Site header: a pill bar holding logo, nav and one CTA */
.bs-header { display: flex; align-items: center; gap: var(--space-24); background: var(--surface); color: var(--ink); border-radius: var(--radius-pill); padding: var(--space-8) var(--space-8) var(--space-8) var(--space-24); }
.bs-header__logo { height: 28px; width: auto; display: block; }
.bs-header__logo.bs-on-dark { display: none; }
[data-theme="dark"] .bs-header__logo.bs-on-light { display: none; }
[data-theme="dark"] .bs-header__logo.bs-on-dark { display: block; }
.bs-header__nav { display: flex; gap: var(--space-24); margin-left: auto; font-size: 14px; line-height: 22.4px; }
.bs-header__nav a { color: var(--ink); text-decoration: none; }
.bs-header__nav a:hover { text-decoration: underline; text-decoration-color: var(--link-underline); }

/* Hero panel: one large statement, one action */
.bs-hero { display: flex; align-items: center; justify-content: space-between; gap: var(--space-48); background: var(--surface-inverse); color: var(--ink-inverse); border-radius: var(--radius-panel); padding: var(--space-48); }
.bs-hero__title { font-family: var(--font-display); font-size: 46px; line-height: 48px; font-weight: 500; margin: 0 0 var(--space-16); }
.bs-hero__lede { font-size: 16px; line-height: 25.6px; margin: 0 0 var(--space-24); max-width: 32ch; }
.bs-hero__mark { width: 160px; height: 160px; flex: none; }

/* Social post tile */
.bs-post { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1 / 1; padding: var(--space-24); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
.bs-post--inverse { background: var(--surface-inverse); color: var(--ink-inverse); border-color: var(--surface-inverse); }
.bs-post--brand { background: var(--brand-plane); color: var(--on-brand); border-color: var(--brand-plane); }
.bs-post__logo { height: 20px; width: auto; align-self: flex-start; }
.bs-post__line { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 28px; margin: 0; }
.bs-post__sig { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .04em; }
