/* Text, headings, links and buttons. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); overflow-wrap: break-word; }
h1, h2, h3, p, dl, dd, ol, figure, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
h1, h2 { font-weight: 800; font-stretch: 118%; line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.125rem; font-weight: 700; }
a { color: var(--blue); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 20; padding: 12px 20px; background: var(--red); color: var(--white); }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 800px; }
.lead { font-size: 1.2rem; max-width: 34em; }
.sub { color: var(--soft); margin-top: 12px; max-width: 60ch; }
.small { font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Buttons: red is the main action, like the top stripe of the flag. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 24px; border: 2px solid var(--red); border-radius: 6px; background: var(--red); color: var(--white); font: 700 1.0625rem/1.2 var(--text); text-decoration: none; text-align: center; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:active { transform: translateY(2px); }
.btn-line { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--tile); border-color: var(--navy); }
.btn-ink { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-ink:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.btn-wide { width: 100%; }
.error-page { padding-block: 64px; display: grid; gap: 20px; }
