/* The Plainspoken Review — accessibility-first. Large type, high contrast, one column.
   System fonts only, no external requests. */
:root {
  --bg: #ffffff;
  --text: #0b1f3a;
  --navy: #0b1f3a;
  --on-navy: #ffffff;
  --link: #0a3a8c;
  --link-hover: #062457;
  --yellow: #ffd23f;
  --yellow-soft: #fff4c7;
  --panel: #f1f4f9;
  --border: #0b1f3a;
  --border-soft: #9fb0c8;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Verdana, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", Cambria, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1f3a;
    --text: #ffffff;
    --navy: #06142a;
    --on-navy: #ffffff;
    --link: #ffe07a;
    --link-hover: #ffffff;
    --yellow: #ffd23f;
    --yellow-soft: #1d3457;
    --panel: #132c50;
    --border: #ffffff;
    --border-soft: #6f86a8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 20px/1.6 var(--sans); }
@media (min-width: 700px) { body { font-size: 21px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 4px; }
/* Big, unmissable focus style: yellow background + navy outline */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 4px solid var(--text); outline-offset: 2px; background: var(--yellow); color: #0b1f3a; text-decoration: none; box-shadow: 0 0 0 8px var(--yellow);
}
kbd { font: inherit; font-weight: 700; padding: 0 .35em; border: 2px solid currentColor; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.5rem); margin: 0 0 .5em; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 18px; background: var(--yellow); color: #0b1f3a; font-weight: 700; border: 3px solid #0b1f3a; }
.skip:focus { top: 16px; }

/* Header */
.masthead { background: var(--navy); color: var(--on-navy); padding: 28px 0 22px; border-bottom: 8px solid var(--yellow); }
.sitename { display: inline-block; color: var(--on-navy); font: 700 clamp(1.9rem, 1.2rem + 3vw, 2.9rem)/1.1 var(--serif); text-decoration: none; }
.sitename:hover { color: var(--on-navy); text-decoration: underline; text-decoration-color: var(--yellow); }
.strap { margin: 8px 0 0; font-size: 1.05em; color: var(--on-navy); }

.mainnav { background: var(--panel); border-bottom: 2px solid var(--border-soft); padding: 14px 0; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mainnav li { flex: 1 1 auto; }
.mainnav a { display: flex; align-items: center; min-height: 52px; padding: 8px 16px; background: var(--bg); color: var(--text); border: 2px solid var(--border); border-radius: 8px; font-weight: 700; text-decoration: none; }
.mainnav a:hover { background: var(--yellow-soft); text-decoration: underline; color: var(--text); }
.mainnav a[aria-current="page"] { background: var(--yellow); color: #0b1f3a; border-color: #0b1f3a; }

.main { padding-top: 32px; padding-bottom: 48px; }

/* Buttons */
.button { display: inline-block; padding: 14px 24px; min-height: 52px; background: var(--navy); color: var(--on-navy); border: 3px solid var(--navy); border-radius: 8px; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--yellow); color: #0b1f3a; border-color: #0b1f3a; }
@media (prefers-color-scheme: dark) { .button { background: var(--yellow); color: #0b1f3a; border-color: var(--yellow); } .button:hover { background: #fff; } }
.button--ghost { background: var(--bg); color: var(--text); border-color: var(--border); }
@media (prefers-color-scheme: dark) { .button--ghost { background: var(--bg); color: var(--text); border-color: var(--border); } }

/* Homepage */
.welcome { background: var(--yellow-soft); border: 3px solid var(--border); border-left-width: 12px; border-left-color: var(--yellow); border-radius: 8px; padding: 22px 24px; margin-bottom: 40px; }
.welcome h1 { margin-bottom: .3em; }
.welcome p { margin: 0 0 1em; }
.welcome__sub { font: 700 1em/1.4 var(--sans); margin: 0 0 12px; }
.bigbuttons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 12px; }
.bigbutton { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: var(--navy); color: var(--on-navy); border: 3px solid var(--navy); border-radius: 8px; text-decoration: none; }
.bigbutton:hover { background: var(--bg); color: var(--text); border-color: var(--border); }
.bigbutton__title { font-weight: 700; font-size: 1.1em; }
.bigbutton__title::after { content: "\00a0\2192"; }
.bigbutton__text { font-size: .9em; }
@media (prefers-color-scheme: dark) { .bigbutton { background: var(--bg); border-color: var(--yellow); } .bigbutton:hover { background: var(--yellow); color: #0b1f3a; } }

.section-title { font-size: 1.5em; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 4px solid var(--yellow); }
.guides { list-style: none; margin: 0; padding: 0; }
.guide { padding: 22px 0; border-bottom: 2px solid var(--border-soft); }
.guide:first-child { padding-top: 6px; }
.guide__topic { margin: 0 0 4px; font-weight: 700; }
.guide__title { font-size: 1.35em; margin: 0 0 8px; }
.guide__desc { margin: 0 0 8px; }
.guide__meta { margin: 0 0 10px; }
.readlink { font-weight: 700; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.topic { display: block; padding: 16px 20px; border: 3px solid var(--border); border-radius: 8px; color: var(--text); text-decoration: none; }
.topic:hover { background: var(--yellow-soft); color: var(--text); }
.topic__title { display: block; font: 700 1.2em/1.3 var(--serif); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.topic__desc { display: block; margin-top: 4px; }
.topic__count { display: inline-block; margin-top: 8px; padding: 2px 10px; background: var(--yellow); color: #0b1f3a; border-radius: 99px; font-weight: 700; font-size: .9em; }
.empty { padding: 8px 0 16px; }

/* Breadcrumb + page heads */
.crumbs { margin: 0 0 18px; font-weight: 700; }
.pagehead { margin-bottom: 24px; }
.pagehead__intro { font-size: 1.1em; }
.article__meta { margin: 0; }

/* In short box */
.inshort { background: var(--yellow-soft); border: 3px solid var(--border); border-top: 12px solid var(--yellow); border-radius: 8px; padding: 18px 22px; margin: 0 0 24px; font-size: 1.05em; }
.inshort__title { font: 700 1.1em/1.2 var(--sans); margin: 0 0 8px; }
.inshort p { margin: 0; }
.inshort ul { margin: 0; padding-left: 1.2em; }
.inshort li { margin-bottom: 6px; }
.inshort li::marker { content: "\2714  "; color: var(--text); }

/* Article body */
.article__fig { margin: 24px 0; }
.article__fig img { border: 2px solid var(--border-soft); border-radius: 8px; }
.article__fig figcaption { margin-top: 8px; font-size: .95em; }
.prose h2 { font-size: 1.5em; margin: 1.8em 0 .5em; padding-left: 14px; border-left: 8px solid var(--yellow); }
.prose h3 { font-size: 1.2em; margin: 1.5em 0 .4em; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
/* Numbered steps: big circled numbers */
.prose ol { list-style: none; counter-reset: step; padding: 0; margin: 1.2em 0; }
.prose ol > li { counter-increment: step; position: relative; padding: 4px 0 12px 3.6rem; min-height: 3rem; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--on-navy); font-weight: 700; font-size: 1.05em; border: 3px solid var(--yellow); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; background: var(--panel); border-left: 8px solid var(--border); border-radius: 0 8px 8px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 2px solid var(--border-soft); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel); }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 3px solid var(--border-soft); margin: 2em 0; }
/* Glossary: each term as a clear block */
.prose--glossary h3 { font-size: 1.25em; margin: 1.4em 0 .3em; padding: 8px 14px; background: var(--panel); border-left: 8px solid var(--yellow); border-radius: 0 8px 8px 0; }
.prose--glossary h3:target { background: var(--yellow); color: #0b1f3a; }
.article__glossary { padding: 14px 18px; border: 2px dashed var(--border-soft); border-radius: 8px; }

.prevnext { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 12px; margin: 36px 0; }
.prevnext .button { display: flex; flex-direction: column; gap: 4px; font-weight: 400; }
.prevnext__label { font-weight: 700; }
.prevnext__next { text-align: right; }
.related ul { padding-left: 1.2em; }
.related li { margin-bottom: 10px; }

/* Shared partials: disclosures */
.disclosure { margin: 0 0 16px; padding: 16px 20px; border: 3px solid var(--border); border-radius: 8px; background: var(--bg); font-size: .95em; }
.disclosure strong { display: block; margin-bottom: 4px; font-size: 1.05em; }
.disclosure--health, .disclosure--vr { background: var(--panel); border-style: solid; border-left-width: 12px; }
.disclosure:last-of-type { margin-bottom: 28px; }

/* Shared partials: project box */
.project-box { margin: 28px 0 16px; padding: 18px 22px; border: 3px solid var(--border); border-radius: 8px; background: var(--panel); }
.project-box__name { margin: 0 0 6px; font: 700 1.25em/1.3 var(--serif); }
.project-box__short { margin: 0 0 12px; }
.project-box__platform { display: block; margin-top: 4px; font-weight: 700; }
.project-box__platform::before { content: "Works on: "; font-weight: 400; }
.project-box__link { display: inline-block; padding: 10px 18px; background: var(--navy); color: var(--on-navy); border-radius: 8px; font-weight: 700; text-decoration: none; }
.project-box__link:hover { background: var(--yellow); color: #0b1f3a; }
@media (prefers-color-scheme: dark) { .project-box__link { background: var(--yellow); color: #0b1f3a; } }
.project-box__note { margin: 12px 0 0; }

/* Shared partials: pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 32px 0; padding: 16px 0; border-top: 3px solid var(--border-soft); }
.pagination a { display: inline-block; min-height: 52px; padding: 12px 22px; border: 3px solid var(--border); border-radius: 8px; font-weight: 700; text-decoration: none; color: var(--text); }
.pagination a:hover { background: var(--yellow); color: #0b1f3a; }
.pagination__info { font-weight: 700; }
.pagination__next { margin-left: auto; }

/* Footer + shared site disclaimer */
.footer { background: var(--navy); color: var(--on-navy); border-top: 8px solid var(--yellow); padding: 32px 0 48px; }
.footer a { color: #ffe07a; }
.footer a:hover { color: #ffffff; }
.footer__title { font: 700 1.4em/1.2 var(--serif); margin: 0 0 12px; }
.footer__help { margin: 0 0 12px; }
.site-disclaimer { margin-top: 24px; padding-top: 20px; border-top: 2px solid rgba(255,255,255,.5); font-size: .9em; }
.site-disclaimer p { margin: 0 0 12px; }
.site-disclaimer__links { line-height: 2.2; margin-bottom: 12px; }
.site-disclaimer__links a { white-space: nowrap; font-weight: 700; }

@media print {
  .mainnav, .skip, .prevnext, .footer__help { display: none; }
  body { font-size: 14pt; }
}
.disclosure--vr { border-left-color: var(--yellow); }
