/* Managed by Ansible (akuadora/playbooks/redpill.yml): redpill.akuadora.net on top of Quark 2.
   A newspaper: black serif type on white, thin rules, one red accent. Always light. */

:root, :root[data-theme='dark'] {
  --rp-red: #b3121f;
  --rp-ink: #111111;
  --rp-grey: #5c5c5c;
  --rp-rule: #d4d4d4;
  --rp-paper: #ffffff;
  --rp-serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --rp-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --q2-bg: var(--rp-paper);
  --q2-bg-elev: var(--rp-paper);
  --q2-bg-muted: #f4f4f4;
  --q2-text: var(--rp-ink);
  --q2-text-strong: #000000;
  --q2-text-muted: var(--rp-grey);
  --q2-divider: var(--rp-rule);
  --q2-border-ring: var(--rp-rule);
  --q2-border-strong: #b8b8b8;
  --q2-nav-bg: rgba(255, 255, 255, 0.96);
  --q2-nav-border: var(--rp-rule);
  --q2-accent: var(--rp-red);
  --q2-link: var(--rp-ink);
  color-scheme: light;
}
html, body { background: var(--rp-paper); color: var(--rp-ink); }
body { font-family: var(--rp-serif); font-size: 18px; line-height: 1.6; }
.navbar-section.actions { display: none; }      /* no dark-mode toggle: always paper */
h1, h2, h3 { font-family: var(--rp-serif); color: #000; letter-spacing: 0; }
h2::before { display: none; }                    /* Quark's decorative line above headings */
a { color: var(--rp-ink); }

/* ---- Page head (masthead on the front page) ---- */
.rp-pagehead { padding: calc(var(--q2-header-height, 72px) + .5rem) 0 1rem; border-bottom: 1px solid var(--rp-ink); }
.rp-pagehead h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; font-weight: 700; }
.rp-intro { font-size: 1.2rem; line-height: 1.5; color: #333; max-width: 42rem; margin: 0 0 .75rem; font-style: italic; }
.rp-updated { font-family: var(--rp-sans); font-size: .8rem; color: var(--rp-grey); margin: 0; }

.rp-masthead { text-align: center; }
.rp-masthead .rp-title { font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 700; line-height: 1; margin: .25rem 0 .5rem; letter-spacing: -.02em; }
.rp-masthead .rp-title span { color: var(--rp-red); }
.rp-dateline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; border-top: 1px solid var(--rp-ink); border-bottom: 3px double var(--rp-ink); padding: .4rem 0; font-family: var(--rp-sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.rp-tagline { font-style: italic; color: #333; margin: .5rem auto .25rem; max-width: 40rem; }
.rp-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; font-family: var(--rp-sans); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding-top: .5rem; }
.rp-jump a { flex: 0 0 auto; color: var(--rp-ink); text-decoration: none; }
.rp-jump a:hover { color: var(--rp-red); }

/* ---- Front page columns ---- */
.rp-page { padding-top: 1.5rem; }
.rp-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 2.5rem; }
.rp-columns > aside { border-left: 1px solid var(--rp-rule); padding-left: 2.5rem; }
@media (max-width: 900px) {
  .rp-columns { grid-template-columns: minmax(0, 1fr); }
  .rp-columns > aside { border-left: 0; padding-left: 0; }
}

.rp-section { margin: 2rem 0 .75rem; padding: .35rem 0 0; border-top: 3px solid var(--rp-ink); font-size: 1.05rem; font-family: var(--rp-sans); text-transform: uppercase; letter-spacing: .08em; }
.rp-section:first-child { margin-top: 0; }
#war.rp-section { border-top-color: var(--rp-red); color: var(--rp-red); }
.rp-note { font-size: .9rem; color: var(--rp-grey); margin: -.25rem 0 .75rem; font-style: italic; }

/* Lead story: the newest war headline */
.rp-lead { padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 1px solid var(--rp-rule); }
.rp-lead a { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; text-decoration: none; color: #000; }
.rp-lead a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ---- Headline lists ---- */
.rp-dayhead { margin: 1.25rem 0 .25rem; font-family: var(--rp-sans); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--rp-grey); }
.rp-list { list-style: none; margin: 0; padding: 0; }
.rp-list li { padding: .6rem 0 .7rem; border-bottom: 1px solid var(--rp-rule); }
.rp-list li:last-child { border-bottom: 0; }
.rp-meta, .rp-list time, .rp-source { font-family: var(--rp-sans); font-size: .72rem; letter-spacing: .04em; }
.rp-list time { color: var(--rp-grey); margin-right: .4rem; font-variant-numeric: tabular-nums; }
.rp-source { color: var(--rp-red); font-weight: 700; text-transform: uppercase; }
.rp-list a { display: block; margin-top: .15rem; font-size: 1.1rem; line-height: 1.35; font-weight: 600; color: #000; text-decoration: none; }
.rp-list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rp-list a:visited { color: #555; }
aside .rp-list a { font-size: 1rem; font-weight: 500; }
.rp-list li[hidden], .rp-day[hidden] { display: none; }
.rp-empty { color: var(--rp-grey); font-style: italic; }

/* ---- Source filter and month picker ---- */
.rp-filter, .rp-months { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.25rem; }
.rp-chip, .rp-months a { flex: 0 0 auto; width: auto; margin: 0; border: 1px solid var(--rp-rule); background: #fff; color: var(--rp-ink); border-radius: 2px; padding: .2rem .6rem; font-family: var(--rp-sans); font-size: .75rem; line-height: 1.6; cursor: pointer; text-decoration: none; box-shadow: none; }
.rp-chip:hover, .rp-months a:hover { border-color: var(--rp-ink); }
.rp-chip.is-active, .rp-months a.is-active { background: var(--rp-ink); border-color: var(--rp-ink); color: #fff; }
.rp-sources { font-family: var(--rp-sans); font-size: .8rem; color: var(--rp-grey); padding-left: 1rem; }

/* ---- Articles: timeline, background, about ---- */
.rp-prose { max-width: 40rem; margin: 0 auto; font-size: 1.15rem; line-height: 1.75; }
.rp-prose p, .rp-prose li { color: #1a1a1a; }
.rp-prose > p:first-child::first-letter { float: left; font-size: 3.4em; line-height: .85; padding: .08em .08em 0 0; font-weight: 700; }
.rp-prose h2 { margin: 2.5rem 0 .75rem; font-size: 1.6rem; line-height: 1.25; }
.rp-prose h3 { margin: 1.75rem 0 .5rem; font-size: 1.25rem; }
.rp-prose ul { padding-left: 1.2rem; }
.rp-prose li { margin: .5rem 0; }
.rp-prose a { color: var(--rp-ink); text-decoration: underline; text-decoration-color: var(--rp-red); text-underline-offset: 3px; }
.rp-prose a:hover { color: var(--rp-red); }
.rp-prose strong { color: #000; }
.rp-prose em { color: #333; }
.rp-story-page .rp-pagehead .container, .rp-story-page .rp-pagehead h1 { max-width: 46rem; }

/* ---- Background index ---- */
.rp-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0 2rem; margin-top: 1.5rem; }
.rp-story { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 0 1.25rem; border-top: 3px solid var(--rp-ink); color: var(--rp-ink); text-decoration: none; }
.rp-story strong { font-size: 1.35rem; line-height: 1.25; color: #000; }
.rp-story span:last-child { color: #333; font-size: 1rem; line-height: 1.5; }
.rp-story:hover strong { text-decoration: underline; text-decoration-thickness: 1px; }
.rp-label { display: inline-block; align-self: flex-start; font-family: var(--rp-sans); color: var(--rp-red); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-right: .5rem; }

/* ---- Footer ---- */
.rp-footer { border-top: 3px double var(--rp-ink); padding: 1.5rem 0; color: var(--rp-grey); font-family: var(--rp-sans); font-size: .82rem; background: var(--rp-paper); }
.rp-footer a { color: var(--rp-ink); }

.rp-more { font-family: var(--rp-sans); font-size: .85rem; font-weight: 600; margin: 1rem 0 0; }
.rp-more a { color: var(--rp-red); text-decoration: none; }
.rp-more a:hover { text-decoration: underline; }
