/* Type roles */
.display, .h2, .h3 { font-family: var(--font-display); font-weight: 400; font-variation-settings: "SOFT" 100, "WONK" 0; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
.display { font-size: var(--text-display); line-height: 1.04; letter-spacing: -0.015em; }
.display span { display: block; }
.display .hl { display: inline; padding: 0 0.08em; background: var(--color-yellow); color: var(--color-ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h2 { font-size: var(--text-section); line-height: 1.06; letter-spacing: -0.01em; }
.h3 { font-size: var(--text-title); line-height: 1.2; }
.prose { max-width: 62ch; }
.prose > * + * { margin-top: var(--space-sm); }
.lede { font-size: var(--text-lg); line-height: 1.5; text-wrap: pretty; }
.figure-text { font-family: var(--font-label); font-variant-numeric: tabular-nums; }
.textlink { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.textlink:hover { text-decoration-thickness: 2px; }
.textlink:focus-visible, .nav a:focus-visible, .lang a:focus-visible, .logo:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-h); padding: 0 var(--space-md); border: 2px solid var(--color-orange); border-radius: 0; background: var(--color-orange); color: var(--color-paper); font: 700 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-orange-deep); border-color: var(--color-orange-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn__short { display: none; }
.btn[data-book] { background: var(--color-yellow-btn); border-color: var(--color-yellow-btn); color: var(--color-ink); }
.btn[data-book]:hover { background: var(--color-yellow-deep); border-color: var(--color-yellow-deep); }
.btn--quiet { background: transparent; border-color: var(--fg); color: var(--fg); }
.btn--quiet:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.skip { position: absolute; left: var(--space-sm); top: calc(-1 * var(--space-4xl)); z-index: var(--z-skip); padding: var(--space-xs) var(--space-sm); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-sm); outline: 3px solid var(--color-orange); outline-offset: 2px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: var(--z-nav); background: var(--color-paper); border-bottom: 1px solid var(--color-rule); }
.site-head__in { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { height: 3.25rem; width: auto; }
.nav { display: flex; gap: var(--space-md); margin-left: auto; }
.nav a { font-size: var(--text-sm); text-decoration: none; white-space: nowrap; }
.nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.lang { display: flex; gap: var(--space-2xs); font: 400 var(--text-sm)/1 var(--font-label); }
.lang a { text-decoration: none; padding: var(--space-3xs); }
.lang a:hover { text-decoration: underline; }
.lang [aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 0.3em; }

