kirupa.com

04 / ACCESSIBILITY

Accessibility

Requirements for semantics, keyboard access, contrast, text alternatives, reflow, and media.

Agent Instructions / accessibility

You are implementing an accessible KIRUPA surface. Use WCAG 2.2 AA as the baseline for changed content, without claiming the existing site is audited. Prefer semantic HTML and native controls; preserve meaningful names, visible labels, keyboard operation, logical focus, focus return, and clear errors. Measure rendered contrast in every supported theme/state. Support 200% text resize, 320px reflow, text-spacing overrides, and usable touch targets. Supply meaningful text alternatives, captions/transcripts, and descriptions of otherwise missing visual information. Respect reduced motion, allow loops to pause, and keep sound optional. Combine automated checks with manual keyboard and assistive-technology review. Report checks, untested behavior, and unresolved barriers honestly. Site-wide motion answers to Customize Theme and reduced motion; never hold back focused content or move text someone is reading.

Use WCAG 2.2 Level AA as the acceptance baseline for new or changed content. This is an implementation rule, not a claim that every existing page or inherited theme has passed a conformance audit. Follow the linked W3C guidance, record the checks you performed, and report remaining barriers rather than hiding them behind a passing automated scan.

Start with semantic HTML: one descriptive page title and h1, ordered headings, named navigation and main landmarks, real links for destinations, and buttons for actions. Give every control an accessible name and every input a persistent visible label. Use ARIA only where native semantics do not express the interaction; keep names, roles, values, and expanded/hidden states accurate.

Complete every task with the keyboard alone. Preserve logical focus order, a working skip link, and a visible focus indicator that is not obscured by sticky content. Do not trap focus in a non-modal panel. Modal dialogs need managed focus; closing a dialog or menu should return focus to its opener. Do not make hover, dragging, color, shape, location, or sound the only way to understand or perform an action. Here is a real tutorial link with keyboard focus; this illustrates the state rather than certifying the page's accessibility:

Keyboard focus in a real tutorial

A tutorial body link with the site's visible keyboard focus treatment.

pixel / light / Blue palette / Fixed capture, 2026-10-19.

Check the actual rendered foreground/background pairs in each supported style, palette, mode, and interaction state. Normal text needs at least 4.5:1 contrast; large text needs 3:1 (at least 24 CSS px regular or about 18.67 CSS px bold). Meaningful control boundaries, state indicators, and graphical information need 3:1 against adjacent colors. A source token, accent swatch, or attractive screenshot is not evidence of sufficient contrast.

Allow text resizing to 200% and content reflow at 320 CSS px, equivalent to a 1280px-wide viewport at 400% zoom. Do not disable browser zoom. Preserve content and controls when users increase text spacing. Confine genuinely two-dimensional maps, tables, and diagrams to their own accessible region instead of forcing the whole page to scroll sideways. Aim for 44x44 CSS px primary touch targets; WCAG 2.2 AA's minimum is 24x24, with defined spacing, inline, equivalent-control, native-control, and essential exceptions.

Write purposeful alternatives for meaningful images, diagrams, and canvas output; use empty alt text for decorative images and hide duplicate icon content from assistive technology. The Who's Online table is part of the globe experience. Publish accurate synchronized captions for speech and relevant sounds, a transcript, and audio description when important visual information is not conveyed in the audio. A transcript alone does not replace synchronized captions.

Keep errors visible, specific, associated with the affected input, and recoverable without losing the user's work. Announce important asynchronous status changes without moving focus or narrating every update. Respect prefers-reduced-motion, provide a pause/stop for nonessential loops, avoid flashing effects, and leave the interface complete with sound muted. These motion and sound practices are shared design requirements even where they go beyond a particular AA criterion.

Motion on the site maps to WCAG 2.2 like this. Readers control the site-wide layers in Customize Theme, the device's reduced-motion setting turns them all off, and design-system previews add a local Pause motion that also applies offscreen:

CriterionWhat it asksHow kirupa.com meets it
2.2.2 Pause, Stop, Hide (A)A way to pause, stop, or hide motion that starts on its own, lasts over 5s, and runs beside other contentBackground icons and the home page's icons and tour: Motion > Off or Still. Drift, the only choice that moves on its own, rests 3s after scrolling unless the reader picks Never, and the tour also holds while a question is hovered or focused. Gap: the header sky, the kirupaBot launcher, and the 404 page's dancers loop with no on-page pause; only reduced motion stops them
2.3.3 Animation from Interactions (AAA)Motion triggered by an interaction, such as scrolling, can be turned offBackground icons: Motion > Off or Still. Content reveals: Off. Reduced motion turns both off, and the home page follows the same choices
2.4.11 Focus Not Obscured (AA)A focused element isn't hiddenFocus on a held block shows it at once, and held blocks take no clicks

Reveals never hide content from assistive technology or search: held blocks stay in the accessibility tree, and the HTML and CSS hide nothing without the script. Find in page and printing show everything, jumps never land on fading text, and the icon layers are aria-hidden with no focus stops. Motion has the details.

Every article section heading links to itself, in all nine styles. headingLinks in kirupa.js turns each h2-h4 in the article (#tutorialInformation in #mainContent) into a link to its own #id: the heading's text becomes the link, so its accessible name stays the heading text.

Headings keep any id they already have, because old links depend on them; the rest get a stable slug from their text, with -2 and -3 for repeats. A heading that already holds a link or control gets a separate "#" link named "Link to section: ..." instead.

A plain click does four things:

  • It copies the full URL with the #id (Clipboard API, then a hidden-textarea fallback).
  • It updates the address bar with history.replaceState so nothing jumps.
  • It plays the style's link sound.
  • It shows "Link copied" beside the heading in a role="status" element that screen readers announce.

Modified clicks still open the link normally. Each style draws a "#" beside the heading on hover or keyboard focus, in its own voice; Terminal always shows its Markdown hashes (#, ##, ###) in the left margin, and they are the link. scroll-margin-top: 28px and a second scroll after load land a shared link just below the top of the window, even for generated ids the browser couldn't find at first.

Pages without an article (the home page, landing pages, the podcast list) get none, so page-level and decorative headings never do. Inside articles, the title, callouts, book and video promos, the newsletter, navigation, quizzes, tables, and anything inside [data-heading-links="off"] are skipped.

  • Before delivery, check keyboard order and focus return, screen-reader names and landmarks, every changed theme/state's contrast, 200% text resize, 320px reflow, and user text-spacing overrides.
  • Check meaningful alt text, captions/transcripts, canvas or table alternatives, reduced motion, Customize Theme's motion choices, muted sound, and loading/empty/error recovery wherever they apply.
  • Use automated accessibility checks where available, then perform manual keyboard and assistive-technology checks. State any untested behavior or remaining barriers; never claim that a tool certifies accessibility.
Source maphttps://www.w3.org/WAI/WCAG22/quickref/https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.htmlhttps://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.htmlhttps://www.w3.org/WAI/WCAG22/Understanding/reflow.htmlhttps://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.htmlhttps://www.w3.org/WAI/ARIA/apg/design/design.jsdesign/preview.jstools/design_system.browser.mjshttps://www.w3.org/WAI/WCAG22/Understanding/pause-stop-hide.htmlhttps://www.w3.org/WAI/WCAG22/Understanding/animation-from-interactions.htmlhttps://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum.htmltools/motion.browser.mjs