/* BoldnSmart base: tokens, type, header with dropdowns, mobile menu, footer, buttons, plate shell, source list.
   Every text/background pair is computed in contrast.txt (WCAG 2.2 formula). */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic-latin.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Serif Wordmark"; src: url("../fonts/roboto-serif-italic-latin.woff2") format("woff2"); font-weight: 500 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0e0b08;
  --bg-2: #16110c;
  --surface: #1c1611;
  --surface-2: #231b14;
  --ink: #f4ecdf;
  --ink-2: #d3c6b1;
  --ink-3: #ad9c83;
  --gold: #c29b67;
  --gold-hi: #dcbb8a;
  --gold-btn-a: #e4c592;
  --gold-btn-b: #c9a26d;
  --on-gold: #1a130b;
  --rule: #86704f;
  --rule-soft: rgba(134, 112, 79, .45);
  --focus: #f6dcaa;
  --warn: #e8a08a;
  --wrap: 1180px;
  --gutter: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: var(--rule) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 60; padding: 12px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus-visible { top: 12px; }
.skip-link:visited { color: var(--bg); }

/* ---------- Buttons: anchor-based, every state pins its colour ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 17px/1 var(--sans); letter-spacing: .005em; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn .icon { width: 20px; height: 20px; }
.btn__arrow { transition: transform .3s var(--ease); }
.btn--primary, .btn--primary:visited {
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-btn-a), var(--gold-btn-b));
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 244, 220, .55);
}
.btn--primary:hover, .btn--primary:focus-visible { color: var(--on-gold); transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 244, 220, .6); }
.btn--primary:hover .btn__arrow, .btn--primary:focus-visible .btn__arrow { transform: translateX(4px); }
.btn--primary:active { transform: translateY(0); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn--ghost, .btn--ghost:visited { color: var(--ink); background: rgba(194, 155, 103, .08); border-color: var(--rule); }
.btn--ghost .icon { color: var(--gold-hi); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); background: rgba(194, 155, 103, .18); border-color: var(--gold-hi); transform: translateY(-2px); }

/* Text link with arrow (gold, bold) */
.go, .go:visited { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--gold-hi); font-weight: 700; font-size: 16px; text-decoration: none; }
.go .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.go:hover, .go:focus-visible { color: var(--ink); }
.go:hover .icon, .go:focus-visible .icon { transform: translateX(4px); }

