/* Reset, typography, layout primitives, prose. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
img { font-style: italic; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--orange-text); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.15; letter-spacing: -0.02em; color: var(--navy-deep); font-weight: 700; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

/* Layout */
.site-main { padding-top: var(--header-h); }
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }

.section { position: relative; padding-block: var(--section-y); }
.section--dark { background: var(--navy-deep); color: var(--text-light); }
.section--white { background: var(--white); }
.section--default { background: var(--bg); }
.section + .section--white, .section--white + .section--white { border-top: 1px solid var(--border); }

/* Accessibility helpers */
.screen-reader-text {
  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; top: -100px; left: 16px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Prose: editor content */
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 1.25em; }
.prose h2, .prose h3, .prose h4 { margin-top: 2em; font-family: var(--font-display); }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.prose h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.prose h4 { font-size: 1.1rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.75em; }
.prose p:first-child, .prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--orange); font-weight: 700; }
.prose a { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(27, 58, 92, 0.3); }
.prose a:hover { color: var(--orange-text); text-decoration-color: currentColor; }
.prose strong { font-weight: 700; color: var(--navy-deep); }
.prose blockquote {
  border-left: 4px solid var(--orange); padding: 0.5em 0 0.5em 1.5em;
  font-family: var(--font-display); font-size: 1.25em; line-height: 1.45; color: var(--navy-deep);
}
.prose blockquote cite { display: block; margin-top: 0.75em; font: 500 0.7em var(--font-body); color: var(--muted); font-style: normal; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 3em; }
.prose img { border-radius: var(--radius-lg); }
.prose figure { margin-block: 2em; }
.prose figcaption { margin-top: 0.6em; font-size: 0.85rem; color: var(--muted); text-align: center; }
.prose .wp-caption, .prose .alignnone { max-width: 100%; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: 0.4em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0.4em 0 1em 1.5em; max-width: 50%; }
.prose pre { background: var(--navy-deep); color: var(--text-light); padding: 1.25em; border-radius: var(--radius); overflow-x: auto; font-size: 0.9em; }
.prose code { font-size: 0.92em; background: rgba(15, 33, 55, 0.06); padding: 0.1em 0.4em; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.75em 1em; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-weight: 600; color: var(--navy-deep); background: rgba(15, 33, 55, 0.03); }
.prose .embed, .prose .wp-block-embed__wrapper { position: relative; }
.prose .embed iframe { width: 100%; border: 0; border-radius: var(--radius); }
.prose .embed iframe[src*="youtube"], .prose .embed iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.prose--center { text-align: center; }
.prose .btn { margin-top: 0.5em; }

/* Admin bar offset for logged-in users */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
