/* Shared tokens and small primitives for the hub and every mini app.
   Apps link this file and add their own CSS on top. */
:root {
  --clr-brand: #018E87;
  --clr-base: #007A74;
  --clr-base-strong: #0B5E59;
  --clr-dark: #12302E;
  --clr-bg: #F2F5F4;
  --clr-surface: #FFFFFF;
  --clr-border: #D9E2E1;
  --clr-muted: #4F6563;
  --clr-accent: #E8836B;
  --clr-accent-soft: #F6B39F;
  --clr-accent-strong: #B34A36;
  --clr-focus: #B34A36;
  --clr-ochre: #CE8F22;
  --clr-sage: #79A857;
  --clr-berry: #9C4071;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --radius: 14px;
  --gap: 1rem;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.5 var(--font);
  color: var(--clr-dark);
  background: var(--clr-bg);
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--clr-focus); outline-offset: 2px; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.25rem;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--clr-base); color: #fff; }
.btn--primary:hover { background: var(--clr-base-strong); }
.btn--ghost { background: transparent; border-color: var(--clr-base); color: var(--clr-base-strong); }
.btn--ghost:hover { background: rgba(0, 122, 116, .08); }
.btn--danger { background: transparent; border-color: var(--clr-accent-strong); color: var(--clr-accent-strong); }
.btn--danger:hover { background: rgba(179, 74, 54, .08); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
