/* andrewdrummondquora.com: deep burgundy accent, Georgia serif body, Q&A-style sections. */
:root {
  --bg: #fbf7f4;
  --paper: #ffffff;
  --ink: #2a1b20;
  --muted: #62505a;
  --wine: #7a1233;
  --wine-deep: #55091f;
  --rose: #f5e4e8;
  --rule: #e2ccd2;
  --cream: #fbf3ee;
  --serif: Georgia, Cambria, "Times New Roman", Times, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.7 var(--serif); }
a { color: var(--wine); text-underline-offset: 0.18em; }
a:hover { color: var(--wine-deep); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); background: #f3e9e6; }
figure { margin: 0; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--wine); color: #fff; padding: 0.5rem 0.9rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* masthead */
.masthead { background: var(--wine-deep); color: var(--cream); border-bottom: 5px double var(--rose); }
.inner { max-width: 60rem; margin: 0 auto; padding: 0.8rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; }
.mark { display: flex; align-items: center; gap: 0.8rem; color: var(--cream); text-decoration: none; font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.logo-plate { background: #fff; padding: 0.25rem 0.5rem; border-radius: 4px; display: block; }
.logo-plate img { height: 2.4rem; width: auto; border: 0; background: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.menu a { color: var(--cream); text-decoration: none; font-variant: small-caps; letter-spacing: 0.04em; font-size: 1.05rem; border-bottom: 2px solid transparent; padding: 0.2rem 0; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--cream); color: #fff; }
.masthead a:focus-visible { outline-color: var(--cream); }

main { max-width: 60rem; margin: 0 auto; padding: 1.5rem 1rem 3.5rem; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; margin: 0 0 0.7rem; color: var(--wine-deep); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

/* Q&A blocks */
.qa { background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--wine); margin: 0 0 1.75rem; }
.qa .question, .qa .answer { position: relative; padding: 1.1rem 1rem 0.2rem 3.6rem; }
.qa .question { background: var(--rose); padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule); }
.qa .question h1, .qa .question h2 { margin: 0; }
.qa .answer { padding-top: 1.1rem; padding-bottom: 1rem; }
.qa .question::before, .qa .answer::before, .card.badge-q::before, .card.badge-a::before {
  content: "Q"; content: "Q" / "";
  position: absolute; left: 0.75rem; top: 1rem; width: 2rem; height: 2rem; line-height: 2rem; text-align: center;
  background: var(--wine); color: #fff; border-radius: 50%; font: 700 1.1rem/2rem var(--serif);
}
.qa .answer::before, .card.badge-a::before { content: "A"; content: "A" / ""; background: var(--paper); color: var(--wine); border: 2px solid var(--wine); line-height: calc(2rem - 4px); }
.card.badge-q::before { content: "Q"; content: "Q" / ""; }
.card.badge-q, .card.badge-a { position: relative; padding-left: 3.6rem; }
.card.badge-q::before, .card.badge-a::before { top: 1.1rem; }
.hub-note, .src-note { color: var(--muted); font-size: 0.97rem; }
.more { font-weight: 700; margin-bottom: 0.4rem; }

/* sections and cards */
.card { background: var(--paper); border: 1px solid var(--rule); border-left: 6px solid var(--wine); margin: 0 0 1.5rem; padding: 1.1rem 1rem 1.2rem; }
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3, .card h4 { margin-top: 0.4rem; }
blockquote { margin: 0 0 1rem; padding: 0.2rem 0 0.2rem 1rem; border-left: 3px solid var(--wine); font-style: italic; }
blockquote p { margin: 0 0 0.3rem; }
blockquote footer { font-style: normal; font-size: 0.92rem; font-variant: small-caps; letter-spacing: 0.03em; }

/* screenshots */
.shots { margin: 0.9rem 0; }
.shots figure { margin: 0 0 1rem; break-inside: avoid; }
.shots img { margin: 0 auto; }
.shots.wall { column-count: 1; column-gap: 1rem; }
figcaption { margin-top: 0.3rem; font-size: 0.85rem; line-height: 1.4; color: var(--muted); font-style: italic; overflow-wrap: anywhere; }

.evidence > h2 { margin-top: 2.2rem; font-size: 1.5rem; border-bottom: 2px solid var(--wine); padding-bottom: 0.3rem; }
.evidence-set { border-left-color: var(--wine-deep); }

/* library of further uploads */
.library summary { cursor: pointer; font-weight: 700; color: var(--wine); }
.library[open] summary { margin-bottom: 0.8rem; }
.files { margin: 0 0 1rem; padding-left: 1.2rem; }
.ext { color: var(--muted); font-size: 0.9rem; }

/* footer */
.colophon { background: var(--wine-deep); color: var(--cream); font-size: 0.95rem; }
.colophon .inner { padding-top: 1rem; padding-bottom: 1.1rem; }
.colophon p { margin: 0; }
.colophon a { color: var(--cream); }

@media (min-width: 720px) {
  body { font-size: 1.125rem; }
  h1 { font-size: 2.2rem; }
  .qa .question, .qa .answer { padding-right: 1.6rem; padding-left: 4.2rem; }
  .qa .question::before, .qa .answer::before, .card.badge-q::before, .card.badge-a::before { left: 1.1rem; }
  .card { padding: 1.3rem 1.6rem 1.4rem; }
  .card.badge-q, .card.badge-a { padding-left: 4.2rem; }
  .shots.wall { column-count: 2; }
}
@media (min-width: 1000px) {
  main { padding-top: 2rem; }
  .evidence-set .shots.wall { column-count: 3; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* record-updated line, breadcrumbs, incident index, FAQ, update log */
.updated { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; font-size: 0.95rem; }
.crumbs li + li::before { content: "›"; margin-right: 0.5rem; color: var(--muted); }
.incident-list { list-style: none; margin: 0; padding: 0; }
.incident-list .card h3 { margin-top: 0; }
.incident-list .meta { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.95rem; }
.faq h3 { font-size: 1.1rem; margin: 1.1rem 0 0.3rem; }
.faq h3:first-of-type { margin-top: 0.4rem; }
.updates ul, .incident-nav { margin: 0 0 1rem; padding-left: 1.2rem; }
