:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0a66d8;
  --rule: #e5e5ea;
  --panel: #f5f5f7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --text: #f2f2f7;
    --muted: #a1a1a6;
    --accent: #5aa9ff;
    --rule: #2c2c2e;
    --panel: #1c1f24;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

header img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex: none;
}

h1 { font-size: 2rem; line-height: 1.2; margin: 0; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.5rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.25rem; }
p, ul, table { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--accent); }

.subtitle { color: var(--muted); margin: 0.25rem 0 0; }
.updated { color: var(--muted); font-size: 0.9rem; }

.summary {
  background: var(--panel);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.summary p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }

.band { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; font-weight: 600; }
.band::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 2.5px solid currentColor;
}
.not-yet { color: #8e9399; }
.due-soon { color: #0a84ff; }
.due { color: #c79b00; }
.late { color: #f08a00; }
.overdue { color: #ff3b30; }

nav.links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0; }
nav.links a {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { color: inherit; }
