/* GENERATED by build/build.py from build/additions/a11y.css, a copy for the hand-built home (sync_home.py links it). Do not edit this file: edit build/additions/ and run the build. */
/* ---- additions/a11y.css ---- */
/* Accessibility button + panel (founder, 2026-11-03).
   An icon-only button, bottom left, in the brand maroon with the light-gold figure. It opens a small panel:
   text size, read aloud, high contrast, readable font, wider spacing, underline links, reading guide, stop animations.
   Choices are kept in localStorage pp:a11y (motion keeps the shared pp:motion key). Script: additions/a11y.js. */

/* ---- the button ---- */
.ppa-btn {
  position: fixed; z-index: 64;
  left: 16px; bottom: calc(16px + var(--pp-actions-h, 0px) + var(--pp-notice-h, 0px));
  width: 52px; height: 52px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid rgba(217, 178, 92, 0.55); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: rgb(241, 221, 109);
  box-shadow: inset 0 0 0 1px rgba(241, 221, 109, 0.18), 0 10px 24px -10px rgba(20, 17, 16, 0.6);
  cursor: pointer;
  transition: transform var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out);
}
html.pp-noticed .ppa-btn { bottom: calc(28px + var(--pp-actions-h, 0px) + var(--pp-notice-h, 0px)); }
.ppa-btn svg { width: 30px; height: 30px; display: block; }
.ppa-btn:hover { transform: translateY(-2px); border-color: var(--gold-text); box-shadow: inset 0 0 0 1px rgba(241, 221, 109, 0.35), 0 14px 28px -10px rgba(20, 17, 16, 0.7); }
.ppa-btn:focus-visible { outline: 3px solid rgb(241, 221, 109); outline-offset: 3px; }
.ppa-btn[aria-expanded="true"] { border-color: rgb(241, 221, 109); }
.ppa-btn.is-on::after { /* a small gold dot when any setting is on */
  content: ''; position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 2px var(--maroon-deep);
}

/* ---- the panel ---- */
.ppa-panel {
  position: fixed; z-index: 65;
  left: 16px; bottom: calc(80px + var(--pp-actions-h, 0px) + var(--pp-notice-h, 0px));
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - 120px - var(--pp-actions-h, 0px)); overflow: auto;
  background: var(--paper-3); color: var(--ink);
  border: 1px solid var(--clay); border-radius: 10px;
  box-shadow: 0 24px 60px -24px rgba(28, 23, 21, 0.55);
  font: 400 15px / 1.45 var(--font-sans);
}
html.pp-noticed .ppa-panel { bottom: calc(92px + var(--pp-actions-h, 0px) + var(--pp-notice-h, 0px)); }
.ppa-panel[hidden] { display: none; }
.ppa-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: var(--maroon-deep); color: var(--paper);
  border-radius: 9px 9px 0 0;
}
.ppa-head h2 { margin: 0; font: 500 17px / 1.2 var(--font-sans); color: var(--paper); letter-spacing: 0.01em; }
.ppa-close {
  width: 44px; height: 44px; margin: -8px -10px -8px 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--paper); font-size: 24px; line-height: 1; cursor: pointer;
}
.ppa-close:hover, .ppa-close:focus-visible { background: rgba(245, 241, 234, 0.14); outline: none; }
.ppa-body { padding: 14px 16px 16px; display: grid; gap: 14px; }
.ppa-label { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }

/* text size: three buttons in a row */
.ppa-size { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ppa-size button {
  min-height: 44px; border: 1px solid var(--clay); border-radius: 6px; background: var(--paper);
  color: var(--ink); font-family: var(--font-serif); cursor: pointer;
}
.ppa-size button:nth-child(1) { font-size: 15px; }
.ppa-size button:nth-child(2) { font-size: 19px; }
.ppa-size button:nth-child(3) { font-size: 23px; }
.ppa-size button[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: var(--paper); }

/* read aloud */
.ppa-read {
  width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 6px; background: var(--maroon); color: var(--paper);
  font: 500 15px / 1.2 var(--font-sans); cursor: pointer;
}
.ppa-read:hover { background: var(--maroon-deep); }
.ppa-read svg { width: 20px; height: 20px; flex: none; }
.ppa-read[aria-pressed="true"] { background: var(--ink); }
.ppa-hint { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }

/* the on/off tiles */
.ppa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ppa-tile {
  min-height: 72px; padding: 10px 8px; display: grid; justify-items: center; align-content: center; gap: 6px;
  border: 1px solid var(--clay); border-radius: 8px; background: var(--paper); color: var(--ink);
  font: 500 14px / 1.2 var(--font-sans); text-align: center; cursor: pointer;
}
.ppa-tile svg { width: 24px; height: 24px; color: var(--maroon); }
.ppa-tile:hover { border-color: var(--gold); }
.ppa-tile[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: var(--paper); }
.ppa-tile[aria-pressed="true"] svg { color: rgb(241, 221, 109); }
.ppa-size button:focus-visible, .ppa-read:focus-visible, .ppa-tile:focus-visible, .ppa-reset:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.ppa-reset {
  justify-self: start; min-height: 44px; padding: 0 4px; border: 0; background: none;
  color: var(--maroon); font: 500 14px / 1 var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---- what the settings do to the page ---- */
html.a11y-size-1 main, html.a11y-size-1 .foot { zoom: 1.15; }
html.a11y-size-2 main, html.a11y-size-2 .foot { zoom: 1.3; }
html.a11y-size-1 main, html.a11y-size-2 main { overflow-x: clip; }   /* the home's pinned scenes measure in unzoomed pixels */

html.a11y-contrast {
  --paper: #FFFFFF; --paper-2: #FFFFFF; --paper-3: #FFFFFF;
  --ink: #000000; --ink-2: #000000; --clay: #000000;
  --gold: #5E4300; --gold-soft: #5E4300; --bone-dim: #FFFFFF;
}
html.a11y-contrast main img, html.a11y-contrast main video { filter: contrast(1.1); }
html.a11y-contrast main :is(p, li, dd, dt, figcaption, small, span) { opacity: 1 !important; }

html.a11y-font { --font-serif: var(--font-sans); }
html.a11y-font main :is(p, li, dd, h1, h2, h3, h4, a, figcaption) { letter-spacing: 0.02em; }

html.a11y-spacing main :is(p, li, dd, figcaption, blockquote) { line-height: 1.95 !important; word-spacing: 0.14em; letter-spacing: 0.02em; }
html.a11y-spacing main p { margin-bottom: 1.1em; }

html.a11y-links a:not(.ppa-btn) { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px; }
html.a11y-links main a { background: rgba(245, 167, 25, 0.22); }

.ppa-guide {
  position: fixed; z-index: 63; left: 0; right: 0; top: 0; height: 56px;
  pointer-events: none;
  border-top: 2px solid rgb(241, 221, 109); border-bottom: 2px solid rgb(241, 221, 109);
  box-shadow: 0 0 0 100vmax rgba(20, 17, 16, 0.42);
  transform: translateY(-200px);
}
.ppa-guide[hidden] { display: none; }

/* the word being read aloud */
.ppa-reading { background: rgba(245, 167, 25, 0.35); outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

@media (max-width: 720px) {
  .ppa-btn { width: 48px; height: 48px; left: 12px; }
  .ppa-btn svg { width: 28px; height: 28px; }
  .ppa-panel { left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ppa-btn { transition: none; }
  .ppa-btn:hover { transform: none; }
}
html[data-motion="reduced"] .ppa-btn { transition: none; }
@media print { .ppa-btn, .ppa-panel, .ppa-guide { display: none !important; } }

/* ---- go to top (founder, 2026-11-03): sits above the accessibility button, shows after 1.5 screens of scrolling ---- */
.ppt-btn {
  position: fixed; z-index: 64;
  left: 16px; bottom: calc(80px + var(--pp-actions-h, 0px) + var(--pp-notice-h, 0px));
  width: 52px; height: 52px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid rgba(217, 178, 92, 0.55); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: rgb(241, 221, 109);
  box-shadow: inset 0 0 0 1px rgba(241, 221, 109, 0.18), 0 10px 24px -10px rgba(20, 17, 16, 0.6);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui), border-color var(--t-ui) var(--ease-out);
}
html.pp-noticed .ppt-btn { bottom: calc(92px + var(--pp-actions-h, 0px) + var(--pp-notice-h, 0px)); }
.ppt-btn.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ppt-btn.is-shown:hover { transform: translateY(-2px); border-color: var(--gold-text); }
.ppt-btn:focus-visible { outline: 3px solid rgb(241, 221, 109); outline-offset: 3px; }
.ppt-btn svg { width: 24px; height: 24px; display: block; }
/* while the accessibility panel is open, the arrow steps aside */
html.ppa-open .ppt-btn { opacity: 0; visibility: hidden; }
@media (max-width: 720px) {
  .ppt-btn { width: 48px; height: 48px; left: 12px; bottom: calc(72px + var(--pp-actions-h, 0px) + var(--pp-notice-h, 0px)); }
  html.pp-noticed .ppt-btn { bottom: calc(84px + var(--pp-actions-h, 0px) + var(--pp-notice-h, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .ppt-btn { transition: none; transform: none; } }
html[data-motion="reduced"] .ppt-btn { transition: none; transform: none; }
@media print { .ppt-btn { display: none !important; } }