/* ---------- Header: one bar, brand left, nav right ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(14, 11, 8, .9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--rule-soft); }
.site-header__bar { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand, .brand:visited { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand__mark { width: 36px; height: 36px; }
.brand__word { font: italic 600 25px/1 "Roboto Serif Wordmark", "Cormorant Garamond", var(--serif); font-variation-settings: "wdth" 125, "opsz" 72, "GRAD" 0; letter-spacing: 0; }
.nav-toggle {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: var(--ink); background: rgba(194, 155, 103, .1); border: 0; border-radius: 12px; cursor: pointer;
}
.nav-toggle .icon { grid-area: 1 / 1; width: 22px; height: 22px; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(194, 155, 103, .22); color: var(--gold-hi); }

/* Mobile menu: a panel under the bar, topic groups as accordions */
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px var(--gutter) 32px;
  background-color: var(--bg);
  background-image: radial-gradient(80% 40% at 100% 0%, rgba(194, 155, 103, .1), transparent 70%), linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  animation: menuIn .35s var(--ease) both;
}
html.menu-open, html.menu-open body { overflow: hidden; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.site-nav__list { display: flex; flex-direction: column; }
.site-nav__item { border-bottom: 1px solid var(--rule-soft); }
.site-nav__link, .site-nav__link:visited {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 54px; padding: 0;
  color: var(--ink); background: none; border: 0; text-decoration: none; text-align: left; cursor: pointer;
  font: 500 20px/1 var(--serif); letter-spacing: -.005em;
}
.site-nav__link:hover, .site-nav__link:focus-visible { color: var(--gold-hi); }
.site-nav__link[aria-current="page"], .site-nav__item.is-current > .site-nav__link { color: var(--gold-hi); }
.site-nav__chev { width: 18px; height: 18px; color: var(--gold-hi); transition: transform .3s var(--ease); }
.site-nav__trigger[aria-expanded="true"] .site-nav__chev { transform: rotate(180deg); }

/* Dropdown panel (accordion on phones, floating panel on desktop) */
.dropdown { display: none; padding: 0 0 12px; }
.site-nav__item.is-open .dropdown { display: block; }
.dropdown__list { display: grid; }
.dropdown__link, .dropdown__link:visited {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px;
  border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color .2s;
}
.dropdown__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--gold-hi); background: radial-gradient(circle at 30% 25%, rgba(246, 220, 170, .2), rgba(194, 155, 103, .08) 70%); }
.dropdown__icon .icon { width: 18px; height: 18px; }
.dropdown__text { display: grid; gap: 2px; min-width: 0; }
.dropdown__name { font: 600 16px/1.25 var(--sans); }
.dropdown__desc { color: var(--ink-2); font-size: 14px; line-height: 1.3; }
.dropdown__link:hover, .dropdown__link:focus-visible { background: rgba(194, 155, 103, .12); }
.dropdown__link:hover .dropdown__name, .dropdown__link:focus-visible .dropdown__name { color: var(--gold-hi); }
.dropdown__link[aria-current="page"] { background: rgba(194, 155, 103, .12); }
.dropdown__link[aria-current="page"] .dropdown__name { color: var(--gold-hi); }

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__word { font-size: 28px; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: flex; align-items: center; gap: 24px; position: static; max-height: none; overflow: visible; padding: 0; background: none; border: 0; box-shadow: none; animation: none; }
  .site-nav__list { flex-direction: row; align-items: center; gap: 2px; }
  .site-nav__item { position: relative; border: 0; }
  .site-nav__link, .site-nav__link:visited { position: relative; width: auto; min-height: 44px; padding: 0 12px; gap: 6px; font: 500 17px/1 var(--sans); letter-spacing: 0; }
  .site-nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 1.5px; background: var(--gold-hi); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .site-nav__trigger::after { right: 30px; }
  .site-nav__link:hover::after, .site-nav__link:focus-visible::after, .site-nav__link[aria-current="page"]::after, .site-nav__item.is-current > .site-nav__link::after, .site-nav__item.is-open > .site-nav__link::after { transform: scaleX(1); }
  .site-nav__chev { width: 16px; height: 16px; }

  .dropdown {
    display: block; position: absolute; right: 0; top: calc(100% + 14px); z-index: 45; width: 400px; padding: 10px;
    border-radius: 16px;
    background: linear-gradient(170deg, #241b13 0%, #150f0b 100%);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(246, 220, 170, .14), inset 0 1px 0 rgba(255, 240, 210, .12);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: calc(100% - 40px) 0;
    transition: opacity .22s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .site-nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .3s var(--ease), visibility 0s; }
  }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; color: var(--ink-2); font-size: 15px; }
.crumbs__link, .crumbs__link:visited { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(211, 198, 177, .45); text-underline-offset: 4px; }
.crumbs__link:hover, .crumbs__link:focus-visible { color: var(--ink); text-decoration-color: var(--ink); }
.crumbs__sep { width: 14px; height: 14px; color: var(--ink-3); }
.crumbs__here { color: var(--gold-hi); font-weight: 600; }

/* ---------- Plate: the lit card every finding sits on (home stage, topic and note heroes) ---------- */
.plate {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 20px;
  background:
    radial-gradient(80% 70% at 62% 18%, rgba(220, 187, 138, .14), transparent 70%),
    linear-gradient(165deg, #261c15 0%, #140f0b 100%);
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 1), 0 0 0 1px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 240, 210, .12);
}
.plate::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(246, 220, 170, .8) 0%, rgba(194, 155, 103, .28) 30%, rgba(134, 112, 79, .12) 62%, rgba(246, 220, 170, .5) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.plate::before {
  content: ""; position: absolute; inset: -10% -40%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 236, 200, .07) 50%, transparent 62%);
  transform: translateX(-70%);
}
.plate.is-played::before { animation: sheen 1.8s var(--ease) both; }
@keyframes sheen { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
.plate__body { position: relative; z-index: 1; display: grid; gap: 14px; padding: 16px 16px 6px; }
.plate__visual { display: grid; align-items: end; min-height: 120px; }
.plate__cap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; }
.plate__num { font: 300 52px/.9 var(--serif); letter-spacing: -.03em; color: var(--gold-hi); white-space: nowrap; font-variant-numeric: lining-nums; }
.plate__num i { font-style: italic; font-size: .42em; color: var(--ink-2); margin: 0 .14em; letter-spacing: 0; }
.plate__text { font: 400 17px/1.3 var(--serif); color: var(--ink); text-wrap: pretty; }
.plate__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule-soft); }
.src, .src:visited {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 0;
  color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(211, 198, 177, .55); text-underline-offset: 4px;
}
.src .icon { width: 15px; height: 15px; }
.src:hover, .src:focus-visible { color: var(--ink); text-decoration-color: var(--ink); }
.plate__time { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink-2); font-size: 14px; }
.plate__time .icon { width: 15px; height: 15px; color: var(--gold-hi); }
.js .plate .plate__num { transition: opacity .7s var(--ease) .2s, transform .9s var(--ease) .2s; }
.js .plate:not(.is-played) .plate__num { opacity: 0; transform: translateY(10px); }
@media (min-width: 640px) {
  .plate__body { padding: 22px 24px 6px; gap: 18px; }
  .plate__visual { min-height: 170px; }
  .plate__num { font-size: 76px; }
  .plate__text { font-size: 20px; }
}

}

