/*
 * Base Reset & Typography
 * Mobile-first: base styles are mobile, min-width scales up
 */

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

html,
body {
  min-height: 100vh;
  background: var(--gray-1000);
  color: var(--gray-200);
  font-family: "Geist Mono", monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent text size adjust on orientation change */
  -webkit-text-size-adjust: 100%;
}

/* Hero/welcome page: lock to viewport, no scroll or overscroll */
html:has(body.page-hero),
body.page-hero {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  display: flex;
  flex-direction: column;
}

/* Typography - mobile base */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  color: var(--gray-400);
  margin-bottom: 0;
}

a {
  color: var(--gray-400);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
  /* Touch-friendly: ensure links are tappable */
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--gray-200);
}

/* Layout - mobile base */
header {
  position: absolute;
  top: 0;
  right: 0;
  padding: var(--space-4) var(--space-5);
  z-index: 10;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Authenticated app pages: content flows from top, not vertically centered */
body.has-tab-bar main {
  align-items: flex-start;
  padding-top: var(--space-6);
}





article {
  width: 100%;
}

section {
  width: 100%;
}



/* Scale up for larger screens */
@media (min-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  header {
    padding: var(--space-5) var(--space-8);
  }

  main {
    padding: 2rem 1rem;
  }

  body.has-tab-bar main {
    padding-top: 2rem;
  }


}
