:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #555555;
  --accent: #b34700;
  --rule: #dddddd;
  --card: #f7f5f2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --text: #f2f2f2;
    --muted: #b8b8b8;
    --accent: #ff9a4d;
    --rule: #333333;
    --card: #1c1c1c;
  }
}
* { box-sizing: border-box; }
html { font-size: 112.5%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--bg); padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; }
header, main, footer { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
header { padding-top: 2rem; border-bottom: 1px solid var(--rule); }
.kicker {
  font-family: Arial, Helvetica, sans-serif; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0;
}
h1 { font-size: 2rem; line-height: 1.2; margin: 0.4rem 0 0.6rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }
.lead { color: var(--muted); margin: 0 0 1.5rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.note { background: var(--card); border-left: 4px solid var(--accent); padding: 0.8rem 1rem; margin: 1rem 0; }
.note p { margin: 0; }
ul.articles { list-style: none; padding: 0; }
ul.articles li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
ul.articles .date { display: block; color: var(--muted); font-size: 0.9rem; }
footer { margin-top: 3rem; padding-top: 1rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.85rem; }

/* Collapsible articles and sections */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
details.article { border-bottom: 1px solid var(--rule); }
details.article > summary {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: baseline;
  padding: 1rem 0; cursor: pointer; list-style: none; font-size: 1.25rem; font-weight: bold;
}
details.article > summary::-webkit-details-marker, details.section > summary::-webkit-details-marker { display: none; }
details.article > summary .date {
  font-family: Arial, Helvetica, sans-serif; font-size: 0.85rem; font-weight: normal; color: var(--muted);
}
details.article > summary .title::before, details.section > summary h3::before {
  content: "\25B8"; display: inline-block; width: 1.2em; color: var(--accent);
}
details[open].article > summary .title::before, details[open].section > summary h3::before { content: "\25BE"; }
.article-body { padding: 0 0 1rem 9.5rem; }
details.section > summary { cursor: pointer; list-style: none; }
details.section > summary h3 { display: inline; font-size: 1.1rem; margin: 0; }
details.section { padding: 0.5rem 0; }
.section-body { padding: 0.3rem 0 0.6rem 1.2em; }
summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 36rem) {
  details.article > summary { grid-template-columns: 1fr; gap: 0.2rem; }
  .article-body { padding-left: 0; }
}

/* Footnotes group under each article title */
details.group > summary { cursor: pointer; list-style: none; padding: 0.4rem 0; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary h3 { display: inline; font-size: 1.15rem; margin: 0; }
details.group > summary h3::before { content: "\25B8"; display: inline-block; width: 1.2em; color: var(--accent); }
details[open].group > summary h3::before { content: "\25BE"; }
.group-body { padding-left: 1.2em; }
details.section > summary h4 { display: inline; font-size: 1.05rem; margin: 0; }
details.section > summary h4::before { content: "\25B8"; display: inline-block; width: 1.2em; color: var(--accent); }
details[open].section > summary h4::before { content: "\25BE"; }

/* Bucky's Blokes cast page */
.cast-link { margin: 1.2rem 0 0.4rem; font-weight: bold; }
article.bloke { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
article.bloke img { width: 100%; height: auto; }
article.bloke h2 { margin: 0 0 0.2rem; }
article.bloke .kicker { margin-bottom: 0.6rem; }
article.bloke .verb { font-style: italic; font-size: 1.15rem; margin: 0 0 0.5rem; }
article.bloke .role { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 36rem) { article.bloke { grid-template-columns: 1fr; } article.bloke img { max-width: 16rem; } }
section.cabal { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
section.cabal img.crew { width: 100%; height: auto; border-radius: 6px; }
ul.crew-grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
ul.crew-grid li { text-align: center; }
ul.crew-grid img { width: 100%; height: auto; display: block; }
ul.crew-grid b { display: block; }
@media (max-width: 36rem) { ul.crew-grid { grid-template-columns: repeat(2, 1fr); } }
p.traitor { text-align: center; margin-top: 1rem; }
ul.crew-grid.six, ul.crew-grid { grid-template-columns: repeat(6, 1fr); gap: 0.5rem; margin-top: 0.5rem; }
ul.crew-grid li { font-size: 0.95rem; line-height: 1.35; }
@media (max-width: 36rem) { ul.crew-grid { grid-template-columns: repeat(3, 1fr); } }
ul.crew-grid i { white-space: nowrap; }
ul.crew-grid.duo { grid-template-columns: repeat(2, 1fr); }
