/**
 * AskDegree Operator Design System (AODS) - foundations
 * Requires tokens.css loaded first.
 * Spec: docs/UI-DESIGN-SYSTEM.md
 */

/* -------------------------------------------------------------------------- */
/* Reset                                                                      */
/* -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* Body defaults                                                              */
/* -------------------------------------------------------------------------- */

body {
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--text-base-lh);
  color: var(--foreground, var(--text));
  background: var(--background, var(--bg));
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: var(--font-weight-bold);
  color: var(--text);
}

h1 {
  font-size: var(--text-3xl);
  line-height: var(--text-3xl-lh);
}

h2 {
  font-size: var(--text-lg);
  line-height: var(--text-lg-lh);
}

h3 {
  font-size: var(--text-md);
  line-height: var(--text-md-lh);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Headline font on interactive controls */
button,
.btn,
.status-badge {
  font-family: var(--font-head);
}

/* -------------------------------------------------------------------------- */
/* Typography utilities                                                       */
/* -------------------------------------------------------------------------- */

.text-xs {
  font-size: var(--text-xs);
  line-height: var(--text-xs-lh);
}

.text-sm {
  font-size: var(--text-sm);
  line-height: var(--text-sm-lh);
}

.text-base {
  font-size: var(--text-base);
  line-height: var(--text-base-lh);
}

.text-lg {
  font-size: var(--text-lg);
  line-height: var(--text-lg-lh);
}

.text-xl {
  font-size: var(--text-xl);
  line-height: var(--text-xl-lh);
}

.text-2xl {
  font-size: var(--text-2xl);
  line-height: var(--text-2xl-lh);
}

.text-3xl {
  font-size: var(--text-3xl);
  line-height: var(--text-3xl-lh);
}

.text-muted,
.muted {
  color: var(--muted-foreground, var(--muted));
}

.text-brand {
  color: var(--brand);
}

.text-error {
  color: var(--error);
}

.text-success {
  color: var(--success);
}

.text-warn {
  color: var(--warn);
}

.text-mono {
  font-family: var(--font-mono);
}

.font-head {
  font-family: var(--font-head);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-eyebrow);
  text-transform: uppercase;
  color: var(--brand);
}

/* -------------------------------------------------------------------------- */
/* Layout primitives                                                          */
/* -------------------------------------------------------------------------- */

.shell {
  max-width: var(--shell-max-width);
  margin-inline: auto;
  padding: var(--shell-padding-y) var(--shell-padding-x)
    var(--shell-padding-bottom);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, var(--space-4));
}

.stack--sm {
  --stack-gap: var(--space-2);
}

.stack--md {
  --stack-gap: var(--space-4);
}

.stack--lg {
  --stack-gap: var(--space-6);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--space-3));
}

.cluster--sm {
  --cluster-gap: var(--space-2);
}

.cluster--lg {
  --cluster-gap: var(--space-4);
}

.cluster--between {
  justify-content: space-between;
}

.cluster--end {
  justify-content: flex-end;
}

.content-narrow {
  max-width: var(--content-narrow);
}

.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;
}