/* MenoWoman — site styles
   Type: Literata for reading, Atkinson Hyperlegible for interface text
   (chosen for legibility for readers with changing eyesight). */

@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F4F5F7;      /* cool pale grey */
  --card: #FFFFFF;
  --ink: #1F2535;        /* deep slate ink */
  --ink-soft: #4A5266;
  --heather: #5E4470;    /* brand: muted heather */
  --heather-pale: #ECE6F0;
  --silver: #C9CDD6;
  --strong: #2F6A55;     /* evidence: strong */
  --some: #8A6314;       /* evidence: some */
  --weak: #8E4D4D;       /* evidence: weak */
  --none: #6B7080;       /* evidence: none */
  --focus: #1D5FD1;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson", "Segoe UI", system-ui, sans-serif;

  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;   /* 19px: generous for older readers */
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--heather); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--silver); background: var(--card); }
.site-header .inner { max-width: 1120px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--heather); font-style: italic; font-weight: 400; }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; font-family: var(--sans); font-size: 1rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--heather); text-decoration: underline; }

/* Layout */
main { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.prose h1 { font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0.4em 0 0.4em; font-weight: 600; }
.prose h2 { font-size: 1.6rem; line-height: 1.25; margin: 2em 0 0.5em; font-weight: 600; }
.prose h3 { font-size: 1.25rem; line-height: 1.3; margin: 1.6em 0 0.4em; font-weight: 600; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.lede { font-size: 1.3rem; line-height: 1.55; color: var(--ink-soft); }
.byline { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); border-top: 1px solid var(--silver); border-bottom: 1px solid var(--silver); padding: 10px 0; margin: 1.5em 0 2em; }
.byline strong { color: var(--ink); }

/* Notices */
.notice { font-family: var(--sans); font-size: 0.98rem; background: var(--heather-pale); border-left: 4px solid var(--heather); padding: 14px 18px; margin: 1.5em 0; line-height: 1.5; }
.notice p { margin: 0; }

/* Evidence rating: the site's signature element */
.rating { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 0.95rem; font-weight: 700; }
.rating .bars { display: inline-flex; gap: 3px; }
.rating .bars i { display: block; width: 14px; height: 14px; border-radius: 2px; background: var(--silver); }
.rating[data-level="strong"] { color: var(--strong); }
.rating[data-level="strong"] .bars i { background: var(--strong); }
.rating[data-level="some"] { color: var(--some); }
.rating[data-level="some"] .bars i:nth-child(-n+2) { background: var(--some); }
.rating[data-level="weak"] { color: var(--weak); }
.rating[data-level="weak"] .bars i:nth-child(1) { background: var(--weak); }
.rating[data-level="none"] { color: var(--none); }

/* Home hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.45em; font-weight: 600; }
.hero p { font-size: 1.3rem; color: var(--ink-soft); margin: 0 0 1.4em; max-width: 34ch; }
.ledger { background: var(--card); border: 1px solid var(--silver); border-radius: 6px; padding: 8px 22px; }
.ledger-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--paper); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .claim { font-size: 1.02rem; line-height: 1.4; }
.ledger-row .claim small { display: block; font-family: var(--sans); color: var(--ink-soft); font-size: 0.85rem; margin-top: 2px; }
.ledger-cap { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); margin: 10px 2px 0; }

.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; background: var(--heather); color: #fff; padding: 13px 22px; border-radius: 4px; text-decoration: none; }
.btn:hover { background: #4C3659; text-decoration: none; }
.btn.quiet { background: transparent; color: var(--heather); border: 2px solid var(--heather); }

/* Topic grid */
.section { padding: clamp(32px, 6vw, 64px) 0; border-top: 1px solid var(--silver); }
.section > h2 { font-size: 1.7rem; margin: 0 0 0.3em; font-weight: 600; }
.section > p.sub { color: var(--ink-soft); margin: 0 0 1.6em; max-width: 60ch; }
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.topic { padding: 20px 20px 22px 0; border-bottom: 1px solid var(--silver); }
.topic h3 { font-size: 1.25rem; margin: 0 0 6px; }
.topic h3 a { color: var(--ink); text-decoration: none; }
.topic h3 a:hover { color: var(--heather); text-decoration: underline; }
.topic p { margin: 0; font-size: 1.02rem; color: var(--ink-soft); }
.topic .soon { font-family: var(--sans); font-size: 0.85rem; color: var(--none); margin-top: 8px; display: block; }

/* Scale explainer */
.scale { list-style: none; padding: 0; margin: 1.2em 0 1.8em; border-top: 1px solid var(--silver); }
.scale li { display: grid; grid-template-columns: 11rem minmax(0,1fr); gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid var(--silver); margin: 0; }
.scale li p { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.98rem; line-height: 1.45; background: var(--card); }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--silver); }
th { background: var(--heather-pale); font-weight: 700; }

/* Product slots */
.product { background: var(--card); border: 1px solid var(--silver); border-radius: 6px; padding: 20px 22px; margin: 1.4em 0; }
.product h3 { margin: 0 0 6px; }
.product .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-bottom: 10px; font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); }
.product p { margin: 0 0 0.8em; }
.product .btn { font-size: 1rem; padding: 10px 18px; }
.product.placeholder { border-style: dashed; background: transparent; }

/* Sources */
.sources { font-family: var(--sans); font-size: 0.95rem; line-height: 1.5; }
.sources li { margin-bottom: 0.5em; }

/* Footer */
.site-footer { margin-top: clamp(48px, 8vw, 96px); background: var(--ink); color: #DADDE5; font-family: var(--sans); font-size: 0.98rem; }
.site-footer .inner { max-width: 1120px; margin: 0 auto; padding: 36px var(--gutter); display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0,1fr)); gap: 28px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid #3A4152; padding-top: 18px; font-size: 0.9rem; color: #B5BAC6; }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #CDB8DA; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .scale li { grid-template-columns: 1fr; }
  .site-footer .inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .site-footer, .btn { display: none; } body { background: #fff; } }
article.prose { padding-top: clamp(16px, 4vw, 40px); }
.table-wrap table { min-width: 620px; }

/* Encyclopedia */
.prose.wide { max-width: 1120px; }
.crumbs { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 0.4em; }
.crumbs a { color: var(--ink-soft); }
.dateline { font-family: var(--sans); color: var(--ink-soft); margin: -0.2em 0 0.8em; }
.small { font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); }
.related { columns: 2 220px; }
.az { list-style: none; padding: 0; margin: 1em 0 0; border-top: 2px solid var(--ink); }
.az li { padding: 14px 0; border-bottom: 1px solid var(--silver); margin: 0; display: grid; gap: 2px; }
.az li a { font-size: 1.15rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.az li a:hover { color: var(--heather); text-decoration: underline; }
.az li span { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); }
.az-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 28px; }
.az-cols li { grid-template-columns: minmax(0,1fr) auto; align-items: baseline; }
.az-cols li span { font-size: 0.85rem; }
.search { display: block; max-width: 520px; margin: 0 0 1.2em; font-family: var(--sans); }
.search span { display: block; font-weight: 700; margin-bottom: 6px; }
.search input { width: 100%; font: inherit; font-size: 1.1rem; padding: 12px 14px; border: 2px solid var(--ink-soft); border-radius: 4px; background: var(--card); color: var(--ink); }
table.products td:first-child { min-width: 170px; }
