/* UTANA base: tokens, reset, type. Shared by hero.css and sections.css. */

:root {
  --ink: #0f1112;
  --ink-2: #16191a;
  --slate: #8c9193;
  --paper: #f1f0ec;
  --mute: rgba(241, 240, 236, 0.58);
  --line: rgba(255, 255, 255, 0.55);
  --line-soft: rgba(255, 255, 255, 0.16);
  --sand: #d4a86a;

  --font: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-xs: 11px;
  --fs-sm: 12.5px;
  --fs-md: 15px;
  --fs-lg: clamp(28px, 4vw, 56px);
  --fs-xl: clamp(44px, 9vw, 140px);
  --track: 0.04em;
  --track-wide: 0.4em;

  --gutter: clamp(16px, 3vw, 48px);
  --max: 1440px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --node: 9px;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--fs-sm);
  line-height: 1.45;
  letter-spacing: var(--track);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.caps { text-transform: uppercase; }
.mute { color: var(--mute); }

/* Small solid white diamond, used as a node marker everywhere. */
.node {
  display: inline-block;
  width: var(--node);
  height: var(--node);
  background: var(--paper);
  transform: rotate(45deg);
}

/* Link with a thin underline that draws in on hover. */
.ulink {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.ulink:hover, .ulink:focus-visible { background-size: 100% 1px; }

:focus-visible { outline: 1px solid var(--paper); outline-offset: 4px; }

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

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