/*
 * BASE — mirrors packages/unity-design/src/styles/base.css (unity-surfaces):
 * the global defaults under every component. Unity writes these as Tailwind
 * `@apply` in `@layer base`; here they are the same declarations spelled out.
 * The font face stands in for packages/unity-design/src/next/fonts.ts.
 */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
a, button, summary, input { touch-action: manipulation; }
::selection { background: var(--color-foreground); color: var(--color-background); }

* { scrollbar-width: thin; }
html { background: var(--color-canvas); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  color: var(--color-foreground);
  font: 400 var(--text-body)/var(--default-line-height) var(--font-sans);
  font-synthesis: none; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

h1, h2, p { margin: 0; }
h1 { font-size: var(--text-heading); line-height: var(--text-heading--line-height); letter-spacing: var(--text-heading--letter-spacing); font-weight: 500; text-wrap: balance; }
h2 { font-size: var(--text-large); font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Unity `stateFocus`: ring border + a 3px ring at half strength. */
:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--color-ring), 0 0 0 3px color-mix(in oklab, var(--color-ring) 50%, transparent); border-radius: var(--radius-button); }
main:focus { outline: none; box-shadow: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--color-background); padding: 8px 12px; border-radius: var(--radius-button); z-index: 10; }
.skip:focus { left: 8px; }
