/* Values taken from are.na itself (light and dark), Dec 2026 */
:root {
  --bg: #fff;
  --text: #333;
  --strong: #000;
  --muted: #696969;
  --rule: #ededed;
  --border: #dedede;
  --green: #238020;
  --green-border: #b4d6b3;
  --tile: #f4f4f4;
  --bar: #dedede;
  --bar-hi: #333;
  --btn: #00075f;
  --btn-text: #fff;
  --chip: #efefef;
  --error: #c0392b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000; --text: #e5e5e5; --strong: #fff; --muted: #b2b2b2; --rule: #262626; --border: #4f4f4f;
    --green: #98dc89; --green-border: #2a4c29; --tile: #111; --bar: #333; --bar-hi: #e5e5e5;
    --btn: #e5e5e5; --btn-text: #000; --chip: #222; --error: #ff7a6e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000; --text: #e5e5e5; --strong: #fff; --muted: #b2b2b2; --rule: #262626; --border: #4f4f4f;
  --green: #98dc89; --green-border: #2a4c29; --tile: #111; --bar: #333; --bar-hi: #e5e5e5;
  --btn: #e5e5e5; --btn-text: #000; --chip: #222; --error: #ff7a6e; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.35 Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* bar along the top, like are.na's */
.topbar { height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; }
.mark { font-size: 12.5px; font-weight: bold; color: var(--text); }
.btn { font-size: 12.5px; font-weight: bold; border: 0; border-radius: 3px; padding: 6px 10px; background: var(--chip); color: var(--text); }
.btn.go { background: var(--btn); color: var(--btn-text); }
.btn:disabled { opacity: .35; cursor: default; }
.btns { display: flex; gap: 8px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }
@media (min-width: 900px) { .wrap { padding: 0 50px 50px; } }

/* breadcrumb title */
.crumbs { font-size: 20px; line-height: 1.25; font-weight: bold; color: var(--muted); margin: 18px 0 26px; overflow-wrap: anywhere; }
.crumbs b { color: var(--text); }
.crumbs i { font-style: normal; padding: 0 .3em; }
@media (min-width: 900px) { .crumbs { font-size: 28px; margin: 30px 0 44px; } }

/* "Info" style tables */
.sec { font-size: 12.5px; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--rule); margin: 0 0 8px; }
.info { margin: 0; font-size: 12.5px; }
.info div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--rule); line-height: 1.35; }
.info dt { color: var(--muted); }
.info dd { margin: 0; color: var(--text); font-weight: bold; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* start page */
.start-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .start-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; } }
.field { display: flex; align-items: center; height: 36px; padding: 0 10px; border-radius: 3px; background: var(--chip); font-size: 16px; }
.field span { color: var(--muted); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; padding: 0 0 0 1px; }
.field:focus-within { outline: 2px solid var(--border); }
.ask .btn { margin-top: 10px; padding: 8px 12px; }
.lede { font-size: 12.5px; color: var(--text); margin: 0 0 12px; line-height: 1.45; }
.error { color: var(--error); font-size: 12.5px; margin-top: 12px; }
.ticker { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 16px 12px; margin-top: 40px; }
.load-bar { height: 2px; background: var(--rule); margin: 12px 0 0; }
#load-fill { height: 100%; width: 0; background: var(--text); transition: width .3s; }

/* blocks, the are.na way: contained in a square, caption centred under */
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 14px; }
@media (min-width: 900px) { .blocks { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 30px 22px; } }
.blocks.solo { grid-template-columns: minmax(0, 360px); }
.block { min-width: 0; }
.block .box { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.block img { max-width: 100%; max-height: 100%; display: block; }
.block .text {
  width: 100%; height: 100%; border: 1px solid var(--border); padding: 10px; font-size: 12.5px; line-height: 1.4;
  color: var(--text); overflow: hidden; display: block; text-align: left;
}
.block .cap { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker .block .cap { font-size: 11px; }

/* channel cards, green when public */
.chans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .chans { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px; } }
.chan {
  border: 2px solid var(--border); aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding: 12px; color: var(--text); text-decoration: none; min-width: 0;
}
.chan.pub { border-color: var(--green-border); color: var(--green); }
.chan .t { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; margin-bottom: 6px; }
@media (min-width: 900px) { .chan .t { font-size: 20px; } }
.chan .m { font-size: 12.5px; line-height: 1.4; }
.chan .m b { display: block; }

/* the story */
.story-top { position: sticky; top: 0; z-index: 4; background: var(--bg); }
.progress { display: flex; gap: 3px; padding: 0 16px; }
.progress span { flex: 1; height: 2px; background: var(--rule); }
.progress span.done { background: var(--text); }
@media (min-width: 900px) { .progress { display: none; } }

.stage { display: grid; gap: 24px; }
@media (min-width: 900px) { .stage { grid-template-columns: 150px 1fr; gap: 40px; } }
.view { display: none; }
@media (min-width: 900px) {
  .view { display: block; position: sticky; top: 70px; align-self: start; }
  .view ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
  .view button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 3px 0 3px 10px; margin-left: -2px; border-left: 2px solid transparent; font-size: 12.5px; font-weight: bold; color: var(--muted); }
  .view button:hover { color: var(--text); }
  .view button[aria-current="true"] { color: var(--text); border-left-color: var(--text); }
}

