.shell, .shell-wide { width: min(100% - (2 * var(--edge)), var(--shell)); margin-inline: auto; }
.shell-wide { max-width: var(--shell-wide); }
.site-main { min-height: 60vh; overflow: clip; }
.content-section { padding-block: var(--space-7); }
.scroll-sentinel { position: absolute; top: 1px; width: 1px; height: 1px; }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-height);
  color: var(--ink);
  background: rgb(245 239 230 / 92%);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: height .25s var(--ease-stage), border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-compact { height: 66px; border-color: rgb(23 19 16 / 12%); box-shadow: 0 8px 28px rgb(23 19 16 / 7%); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.brand-logo { width: auto; max-width: min(220px, 31vw); height: 44px; object-fit: contain; filter: brightness(0); }
.brand-wordmark, .footer-brand { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.05em; }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-disclosure { position: static; }
.nav-toggle { display: none; list-style: none; }
.nav-toggle::-webkit-details-marker { display: none; }
.primary-nav, .site-menu { display: flex; align-items: center; }
.site-menu { gap: clamp(.8rem, 1.45vw, 1.55rem); margin: 0; padding: 0; list-style: none; }
.site-menu a { position: relative; font-size: .88rem; font-weight: 760; text-decoration: none; }
.site-menu a::after { content: ""; position: absolute; right: 0; bottom: -.42rem; left: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-menu a:hover::after, .site-menu a[aria-current="page"]::after { transform: scaleX(1); }
.header-admin-dashboard { display: inline-grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; color: var(--sun); background: var(--night); border: 1.5px solid var(--night); border-radius: 15px; box-shadow: 0 4px 0 var(--orange); text-decoration: none; transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s var(--ease-stage); }
.header-admin-dashboard svg { width: 23px; height: 23px; fill: currentColor; }
.header-admin-dashboard:hover { color: var(--night); background: var(--sun); box-shadow: 0 2px 0 var(--orange); transform: translateY(-1px); }
.header-admin-dashboard:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.header-admin-dashboard:active { box-shadow: none; transform: translateY(2px); }

.site-footer { position: relative; padding-top: var(--space-7); color: var(--paper); background: var(--night); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: -180px; right: -120px; width: 420px; aspect-ratio: 1; border: 1px solid rgb(245 239 230 / 9%); border-radius: 50%; box-shadow: 0 0 0 56px rgb(245 239 230 / 3%), 0 0 0 112px rgb(245 239 230 / 2%); }
.footer-stage { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); padding-bottom: var(--space-6); }
.footer-description { max-width: 34ch; color: var(--muted-paper); }
.footer-brand { margin-bottom: .5rem; color: var(--sun); font-size: var(--step-2); }
.footer-nav, .footer-contact, .footer-social { display: grid; align-content: start; gap: .58rem; }
.footer-social { margin-top: var(--space-5); }
.footer-nav a, .footer-contact a, .footer-social a { width: fit-content; max-width: 100%; color: var(--paper); overflow-wrap: anywhere; text-decoration: none; }
.footer-label { margin: 0 0 .35rem; color: rgb(245 239 230 / 54%); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-block: 1.2rem; border-top: 1px solid rgb(245 239 230 / 14%); }
.footer-bottom p { margin: 0; color: rgb(245 239 230 / 52%); font-size: var(--step--1); }
.footer-bottom a { font-size: var(--step--1); }
.footer-credit { display: inline-flex; max-width: 100%; align-items: center; justify-content: center; gap: .48rem; color: rgb(245 239 230 / 72%); text-decoration: none; }
.footer-credit__copy { white-space: nowrap; }
.footer-credit__logo { display: block; width: auto; max-width: 104px; height: 24px; object-fit: contain; }
.footer-credit:hover { color: var(--paper); }
.footer-credit:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }

.section-heading { max-width: 720px; margin-bottom: var(--space-5); }
.section-heading h2 { margin-bottom: .28em; }
.section-heading > p:last-child { max-width: 56ch; color: var(--muted-ink); font-size: var(--step-1); }
.section-heading--split { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: var(--space-4); }
.section-action { margin: var(--space-5) 0 0; text-align: center; }
.page-intro { padding-block: clamp(2rem, 4vw, 4rem) var(--space-6); }
.page-intro h1 { max-width: 14ch; font-size: var(--step-4); }
.lead { max-width: 54ch; font-size: var(--step-1); line-height: 1.48; }
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 1.8em; font-size: var(--step-3); }
.prose h3 { margin-top: 1.55em; }
.prose p, .prose li { max-width: 68ch; }
.narrow-layout { max-width: 840px; }
.motion-reveal { opacity: 1; transform: none; }
.motion-reveal.is-revealed { animation: section-enter .58s var(--ease-stage) both; }
@keyframes section-enter { from { opacity: 0; transform: translateY(22px); } }
