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

html,
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--gray-200);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

html:has(body.page-hero),
body.page-hero {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
}

.app-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--app-width);
  margin: 0 auto;
  background: var(--gray-1000);
  box-shadow: 0 0 0 1px var(--gray-900);
}

h1 {
  font-size: var(--type-title);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

h2 {
  font-size: var(--type-heading);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

h3 {
  font-size: var(--type-body);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

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

a {
  color: var(--gray-400);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

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

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;
}

body.has-tab-bar main {
  align-items: flex-start;
  padding-top: var(--space-6);
}

article {
  width: 100%;
}

section {
  width: 100%;
}



main.is-swiping-back {
  transition: none;
  box-shadow: -12px 0 24px rgba(0, 0, 0, 0.12);
  will-change: transform;
}

main:not(.is-swiping-back) {
  transition: transform 0.2s ease;
}

.hidden {
  display: none !important;
}
