/* Teton Ascent Ventures. Shared styles for index.html and 404.html.
   Every value resolves to the landing page design system: Tailwind type scale,
   spacing tokens, Tailwind radii, flat backgrounds, one custom easing curve. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand */
  --navy: #042c64;
  --navy-deep: #021c42;
  --orange: #ff4a11;
  --ink: #042c64;
  --ink-muted: #4a5d78;
  --line: rgba(4, 44, 100, 0.12);
  --bg: #ffffff;
  --surface: #f5f7fa;

  /* spacing tokens */
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* tailwind radii */
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  /* motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 700ms;
  --dur-reveal: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
img, svg { display: block; }
a { color: inherit; }
::selection { background: var(--orange); color: #ffffff; }

/* type scale (Tailwind defaults) */
.t-xs   { font-size: 0.75rem;  line-height: 1rem; }
.t-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.t-base { font-size: 1rem;     line-height: 1.5rem; }
.t-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.t-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.t-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.t-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.t-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.t-5xl  { font-size: 3rem;     line-height: 1; }
.t-6xl  { font-size: 3.75rem;  line-height: 1; }

.muted { color: var(--ink-muted); }
.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }

/* skip link */
.skip {
  position: fixed;
  top: var(--s-200);
  left: var(--s-200);
  z-index: 100;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-full);
  background: var(--navy);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}
.skip:focus-visible { transform: translateY(0); }

/* focus ring, shared by every interactive element */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg.nudge { transform: translateX(4px); }
.btn:active { transform: scale(0.98); transition-duration: 150ms; }
.btn-sm { font-size: 0.875rem; line-height: 1.25rem; }
.btn-primary { background: var(--navy); color: #ffffff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { background: var(--bg); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: rgba(4, 44, 100, 0.24); }

/* hero heading: the one gradient on the page, on text only */
.grad {
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* scroll reveal: heavy fade up, only when JS is running */
.js .reveal {
  opacity: 0;
  transform: translateY(64px);
  filter: blur(12px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease),
    filter var(--dur-reveal) var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    animation: none !important;
  }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
