
/* The palette is the website's, to the value. A reader who arrives from zetlyn.com or from a hub
   should not be told by the colours that they have left. The layout is this program's own: a
   scope surface is a dense thing and the site's vocabulary has no rows, facets or chips in it. */
:root {
  --bg: #f2efe7; --fg: #14202a; --dim: #667078; --line: #cfd1ca;
  --panel: #fbfaf6; --accent: #dc4a20; --chip: #dfe2db;
  --line-strong: #afb5af; --wash: rgba(20,32,42,.04); --mark-filter: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #11181d; --fg: #e9e6de; --dim: #98a3ab; --line: #2b353c;
    --panel: #161e24; --accent: #ff6a3d; --chip: #1c252b;
    --line-strong: #3a444b; --wash: rgba(233,230,222,.05); --mark-filter: invert(1);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11181d; --fg: #e9e6de; --dim: #98a3ab; --line: #2b353c;
  --panel: #161e24; --accent: #ff6a3d; --chip: #1c252b;
  --line-strong: #3a444b; --wash: rgba(233,230,222,.05); --mark-filter: invert(1);
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
             "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 2.2rem 0 5rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 .2rem; letter-spacing: -.035em; font-weight: 750; }
h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
     color: var(--dim); margin: 2.2rem 0 .7rem; font-weight: 600;
     font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
h3 { font-size: 1rem; margin: 1.4rem 0 .4rem; }
.about { color: var(--dim); margin: 0 0 1.2rem; max-width: 48rem; }
.bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
input[type=search], input[type=text] { flex: 1 1 22rem; min-width: 0; padding: .55rem .7rem; font: inherit;
  background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; }
button { padding: .55rem .9rem; font: inherit; cursor: pointer; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel); color: var(--fg); }
.chip { display: inline-block; padding: .12rem .5rem; border-radius: 999px;
  background: var(--chip); color: var(--fg); font-size: .82rem; white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--bg); }
.state { font-size: .82rem; }
.state.current { color: #2e7d32; } .state.partial, .state.failing { color: #c0392b; }
.state.empty { color: var(--dim); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th { text-align: left; font-weight: 600; color: var(--dim); font-size: .78rem;
     text-transform: uppercase; letter-spacing: .05em; padding: .4rem .6rem .4rem 0;
     border-bottom: 1px solid var(--line); }
td { padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--line);
     vertical-align: top; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem;
        background: var(--panel); }
.card h4 { margin: 0 0 .4rem; font-size: .9rem; }
.cover { color: var(--dim); font-size: .8rem; font-weight: 400; }
.facet { display: flex; justify-content: space-between; gap: .6rem; padding: .16rem 0;
         font-size: .88rem; }
.facet .n { color: var(--dim); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.why { color: var(--dim); font-size: .8rem; }
.note { border-left: 3px solid var(--accent); padding: .5rem .8rem; background: var(--panel);
        margin: 1rem 0; font-size: .9rem; }
.text { white-space: pre-wrap; max-width: 46rem; }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line);
         color: var(--dim); font-size: .82rem; }
/* A receipt: where one value came from, opened in place. */
details.receipt { margin-top: .25rem; font-size: .85rem; }
details.receipt > summary { cursor: pointer; color: var(--dim); list-style: none; }
details.receipt > summary::-webkit-details-marker { display: none; }
details.receipt > summary::before { content: "↗ "; color: var(--accent); }
details.receipt[open] { background: var(--panel); border-left: 3px solid var(--accent);
                        padding: .5rem .8rem; margin: .4rem 0; }
.receipt dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .9rem; margin: .4rem 0; }
.receipt dt { color: var(--dim); }
.receipt dd { margin: 0; }
.receipt pre { max-height: 18rem; overflow: auto; font-size: .78rem; background: var(--bg);
               padding: .5rem; border: 1px solid var(--line); }
.receipt table { font-size: .82rem; }
/* The frame: the website's header, then where the reader is. Its sizes are the website's
   (zetlyn.com, assets/style.css: .shell, .site-header, .site-footer), so a reader moving between
   the site, the hub and a tracker sees one header and one footer. */
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
header.top { background: var(--bg); }
header.top .wrap { height: 82px; display: flex; align-items: center; gap: 1.5rem;
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 750;
  letter-spacing: -.03em; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; filter: var(--mark-filter); }
nav.links { margin-left: auto; display: flex; gap: 28px; font-size: 14px; }
nav.links a { color: var(--dim); }
nav.links a:hover, nav.links a[aria-current] { color: var(--fg); text-decoration: none; }
/* Where the reader is, marked where the header meets its line, as the website marks it. */
header.top nav.links { align-self: stretch; }
header.top nav.links a { display: flex; align-items: center; border-bottom: 2px solid transparent; margin-bottom: -1px; }
header.top nav.links a[aria-current] { border-bottom-color: var(--accent); }
footer.site-footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 0; height: 90px;
  border-top: 1px solid var(--line); display: flex; align-items: center; color: var(--dim);
  font: 11px/normal ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
footer.site-footer div { margin-left: auto; display: flex; gap: 22px; align-items: center; }
footer.site-footer a { color: var(--dim); }
footer.site-footer a:hover { color: var(--fg); text-decoration: none; }
.theme-toggle { border: 1px solid var(--line); background: none; color: var(--dim); cursor: pointer;
  padding: 7px 11px; font: 11px/normal ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase; letter-spacing: .1em; }
