/* Eristical — one stylesheet for the whole site.
   The old site's look (2010): Georgia, near-black #222 on white, dotted rules, a heavy double rule
   under the wordmark, bold-italic credits, and the bright blue (#009cff) of the round badge. */
:root {
  --paper: #ffffff;
  --paper-2: #f5f6f7;
  --ink: #222222;
  --ink-2: #555555;
  --ink-3: #737373;
  --rule: #cccccc;
  --blue: #009cff;          /* the old site's blue: decoration, underlines, focus */
  --blue-ink: #006fb8;      /* the same hue dark enough for text on white */
  --mark: #d5efff;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1040px;
  --text: 760px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161718;
    --paper-2: #1f2123;
    --ink: #e9e7e3;
    --ink-2: #bdbab4;
    --ink-3: #94918c;
    --rule: #4a4c4f;
    --blue-ink: #5cc0ff;
    --mark: #12405e;
  }
  .brand__logo { filter: invert(.9); }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--serif); }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; font-weight: normal; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--text { max-width: calc(var(--text) + 48px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 9; }
.eyebrow { display: block; font: 600 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); margin: 0 0 .5rem; }
.eyebrow a { color: inherit; text-decoration: none; }

/* masthead: centered wordmark + badge, heavy double rule, italic nav over a dotted rule */
.masthead { padding-top: 22px; }
.masthead__inner { position: relative; display: flex; justify-content: center; }
.brand { display: block; line-height: 0; }
.brand__logo { width: 340px; height: auto; }
.badge { position: absolute; top: -6px; left: calc(50% + 176px); line-height: 0; transition: transform .2s; }
.badge img { width: 72px; height: 72px; }
.badge:hover { transform: rotate(-8deg) scale(1.05); }
.rule { margin-top: 12px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); height: 5px; }
.nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1.75rem; padding-block: 12px; font-style: italic; font-size: 17px; border-bottom: 2px dotted var(--rule); }
.nav a { text-decoration: none; color: var(--ink-2); padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }

/* home */
.intro { padding-block: 40px 0; text-align: center; }
.intro__lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink-2); max-width: 36em; margin: 0 auto; }
.quotes-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; padding-block: 40px 8px; }
.section { padding-block: 32px 48px; }
.section__title { font-size: 1.6rem; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px dotted var(--rule); display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; }
.section__title--more { margin-top: 3rem; }
.section__note { font: italic 1rem/1 var(--serif); color: var(--ink-3); }
.qlist { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.qrow { counter-increment: q; border-bottom: 1px dotted var(--rule); }
.qrow__link { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; gap: .25rem 1rem; padding: 1rem 0; text-decoration: none; color: var(--ink); }
.qrow__link::before { content: counter(q); font: 600 14px/1 var(--sans); color: var(--blue-ink); text-align: center; border: 1.5px solid var(--blue); border-radius: 50%; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; }
.qlist--more .qrow { counter-increment: none; }
.qlist--more .qrow__link::before { content: "?"; border-style: dotted; }
.qrow__q { font-size: 1.25rem; line-height: 1.35; }
.qrow__link:hover .qrow__q { color: var(--blue-ink); }
.qrow__meta { display: flex; align-items: center; gap: .75rem; font: 14px/1 var(--sans); color: var(--ink-3); white-space: nowrap; }
.faces { display: flex; }
.face { width: 26px; height: 34px; object-fit: cover; border: 2px solid var(--paper); margin-left: -8px; background: var(--paper-2); }
.face:first-child { margin-left: 0; }
.face--none { display: grid; place-items: center; font: 600 10px/1 var(--sans); color: var(--ink-2); background: var(--paper-2); outline: 1px solid var(--rule); outline-offset: -2px; }
.panel-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem 1rem; }
.panel-strip a { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-size: .95rem; line-height: 1.25; padding: .3rem 0; }
.panel-strip a:hover { color: var(--blue-ink); }
.face--lg { width: 32px; height: 42px; margin: 0; flex: none; font-size: 11px; border: 0; }

