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

html { scroll-behavior: smooth; }

body.pixie-print-theme {
  margin: 0;
  background: var(--pixie-white);
  color: var(--pixie-night);
  font-family: var(--pixie-font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar { --pixie-admin-bar: 32px; }

img { max-width: 100%; height: auto; }

a { color: var(--pixie-indigo); text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }
a:hover { color: var(--pixie-night); }

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

button,
[type="button"],
[type="submit"] { cursor: pointer; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--pixie-indigo-light);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  color: var(--pixie-night);
  font-family: var(--pixie-font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }

p { margin: 0 0 1em; }

table { width: 100%; border-collapse: collapse; }

.screen-reader-text,
.pixie-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;
}

.pixie-skip-link {
  position: fixed;
  z-index: 99999;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--pixie-night);
  color: #fff;
  transform: translateY(-160%);
}
.pixie-skip-link:focus { transform: translateY(0); color: #fff; }

.pixie-container {
  width: min(calc(100% - 48px), var(--pixie-content));
  margin-inline: auto;
}

.pixie-main { min-height: 55vh; padding-block: var(--pixie-space-6) var(--pixie-space-7); }
.pixie-section { padding-block: var(--pixie-space-7); }

.pixie-page,
.pixie-prose { max-width: var(--pixie-reading); }
.pixie-prose > * + * { margin-top: 1.15em; }
.pixie-prose :where(ul, ol) { padding-left: 1.4rem; }
.pixie-prose blockquote { margin-left: 0; padding: 0.5rem 0 0.5rem 1.5rem; border-left: 4px solid var(--pixie-indigo); font-size: 1.2rem; }

.pixie-page-header { margin-bottom: var(--pixie-space-6); }
.pixie-page-header h1 { max-width: 980px; }

.pixie-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--pixie-indigo);
  font-size: var(--pixie-text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pixie-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.75rem);
}
.pixie-section-head h2 { max-width: 740px; margin-bottom: 0; }
.pixie-section-head > p { max-width: 480px; margin: 0; color: var(--pixie-muted); }

.pixie-empty-state,
.pixie-state-page {
  padding: clamp(2rem, 7vw, 6rem);
  border: 1px solid var(--pixie-line);
  border-radius: var(--pixie-radius-xl);
  background: var(--pixie-surface-indigo);
  text-align: center;
}
.pixie-state-page { max-width: 900px; margin: 2rem auto; }
.pixie-state-page .pixie-search { margin: 2rem auto; }

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