/* Deliberately minimal: system fonts, no images, works without this file too. */
:root { color-scheme: light dark; }

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fffdf8;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); line-height: 1.2; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.5rem; border-bottom: 1px solid #ccc; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

a { color: #0b4f9c; overflow-wrap: anywhere; }
a:visited { color: #6a1b8a; }
a:focus-visible, button:focus-visible { outline: 3px solid #e07b00; outline-offset: 2px; }

nav ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem; }

.button, button {
  display: inline-block;
  padding: 0.6rem 1rem;
  font: inherit;
  color: #fff;
  background: #0b4f9c;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}
.button:visited { color: #fff; }

.note { font-size: 1rem; color: #555; }

.press li { margin-bottom: 0.6rem; }
.press span { display: block; font-size: 0.95rem; color: #555; }

summary { font-size: 1.15rem; font-weight: bold; margin: 1.5rem 0 0.5rem; cursor: pointer; }
summary:focus-visible { outline: 3px solid #e07b00; outline-offset: 2px; }

[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Related work page */
.entry { margin: 1.5rem 0; padding-bottom: 1rem; border-bottom: 1px solid #e2ded3; }
.entry h3 { margin: 0 0 0.25rem; }
.entry p { margin: 0.4rem 0; }
.by, .facts, .links, .entry details { font-size: 1rem; }
.by { color: #555; }
.facts { margin: 0.5rem 0; }
.facts div { display: flex; flex-wrap: wrap; gap: 0 0.5rem; }
.facts dt { font-weight: bold; }
.facts dt::after { content: ":"; }
.facts dd { margin: 0; }
.links .label { font-weight: bold; }
.entry summary, details.group > summary { font-size: 1rem; font-weight: normal; margin: 0.4rem 0; }
details.group > summary { font-weight: bold; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
caption { text-align: left; font-style: italic; margin-bottom: 0.5rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem; border-bottom: 1px solid #ccc; }

pre { overflow-x: auto; background: #f1efe8; padding: 0.75rem; font-size: 0.9rem; }

iframe { width: 100%; height: 900px; border: 1px solid #ccc; }

input, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #888;
  border-radius: 4px;
}
input:focus-visible, textarea:focus-visible { outline: 3px solid #e07b00; outline-offset: 1px; }

footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #ccc; font-size: 1rem; color: #555; }

@media (prefers-color-scheme: dark) {
  body { color: #e8e6e1; background: #161616; }
  a { color: #8cc4ff; }
  a:visited { color: #d1a6f0; }
  .button, button { background: #8cc4ff; color: #111; }
  .button:visited { color: #111; }
  .note, .press span, footer, .by { color: #b5b2ab; }
  .entry { border-color: #333; }
  pre { background: #242424; }
  h2, th, td, footer, iframe { border-color: #444; }
  input, textarea { background: #222; border-color: #777; }
  .skip:focus { background: #161616; }
}
