/* The barnas.net homepage: the name in Instrument Serif on one line, then a plain list of projects on the page of
   the text adventure. Each project has its own colour, used only for its dot and its live detail. Hovers are slow
   colour changes; nothing else moves. */
:root{
  --bg:#fcfcfb; --ink:#1a1a19; --text:#5c5c58; --muted:#8f8f8a; --line:#ececea;
  --trends:#d9822b; --upgrade:#6a3fb0; --hyperbola:#2fa9d6; --tabory:#3ab678; --ples:#a80f4d; --flame:#e0a43a;
  --mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --sans:"Figtree",system-ui,-apple-system,sans-serif;
  --serif:"Instrument Serif","Iowan Old Style",Georgia,serif;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){ --bg:#0f0f0e; --ink:#ededeb; --text:#a3a39e; --muted:#76766f; --line:#232322;
  --trends:#e8a25a; --upgrade:#a98be6; --hyperbola:#4ec4e7; --tabory:#3ab678; --ples:#d23c78; color-scheme:dark }}
:root[data-theme="dark"]{ --bg:#0f0f0e; --ink:#ededeb; --text:#a3a39e; --muted:#76766f; --line:#232322;
  --trends:#e8a25a; --upgrade:#a98be6; --hyperbola:#4ec4e7; --tabory:#3ab678; --ples:#d23c78; color-scheme:dark }
*{box-sizing:border-box}
html,body{background-color:var(--bg)}
body{margin:0;color:var(--text);font:15px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}

main{max-width:860px;min-height:100vh;min-height:100svh;margin:0 auto;display:flex;flex-direction:column;justify-content:center;padding:56px 24px 96px}
h1{margin:0;font:400 clamp(44px,6vw,68px)/1 var(--serif);letter-spacing:-.01em;color:var(--ink)}
h1 i{font-style:italic}
.about{margin:12px 0 0;color:var(--text)}
.clock{color:var(--muted);white-space:nowrap}

.list{margin-top:44px}
.row{--c:var(--muted);display:grid;grid-template-columns:8px minmax(150px,220px) 1fr auto;gap:16px;align-items:center;
  padding:13px 0;border-top:1px solid var(--line)}
.row:last-child{border-bottom:1px solid var(--line)}
.p-trends{--c:var(--trends)} .p-upgrade{--c:var(--upgrade)} .p-hyperbola{--c:var(--hyperbola)} .p-tabory{--c:var(--tabory)} .p-ples{--c:var(--ples)}
.dot{width:8px;height:8px;border-radius:50%;background:var(--c)}
.name{font-size:16.5px;font-weight:500;color:var(--ink);transition:color .6s ease}
.what{color:var(--muted)}
.live{display:flex;gap:10px;align-items:center;justify-content:flex-end;font:12.5px/1.4 var(--mono);color:var(--muted);white-space:nowrap}
.live b{font-weight:400;color:var(--ink)}
.row:hover .name,.row:focus-visible .name{color:var(--c)}
.bars rect{fill:var(--c)}
/* Advent: one candle per Advent Sunday so far, the newest with a flame */
.candles{display:inline-flex;gap:4px;align-items:flex-end;height:15px}
.candles i{width:4px;height:11px;border:1px solid var(--c);border-radius:1px}
.candles i.lit{background:var(--c);position:relative}
.candles i.lit:not(:has(+ .lit))::before{content:"";position:absolute;left:-.5px;top:-6px;width:4px;height:4px;
  border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--flame)}
a.row:focus-visible,.links a:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:4px}
@media (prefers-reduced-motion:reduce){.name{transition:none}}

/* the signature, as on the text adventure */
.foot{position:fixed;z-index:10;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:8px 24px;flex-wrap:wrap;
  padding:16px max(24px,env(safe-area-inset-left,0px)) calc(16px + env(safe-area-inset-bottom,0px));background-color:var(--bg);font-size:13.5px;color:var(--muted)}
.links{display:flex;gap:6px 20px;flex-wrap:wrap}
.links a:hover{color:var(--ink)}

@media (max-width:700px){
  main{padding:48px 20px 32px;justify-content:flex-start}
  h1{margin-top:8vh}
  .row{grid-template-columns:8px 1fr;gap:2px 14px;padding:14px 0}
  .what,.live{grid-column:2;justify-content:flex-start}
  .foot{position:static;flex-direction:column;align-items:flex-start;gap:6px}
}
