/* Archivo, self-hosted (audit item 9).
   Google Fonts is a third-party request that carries the visitor's IP to
   another company and blocks first paint. A 45 KB variable font on our own
   origin is faster, and for a European project it removes a data-protection
   question we would otherwise have to answer. */
@font-face{
  font-family:"Archivo";
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,
    U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,
    U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Archivo";
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,
    U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,
    U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* The AVA Project — site stylesheet
   Palette drawn from Ava: ivory fur, seal-point brown, her dusty-blue eyes. */

:root{
  --paper:#F4F4F5;
  --ink:#332F2C;
  --muted:#746C66;
  --deep:#4D4742;
  --accent:#92B0D4;
  --accent-ink:#232842;
  --line:rgba(51,47,44,.12);
  --line-soft:rgba(51,47,44,.07);
  --card:rgba(250,250,251,.72);
  --warn:#8a6d3b;
  --warn-bg:rgba(214,178,94,.14);
  --font:"Archivo",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,monospace;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{margin:0;padding:0}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto}
a{color:var(--accent-ink);text-decoration:none;border-bottom:1px solid var(--accent)}
a:hover{color:var(--deep)}
::selection{background:rgba(146,176,212,.28)}

/* skip link: keyboard users should not tab through the header on every page */
.skip{position:absolute;left:-9999px;top:0;background:var(--accent);
  color:var(--accent-ink);padding:10px 16px;border:0;z-index:10}
.skip:focus{left:8px;top:8px}

/* ---------- layout ---------- */
.wrap{max-width:1120px;margin:0 auto;padding:36px 24px 64px}
.cols{display:grid;grid-template-columns:minmax(0,1fr) 288px;gap:52px;align-items:start}
.cols>main{min-width:0}
.narrow{max-width:760px;margin:0 auto}

/* ---------- header ---------- */
header.top{
  display:flex;justify-content:space-between;align-items:baseline;gap:16px;
  padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:34px;
  flex-wrap:wrap;
}
.brand{display:flex;align-items:baseline;gap:10px}
.brand a{border:0;color:var(--ink);display:inline-flex;align-items:center;gap:8px}
.logo{display:block;width:auto;color:var(--ink)}
header.top .logo{height:26px}
.brand b{font-size:19px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.brand span{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(51,47,44,.5);align-self:center}
nav.main{font-size:13.5px;color:var(--muted);display:flex;gap:16px;flex-wrap:wrap}
nav.main a{color:var(--muted);border:0}
nav.main a:hover,nav.main a[aria-current]{color:var(--deep)}
nav.main a[aria-current]{font-weight:600}

/* ---------- typography ---------- */
h1{font-size:clamp(28px,4.2vw,42px);font-weight:600;line-height:1.12;
  letter-spacing:-.03em;margin:0 0 10px;text-wrap:pretty}
h2{font-size:12.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);margin:42px 0 14px}
h3{font-size:17px;font-weight:600;margin:0 0 6px;letter-spacing:-.01em;
  text-wrap:pretty}
p{margin:0 0 15px}
.lede{font-size:18px;line-height:1.55;color:var(--deep)}
.meta{font-size:13px;color:var(--muted);margin-bottom:6px}

/* ---------- notices ---------- */
.banner{background:var(--warn-bg);border-left:3px solid var(--warn);
  padding:13px 16px;font-size:12.5px;font-weight:600;letter-spacing:.02em;
  color:var(--warn);margin:24px 0;border-radius:0 6px 6px 0}

/* ---------- claims ---------- */
.claim{border:1px solid var(--line);border-radius:10px;background:var(--card);
  padding:18px 20px;margin-bottom:16px}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:11px}
.tag{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;
  padding:3px 9px;border-radius:999px;border:1px solid var(--line);
  color:var(--muted);white-space:nowrap}
.tag.ev{background:rgba(146,176,212,.2);border-color:transparent;color:var(--accent-ink)}
.tag.hu{background:var(--warn-bg);border-color:transparent;color:var(--warn)}
.excerpt{border-left:2px solid var(--accent);padding:8px 0 8px 14px;
  margin:12px 0 8px;font-size:14.5px;color:var(--deep);font-style:italic}
.excerpt small{display:block;font-style:normal;font-size:10.5px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted);margin-bottom:5px}
.interp{font-size:14.5px;color:var(--muted);margin:8px 0 0}

/* ---------- provenance ---------- */
.prov{border:1px solid var(--line);border-radius:10px;padding:16px 20px;
  font-size:13px;color:var(--muted);margin-top:16px}
.prov div{margin-bottom:4px}
.prov b{color:var(--deep);font-weight:600}

/* ---------- sidebar ---------- */
aside{position:sticky;top:24px;font-size:13.5px}
.block{border:1px solid var(--line);border-radius:10px;background:var(--card);
  padding:16px 18px;margin-bottom:16px}
