/* ============================================================================
   yapp landing — base reset + global typography
   ========================================================================== */

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* keep fragment jumps clear of the sticky topbar (~52px + breathing room) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip; /* contain decorative bleed without creating a scroll container (keeps sticky working) */
  scrollbar-color: #34343c var(--bg);    /* Firefox: thumb + track */
  scrollbar-width: thin;
}

/* on-brand scrollbar (the default Windows bar clashes with the dark theme) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #34343c; border-radius: 999px;
  border: 3px solid var(--bg); /* inset so the thumb reads as a slim pill */
  background-clip: padding-box;
  transition: background-color .2s;
}
::-webkit-scrollbar-thumb:hover { background: var(--pink); border-color: var(--bg); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: var(--bg); }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg, picture, video { display: block; max-width: 100%; }
/* never let an <img> width/height attribute (a presentational hint) freeze height
   and disable aspect-ratio — let height follow the ratio unless an author rule sets it */
img { height: auto; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol { list-style: none; }

::selection {
  background: var(--pink);
  color: #fff;
}

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

/* --- Shared type roles --------------------------------------------------- */

.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  line-height: 0.9;
}

.kicker {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-softer);
}

.display {
  font-family: var(--font-label);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

/* --- Layout helpers ------------------------------------------------------ */

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

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

/* skip link — hidden until focused, then revealed top-left */
.skip-link {
  position: fixed;
  left: 12px; top: -64px;
  z-index: 300;
  padding: 11px 18px;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--r-md);
  box-shadow: 0 0 0 2px var(--pink);
  transition: top 0.18s var(--ease-out);
}
.skip-link:focus { top: 12px; }