.theme-toggle:hover { border-color: var(--fg); color: var(--fg); }
.subbar { border-bottom: 1px solid var(--line); background: var(--panel); }
.subbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; min-height: 46px; }
nav.crumbs ol { list-style: none; margin: 0; padding: .7rem 0; display: flex; flex-wrap: wrap;
  gap: .35rem; font-size: .86rem; }
nav.crumbs li { display: flex; gap: .35rem; align-items: center; color: var(--dim); }
nav.crumbs li + li::before { content: "/"; color: var(--line-strong); }
nav.crumbs a { color: var(--dim); }
nav.crumbs a:hover { color: var(--fg); }
nav.crumbs [aria-current] { color: var(--fg); font-weight: 600; }
nav.tabs { display: flex; gap: .25rem; align-self: stretch; }
nav.tabs a { display: flex; align-items: center; padding: 0 .8rem; color: var(--dim); font-size: .88rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
nav.tabs a:hover { color: var(--fg); text-decoration: none; }
nav.tabs a.on { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
/* The head of a page: its name, what it is, and the numbers that say how it stands. */
.lede { font-size: 1.05rem; color: var(--dim); max-width: 46rem; margin: .4rem 0 0; }
.meta { font-size: .85rem; color: var(--dim); margin: .8rem 0 0; display: flex; gap: .4rem 1rem; flex-wrap: wrap; }
.meta .current::before, .meta .partial::before { content: ""; display: inline-block; width: .5rem; height: .5rem;
  border-radius: 50%; margin-right: .4rem; background: #2e7d32; vertical-align: .05em; }
.meta .partial::before { background: #c0392b; }
.meta { align-items: center; }
.meta form.update { margin-left: auto; }
.meta form.update button { padding: .3rem .8rem; font-size: .85rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1px; background: var(--line);
  margin: 1.8rem 0 1.4rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stats > * { padding: 1rem 1.2rem; background: var(--panel); color: var(--fg); display: block; }
.stats a:hover { background: var(--bg); text-decoration: none; }
.stats b { display: block; font-size: 1.9rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.stats span { color: var(--dim); font-size: .82rem; }
.stats .hot b { color: var(--accent); }
/* The list of things. */
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.list-head h2 { margin-bottom: .5rem; }
.scroll { overflow-x: auto; }
table.things td.thing a { color: var(--fg); font-weight: 600; }
table.things td.thing a:hover { color: var(--accent); text-decoration: none; }
table.things tbody tr:hover { background: var(--wash); }
table.things td:first-child, table.things th:first-child { padding-left: .6rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.2rem 0; font-size: .9rem; }
.pager a, .pager span.off { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--fg); }
.pager a:hover { border-color: var(--fg); text-decoration: none; }
.pager span.off { color: var(--dim); opacity: .5; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .92em; }
button.primary, .button.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
a.button { display: inline-block; padding: .55rem .9rem; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); }
a.button:hover { text-decoration: none; border-color: var(--fg); }
a.button.primary:hover { color: #fff; }
button:hover { border-color: var(--fg); }
input[type=file] { font: inherit; font-size: .88rem; color: var(--dim); }
input[type=file]::file-selector-button { font: inherit; padding: .45rem .9rem; margin-right: .7rem; cursor: pointer;
  border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); }
input[type=file]::file-selector-button:hover { border-color: var(--fg); }
#jobs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--panel); border-top: 1px solid var(--line);
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
#jobs .job { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; max-width: 60rem; margin: 0 auto; }
#jobs progress, main progress { flex: 1 1 10rem; min-width: 6rem; width: 100%; }
body.busy main { padding-bottom: 6rem; }
header.top .autoupdate { margin-left: auto; display: flex; align-items: center; gap: .45rem; font-size: .84rem;
  color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .75rem; background: var(--panel); }
header.top .autoupdate:hover { color: var(--fg); border-color: var(--fg); text-decoration: none; }
header.top .autoupdate .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-strong); }
header.top .autoupdate.on .dot { background: #2e7d32; }
header.top .autoupdate + nav.links { margin-left: 1.4rem; }
label.choice { display: flex; gap: .7rem; align-items: baseline; max-width: 34rem; margin: .45rem 0; padding: .65rem .9rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; }
label.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
details { margin: 2rem 0; } details > summary { cursor: pointer; font-weight: 600; margin-bottom: .6rem; }
.offer { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; border: 1px solid var(--accent); border-radius: 10px;
  padding: .9rem 1.1rem; background: var(--panel); margin: 1.2rem 0; }
.offer p { margin: 0; flex: 1 1 18rem; } .offer form { margin: 0; }
@media (max-width: 40rem) {
  header.top .wrap { height: auto; min-height: 70px; padding-block: 10px; gap: 1rem; }
  nav.links { gap: 14px; flex-wrap: wrap; justify-content: flex-end; font-size: 12px; }
  header.top nav.links { align-self: center; }
  header.top nav.links a { border-bottom: 0; margin-bottom: 0; }
  header.top nav.links a[aria-current] { text-decoration: underline 2px var(--accent); text-underline-offset: 7px; }
  nav.tabs { width: 100%; overflow-x: auto; }
  .stats b { font-size: 1.5rem; }
}
@media (max-width: 40rem) { main, .wrap, footer.site-footer { width: calc(100% - 28px); } main { padding: 1.2rem 0 4rem; } footer.site-footer { height: auto; padding: 26px 0; flex-wrap: wrap; gap: 12px; } }
