*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid #a94426; outline-offset: 3px; }
.skip-link { position: absolute; z-index: 99; left: 12px; top: -60px; padding: 10px 16px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.wrap { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.serif { font-family: 'Newsreader', Georgia, serif; font-weight: 400; letter-spacing: -.035em; }
.eyebrow { color: var(--green); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 8px; padding: 10px 18px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border-color: var(--control-border); background: var(--surface); }
.button-text { border-color: transparent; background: transparent; color: var(--green-dark); }
.button-danger { background: #fff2ef; color: var(--danger); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; border: 1px solid var(--control-border); border-radius: 8px; padding: 11px 13px; color: var(--ink); background: #fff; }
.field textarea { min-height: 125px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); outline: 3px solid var(--green); outline-offset: 2px; }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--green-soft); color: var(--green-dark); }
.notice.error { background: #fff0ec; color: #812d23; }
.notice[hidden] { display: none; }
.status { color: var(--muted); min-height: 24px; }
.status[data-kind="error"] { color: var(--danger); }
.status[data-kind="success"] { color: var(--green-dark); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.section { padding-block: 82px; }
.section-heading { max-width: 620px; margin: 0 0 35px; }
.section-heading h2 { margin: 6px 0 10px; font: 400 clamp(2.1rem, 4vw, 3.2rem)/1.04 'Newsreader', Georgia, serif; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .wrap { width: min(calc(100% - 32px), var(--content)); }
  .section { padding-block: 56px; }
  body { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Shared identity and resilient content sizing across public and workspace pages. */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.14rem; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand .brand-mark { display: block; width: 36px; height: 36px; flex: none; background: none; border-radius: 0; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
input, textarea, select { min-width: 0; }
input, textarea { scroll-margin-block: 100px; }
h1, h2, h3, p, .notice, .status { overflow-wrap: anywhere; }
.button { text-align: center; }
.button:disabled:hover { transform: none; }
:target { scroll-margin-top: 90px; }

.button, .filter-button, .level-choice, .icon-close, .mobile-menu, .nav-toggle { transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease; }
.button:active:not(:disabled) { transform: translateY(1px); }
.field input, .field select, .field textarea { transition: border-color 200ms ease, box-shadow 200ms ease; }
.field :user-invalid { border-color: var(--danger); box-shadow: inset 3px 0 var(--danger); }
@media (prefers-reduced-motion: reduce) { .button:active:not(:disabled) { transform: none; } }
