/*
 * Axtli.ai — shared base for the direction samples.
 * Tokens are the Rev. 04 brand palette, unchanged (axtli-brand.css).
 * Only the two sanctioned mark pairings are used:
 *   Datum #0B7A72 on Paper #F3F7F7, Patina #31B8AD on Carbon #111E1C.
 */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f3f7f7;
  --concrete: #dfe7e6;
  --alert-wash: #f9d5cf;
  --rule: #b4bebc;
  --amber: #f0ab46;
  --patina: #31b8ad;
  --datum: #0b7a72;
  --slate: #5c6564;
  --datum-deep: #00504a;
  --brick: #6a1f18;
  --carbon: #111e1c;

  /* Derived — tints of the palette only, never new hues. */
  --carbon-2: #162523;
  --carbon-3: #1c2d2a;
  --carbon-line: rgb(243 247 247 / 0.09);
  --carbon-line-2: rgb(243 247 247 / 0.16);
  --paper-dim: rgb(243 247 247 / 0.62);
  --paper-faint: rgb(243 247 247 / 0.38);

  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1360px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 17px;
  line-height: 1.55;
  font-kerning: normal;
}

h1, h2, h3, h4, p, ol, ul, figure, dl, dd {
  margin: 0;
}
ol, ul {
  padding: 0;
  list-style: none;
}
img, svg, canvas {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input {
  font: inherit;
  color: inherit;
}
h1, h2, h3, p {
  text-wrap: pretty;
}
h1, h2 {
  text-wrap: balance;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- brand type ---------------------------------------------------------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1;
}
.descriptor {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  line-height: 1;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
}

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

/* --- the mark ------------------------------------------------------------ */
.mark {
  display: block;
  overflow: visible;
}
.mark .m-ring,
.mark .m-chev,
.mark .m-plumb {
  fill: none;
  stroke: currentColor;
}
.mark .m-ring { stroke-width: 8; }
.mark .m-chev { stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.mark .m-plumb { stroke-width: 5; }
.mark .m-datum { fill: currentColor; }

/* --- sample switcher (review chrome, not part of the design) -------------- */
.sample-switch {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 1000;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgb(17 30 28 / 0.88);
  border: 1px solid rgb(243 247 247 / 0.12);
  box-shadow: 0 8px 30px rgb(17 30 28 / 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.sample-switch[hidden] {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
}
.sample-switch a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--paper-dim);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.sample-switch a:hover {
  color: var(--paper);
  background: rgb(243 247 247 / 0.08);
}
.sample-switch .cur {
  padding: 0 10px;
  color: var(--paper);
  white-space: nowrap;
}
.sample-switch .cur b {
  color: var(--patina);
  font-weight: 500;
  margin-right: 8px;
}
.sample-switch kbd {
  font: inherit;
  opacity: 0.5;
  margin-left: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
