:root {
  color-scheme: dark;
  --paper: #171816;
  --ink: #f0efe8;
  --body: #c6c7be;
  --muted: #a6a89f;
  --line: #373934;
  --strong-line: #62645a;
  --field: #20211e;
  --warm: #d6bc88;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
[data-theme="light"] {
  color-scheme: light;
  --paper: #f7f7f1;
  --ink: #242520;
  --body: #43463d;
  --muted: #5f6358;
  --line: #d4d6ca;
  --strong-line: #999d8c;
  --field: #eeefe7;
  --warm: #745915;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover, summary:hover { color: var(--ink); }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: 10px; left: 10px; padding: 8px; background: var(--paper); z-index: 2; }
.page { width: min(850px, calc(100% - 64px)); margin-inline: auto; }
header { padding: 76px 0 34px; }
.masthead, .brand, .toolbar, .filters, .section-heading, .entry-head, .sources, footer {
  display: flex; align-items: center;
}
.masthead, .toolbar, .section-heading, footer { justify-content: space-between; }
.brand { gap: 16px; }
.grave {
  width: 42px; height: 47px; flex: none; background: var(--ink);
  mask: url('./grave.png') center / contain no-repeat;
  image-rendering: pixelated;
}
h1 { margin: 0; font-size: clamp(34px, 5.3vw, 55px); font-weight: 650; line-height: 1.08; letter-spacing: -.065em; }
.intro { margin: 15px 0 0; color: var(--body); font-size: 17px; letter-spacing: -.015em; }
.theme { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.theme:hover { background: var(--field); border-color: var(--strong-line); }
.theme-symbol { position: relative; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 50%; }
[data-theme="dark"] .theme-symbol::after {
  content: ""; width: 2px; height: 2px; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  box-shadow: 0 -8px, 6px -6px, 8px 0, 6px 6px, 0 8px, -6px 6px, -8px 0, -6px -6px;
}
[data-theme="light"] .theme-symbol { width: 14px; height: 14px; border: 0; box-shadow: -4px 2px 0 currentColor; transform: translateX(2px) rotate(-28deg); }
.toolbar { border-block: 1px solid var(--line); padding: 15px 0; gap: 18px; }
.filters { gap: 9px; min-width: 0; }
.search, .select { position: relative; }
.search input, .select select {
  height: 37px; font-size: 13px; background: var(--field); border: 1px solid var(--line); border-radius: 5px;
}
.search input { padding: 0 10px 0 34px; width: 205px; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.magnifier { position: absolute; left: 13px; top: 12px; width: 10px; height: 10px; border: 1.4px solid var(--muted); border-radius: 50%; pointer-events: none; }
.magnifier::after { content: ""; width: 5px; height: 1.5px; background: var(--muted); position: absolute; transform: rotate(45deg); left: 6px; top: 8px; }
.select select { appearance: none; padding: 0 32px 0 12px; }
.select::after { content: ""; position: absolute; right: 12px; top: 14px; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.suggest { font-size: 13px; font-weight: 550; white-space: nowrap; text-decoration: none; }
.suggest span { color: var(--muted); margin-left: 3px; }
.suggest:hover, footer a:hover { text-decoration: underline; }
.section { margin-top: 39px; }
.section-heading { padding-bottom: 12px; border-bottom: 1px solid var(--strong-line); }
h2 { font-size: 21px; line-height: 1.25; letter-spacing: -.035em; font-weight: 620; margin: 0; }
.count, .date, .category { font-family: var(--mono); font-size: 12px; }
.count, .category { color: var(--muted); }
.entries { list-style: none; padding: 0; margin: 0; }
.entry { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.date { color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.announced .date { color: var(--warm); }
.entry-head { gap: 13px; align-items: baseline; flex-wrap: wrap; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.035em; font-weight: 620; margin: 0; }
.category { font-size: 11px; }
.entry-body p { margin: 6px 0 7px; color: var(--body); font-size: 15px; line-height: 1.55; }
.sources { font-size: 12px; align-items: baseline; gap: 12px; color: var(--muted); }
.sources > a { white-space: nowrap; }
.sources details { min-width: 0; }
.sources summary { list-style: none; }
.sources summary::-webkit-details-marker { display: none; }
.sources ul { margin: 5px 0 0; padding: 0; list-style: none; }
.sources li + li { margin-top: 4px; }
#empty { padding: 55px 0; text-align: center; }
#empty p { margin: 0 0 12px; }
#reset { border: 1px solid var(--line); border-radius: 4px; background: var(--field); padding: 5px 12px; }
footer { gap: 16px; padding: 30px 0 52px; font-size: 12px; color: var(--muted); }
footer a { text-decoration: none; }
@media (max-width: 640px) {
  .page { width: calc(100% - 36px); }
  header { padding: 42px 0 22px; }
  .brand { gap: 9px; }
  .grave { width: 29px; height: 34px; }
  .intro { font-size: 15px; }
  .toolbar { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .filters { flex: 1 1 305px; }
  .search { flex: 1; min-width: 0; }
  .search input { width: 100%; }
  .section { margin-top: 28px; }
  .entry { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .date { padding-top: 0; }
  .entry-body p { margin-top: 5px; }
  footer { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  h1 { font-size: 31px; }
  .theme { width: 32px; height: 32px; }
}
