/* 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: #FBF7F8;      /* blush white */
  --card: #FFFFFF;
  --ink: #2B2233;        /* plum ink */
  --ink-soft: #5A4F63;
  --heather: #6B4A80;    /* brand: heather */
  --heather-pale: #F1E8F3;
  --blush: #F5E1E5;
  --blush-deep: #B76A7C;
  --sage: #E1EBE3;
  --sage-deep: #3F6B57;
  --silver: #DDD3DE;
  --strong: #2F6A55;     /* evidence: strong */
  --some: #8A6314;       /* evidence: some */
  --weak: #8E4D4D;       /* evidence: weak */
  --none: #6B6575;       /* evidence: none */
  --radius: 18px;
  --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; }


/* ---------- Warm redesign (Nov 2026) ---------- */
.site-header { background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.2) blur(6px); position: sticky; top: 0; z-index: 5; border-bottom-color: var(--blush); }
.brand span { color: var(--blush-deep); }
.btn { border-radius: 999px; padding: 14px 26px; }
.btn.quiet { border-radius: 999px; }

/* Hero with photograph */
.hero-photo { position: relative; margin: clamp(16px, 3vw, 32px) 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; background: var(--blush); border-radius: calc(var(--radius) * 1.5); overflow: hidden; }
.hero-photo .copy { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.hero-photo h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 0.4em; font-weight: 600; color: var(--ink); }
.hero-photo p { font-size: 1.25rem; color: var(--ink-soft); margin: 0 0 1.4em; max-width: 32ch; }
.hero-photo .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.hero-note { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); margin-top: 1.4em; }

/* Evidence strip under hero */
.evidence-strip { margin: clamp(28px, 5vw, 48px) 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.evidence-strip h2 { font-size: 1.6rem; margin: 0 0 0.3em; font-weight: 600; }
.evidence-strip p { margin: 0; color: var(--ink-soft); }
.evidence-strip .ledger { border-radius: var(--radius); border-color: var(--silver); }

/* Photo cards for topics */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--silver); transition: transform .2s ease; }
.card:hover { transform: translateY(-3px); }
.card:hover h3 { color: var(--heather); text-decoration: underline; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.card .body { padding: 16px 20px 20px; }
.card h3 { font-size: 1.25rem; margin: 0 0 4px; }
.card p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.card.sage { background: var(--sage); }
.card.blush { background: var(--blush); }

.section { border-top: 0; }
.section.tinted { background: var(--sage); border-radius: calc(var(--radius) * 1.5); padding: clamp(28px, 5vw, 56px); margin-top: clamp(32px, 6vw, 64px); }
.section.tinted .az { border-top-color: var(--sage-deep); }
.search input { border-radius: 999px; border-color: var(--heather); padding: 14px 20px; }

/* Entry banner photo */
.entry-photo { margin: 0 0 1.8em; border-radius: var(--radius); overflow: hidden; }
.entry-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }

.notice { border-radius: 0 var(--radius) var(--radius) 0; background: var(--blush); border-left-color: var(--blush-deep); }
.table-wrap table { border-radius: var(--radius); overflow: hidden; }
th { background: var(--heather-pale); }
.product { border-radius: var(--radius); }

/* Trust band */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: clamp(32px, 6vw, 64px); }
.trust img { width: 100%; border-radius: var(--radius); display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.trust h2 { font-size: 1.7rem; margin: 0 0 0.4em; font-weight: 600; }

.site-footer { background: #2B2233; }
.site-footer .inner { color: #E6DDE8; }

@media (max-width: 860px) {
  .hero-photo { grid-template-columns: 1fr; }
  .hero-photo img { min-height: 240px; max-height: 360px; }
  .evidence-strip, .trust { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.hero-photo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); }
.hero-photo img { object-position: 40% 35%; max-height: 560px; }
.hero-photo h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
@media (max-width: 860px) { .hero-photo img { max-height: 320px; object-position: 40% 30%; } }
.hero-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 520px; }
.hero-photo img { max-height: none; height: 100%; position: absolute; inset: 0; }
.hero-photo .media { position: relative; min-height: 320px; }
@media (max-width: 860px) { .hero-photo { min-height: 0; } .hero-photo .media { height: 300px; } }
.hero-photo { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr); min-height: 470px; }
.hero-photo img { object-position: 50% 40%; }
.hero-photo .copy { padding: clamp(28px, 4vw, 52px); }
.hero-photo .actions .btn { padding: 12px 20px; font-size: 1rem; }

/* Hero banner: photo with text over the soft left side */
.hero-banner { position: relative; margin: clamp(16px, 3vw, 32px) 0 0; border-radius: calc(var(--radius) * 1.5); overflow: hidden; min-height: 500px; display: flex; align-items: center; background: var(--blush); }
.hero-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 92% 40%; }
.hero-banner .copy { position: relative; max-width: 520px; margin: 0; padding: clamp(28px, 4vw, 52px); background: linear-gradient(90deg, rgba(251,240,244,0.94) 0%, rgba(251,240,244,0.86) 75%, rgba(251,240,244,0) 100%); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.hero-banner h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 0.4em; font-weight: 600; }
.hero-banner p { font-size: 1.25rem; color: var(--ink-soft); margin: 0 0 1.3em; max-width: 30ch; }
.hero-banner .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-banner .hero-note { font-family: var(--sans); font-size: 0.95rem; margin: 1.3em 0 0; }
@media (max-width: 860px) {
  .hero-banner { display: block; min-height: 0; background: var(--blush); }
  .hero-banner img { position: static; height: 280px; }
  .hero-banner .copy { max-width: none; background: var(--blush); }
}
@media (max-width: 860px) {
  .hero-banner img { object-position: 65% 40%; }
  .site-header .inner { flex-wrap: nowrap; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; gap: 16px; font-size: 0.95rem; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .brand { font-size: 1.25rem; flex-shrink: 0; }
}