.block h4{margin:0 0 10px;font-size:11px;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted)}
.block p{margin:0 0 8px;font-size:13.5px;color:var(--deep);line-height:1.5}
.block p:last-child{margin-bottom:0}
.block ul{list-style:none;margin:0;padding:0}
.block li{padding:6px 0;border-bottom:1px solid var(--line-soft);line-height:1.45}
.block li:last-child{border-bottom:0}
.block a{border:0;color:var(--deep)}
.block a:hover{border-bottom:1px solid var(--accent)}
.kv{display:flex;justify-content:space-between;gap:10px;padding:5px 0;
  border-bottom:1px solid var(--line-soft)}
.kv:last-child{border-bottom:0}
.kv span:first-child{color:var(--muted)}
.kv b{font-weight:600;color:var(--deep);font-variant-numeric:tabular-nums}
.key-item{display:flex;gap:9px;padding:5px 0;align-items:baseline}
.key-item b{font-family:var(--mono);font-size:12px;color:var(--accent-ink);
  min-width:14px}
.key-item span{font-size:12.5px;color:var(--muted);line-height:1.4}

/* ---------- stat grid (index) ---------- */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(126px,1fr));
  gap:12px;margin:22px 0 8px}
.stat{border:1px solid var(--line);border-radius:10px;padding:14px 16px;
  background:var(--card)}
