/* ── Príma Sörpad · element defaults ────────────────────────────────────
   Minimal reset + the handful of element rules every surface shares.
   Components carry their own styling; nothing here is a utility framework. */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--font-body-size);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text-heading);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h1 { font-size: var(--font-h1-size); }
h2 { font-size: var(--font-h2-size); }
h3 { font-size: var(--font-h3-size); }
h4 { font-size: var(--font-h4-size); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-normal); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--text-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) var(--ease-standard);
}
a:hover { color: var(--text-link-hover); }

img, svg, video { max-width: 100%; }

hr { border: 0; border-top: var(--border-width) solid var(--border-default); margin: var(--space-8) 0; }

:where(button, [role="button"], a, input, select, textarea):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

::selection { background: var(--amber-200); color: var(--ink-800); }

/* The one shared page-level pattern: the hop/hop-leaf motif from
   primasorpad_hatter_elem_v1.svg bleeding in from both edges of a light
   section. Mirror it on the right, never place it in the middle. */
.psp-motif-section { position: relative; overflow: hidden; isolation: isolate; }
.psp-motif-section::before,
.psp-motif-section::after {
  content: "";
  position: absolute;
  top: -8%;
  width: var(--motif-width);
  aspect-ratio: 1586 / 1413;
  background: url("../../../assets/bg-element.svg") no-repeat center / contain;
  opacity: var(--motif-opacity);
  pointer-events: none;
  z-index: -1;
}
.psp-motif-section::before { left: -12%; }
.psp-motif-section::after { right: -12%; transform: scaleX(-1); }