/* ---------- Footer: grouped sitemap, same structure as the header ---------- */
.site-footer { background: linear-gradient(180deg, var(--bg) 0%, #0a0806 100%); border-top: 1px solid var(--rule-soft); padding: 52px 0 28px; }
.site-footer__grid { display: grid; gap: 28px 24px; grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; }
.site-footer__mark { width: 48px; height: 48px; }
.site-footer__word { margin-top: 12px; font: italic 600 26px/1 "Roboto Serif Wordmark", "Cormorant Garamond", var(--serif); font-variation-settings: "wdth" 125, "opsz" 72, "GRAD" 0; }
.site-footer__about { margin-top: 10px; max-width: 34ch; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.site-footer__label { font: italic 500 19px/1.2 var(--serif); color: var(--gold-hi); margin-bottom: 4px; }
.site-footer__link, .site-footer__link:visited { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; color: var(--ink-2); text-decoration: none; font-size: 16px; line-height: 1.25; }
.site-footer__link:hover, .site-footer__link:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__link[aria-current="page"] { color: var(--gold-hi); }
.site-footer__link .icon { width: 18px; height: 18px; }
.site-footer__legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule-soft); text-align: center; color: var(--ink-3); font-size: 14px; }
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1.2fr 1fr 1fr 1.3fr; }
  .site-footer__brand { grid-column: auto; }
}

/* ---------- Scroll reveals: .js-gated, safety net in site.js ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .plate.is-played::before { animation: none; }
}

/* ---------- What we checked: the source list that ends every note (also sampled on the home page) ---------- */
.sources { max-width: 720px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 20px); }
.sources__title { display: flex; align-items: center; gap: 12px; font: 500 27px/1.2 var(--serif); }
.sources__title .icon { width: 24px; height: 24px; color: var(--gold-hi); }
.sources__list { display: grid; margin-top: 14px; counter-reset: s; }
.sources__item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.sources__mark { grid-row: 1 / span 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #2d2217; color: var(--gold-hi); }
.sources__mark .icon { width: 17px; height: 17px; }
.sources__kind { color: var(--gold-hi); font-size: 14px; font-weight: 700; }
.sources__name { color: var(--ink); font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.sources__open, .sources__open:visited { justify-self: start; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--ink-2); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(211, 198, 177, .45); text-underline-offset: 4px; }
.sources__open .icon { width: 15px; height: 15px; }
.sources__open:hover, .sources__open:focus-visible { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- Source type next to every citation (the five types are defined on method.html) ---------- */
.cite { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; min-width: 0; }
.cite__type { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-hi); font: 700 14px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.cite__type .icon { width: 14px; height: 14px; }
.cite__src { color: var(--ink-2); }
.cite--link { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 10px; }
.dash { font-family: var(--serif); font-weight: 400; }

/* "Sources checked <month>": always a link to what that means */
.checked, .checked:visited { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(211, 198, 177, .45); text-underline-offset: 4px; }
.checked .icon { width: 16px; height: 16px; color: var(--gold-hi); }
.checked:hover, .checked:focus-visible { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- Built by BoldnSmart: one labelled app card inside the matching notes ---------- */
.appnote {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px 16px; align-items: start; max-width: 720px; margin-top: 44px; padding: 20px 18px;
  border-radius: 18px;
  background: radial-gradient(80% 90% at 0% 0%, rgba(220, 187, 138, .12), transparent 70%), linear-gradient(165deg, #241b13 0%, #15100b 100%);
  box-shadow: inset 0 0 0 1px rgba(134, 112, 79, .6), 0 30px 60px -36px rgba(0, 0, 0, 1);
}
.appnote__icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .9); }
.appnote__label { color: var(--gold-hi); font: 700 14px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.appnote__title { margin-top: 6px; color: var(--ink); font: 500 20px/1.3 var(--serif); text-wrap: pretty; }
.appnote__fine { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.appnote__btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 640px) {
  .appnote { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 22px 24px; }
  .appnote__icon { width: 64px; height: 64px; }
  .appnote__btn { grid-column: auto; }
}
.appnote__btn, .appnote__btn:visited { border-color: var(--gold); }

