/* Media Literacy Guide - newsprint, a serif nameplate, one verification green.
 *
 * The subject is how to read a source, so the page reads like one: a masthead,
 * a dateline, section rules, a serif for headlines and a plain sans for the
 * instructions. Green is the single accent because "verified" is the state the
 * site teaches a reader to reach; amber is reserved for warnings - scams, urgent
 * steps - so a caution never looks like a link.
 *
 * Nothing here resembles a government site: no crest, no agency blue, no
 * "official" bar. The domain once belonged to a government body that still
 * exists, and the design is part of not looking like it.
 */

:root[data-site="medialiteracy"] {
  --paper: #fbfaf6;
  --paper-alt: #f1efe7;
  --ink: #16150f;
  --ink-soft: #3f3d34;
  --ink-faint: #6b685c;
  --accent: #0b6e4f;
  --accent-soft: #e2f1eb;
  --warn: #9a5b00;
  --warn-soft: #fbf0dc;
  --line: #ddd9cc;
  --radius: 2px;
  --serif: "Iowan Old Style", "Charter", "Georgia", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root[data-site="medialiteracy"] {
    --paper: #14140f;
    --paper-alt: #1c1c16;
    --ink: #efece1;
    --ink-soft: #cfcbbd;
    --ink-faint: #9f9b8c;
    --accent: #5fd0a6;
    --accent-soft: #16302a;
    --warn: #f0b457;
    --warn-soft: #33260f;
    --line: #34332a;
  }
}

:root[data-site="medialiteracy"] body { background: var(--paper); color: var(--ink); font-family: var(--sans); }
:root[data-site="medialiteracy"] h1,
:root[data-site="medialiteracy"] h2,
:root[data-site="medialiteracy"] h3 { font-family: var(--serif); letter-spacing: -0.01em; }

/* --- masthead ------------------------------------------------------------ */
.ml-header { background: var(--paper); border-bottom: 3px double var(--ink); }
.ml-strip { background: var(--ink); color: var(--paper); font-size: .78rem; }
.ml-strip-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .35rem; }
.ml-strip-tag { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.ml-masthead { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding-block: 1.1rem; }
.ml-nameplate { text-decoration: none; color: var(--ink); justify-self: center; text-align: center; line-height: 1; }
.ml-nameplate-main { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
.ml-nameplate-sub { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .5em; color: var(--accent); margin-top: .35rem; font-weight: 700; }
.ml-search input { width: 15rem; max-width: 100%; border: 1px solid var(--line); background: var(--paper-alt); padding: .5rem .7rem; border-radius: var(--radius); color: var(--ink); }
.ml-sections { border-top: 1px solid var(--line); }
.ml-sections-inner { display: flex; gap: 1.4rem; overflow-x: auto; padding-block: .55rem; scrollbar-width: none; }
.ml-sections-inner a { white-space: nowrap; text-decoration: none; color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
.ml-sections-inner a:hover, .ml-sections-inner a.is-current { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 720px) {
  .ml-search { display: none; }
  .ml-masthead { grid-template-columns: auto 1fr; }
  .ml-nameplate { justify-self: start; text-align: left; }
}

/* --- home ---------------------------------------------------------------- */
.ml-lede { padding-block: 2.2rem 1.2rem; border-bottom: 1px solid var(--line); }
.ml-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--accent); font-weight: 700; margin: 0 0 .5rem; }
.ml-lede h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .6rem; max-width: 22ch; }
.ml-standfirst { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; margin: 0; }

.ml-method { margin-block: 2rem; padding: 1.4rem; background: var(--accent-soft); border-left: 4px solid var(--accent); }
.ml-method h2 { margin: 0 0 1rem; font-size: 1.4rem; }
.ml-questions { counter-reset: q; list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.ml-questions li { counter-increment: q; display: grid; gap: .25rem; }
.ml-questions li::before { content: counter(q); font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--accent); line-height: 1; }
.ml-q { font-weight: 700; }
.ml-a { color: var(--ink-soft); font-size: .92rem; }
.ml-questions a { font-size: .85rem; font-weight: 600; }

.ml-front { display: grid; gap: 1.4rem; grid-template-columns: 2fr 1fr; margin-block: 2rem; }
.ml-front-subs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ml-front-subs li { border-bottom: 1px solid var(--line); padding-block: .7rem; font-family: var(--serif); font-size: 1.05rem; }
.ml-front-subs a { color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .ml-front { grid-template-columns: 1fr; } }

.ml-desks h2 { border-top: 2px solid var(--ink); padding-top: .8rem; }
.ml-desk-grid { display: grid; gap: 1.6rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.ml-desk h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.ml-desk h3 a { color: var(--ink); text-decoration: none; }
.ml-desk ul { list-style: none; margin: 0; padding: 0; }
.ml-desk li { padding-block: .3rem; border-bottom: 1px dotted var(--line); font-size: .92rem; }
.ml-desk li a { color: var(--ink-soft); text-decoration: none; }
.ml-more { display: inline-block; margin-top: .5rem; font-size: .85rem; font-weight: 700; }

/* --- footer -------------------------------------------------------------- */
.ml-footer { margin-top: 4rem; border-top: 3px double var(--ink); background: var(--paper-alt); }
.ml-footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 2fr 1fr; padding-block: 2rem; }
.ml-footer-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin: 0 0 .4rem; }
.ml-footer-head { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--ink-faint); margin: 0 0 .5rem; }
.ml-footer-sections { columns: 2; }
.ml-footer nav a { display: block; color: var(--ink-soft); text-decoration: none; font-size: .9rem; padding-block: .15rem; }
.ml-footer-legal { border-top: 1px solid var(--line); padding-block: 1rem 1.4rem; font-size: .78rem; color: var(--ink-faint); }
.ml-footer-legal p { margin: .25rem 0; }
/* Small, as asked - but still readable: .72rem at the faint ink holds 4.6:1. */
.ml-disclaimer { font-size: .72rem; }
@media (max-width: 760px) { .ml-footer-grid { grid-template-columns: 1fr; } }

/* --- articles ------------------------------------------------------------ */
:root[data-site="medialiteracy"] .prose { max-width: 68ch; font-size: 1.04rem; }
:root[data-site="medialiteracy"] .prose p { line-height: 1.72; }
:root[data-site="medialiteracy"] .prose h2 { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.2rem; }

/* Links: the accent, as on every theme since the white-link fix. */
:root[data-site="medialiteracy"] { --accent-ink: var(--accent); }
