/* Maxua blogroll-inspired: warm paper background, flat list, accent-coloured
   date headings and bullet dots. Blue accent instead of orange. */

:root {
  --bg: #faf8f5;          /* warm paper */
  --ink: #333;            /* body text */
  --ink-strong: #111;     /* headings */
  --ink-soft: #999;       /* muted meta */
  --rule: #e8e4df;        /* header/footer dividers */
  --rule-soft: #efe9e3;   /* row dividers */
  --accent: #3d86e1;      /* links-hover, date heading, bullet */
  --accent-soft: #6385a8; /* source metadata text */
  --measure: 620px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: var(--measure);
  width: 100%;
  padding: 2.5rem 1.5rem;
}

/* Header ------------------------------------------------------------ */

.page__header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.page__header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-strong);
  margin-bottom: 0.4rem;
}

.lede {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.meta {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

/* Status / empty / failure states ---------------------------------- */

.status {
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
}

.empty {
  padding: 1.5rem 1rem;
  color: var(--ink-soft);
  text-align: center;
  border: 1px dashed var(--rule);
}

/* Day groups ------------------------------------------------------- */

.day {
  /* flat, no card — each day is just a heading + list */
}

.day__heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2rem 0 0.8rem;
}

.day:first-of-type .day__heading {
  margin-top: 0;
}

.day__list {
  list-style: none;
}

.article {
  position: relative;
  padding: 0.6rem 0 0.6rem 1rem;
  line-height: 1.55;
  border-bottom: 1px solid var(--rule-soft);
}

.article:last-child {
  border-bottom: none;
}

.article::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.6rem + 0.55em);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.article__title {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.article__title:hover {
  color: var(--accent);
}

.article__title:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.article__byline {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--accent-soft);
  line-height: 1.4;
}

.article__source::before {
  content: "·";
  margin: 0 0.35rem;
  color: #ddd;
}

/* Failures & footer ------------------------------------------------ */

.failures {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

.failures details {
  display: inline-block;
  text-align: left;
}

.failures summary {
  cursor: pointer;
}

.failures ul {
  list-style: disc;
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.page__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: #bbb;
  font-size: 0.8rem;
  line-height: 1.8;
}

.page__footer a {
  color: var(--accent-soft);
  text-decoration: none;
}

.page__footer a:hover {
  color: var(--accent);
}

/* Dark mode — same hue family, darker paper ------------------------ */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b19;
    --ink: #d8d4cc;
    --ink-strong: #f2efe9;
    --ink-soft: #8a857d;
    --rule: #2e2c28;
    --rule-soft: #262421;
    --accent: #7fb0ea;
    --accent-soft: #6d8aa8;
  }
  .article__source::before {
    color: #3a3733;
  }
  .page__footer {
    color: #6a645d;
  }
}
