/* Purple Sector: masthead + three-sector strip, then a timing-sheet list of headlines (time · sector bar · story) beside a slim sources column; one column on phones */
:root {
  --bg: #ECEEF1; --panel: #FFFFFF; --ink: #14161B; --muted: #596070; --line: #D4D8DF;
  --purple: #7A2BC2; --green: #12924A; --yellow: #C79500;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0F1115; --panel: #171A20; --ink: #E9EBEF; --muted: #9AA1AE; --line: #272B33; --purple: #B07CFF; --green: #3BCB7E; --yellow: #F1C232; color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 5; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Masthead */
.mast { background: var(--panel); }
.mast-in { padding-block: 30px 22px; display: grid; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
.mark { width: 52px; height: 16px; flex: none; }
.m-y { fill: var(--yellow); } .m-g { fill: var(--green); } .m-p { fill: var(--purple); }
.name { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4.4vw, 2.6rem); letter-spacing: -.02em; line-height: 1; }
.tag { margin: 0; max-width: 62ch; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; font-size: .875rem; color: var(--muted); margin-top: 4px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot.part { background: var(--yellow); }
.dot.down { background: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 22px; height: 6px; border-radius: 2px; display: inline-block; }
.sw.p { background: var(--purple); } .sw.g { background: var(--green); } .sw.y { background: var(--yellow); }
.strip { height: 5px; background: linear-gradient(90deg, var(--yellow) 0 38%, var(--green) 38% 69%, var(--purple) 69% 100%); }

/* Page */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; padding-block: 28px 64px; align-items: start; }
main { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; font-weight: 600; background: var(--panel); transition: border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.day + .day { margin-top: 44px; }
.day h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; }
.day h2 span { font-family: var(--body); font-size: .875rem; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 500; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 3.4rem 5px minmax(0, 1fr); gap: 0 16px; padding-block: 16px; }
.row time { font: 500 .875rem/1.65 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { border-radius: 3px; background: var(--yellow); }
.s-p .bar { background: var(--purple); }
.s-g .bar { background: var(--green); }
.src { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.row h3 { margin: 0; font-size: 1.0625rem; line-height: 1.38; font-weight: 600; text-wrap: pretty; transition: color .15s; }
.row p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; max-width: 64ch; }
.row:hover h3 { color: var(--purple); }

.lead .row { padding-block: 24px 28px; }
.lead h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3.1vw, 2.1rem); line-height: 1.16; letter-spacing: -.015em; text-wrap: balance; }
.lead p { font-size: 1.0625rem; color: var(--ink); margin-top: 12px; }
.lead .read { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--purple); }

.empty { margin: 0; padding-block: 28px; border-top: 2px solid var(--ink); color: var(--muted); }
.empty a, .notfound a { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Side column */
aside { position: sticky; top: 24px; display: grid; gap: 32px; }
aside h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; color: var(--muted); }
.sources { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sources li { border-bottom: 1px solid var(--line); }
.sources a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; font-weight: 600; }
.sources a:hover { color: var(--purple); }
.sources small { color: var(--muted); font-weight: 400; font-size: .8125rem; white-space: nowrap; }
.about p { margin: 0; color: var(--muted); max-width: 40ch; }

/* 404 and error pages */
.notfound { padding-block: 56px 96px; }
.notfound h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.1; margin: 0 0 12px; }
.notfound p { margin: 0; color: var(--muted); max-width: 52ch; }

@media (max-width: 880px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  aside { position: static; }
}
@media (max-width: 480px) {
  .row { grid-template-columns: 2.9rem 4px minmax(0, 1fr); gap: 0 12px; }
  .mast-in { padding-block: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
