/* Optional reader preferences; shared by every page. */
html.large-text { font-size: 125%; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--accent, #8a651a);
  outline-offset: 5px;
}
.skip-link {
  position: fixed; z-index: 10000; top: 12px; left: 12px;
  padding: 12px 18px; background: #fff; color: #111;
  border: 2px solid #111; transform: translateY(-180%);
  font: 600 1rem/1.4 Arial, sans-serif;
}
.skip-link:focus { transform: translateY(0); }
html.reduce-motion { scroll-behavior: auto !important; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  html:not(.has-js), html:not(.has-js) * { scroll-behavior: auto !important; }
  html:not(.has-js) *, html:not(.has-js) *::before, html:not(.has-js) *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
html.high-contrast {
  --paper: #fff; --ink: #000; --muted: #242424; --accent: #000;
  --line: #000; --surface: #fff; --card: #fff; --hero-ink: #fff;
}
html.high-contrast[data-theme="dark"] {
  --paper: #000; --ink: #fff; --muted: #fff; --accent: #ffe0a2;
  --line: #fff; --surface: #000; --card: #000; --hero-ink: #fff;
}
html.high-contrast body { background-color: var(--paper); color: var(--ink); }
html.high-contrast a:not(.brand):not(.wordmark-link) { text-decoration: underline; text-underline-offset: .2em; }
html.high-contrast .hero-shade { background: rgba(0, 0, 0, .82) !important; }
html.high-contrast :where(button, input, select, textarea) { border-color: currentColor; }
html.high-contrast :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ink); box-shadow: 0 0 0 6px var(--paper);
}
.accessibility-dialog {
  width: min(37rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  max-width: calc(100vw - 32px);
  overflow: auto; margin: auto; padding: 2rem;
  background: var(--paper, #f5f1e8); color: var(--ink, #1b1b19);
  border: 1px solid var(--line, #c7c7be); border-radius: 12px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .28);
  font: 1rem/1.5 Arial, Helvetica, sans-serif;
}
dialog:not([open]) { display: none; }
.accessibility-dialog::backdrop, #film-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.a11y-dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 1.25rem; }
.a11y-eyebrow { margin: 0 0 .6rem; font-size: .62rem; letter-spacing: .13em; color: var(--muted, #60605a); }
.accessibility-dialog h2 { margin: 0; font: 400 2.2rem/1.1 Georgia, serif; letter-spacing: -.04em; }
.a11y-close {
  display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .6rem; min-height: 44px;
  border: 1px solid var(--line, #bdbdb7); border-radius: 4px;
  color: inherit; background: transparent; font: inherit; font-size: .8rem; cursor: pointer;
}
.a11y-close span { font-size: 1.3rem; }
.a11y-intro { color: var(--muted, #60605a); font-size: .9rem; line-height: 1.7; margin: 1.4rem 0; }
.a11y-appearance { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0 1.25rem; }
.a11y-appearance label { font-size: .95rem; }
.a11y-appearance select {
  max-width: 65%; padding: .65rem .75rem; min-height: 44px;
  background: var(--paper, #f5f1e8); color: var(--ink, #1b1b19);
  border: 1px solid var(--line, #bdbdb7); border-radius: 4px; font: inherit; font-size: .85rem;
}
.a11y-options { border-top: 1px solid var(--line, #c7c7be); }
.a11y-option {
  display: flex; width: 100%; min-height: 78px; justify-content: space-between; align-items: center; gap: 1.25rem;
  padding: 1.1rem 0; border: 0; border-bottom: 1px solid var(--line, #c7c7be);
  background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer;
}
.a11y-option strong { display: block; font-weight: 500; font-size: .95rem; }
.a11y-option small { display: block; font-size: .78rem; color: var(--muted, #60605a); margin-top: .25rem; line-height: 1.5; }
.a11y-toggle { display: block; flex-shrink: 0; position: relative; width: 42px; height: 25px; border: 1px solid #777; border-radius: 15px; background: #85877f; }
.a11y-toggle::after { content: ""; display: block; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: white; transition: transform .15s; }
.a11y-option[aria-pressed="true"] .a11y-toggle { background: var(--ink, #1b1b19); border-color: var(--ink, #1b1b19); }
.a11y-option[aria-pressed="true"] .a11y-toggle::after { transform: translateX(17px); background: var(--paper, #fff); }
.a11y-note { margin: .8rem 0 1.6rem; font-size: .73rem; color: var(--muted, #60605a); line-height: 1.5; }
.a11y-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .8rem; }
.a11y-dialog-footer a { text-decoration: underline; text-underline-offset: .2em; }
.a11y-reset { background: transparent; color: inherit; border: 0; border-bottom: 1px solid currentColor; font: inherit; cursor: pointer; padding: .55rem 0; min-height: 44px; }
@media (max-width: 500px) {
  .accessibility-dialog { padding: 1.4rem; }
  .accessibility-dialog h2 { font-size: 1.9rem; }
  .a11y-dialog-heading { gap: .8rem; }
  .a11y-eyebrow { font-size: .55rem; }
  .a11y-close { font-size: .7rem; }
  .a11y-dialog-footer { flex-wrap: wrap; gap: .8rem; }
}
@media (max-width: 380px) {
  .a11y-dialog-heading { flex-direction: column; gap: .75rem; }
  .a11y-close { order: -1; align-self: flex-end; }
  .a11y-appearance { flex-direction: column; align-items: stretch; gap: .6rem; }
  .a11y-appearance select { width: 100%; max-width: 100%; min-width: 0; }
}
@media (forced-colors: active) {
  :where(a, button, input, select, textarea):focus-visible { outline: 3px solid Highlight; }
  .a11y-toggle { background: Canvas; border-color: ButtonText; }
  .a11y-toggle::after { background: ButtonText; }
  .a11y-option[aria-pressed="true"] .a11y-toggle { background: Highlight; }
  .a11y-option[aria-pressed="true"] .a11y-toggle::after { background: HighlightText; }
}

