/* Latbase design system · base · v1. Requires tokens.css and the Inter font (README). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* type */
.display, .h1, .h2, .h3 { margin: 0; font-weight: var(--weight-semibold); text-wrap: balance; }
.display { font-size: var(--text-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.h1 { font-size: var(--text-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
.h2 { font-size: var(--text-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.h3 { font-size: var(--text-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.lead { margin: 0; font-size: var(--text-lead); line-height: var(--lh-lead); color: var(--ink-2); }
.body { margin: 0; font-size: var(--text-body); line-height: var(--lh-body); }
.small { margin: 0; font-size: var(--text-small); line-height: var(--lh-small); color: var(--ink-2); }
.cap { font-size: var(--text-caption); line-height: var(--lh-caption); font-weight: var(--weight-medium); color: var(--ink-2); }
.eyebrow { font-size: var(--text-eyebrow); line-height: 1; font-weight: var(--weight-medium); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ink-2); }
.ink { color: var(--ink); }
.muted { color: var(--ink-2); }

/* layout */
.wrap { width: 100%; max-width: calc(var(--content-max) + 2 * var(--page-margin)); margin: 0 auto; padding-left: var(--page-margin); padding-right: var(--page-margin); }
.section { padding-top: var(--section-gap); }
.stack { display: flex; flex-direction: column; }
.hr { height: 1px; background: var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--card-gap); }
@media (max-width: 1199px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .grid-3, .grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); } }

/* motion */
.fade-in { animation: ds-fade var(--dur) var(--ease) both; }
@keyframes ds-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
