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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--pv-deep-purple);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.45;
  color: var(--pv-text);
  /* The iOS GradientBackground: warm red to deep purple from the top left, plus a faint sun glow. */
  background:
    radial-gradient(60rem 40rem at 88% -10%, rgb(245 166 35 / 0.10), transparent 60%),
    radial-gradient(circle at 0 0, var(--pv-warm-red) 0, var(--pv-deep-purple) min(800px, 110vmax));
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0 0 var(--space-3); line-height: 1.1; font-weight: 700; letter-spacing: 0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-3); }
small, .muted { color: var(--pv-secondary-text); }
a { color: var(--pv-solar-gold); text-underline-offset: 3px; }
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

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

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--pv-solar-gold); color: var(--pv-deep-purple);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-small); font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.noscript { padding: var(--space-6) var(--gutter); text-align: center; }

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

.print-only { display: none; }
