/* Base typography, layout shell, header, nav menus, pledge, buttons, footer. */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:where(main, section, [id]) { scroll-margin-top: var(--anchor-offset); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 120; padding: 10px 16px; background: var(--ink); color: var(--bg); }

.eyebrow { margin-bottom: 10px; font-size: var(--type-min); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.fine { font-size: max(.82rem, 14px); color: var(--muted); }
.hint { margin-top: 16px; padding: 16px 20px; background: var(--surface); border-left: 2px solid var(--accent); color: var(--muted); }
.notice { margin-bottom: 16px; padding: 14px 18px; background: var(--accent-soft); border-left: 3px solid var(--accent); }
.section { padding: var(--section-y) 0; }
.section--soft { background: var(--surface); }
.section--tight { padding: var(--band-y) 0; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 28px; }
.section__title { font-family: var(--serif); font-weight: 400; font-size: var(--type-h2); line-height: 1.1; letter-spacing: -.01em; }
.section__lede { max-width: 60ch; margin-top: 10px; color: var(--muted); }

/* Buttons & links (min 44px touch targets) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: var(--radius); font-size: max(.78rem, 13.5px); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--subtle { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--subtle:hover { border-color: var(--ink); }
.btn--mini { min-height: 40px; padding: 8px 14px; font-size: var(--type-min); }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.text-link { display: inline-flex; align-items: center; min-height: 40px; font-size: max(.8rem, 13.5px); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid currentColor; padding: 6px 0 4px; white-space: nowrap; }
.hint .text-link { white-space: normal; }
.text-link:hover { color: var(--ink); }

/* Pledge strip */
.pledge { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; padding: 14px 16px; background: var(--surface); border-left: 3px solid var(--accent); }
.pledge__say { font-size: max(.96rem, 16px); color: var(--ink); }
.pledge__meta { font-size: max(.82rem, 14px); color: var(--muted); }

/* Sticky header & tools */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.site-header.nav-open { z-index: 80; }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-family: var(--serif); font-size: 1.38rem; letter-spacing: .01em; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav { order: 3; width: 100%; display: flex; align-items: center; gap: 18px; overflow-x: auto; scrollbar-width: none; font-size: max(.76rem, 13px); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav::-webkit-scrollbar { display: none; }
.nav a, .nav__btn { padding: 8px 0; white-space: nowrap; border-bottom: 2px solid transparent; min-height: 40px; display: inline-flex; align-items: center; text-transform: inherit; letter-spacing: inherit; font-weight: inherit; }
.nav a:hover, .nav__btn:hover, .nav a[aria-current="page"], .nav__btn--current { color: var(--ink); border-bottom-color: var(--accent); }

.header__tools { order: 2; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-size: var(--type-min); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn__label { display: none; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.badge[hidden] { display: none; }
.header__wa { display: none; }

/* Dropdown panels */
.nav__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 82; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 36px rgba(20, 20, 20, .09); overflow-y: auto; }
.nav__panel-inner { padding: 24px 0 28px; }
.nav__panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.nav__eyebrow { font-size: var(--type-min); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav__all { display: inline-flex; align-items: center; min-height: 40px; font-size: max(.82rem, 14px); font-weight: 600; color: var(--accent); border-bottom: 1px solid currentColor; }
.nav__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 8px 18px; }
.nav__links a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: var(--radius); border: 1px solid transparent; font-size: max(.92rem, 15.5px); }
.nav__links a:hover { background: var(--surface); border-color: var(--line); }
.nav__count { font-size: var(--type-min); color: var(--muted); }

/* Page head & crumbs */
.page-head { padding: 36px 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: var(--type-min); color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 36px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-title { font-family: var(--serif); font-weight: 400; font-size: var(--type-h1); line-height: 1.06; }
.page-lede { max-width: 62ch; margin-top: 12px; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 24px; padding: 48px 0 36px; border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner { display: grid; gap: 28px; }
.footer__brand p { max-width: 42ch; margin-top: 10px; font-size: max(.9rem, 15px); color: var(--muted); }
.footer__wa { display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; font-weight: 600; color: var(--accent); border-bottom: 1px solid currentColor; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: max(.82rem, 14px); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.footer__nav a, .footer__legal a { display: inline-flex; align-items: center; min-height: 40px; }
.footer__nav a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: max(.82rem, 14px); color: var(--muted); }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--ink); }

@media (min-width: 760px) {
  .header__inner { flex-wrap: nowrap; }
  .nav { order: 2; width: auto; margin-left: 16px; }
  .header__tools { order: 3; }
  .icon-btn__label, .header__wa { display: inline-flex; }
  .footer__inner { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .footer__bottom { grid-column: 1 / -1; }
}

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