/*
 * GO base stylesheet
 * Loads Nunito, normalizes defaults, applies global surface settings.
 * Load order: tokens.css → base.css → components.css → screens/<screen>.css
 */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font: var(--text-body);
  color: var(--go-ink);
  background: var(--go-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--go-headline);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Layout primitives */
.page-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  padding-bottom: var(--bottom-bar-pad);
  display: flex;
  flex-direction: column;
  /* Subtract the mobile trust header height so .page-wrap fits inside
     the visible viewport instead of overflowing by 32px. The
     --layout-trust-header-offset var is set by home-screen-hint.js:
     '32px' when the header actually mounts, '0px' otherwise. */
  min-height: calc(100vh - var(--layout-trust-header-offset, 0px));
  min-height: calc(100dvh - var(--layout-trust-header-offset, 0px));
}

.stack {
  display: flex;
  flex-direction: column;
}
.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }
.stack-xl > * + * { margin-top: var(--space-8); }