/* quotes */
.quote { margin: 0; }
.quote blockquote { margin: 0; font-style: italic; font-size: 1.1rem; line-height: 1.55; position: relative; padding-left: 1.7rem; }
.quote blockquote::before { content: "\201C"; position: absolute; left: 0; top: -.4rem; font-size: 2.8rem; line-height: 1; color: var(--blue); font-style: normal; }
.quote figcaption { font-size: .92rem; color: var(--ink-3); margin: .5rem 0 0 1.7rem; line-height: 1.4; }
.quote figcaption a { font-weight: bold; font-style: italic; text-decoration: none; }
.quote figcaption a:hover { text-decoration: underline; text-decoration-color: var(--blue); }

/* portraits: small originals (71x94), shown as cameos at their own size */
.portrait { flex: none; width: 71px; height: 94px; object-fit: cover; background: var(--paper-2); display: block; }
.portrait--none { display: grid; place-items: center; font: 1.5rem/1 var(--serif); letter-spacing: .04em; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--rule); }
.portrait--lg { font-size: 1.5rem; }   /* never upscale the 71x94 originals */

/* question page: centered question over a dotted rule, answers in a portrait column */
.question-head { text-align: center; padding-block: 40px 20px; }
.question-head h1 { font-size: clamp(1.75rem, 4.5vw, 2.4rem); margin: 0 0 .75rem; text-wrap: balance; }
.question-head__meta { font-style: italic; color: var(--ink-3); margin: 0 0 1rem; }
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding-bottom: 1.5rem; border-bottom: 2px dotted var(--rule); }
.filter button { font: 14px/1 var(--sans); padding: .55rem .8rem; border: 1px solid var(--rule); border-radius: 99px; background: var(--paper); color: var(--ink-2); cursor: pointer; }
.filter button span { color: var(--ink-3); margin-left: .2rem; }
.filter button:hover { border-color: var(--blue); }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter button[aria-pressed="true"] span { color: inherit; opacity: .7; }
.answers { padding-bottom: 1rem; }
.answer { display: grid; grid-template-columns: 71px 1fr; gap: 0 20px; padding-block: 28px; border-bottom: 2px dotted var(--rule); scroll-margin-top: 1rem; }
.anchor { position: absolute; }
.answer { position: relative; }
.answer:target, .answer:has(.anchor:target) { background: linear-gradient(90deg, var(--mark), transparent 70%); }
.answer__face { line-height: 0; text-decoration: none; }
.answer__main { min-width: 0; padding-left: 20px; border-left: 2px dotted var(--rule); }
.credit { margin-bottom: .75rem; line-height: 1.35; }
.credit__face { display: none; }
.credit__name { font-weight: bold; font-style: italic; text-decoration: none; font-size: 1.1rem; margin-right: .4rem; }
.credit__name:hover { text-decoration: underline; text-decoration-color: var(--blue); }
.credit__role { color: var(--ink-2); font-style: italic; font-size: .95rem; }
.credit__tags { display: flex; flex-wrap: wrap; gap: 4px; margin: .45rem 0 0; }
.stance { font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: .3rem .5rem; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-2); }
.answer__text { text-align: left; }
.answer__date { margin: .25rem 0 0; font: 13px/1 var(--sans); color: var(--ink-3); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-block: 2rem 4rem; }
.pager__link { text-decoration: none; font-size: 1.05rem; line-height: 1.35; }
.pager__link--next { text-align: right; }

/* prose */
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin: .3rem 0; }
mark.hl { background: linear-gradient(transparent 52%, var(--mark) 52%); color: inherit; padding: 0 .05em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* person page */
.person-head { background: var(--paper-2); border-bottom: 2px dotted var(--rule); }
.person-head__inner { display: flex; gap: 1.5rem; align-items: flex-start; padding-block: 36px; }
.person-head h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 .3rem; }
.person-head__role { font-style: italic; color: var(--ink-2); margin: 0 0 .25rem; font-size: 1.1rem; }
.person-head p { margin: 0 0 .5rem; }
.qa { position: relative; padding-block: 28px; border-bottom: 2px dotted var(--rule); scroll-margin-top: 1rem; }
.qa:last-child { border-bottom: 0; margin-bottom: 48px; }
.qa__q { font-size: 1.35rem; margin: 0 0 1rem; }
.qa__q a { text-decoration: none; }
.qa__q a:hover { text-decoration: underline; text-decoration-color: var(--blue); }
.qa__more { margin: 1rem 0 0; font: 14px/1.4 var(--sans); }
.qa__more a { color: var(--blue-ink); }

