/* Wear Valley Women's Aid
   Atkinson Hyperlegible (SIL OFL, Braille Institute): chosen for legibility for readers under stress or with low vision.
   Self-hosted: no third-party requests from this site. */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --plum: #730c41;        /* from the WVWA logo */
  --plum-deep: #4a0829;
  --magenta: #b8005a;     /* old site's accent, darkened for AA contrast */
  --bg: #fbf9fa;
  --panel: #ffffff;
  --tint: #f4eaef;
  --ink: #241720;
  --muted: #5b4b55;
  --line: #e4d8df;
  --focus: #1d5fd1;
  --font: "Atkinson Hyperlegible", system-ui, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 8rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.125rem/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--magenta); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .55em; color: var(--plum-deep); }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.2em; }
p, ul, ol, dl, blockquote { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .4em; }
li::marker { color: var(--plum); }
kbd { font: inherit; font-size: .9em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; background: var(--panel); }
blockquote { border-left: 4px solid var(--line); padding: .25rem 0 .25rem 1.1rem; color: var(--muted); font-style: italic; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; z-index: 60; background: #fff; color: var(--ink); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: .5rem; }

/* Safety bar: always visible. Quick exit is the most important control on the site. */
.safety { position: sticky; top: 0; z-index: 40; background: var(--plum-deep); color: #fff; font-size: 1rem; }
.safety .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.25rem; }
.safety p { margin: 0; flex: 1; line-height: 1.3; }
.safety a:not(.exit) { color: #fff; font-weight: 700; }
.safety .hide-sm { white-space: nowrap; }
.exit { flex: none; background: #fff; color: var(--plum-deep); border: 0; border-radius: 6px; padding: .55rem 1rem; font: 700 1.05rem/1 var(--font); text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; }
.exit:hover { background: #ffe3ef; color: var(--plum-deep); }
.exit svg { width: 1.1em; height: 1.1em; }
.exit small { font-weight: 400; font-size: .8rem; opacity: .8; }
@media (max-width: 640px) { .safety .hide-sm { display: none; } .exit small { display: none; } }

/* Header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; }
.brand img { width: 300px; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; flex-wrap: wrap; justify-content: flex-end; }
.nav li { margin: 0; }
.nav a { display: block; padding: .5rem .65rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; border-radius: 4px; }
.nav a:hover { background: var(--tint); color: var(--plum-deep); }
.nav a[aria-current] { color: var(--plum); box-shadow: inset 0 -3px 0 var(--plum); border-radius: 0; }
.menu-toggle { display: none; }
@media (max-width: 1080px) {
  .brand img { width: 220px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; background: none; border: 2px solid var(--plum-deep); color: var(--plum-deep); border-radius: 6px; padding: .45rem .8rem; font: 700 1rem/1 var(--font); cursor: pointer; }
  .menu-toggle svg { width: 1.1rem; height: 1.1rem; }
  .site-header .wrap { flex-wrap: wrap; min-height: 4.25rem; }
  .nav { display: none; flex-basis: 100%; margin: 0 0 .75rem; }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; }
  .nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav a[aria-current] { box-shadow: none; }
}
.no-js .nav { display: block; }
.no-js .menu-toggle { display: none; }

/* Home */
.hero { padding: clamp(2rem, 6vw, 4rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 16ch; }
.lede { font-size: 1.3rem; line-height: 1.55; }
.btn { display: inline-block; background: var(--plum); color: #fff; text-decoration: none; font-weight: 700; padding: .8rem 1.2rem; border-radius: 6px; }
.btn:hover { background: var(--plum-deep); color: #fff; }

.need { background: var(--plum); color: #fff; border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); }
.need h2 { color: #fff; margin: 0 0 .25rem; font-size: 1.5rem; }
.need p { margin: 0 0 1rem; }
.need a { color: #fff; }
.numbers { margin: 0 0 1rem; display: grid; gap: .9rem; }
.numbers div { margin: 0; }
.numbers dt { font-size: .95rem; opacity: .9; }
.numbers dd { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.1rem); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.numbers dd a { text-decoration: none; }
.numbers dd a:hover { text-decoration: underline; }
.need .emergency { margin: 0; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.3); font-weight: 700; }
.need .emergency a { font-size: 1.3rem; }

.band { background: var(--tint); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.mission { max-width: 52rem; }
.mission h2 { margin-top: 0; }
.mission p { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.5; color: var(--plum-deep); }
.mission p:last-child { margin: 0; }

.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem 2rem; padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; }
.path { display: block; text-decoration: none; color: var(--ink); border-top: 3px solid var(--plum); padding-top: 1rem; }
.path h2 { margin: 0 0 .35rem; font-size: 1.3rem; color: var(--plum); }
.path p { margin: 0; color: var(--muted); }
.path:hover h2 { text-decoration: underline; }
.faq-cta { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.faq-cta p { margin: 0; max-width: 46rem; }

/* Inner pages */
.page { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(1.75rem, 5vw, 3rem) clamp(2.5rem, 6vw, 4rem); }
@media (max-width: 880px) { .page { grid-template-columns: 1fr; gap: 1rem; } }
.content { max-width: 44rem; min-width: 0; }
.content > h1 { margin-bottom: .6em; }
.subhead { font-size: 1.3rem; color: var(--muted); margin-top: -.3em; }
.sidenav h2 { font-size: 1rem; margin: 0 0 .5rem; color: var(--muted); }
.sidenav ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.sidenav li { margin: 0; }
.sidenav a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink); line-height: 1.35; }
.sidenav a:hover { color: var(--plum); border-left-color: var(--line); }
.sidenav a[aria-current] { border-left-color: var(--plum); color: var(--plum); font-weight: 700; }
@media (max-width: 880px) {
  .sidenav { order: -1; }
  .sidenav ul { border: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
  .sidenav a { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; margin: 0; font-size: 1rem; background: var(--panel); }
  .sidenav a[aria-current] { background: var(--plum); color: #fff; border-color: var(--plum); }
  .sidenav h2 { display: none; }
}
.sidenav--single { display: none; }

.callout { background: var(--tint); border-radius: 8px; padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.callout h2 { margin-top: 0; font-size: 1.25rem; }
.callout p:last-child { margin-bottom: 0; }
.note { color: var(--muted); font-size: 1rem; }
.cols { columns: 2 12rem; column-gap: 2rem; }
.cols li { break-inside: avoid; }
.kinds dt { font-weight: 700; margin-top: 1rem; color: var(--plum-deep); }
.kinds dd { margin: .25rem 0 0; }
.kinds dd ul { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0 2rem; }
.grid-2 h3 { margin-top: .8em; }
.orgs { list-style: none; padding: 0; display: grid; gap: .25rem; }
.orgs li { padding: .85rem 0; border-bottom: 1px solid var(--line); margin: 0; line-height: 1.5; }
.orgs strong { color: var(--plum-deep); }
.docs { list-style: none; padding: 0; }
.docs li { padding: .6rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.toc ul { columns: 2 14rem; padding-left: 1.2em; }
.emergency { font-weight: 700; }
.numbers--wide { background: var(--plum); color: #fff; padding: 1.25rem 1.4rem; border-radius: 10px; }
.numbers--wide a { color: #fff; }

/* FAQ accordions */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 700; font-size: 1.2rem; color: var(--plum-deep); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.5rem; line-height: 1; color: var(--plum); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > :not(summary) { margin-top: 0; }
.faq details[open] { padding-bottom: .5rem; }

/* Footer */
.site-footer { background: var(--plum-deep); color: #f3e6ed; padding: 2.5rem 0 2rem; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer .cols-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem 2rem; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin: 0 0 .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer .legal { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.2); color: #d9c3cf; font-size: .95rem; }

/* Staging review mode: highlights updated facts so WVWA can check them */
.review-toggle { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; background: #fff3b0; color: #3a2a00; border: 2px solid #3a2a00; border-radius: 999px; padding: .55rem 1rem; font: 700 .95rem/1 var(--font); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.review .upd { background: #fff3b0; box-shadow: 0 0 0 3px #fff3b0; border-radius: 2px; }
.review div.upd { outline: 2px dashed #8a6d00; outline-offset: 6px; }
.review .upd::before { content: "Update " attr(data-n); display: inline-block; font-size: .75rem; font-weight: 700; background: #3a2a00; color: #fff; border-radius: 3px; padding: 0 .35em; margin-right: .35em; vertical-align: .15em; }
.review div.upd::before { margin-bottom: .4rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .safety, .site-header, .site-footer, .sidenav, .review-toggle { display: none; } body { background: #fff; } }
/* On small screens the phone numbers come first: people in crisis shouldn't have to scroll for them */
@media (max-width: 880px) { .hero-grid .need { order: -1; } }
