/* Screenless Allies — hand-coded stylesheet. Written for Jose Briseno, 2026. */
:root{
  --red:#B80D0D; --red-dark:#8f0a0a; --tint:#F9E9E9;
  --ink:#1c1c1c; --paper:#ffffff; --line:#d9d9d9;
}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--paper);line-height:1.6;font-size:1.125rem}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--red);color:#fff;padding:.6rem 1rem;z-index:10}
.skip-link:focus{left:0}
a{color:var(--red-dark)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.site-header{border-bottom:4px solid var(--red);padding:1rem 1.25rem;display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 2rem;max-width:76rem;margin:0 auto}
.site-title{font-size:1.5rem;font-weight:700;color:var(--ink);text-decoration:none}
.site-title:hover{color:var(--red)}
nav.main-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.25rem 1.25rem}
nav.main-nav a{color:var(--ink);text-decoration:none;font-weight:600}
nav.main-nav a:hover{color:var(--red);text-decoration:underline}
nav.main-nav a[aria-current="page"]{color:var(--red);text-decoration:underline}
main{max-width:76rem;margin:0 auto;padding:1.5rem 1.25rem 3rem}
main p,main li{max-width:72ch}
h1{font-size:2rem;line-height:1.25;margin:.5rem 0 1rem}
h2{font-size:1.5rem;margin:2rem 0 .75rem;line-height:1.3}
h3{font-size:1.2rem;margin:1.5rem 0 .5rem}
img{max-width:100%;height:auto;border-radius:6px}
.site-logo{height:64px;width:auto}
hr{border:0;border-top:2px solid var(--tint);border-bottom:1px solid var(--line);margin:2rem 0}
blockquote{border-left:4px solid var(--red);background:var(--tint);margin:1.5rem 0;padding:1rem 1.25rem;border-radius:0 6px 6px 0}
blockquote p{margin:.25rem 0}
blockquote cite{display:block;margin-top:.5rem;font-style:italic}
.button{display:inline-block;background:var(--red);color:#fff;text-decoration:none;font-weight:700;padding:.7rem 1.4rem;border-radius:6px;border:0;cursor:pointer;font-size:1.05rem}
.button:hover{background:var(--red-dark)}
.buttons{margin:1rem 0}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem;margin:1.5rem 0}
.tile{background:#fff;border:1px solid var(--line);border-top:4px solid var(--red);border-radius:6px;padding:1.25rem}
.tile h2,.tile h3{margin-top:0}
.tile figure{margin:0}
.tile img{width:100%}
.site-footer{border-top:4px solid var(--red);background:var(--tint);padding:1.5rem 1.25rem;margin-top:2rem}
.site-footer .wrap{max-width:76rem;margin:0 auto;display:flex;flex-wrap:wrap;gap:.5rem 2rem;align-items:center}
.site-footer a{color:var(--ink)}
form{max-width:44rem}
.field{margin:0 0 1.4rem}
fieldset.field{border:1px solid var(--line);border-radius:6px;padding:1rem 1.25rem}
legend{font-weight:700;padding:0 .4rem}
label{font-weight:600;display:block;margin-bottom:.35rem}
fieldset label{font-weight:400;display:flex;gap:.55rem;align-items:flex-start;margin:.45rem 0}
input[type="text"],input[type="email"],input[type="tel"],input[type="number"],textarea{width:100%;padding:.6rem .7rem;border:1.5px solid #767676;border-radius:4px;font:inherit}
input[type="radio"],input[type="checkbox"]{width:1.25rem;height:1.25rem;margin-top:.2rem;flex:none}
.help{color:#444;font-size:.95rem;margin:.3rem 0 0}
.req{color:var(--red);font-weight:700}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.consent-text{font-weight:400}
@media (prefers-color-scheme: dark){
  :root{--ink:#f2f2f2;--paper:#161616;--line:#444}
  .tile{background:#1e1e1e}
  blockquote{background:#2a1515}
  .site-footer{background:#2a1515}
  .help{color:#ccc}
  input,textarea{background:#1e1e1e;color:#f2f2f2}
}

/* Display settings: text size steps (visitor's own base size respected) */
html[data-textsize="large"]{font-size:125%}
html[data-textsize="xlarge"]{font-size:150%}
.display-settings{max-width:76rem;margin:0 auto;padding:.75rem 1.25rem;border-bottom:1px solid var(--line)}
.display-settings:empty{display:none}
.ds-title{font-size:1.05rem;margin:.25rem 0 .5rem}
.ds-group{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin:.4rem 0}
.ds-label{font-weight:600;margin-right:.25rem}
.ds-btn{font:inherit;font-size:.95rem;padding:.35rem .85rem;border:2px solid var(--ink);background:var(--paper);color:var(--ink);border-radius:999px;cursor:pointer}
.ds-btn[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
/* High contrast theme */
html[data-contrast="high"]{--ink:#000;--paper:#fff;--line:#000;--red:#000;--red-dark:#000;--tint:#fff}
html[data-contrast="high"] body{background:#fff;color:#000}
html[data-contrast="high"] a{color:#0000cc;text-decoration:underline}
html[data-contrast="high"] .site-title,html[data-contrast="high"] nav.main-nav a{color:#000}
html[data-contrast="high"] .site-footer{background:#fff}
html[data-contrast="high"] .tile,html[data-contrast="high"] blockquote{background:#fff}
html[data-contrast="high"] .button{background:#000;color:#fff}
html[data-contrast="high"] input,html[data-contrast="high"] textarea{background:#fff;color:#000;border-color:#000}
html[data-contrast="high"] a:focus-visible,html[data-contrast="high"] button:focus-visible,html[data-contrast="high"] input:focus-visible,html[data-contrast="high"] textarea:focus-visible{outline:3px solid #000}

/* Low-vision basics: links in content are underlined, never color alone */
main a{text-decoration:underline}
.site-footer a{text-decoration:underline}
/* Windows forced-colors mode: keep the pressed state of the display buttons visible */
@media (forced-colors: active){
  .ds-btn[aria-pressed="true"]{outline:3px solid ButtonText;outline-offset:2px}
}

/* Print: content prints as a clean document; controls and forms do not print */
.print-note{display:none}
@media print{
  @page{margin:2cm}
  body{background:#fff;color:#000;font-size:12pt}
  .skip-link,.display-settings,nav.main-nav,.button,.buttons{display:none}
  .site-header{border:0;padding:0 0 1rem}
  .site-logo{height:40px}
  .site-footer{background:#fff;border-top:1px solid #000}
  a{color:#000;text-decoration:underline}
  main{max-width:none;padding:0}
  h1,h2,h3{page-break-after:avoid}
  blockquote,.tile{background:#fff;border:1px solid #000}
  form{display:none}
  .print-note{display:block;border:1px solid #000;padding:1rem;font-weight:600}
}

/* Shelf icons: decorative only, aria-hidden in markup, motion off on request */
.shelf-icon{display:inline-flex;flex:none;margin-right:.35em}
.shelf-icon svg{display:block;height:1.35em;width:auto}
.bk{transform-box:fill-box;transform-origin:50% 100%;animation:bookTip 6s ease-in-out infinite}
.bk2{animation-delay:.55s}.bk3{animation-delay:1.1s}.bk4{animation-delay:1.65s}.bk5{animation-delay:2.2s}
@keyframes bookTip{0%,100%{transform:rotate(0deg)}6%{transform:rotate(-7deg)}12%{transform:rotate(0deg)}}
.fr rect{stroke:#8a8a8a;animation:frameGlow 4.5s linear infinite}
.fr2 rect{animation-delay:1.5s}.fr3 rect{animation-delay:3s}
@keyframes frameGlow{0%{stroke:#8a8a8a}8%{stroke:#B80D0D}25%{stroke:#B80D0D}40%,100%{stroke:#8a8a8a}}
.fr2 .play{transform-box:fill-box;transform-origin:center;animation:playPulse 2.25s ease-in-out infinite}
@keyframes playPulse{0%,100%{transform:scale(1);opacity:.75}50%{transform:scale(1.15);opacity:1}}
@media (prefers-reduced-motion: reduce){.shelf-icon *{animation:none !important}}
h4{font-size:1.05rem;margin:1.25rem 0 .4rem;line-height:1.35}

/* Braille-dot divider: pure decoration, aria-hidden in markup, no motion */
.dot-divider{height:12px;max-width:230px;margin:2.4rem auto;background-image:radial-gradient(circle,rgba(184,13,13,.5) 2.4px,transparent 3.1px);background-size:23px 12px;background-repeat:repeat-x;background-position:center}
/* Shelf thumbnails: decorative inside the video link (the link text names the video) */
.shelf-link{display:flex;align-items:center;gap:.85rem}
.shelf-thumb{width:168px;flex:none}

/* Responsive tuning for phones and small tablets (added 2026-12-03, Jose's go).
   Layout only: the document, reading order, and labels never change, so the
   screen-reader experience is identical at every width. Supports WCAG 1.4.10
   (Reflow: no sideways scrolling at phone width) and 2.5.8 (target size). */
@media (max-width:42em){
  .site-header{padding:.75rem 1rem;gap:.5rem 1rem}
  .site-logo{height:48px}
  .site-title{font-size:1.3rem}
  nav.main-nav ul{gap:.15rem .5rem}
  nav.main-nav a{display:inline-block;padding:.55rem .5rem}
  main{padding:1.25rem 1rem 2.5rem}
  h1{font-size:1.7rem}
  h2{font-size:1.35rem}
  .tiles{grid-template-columns:1fr}
  .display-settings{padding:.75rem 1rem}
  .ds-btn{min-height:2.75rem;padding:.5rem .95rem}
  .button{min-height:2.75rem}
  .shelf-link{flex-direction:column;align-items:flex-start;gap:.5rem}
  .shelf-thumb{width:100%;max-width:300px}
  audio,video{max-width:100%}
  pre{max-width:100%;overflow-x:auto}
  fieldset.field{padding:.85rem 1rem}
  .site-footer{padding:1.25rem 1rem}
}