.card { display: none; }
.card.on { display: grid; gap: 28px; animation: in .3s ease both; }
@media (min-width: 900px) { .card.on { grid-template-columns: minmax(300px, 420px) 1fr; gap: 56px; align-items: start; } }
@keyframes in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .card.on { animation: none; } }
.side { min-width: 0; }
.main { min-width: 0; }
.huge { font-size: 76px; line-height: 1; font-weight: bold; color: var(--text); letter-spacing: -0.02em; margin: 14px 0 6px; }
@media (min-width: 900px) { .huge { font-size: 104px; } }
.head { font-size: 22px; line-height: 1.22; font-weight: bold; color: var(--text); margin: 14px 0 10px; overflow-wrap: anywhere; }
@media (min-width: 900px) { .head { font-size: 28px; } }
.quip { font-size: 16px; line-height: 1.45; margin: 0 0 12px; max-width: 46ch; }
.side .info { margin-top: 18px; }
.side .sec:not(:first-child) { margin-top: 24px; }
.side .sec + .info { margin-top: 0; }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; }
@media (min-width: 900px) { .bars { height: 300px; gap: 6px; } }
.bars div { flex: 1; background: var(--bar); min-height: 1px; }
.bars div.hi { background: var(--bar-hi); }
.axis { display: flex; gap: 4px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.axis span { flex: 1; text-align: center; }
.axis.spread { justify-content: space-between; }
.axis.spread span { flex: none; }

.people { margin: 0; padding: 0; list-style: none; }
.people li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 12.5px; }
.people .av { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--chip); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-weight: bold; }
.people .av img { width: 100%; height: 100%; object-fit: cover; }
.people b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people span { color: var(--muted); }

.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
.mosaic div { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mosaic img { max-width: 100%; max-height: 100%; display: block; }

.nav-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* every day of the year */
.cal { display: grid; gap: 5px; }
.cal-row { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.cal-row div { display: grid; grid-template-columns: repeat(31, 1fr); gap: 2px; }
.cal i { aspect-ratio: 1; background: var(--rule); display: block; }
.cal i.l1 { background: var(--bar); }
.cal i.l2 { background: var(--muted); }
.cal i.l3 { background: var(--bar-hi); }

/* share sheet */
.sheet { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet-box { background: var(--bg); width: 100%; max-width: 460px; max-height: 100%; overflow-y: auto; padding: 14px 16px 18px; border-radius: 3px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
#share-preview { display: block; width: 100%; aspect-ratio: 1 / 1; background: var(--chip); border: 1px solid var(--rule); }
#share-status { margin: 10px 0 0; min-height: 1em; }
.sheet .links { margin-top: 12px; }
a.btn { text-decoration: none; display: inline-block; }
@media (max-width: 420px) { .topbar .btns { gap: 6px; } .topbar .btn { padding: 6px 8px; } }

/* landing: one centred column */
.center { max-width: 460px; margin: 0 auto; padding: 14vh 16px 32px; text-align: center; }
.center .crumbs { margin: 0 0 10px; font-size: 28px; }
.center .intro { color: var(--muted); margin: 0 0 28px; }
.center .row { display: flex; gap: 8px; }
.center .field { flex: 1; min-width: 0; text-align: left; }
.center .ask .btn { margin-top: 0; white-space: nowrap; }
.center #signin-box { margin: 18px 0 0; color: var(--muted); }
.center #loading { margin-top: 28px; text-align: left; }
.center #load-wait { margin-top: 10px; }
.link { background: none; border: 0; padding: 0; font: inherit; font-weight: bold; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.unofficial { font-size: 12.5px; color: var(--muted); margin: 40px 0 0; }
#start .ticker { max-width: 760px; margin: 32px auto 40px; padding: 0 16px; }
@media (max-width: 420px) { .center .row { flex-direction: column; } .center .crumbs { font-size: 24px; } }

/* the year you can click */
.year-pick {
  appearance: none; -webkit-appearance: none; background: none; border: 0; border-radius: 0; margin: 0; padding: 0;
  font: inherit; color: var(--text); cursor: pointer;
  text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.year-pick:hover, .year-pick:focus-visible { text-decoration-style: solid; outline: none; }
.year-pick option { font-size: 16px; font-weight: normal; }
.unofficial a { color: var(--text); font-weight: bold; text-decoration: underline; text-underline-offset: 3px; }

/* landing: a taller, roomier username box, with the button matching its height */
.center { max-width: 540px; }
.center .field { height: 48px; padding: 0 14px; font-size: 18px; }
.center .ask .btn { height: 48px; padding: 0 18px; font-size: 14px; }

/* sign-in only landing */
.btn.big { height: 48px; padding: 0 22px; font-size: 14px; }
#signin-box .note { color: var(--muted); font-size: 12.5px; margin: 14px auto 0; max-width: 36ch; }
#signin-box .signed { margin: 12px 0 0; color: var(--muted); }

/* number and words as one big title: "26 new channels." */
.head.xl { font-size: 44px; line-height: 1.04; letter-spacing: -0.015em; margin: 14px 0 14px; }
@media (min-width: 900px) { .head.xl { font-size: 68px; } }
.head.one { font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; overflow-wrap: normal; }
@media (min-width: 900px) { .head.one { font-size: 40px; } }

/* roomier text: no lonely last words, a little more air between lines */
.head, .quip, .lede, .note { text-wrap: pretty; }
.head { line-height: 1.18; }

/* share sizes */
.sizes { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.sizes .btn[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); }
#share-preview { max-height: 62vh; width: auto; max-width: 100%; margin: 0 auto; }

/* your year in colour */
.palette { display: grid; gap: 6px; }
.pal-row { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.pal-row div { display: flex; gap: 4px; flex-wrap: wrap; }
.pal-row i { width: 20px; height: 20px; display: block; }
@media (min-width: 900px) { .pal-row i { width: 30px; height: 30px; } }
.pal-row div { flex-wrap: nowrap; }
.pal-row i { width: 18px; height: 18px; flex: none; }
@media (min-width: 900px) { .pal-row i { width: 26px; height: 26px; } }