.stat b{display:block;font-size:26px;font-weight:600;color:var(--deep);
  letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat span{font-size:12.5px;color:var(--muted)}

/* ---------- listings ---------- */
ul.list{list-style:none;padding:0;margin:0}
ul.list li{padding:15px 0;border-bottom:1px solid var(--line)}
ul.list li:last-child{border-bottom:0}
ul.list a{border:0;font-weight:500;font-size:16px}
ul.list a:hover{border-bottom:1px solid var(--accent)}
ul.list .meta{margin:4px 0 0}

/* ---------- footer ---------- */
footer{margin-top:52px;padding-top:22px;border-top:1px solid var(--line);
  font-size:12.5px;color:var(--muted);line-height:1.55}
.foot-legal{margin:0 0 8px;max-width:70ch}
.foot-row{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
footer a{color:var(--muted);border-bottom:1px solid var(--line)}
footer a:hover{color:var(--deep)}


/* ---------- focus (audit item 10) ----------
   Visible, high-contrast, and only for keyboard users so a mouse click does
   not leave a ring behind. Navigating this site without a mouse should never
   mean guessing where you are. */
:focus-visible{
  outline:2px solid var(--accent-ink);
  outline-offset:2px;
  border-radius:3px;
}
a:focus-visible{outline-color:var(--accent-ink);background:rgba(146,176,212,.16)}
button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible{outline:2px solid var(--accent-ink);outline-offset:1px}
.skip:focus-visible{outline:2px solid var(--ink);outline-offset:2px}


/* ---------- cards ----------
   White cards on the ivory ground, generous radii, a soft shadow tinted with
   the seal-point brown rather than black, and a lightly tinted visual area at
   the top. The accent is Ava's eye blue.

   Any figure shown inside a card is a real query result: a proportion bar
   reflects an actual ratio, never a decorative fill (spec §37). */

.stat{
  background:#fff;
  border:1px solid rgba(51,47,44,.07);
  border-radius:16px;
  padding:0;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(51,47,44,.04),0 8px 24px -12px rgba(51,47,44,.16);
  transition:box-shadow .22s ease,transform .22s ease;
  display:flex;flex-direction:column;
}
.stat:hover{
  box-shadow:0 1px 2px rgba(51,47,44,.05),0 14px 32px -14px rgba(51,47,44,.22);
  transform:translateY(-1px);
}
.stat .visual{
  background:linear-gradient(160deg,rgba(146,176,212,.20),rgba(146,176,212,.06));
  padding:18px 18px 14px;
  display:flex;flex-direction:column;justify-content:flex-end;
  min-height:88px;
}
.stat b{
  display:block;font-size:34px;font-weight:600;color:var(--accent-ink);
  letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums;
}
.stat .bar{
  height:4px;border-radius:999px;background:rgba(51,47,44,.09);
  margin-top:12px;overflow:hidden;
}
.stat .bar i{display:block;height:100%;border-radius:999px;background:var(--accent)}
.stat span{
  display:block;padding:13px 18px 16px;font-size:12.5px;color:var(--muted);
  line-height:1.35;
}

/* sidebar blocks share the card language */
.block{
  background:#fff;
  border:1px solid rgba(51,47,44,.07);
  border-radius:16px;
  padding:18px 20px 17px;
  margin-bottom:16px;
  box-shadow:0 1px 2px rgba(51,47,44,.04),0 8px 24px -14px rgba(51,47,44,.14);
}
.block h4{
  display:flex;align-items:center;gap:9px;
  margin:0 0 13px;font-size:11px;font-weight:600;letter-spacing:.11em;
  text-transform:uppercase;color:var(--muted);
}
/* small circular badge, as in the reference */
.block h4::before{
  content:"";flex:none;width:22px;height:22px;border-radius:999px;
  background:rgba(146,176,212,.22);
  box-shadow:inset 0 0 0 1px rgba(146,176,212,.35);
}
.block.b-paper h4::before{background:rgba(146,176,212,.22)}
.block.b-key h4::before{background:rgba(146,176,212,.14)}
.block.b-corpus h4::before{background:rgba(146,176,212,.28)}
.block.b-voices h4::before{background:rgba(214,178,94,.22);
  box-shadow:inset 0 0 0 1px rgba(214,178,94,.36)}

.block .kv{border-bottom:1px solid rgba(51,47,44,.06);padding:6px 0}
.block .kv:last-child{border-bottom:0}
.block .key-item{padding:6px 0}
.block .key-item b{
  display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:20px;border-radius:6px;flex:none;
  background:rgba(146,176,212,.2);color:var(--accent-ink);
  font-family:var(--font);font-size:11.5px;font-weight:600;
}

/* claim cards pick up the same elevation */
.claim{
  background:#fff;
  border:1px solid rgba(51,47,44,.07);
  border-radius:16px;
  padding:20px 22px;
  box-shadow:0 1px 2px rgba(51,47,44,.03),0 8px 22px -14px rgba(51,47,44,.13);
}
.prov{
  background:#fff;
  border:1px solid rgba(51,47,44,.07);
  border-radius:16px;
  box-shadow:0 1px 2px rgba(51,47,44,.03),0 8px 22px -14px rgba(51,47,44,.13);
}

@media (prefers-reduced-motion:reduce){
  .stat{transition:none}
  .stat:hover{transform:none}
}


/* sparkline: real growth from history.json, drawn by live.js */
.stat .spark{display:block;width:100%;height:26px;margin-top:10px;overflow:visible}
.stat .spark path{fill:none;stroke:var(--accent);stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.stat .spark path.area{fill:rgba(146,176,212,.18);stroke:none}
.stat .spark circle{fill:var(--accent-ink)}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .cols{grid-template-columns:1fr;gap:34px}
  aside{position:static}
  .wrap{padding:26px 18px 48px}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* ---------- site footer ----------
   Full-bleed background, content aligned to the page grid. The brand sits as
   the first column beside the section lists, matching the homepage design. */
footer.site{margin-top:60px;background:#EAEAEC;border-top:1px solid var(--line)}
footer.site .inner{max-width:1120px;margin:0 auto;padding:52px 24px 26px}
.foot-grid{display:grid;grid-template-columns:minmax(150px,1fr) repeat(4,1fr);
  gap:34px 26px;align-items:start;margin-bottom:40px}
.foot-brand{display:flex;flex-direction:column;align-items:center;gap:20px;
  text-align:center;padding-top:2px}
.foot-brand .logo{height:88px;width:auto;display:block;color:var(--ink);flex:none}
.foot-brand .wordmark{font-size:15.5px;font-weight:400;letter-spacing:.04em;
  color:var(--ink);line-height:1.25}
.foot-brand .wordmark b{font-weight:700}
.foot-brand .wordmark span{font-weight:700}
.foot-brand b{font-weight:700}
.foot-col h5{margin:0 0 16px;font-size:10.5px;font-weight:400;letter-spacing:.13em;
  text-transform:uppercase;color:rgba(51,47,44,.45)}
.foot-col ul{list-style:none;margin:0;padding:0}
.foot-col li{margin-bottom:12px;font-size:14.5px;line-height:1.35}
.foot-col a{color:rgba(51,47,44,.7);border:0}
.foot-col a:hover{color:var(--ink);border-bottom:1px solid var(--accent)}
/* sections not built yet: shown, but never a dead link */
.foot-col .soon{color:rgba(51,47,44,.34);cursor:default}
.foot-note{border-top:1px solid rgba(51,47,44,.13);padding-top:20px;
  font-size:12.5px;line-height:1.55;color:rgba(51,47,44,.5)}
.foot-note p{margin:0 0 7px;max-width:80ch}
.foot-note a{color:rgba(51,47,44,.6);border-bottom:1px solid rgba(51,47,44,.18)}
.foot-note a:hover{color:var(--ink)}
.foot-bottom{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin-top:16px;font-size:12.5px;color:rgba(51,47,44,.45)}
@media (max-width:900px){
  .foot-grid{grid-template-columns:repeat(2,1fr);gap:28px 20px}
  .foot-brand{grid-column:1 / -1;margin-bottom:4px}
}
@media (max-width:520px){
  .foot-grid{grid-template-columns:1fr}
  footer.site .inner{padding:36px 18px 24px}
}
