* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #e8dcc6;
  color: var(--color-ink);
  font-family: var(--font-sans);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 250, 240, 0.78), rgba(232, 220, 198, 0) 24rem),
    #e8dcc6;
}

button {
  font: inherit;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-shell {
  width: min(100vw, var(--app-width));
  height: min(100vh, var(--app-height));
  height: min(100svh, var(--app-height));
  overflow: hidden auto;
  overscroll-behavior: contain;
  background: var(--color-cream-100);
  box-shadow: 0 1.5rem 4rem rgba(24, 53, 41, 0.18);
  scrollbar-width: thin;
  scrollbar-color: rgba(33, 69, 53, 0.35) transparent;
}

.app-shell::-webkit-scrollbar {
  width: 0.45rem;
}

.app-shell::-webkit-scrollbar-thumb {
  border-radius: var(--radius-pill);
  background: rgba(33, 69, 53, 0.35);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.screen {
  width: min(100%, var(--content-max));
  min-height: 100%;
  margin: 0 auto;
  padding: var(--space-6);
}

/* Build 2 Issue 2 — kill the desktop-column "website feel" on ALL modern
   iPhones. Previously this only kicked in ≤ 390px wide (iPhone SE / 13);
   iPhones 15 (393px), 16 (402px), 16 Pro Max (440px) all fell through and
   got cream side-margins. Now every phone-sized viewport (< 768px tablet
   breakpoint) fills the device edge-to-edge with no shell shadow. iPad
   and larger still get the boxed presentation via the native.css
   breakpoints. */
@media (max-width: 767px) {
  body {
    place-items: stretch;
  }

  .app-shell {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    box-shadow: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--button-height);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 750;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--color-forest-700), var(--color-forest-900));
  box-shadow: 0 0.9rem 1.8rem var(--color-shadow);
  color: var(--color-cream-50);
}

.btn-secondary {
  background: var(--color-cream-50);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.55);
  color: var(--color-forest-900);
}

.link-button {
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--color-forest-900);
  cursor: pointer;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(33, 69, 53, 0.28);
  text-underline-offset: 0.35rem;
}

.card {
  border: 1px solid rgba(53, 107, 80, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 0.8rem 2rem rgba(24, 53, 41, 0.07);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--color-forest-700), var(--color-forest-950));
  box-shadow: 0 0.9rem 1.8rem rgba(24, 53, 41, 0.14);
  color: var(--color-cream-50);
}

.brand-mark.small {
  width: 2rem;
  height: 2rem;
}

.brand-mark.small svg {
  width: 1rem;
  height: 1rem;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-forest-900);
  font-size: var(--text-sm);
  font-weight: 800;
}

.eyebrow,
.card-label {
  margin: 0;
  color: var(--color-clay-500);
  font-size: var(--text-xs);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
