*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--plum); line-height: 1.35; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; }
a { color: var(--rose-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum); }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--mauve); color: var(--ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -48px; z-index: 100;
  background: var(--plum); color: #fff; padding: 8px 14px; border-radius: var(--r-md);
  text-decoration: none; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* App shell */
.app { display: flex; min-height: 100vh; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page { flex: 1; width: 100%; }
.container { width: 100%; max-width: var(--content-w); margin-inline: auto; padding-inline: 24px; }
.container-wide { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 24px; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
/* Arrows/chevrons drawn for LTR are mirrored in RTL */
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

.pattern-bg {
  background-image: url("../assets/images/pattern.svg");
  background-size: 120px 120px;
}
