/* B · 70 let: tokens, modes, reset, typography */
:root {
  --paper: #FBF3E2; --paper-2: #F7DEB9; --ink: #17120D; --muted: #4A3F33;
  --accent: #F59200; --on-accent: #000; --accent-text: #7A3D00;
  --link: #00006B; --rule: #17120D; --focus: #000; --halo: #FBF3E2;
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --lh: 1.6; --ls: 0; --gutter: clamp(1rem, 4vw, 2.5rem); --max: 76rem;
  color-scheme: light;
}
html[data-contrast="dark"] {
  --paper: #17120D; --paper-2: #241C14; --ink: #F6EBD7; --muted: #D3C5AE;
  --accent-text: #FFB04D; --link: #FFC878; --rule: #F6EBD7; --focus: #FFE600; --halo: #17120D;
  color-scheme: dark;
}
html[data-contrast="high"] {
  --paper: #000; --paper-2: #000; --ink: #FFF; --muted: #FFF; --accent: #FFE600;
  --accent-text: #FFE600; --link: #FFE600; --rule: #FFF; --focus: #FFE600; --halo: #000;
  color-scheme: dark;
}
html[data-size="2"] { font-size: 125%; }
html[data-size="3"] { font-size: 150%; }
html[data-spacing="1"] { --lh: 1.9; --ls: .02em; }
html[data-spacing="1"] p, html[data-spacing="1"] li { margin-block-end: 1.1em; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/var(--lh) var(--font-body); letter-spacing: var(--ls);
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-optical-sizing: auto; font-weight: 700;
  line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 6vw, 3.8rem); font-weight: 750; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p, li, figcaption { text-wrap: pretty; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { max-width: 68ch; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .2em; }
a[href^="tel:"] { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
strong { font-weight: 700; }
dl { margin: 0; }
dt { font-weight: 700; }
dd { margin: 0; }
address { font-style: normal; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--halo); border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 1rem; top: -10rem; z-index: 100; padding: .75rem 1.25rem; min-height: 2.75rem;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: underline;
}
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
main:focus { outline: none; }
.num { font-variant-numeric: lining-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem;
  padding: .55rem 1.25rem; font: 700 1.0625rem/1.3 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); background: var(--accent); color: var(--on-accent); border-radius: 0;
  letter-spacing: var(--ls);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
html[data-contrast="high"] .btn { border-color: #FFF; }

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .btn, html:not([data-motion="off"]) a { transition: background-color .15s, color .15s, text-decoration-thickness .15s; }
}
@media (forced-colors: active) {
  .btn, .skip { border: 2px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
}
