@import url("./theme/tokens.css");
@import url("./theme/themes.css");

/* Public documents use existing brand tokens without authenticated bootstraps. */
:root { color-scheme: dark light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--page-bg); color: var(--text-primary); font: 1rem/1.75 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent-primary); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 5px; }
header { border-bottom: 1px solid var(--border-normal); padding: 1.25rem max(1.25rem, calc((100vw - 1120px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 750; letter-spacing: .08em; text-decoration: none; color: var(--text-primary); }
nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
nav a { display: inline-block; padding: .5rem 0; }
nav a[aria-current] { font-weight: 700; text-decoration-thickness: 2px; }
main { max-width: 820px; margin: auto; padding: 3rem 1.25rem 4rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: .5rem 0 1rem; letter-spacing: -.035em; }
h2 { font-size: 1.3rem; line-height: 1.4; margin: 2.5rem 0 .7rem; padding-top: 1.1rem; border-top: 1px solid var(--border-normal); }
p { margin: .8rem 0; }
.intro { font-size: 1.15rem; }
.eyebrow, .updated { color: var(--text-secondary); font-size: .9rem; }
li { margin: .6rem 0; padding-left: .2rem; }
ul, ol { padding-left: 1.5rem; }
footer { border-top: 1px solid var(--border-normal); padding: 2rem 1.25rem; text-align: center; }
footer a { display: block; margin-top: .5rem; }
footer p { color: var(--text-secondary); font-size: .9rem; }
.skip-link { position: absolute; top: -6rem; left: 1rem; padding: .7rem; background: var(--page-bg); z-index: 2; }
.skip-link:focus { top: .5rem; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) body { --page-bg: #e6f2f8; --text-primary: #1d3e52; --text-secondary: #4c687a; --border-subtle: #8eb4ca; --border-normal: #80a9c1; --accent-primary: #287fa9; }
}
@media (max-width: 600px) { header { align-items: flex-start; } nav { font-size: .95rem; } main { padding-top: 2rem; } }
@media print { body { background: white; color: black; } header, .skip-link { display: none; } main { max-width: none; padding: 0; } a { color: black; } h2 { break-after: avoid; } }
