/* Aldeia Focus — paper, ink and ledger-green. Shared semantic tokens. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/dm-sans.woff2") format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/manrope.woff2") format("woff2");
}
:root {
  --primary: #176b59;
  --primary-dark: #105242;
  --primary-ink: #17604f;
  --primary-soft: #e8f2ed;
  --ink: #192e2a;
  --text: #43554f;
  --muted: #596b62;
  --subtle: #617168;
  --bg: #f6f8f7;
  --surface: #fff;
  --surface-soft: #f1f5f3;
  --surface-raised: #fff;
  --border: rgba(27, 56, 47, 0.14);
  --border-soft: rgba(27, 56, 47, 0.08);
  --control-bg: #fafcfb;
  --control-border: #d5dfd9;
  --blue: #397e9b;
  --green: #257453;
  --yellow: #926313;
  --purple: #79609f;
  --pink: #bf5048;
  --danger: #b63e36;
  --success-soft: #eaf5ee;
  --warning-soft: #fbf3e3;
  --danger-soft: #fbeeea;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(26, 49, 40, 0.025);
  --shadow: 0 4px 16px rgba(26, 49, 40, 0.05);
  --shadow-lg: 0 16px 64px rgba(15, 35, 28, 0.17);
  --font-head: Manrope, "DM Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --sidebar-w: 240px;
  --header-h: 68px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
  margin: 0;
}
html {
  scrollbar-gutter: stable;
}
body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}
h1 {
  letter-spacing: -0.045em;
}
h2 {
  letter-spacing: -0.025em;
}
p {
  text-wrap: pretty;
}
a {
  color: var(--primary-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
input,
textarea {
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: var(--subtle);
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex: none;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 3px;
}
[hidden],
.hidden {
  display: none !important;
}
::selection {
  background: var(--primary-soft);
  color: var(--primary-ink);
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-thumb {
  background: var(--control-border);
  border: 2px solid var(--bg);
  border-radius: 20px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.stack {
  display: flex;
  flex-direction: column;
}
.row {
  display: flex;
  align-items: center;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}
.spacer {
  flex: 1;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.af-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eyebrow {
  font-size: 10px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-ink);
  margin-bottom: 8px;
}
body.theme-dark {
  color-scheme: dark;
  --bg: #121c19;
  --surface: #192520;
  --surface-soft: #202e28;
  --surface-raised: #26362e;
  --ink: #e9f1ec;
  --text: #c3d0c8;
  --muted: #9aad9f;
  --subtle: #92a498;
  --border: rgba(202, 230, 214, 0.15);
  --border-soft: rgba(202, 230, 214, 0.08);
  --control-bg: #15211c;
  --control-border: #3a4e41;
  --primary: #237c64;
  --primary-dark: #1c6652;
  --primary-ink: #8dd5b4;
  --primary-soft: #243e31;
  --green: #8dd5ab;
  --yellow: #e5bb6b;
  --blue: #90c1d4;
  --purple: #c3afd9;
  --pink: #e6998b;
  --danger: #f0a396;
  --success-soft: #223b2d;
  --warning-soft: #3a3321;
  --danger-soft: #3b2825;
  --shadow-sm: 0 1px 2px #0002;
  --shadow: 0 4px 16px #0002;
  --shadow-lg: 0 20px 64px #0007;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