/* panel cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.cards li { border-bottom: 1px dotted var(--rule); }
.card { display: flex; gap: 1rem; padding: 16px 0; text-decoration: none; color: var(--ink); }
.card__text { display: flex; flex-direction: column; min-width: 0; }
.card__name { font-size: 1.2rem; font-weight: bold; font-style: italic; line-height: 1.25; }
.card:hover .card__name { color: var(--blue-ink); }
.card__role { font-size: .95rem; line-height: 1.4; color: var(--ink-2); margin: .2rem 0 .6rem; }
.card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font: 13px/1 var(--sans); color: var(--ink-3); margin-top: auto; }

/* inner page headers */
.page-head { padding-block: 40px 16px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 2.8rem); margin: 0 0 .5rem; }
.lede { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 1rem; font-style: italic; }
.about { padding-bottom: 72px; font-size: 1.12rem; }

/* quotes page */
.toc { margin-top: 1.25rem; font: 15px/1.5 var(--sans); border: 1px solid var(--rule); border-radius: 6px; }
.toc summary { cursor: pointer; padding: .7rem 1rem; color: var(--ink-2); font-weight: 600; }
.toc ol { margin: 0; padding: 0 1rem 1rem 2.5rem; }
.toc li { margin: .35rem 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--blue-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.25rem; font: 13px/1.3 var(--sans); }
.chips a { padding: .4rem .7rem; border: 1px solid var(--rule); border-radius: 99px; text-decoration: none; color: var(--ink-2); }
.chips a:hover { border-color: var(--blue); color: var(--blue-ink); }
.quote-group { padding-block: 1.75rem .5rem; border-top: 2px dotted var(--rule); scroll-margin-top: 1rem; }
.quote-group__title { margin: 0 0 1.5rem; font-size: 1.45rem; }
.quote-group__title a { text-decoration: none; }
.quote-group .quote { margin-bottom: 1.6rem; }
.quote-group .quote blockquote { font-size: 1.05rem; }

/* clippings */
.clipping { margin: 0; padding-block: 1.5rem; border-top: 2px dotted var(--rule); }
.clipping:last-child { margin-bottom: 64px; }
.clipping blockquote { margin: 0; font-size: 1.02rem; }
.clipping figcaption { font-size: .95rem; color: var(--ink-2); margin-top: .75rem; font-style: italic; }
.clipping figcaption::before { content: "— "; }
.clipping__tags { display: block; font: 12px/1.4 var(--sans); color: var(--ink-3); font-style: normal; margin-top: .3rem; letter-spacing: .03em; }

/* footer */
.footer { border-top: 2px dotted var(--rule); color: var(--ink-3); font-size: .95rem; }
.footer__inner { padding-block: 24px 32px; text-align: center; }
.footer p { margin: 0 0 .25rem; }
.footer strong { color: var(--ink); }
.footer__small { font-size: .85rem; font-style: italic; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .masthead { padding-top: 16px; }
  .brand__logo { width: 230px; }
  .badge { left: calc(50% + 116px); top: -8px; }
  .badge img { width: 54px; height: 54px; }
  .nav { gap: .1rem .8rem; font-size: 15px; padding-block: 8px; }
  .intro { padding-top: 28px; }
  .intro__lede { font-size: 1.12rem; }
  .qrow__link { grid-template-columns: 2.2rem 1fr; }
  .qrow__meta { grid-column: 2; }
  .qrow__q { font-size: 1.12rem; }
  .answer { grid-template-columns: 1fr; padding-block: 22px; }
  .answer__face { display: none; }
  .answer__main { padding-left: 0; border-left: 0; }
  .credit { display: grid; grid-template-columns: 32px 1fr; gap: 0 12px; align-items: start; }
  .credit__face { display: block; grid-row: 1 / span 3; line-height: 0; padding-top: 3px; }
  .credit__name, .credit__role, .credit__tags { grid-column: 2; }
  .person-head__inner { gap: 1rem; padding-block: 24px; }
  .pager { grid-template-columns: 1fr; }
  .pager__link--next { text-align: left; }
}
