/* Fonts, reset and element defaults. Values come from tokens.css. */

@font-face { font-family: "Geist"; src: url("../assets/fonts/geist/Geist-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/geist/GeistMono-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
/* Tiempos (Klim) needs a web licence before launch. */
@font-face { font-family: "Tiempos Headline"; src: url("../assets/fonts/tiempos/TiemposHeadline-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
/* Layout scaling: 1rem is 16px at 1280px wide and grows with the window
   (1.25vw = 16 / 1280), stopping at 24px = 1920px wide (--scale-max-width).
   Text sizes are px in tokens.css, so they don't follow this. */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; font-size: clamp(16px, 1.25vw, 24px); scroll-padding-top: calc(var(--nav-height) + 24px); }
@media (max-width: 900px) { html { scroll-padding-top: 126px; } }   /* the header wraps to two lines (~102px) on phones */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: var(--weight-regular) var(--text-body)/1.35 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; font-weight: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Default cursors (the green-dot cursor is retired; --cursor-dot in tokens.css brings it back).
   Everything clickable gets the pointing hand, buttons and tabs included. */
a, button, [role="tab"] { cursor: pointer; }

/* Page-to-page transition (Chrome, Edge, Safari 18.2+; other browsers load normally). The nav and the Sprout panel
   hold still while the page content changes. Same-page section links glide instead (site.js). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: site-nav; }
  .sprout-panel { view-transition-name: sprout-panel; }
  /* lift: the old page sinks a little and fades; the new page rises 24px into place */
  ::view-transition-old(root) { animation: page-out .22s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: page-in .52s cubic-bezier(.2, .7, .2, 1) .14s both; }
  ::view-transition-group(site-nav), ::view-transition-group(sprout-panel) { animation: none; }
}
@keyframes page-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(24px); } }
