/* ============================================================
   Proof of Work on Solana — Janhavi Chavada
   Editorial dossier printed on paper: warm off-white ground,
   near-black type, highlighter lime, deep forest for anything
   interactive.
   ============================================================ */

:root {
  --paper:    #FAF7EF;
  --paper-2:  #FFFDF8;
  --paper-3:  #F1ECDF;
  --paper-4:  #E7E1D0;

  --ink:      #16150F;
  --ink-2:    #35332A;
  --ink-3:    #6B6757;
  --ink-4:    #928D7B;

  --line:     #DED7C4;
  --line-2:   #EDE8DA;

  --forest:   #14563F;
  --forest-2: #0E3D2C;
  --mark:     #DFFF4F;
  --mark-2:   #C9F02E;
  --flare:    #C2401F;

  --lift-1: 0 1px 2px rgba(22, 21, 15, 0.05);
  --lift-2: 0 2px 4px rgba(22, 21, 15, 0.04), 0 12px 28px -16px rgba(22, 21, 15, 0.22);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --maxw: 1400px;
  --topbar-h: 62px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Slow-drifting wash so the paper is never a flat fill */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58vmax 46vmax at 8% -6%,  rgba(223, 255, 79, 0.42), transparent 62%),
    radial-gradient(52vmax 42vmax at 96% 4%,  rgba(20, 86, 63, 0.10),  transparent 60%),
    radial-gradient(46vmax 40vmax at 50% 102%, rgba(194, 64, 31, 0.08), transparent 62%);
  animation: wash 34s ease-in-out infinite alternate;
}
.grain::after {
  content: "";
  position: absolute;
  inset: -50%;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}
@keyframes wash {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
}

::selection { background: var(--mark); color: var(--ink); }

a { color: inherit; }

/* scroll progress */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--forest), var(--mark-2));
  z-index: 300;
}

.mono {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 500;
}
.dim { color: var(--ink-3); }
.label { color: var(--forest); margin: 0 0 0.9rem; font-weight: 700; }

.code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--forest-2);
  background: rgba(20, 86, 63, 0.075);
  border: 1px solid rgba(20, 86, 63, 0.14);
  padding: 0.08em 0.36em;
  border-radius: 3px;
  white-space: nowrap;
}
@media (max-width: 780px) {
  .code { white-space: normal; overflow-wrap: anywhere; }
}

em { font-style: italic; }

/* ============================ TOP BAR ============================ */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: rgba(250, 247, 239, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transform: translateY(-102%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s;
}
.topbar.is-up { transform: translateY(0); border-bottom-color: var(--line); }

.topbar__mark {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--ink);
}
.topbar__mark .blip {
  color: var(--forest);
  margin-left: 0.35em;
  font-size: 0.7em;
  vertical-align: 0.15em;
  display: inline-block;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

.topbar__nav { display: flex; gap: 1.6rem; }
.topbar__nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--mark-2);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.topbar__cta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--lift-1);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.topbar__cta:hover {
  border-color: var(--forest);
  color: var(--forest);
  transform: translateY(-1px);
}

@media (max-width: 760px) { .topbar__nav { display: none; } }

/* ============================ HERO ============================ */

.hero {
  padding: clamp(3.5rem, 9vw, 7rem) var(--pad) clamp(3rem, 6vw, 5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: var(--pad); right: var(--pad); bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero__rule {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
}
.hero__rule .mono:first-child { color: var(--forest); font-weight: 700; }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 13vw, 11rem);
  line-height: 0.86;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: clamp(1.6rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: block;
  animation: rise 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__title .indent { padding-left: clamp(0rem, 12vw, 9rem); }
@keyframes rise {
  from { transform: translateY(102%) rotate(2deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* the highlighter stroke behind "Solana", drawn on load */
.hero__title em {
  font-style: italic;
  position: relative;
  z-index: 0;
  color: var(--ink);
}
.hero__title em::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.06em; right: -0.06em;
  bottom: 0.06em;
  height: 0.42em;
  background: var(--mark);
  transform: scaleX(0) skewX(-14deg);
  transform-origin: 0 50%;
  animation: highlight 0.85s cubic-bezier(0.65, 0, 0.35, 1) 0.75s both;
}
@keyframes highlight { to { transform: scaleX(1) skewX(-14deg); } }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__lede {
  font-size: clamp(1.08rem, 1.9vw, 1.34rem);
  line-height: 1.58;
  color: var(--ink-2);
  margin: 0;
  max-width: 46ch;
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hero__who {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.2rem, 2.5vw, 2rem);
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
@media (max-width: 900px) {
  .hero__who { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
}

.who__name {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1;
  color: var(--ink);
  margin: 0 0 1.1rem;
  letter-spacing: -0.01em;
}
.who__links { list-style: none; margin: 0; padding: 0; }
.who__links li + li { border-top: 1px solid var(--line-2); }
.who__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.58rem 0;
  text-decoration: none;
  font-size: 0.97rem;
  color: var(--ink-2);
  transition: color 0.2s, padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.who__links a span { font-size: 0.8em; color: var(--ink-4); transition: transform 0.3s, color 0.2s; }
.who__links a:hover { color: var(--forest); padding-left: 0.5rem; }
.who__links a:hover span { color: var(--forest); transform: translate(3px, -3px); }

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--lift-1);
}
.stat { background: var(--paper-2); padding: 1.15rem 1.25rem; transition: background 0.25s; }
.stat:hover { background: var(--paper); }
.stat dt { color: var(--ink-3); margin: 0 0 0.4rem; }
.stat dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--ink);
}
.stat:nth-child(1) dd, .stat:nth-child(2) dd { color: var(--forest); }
.stat:nth-child(4) dd, .stat:nth-child(5) dd {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-family: var(--mono);
  padding-top: 0.5rem;
  color: var(--ink-2);
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* ============================ FILTER BAR ============================ */

.filterbar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem var(--pad);
  background: rgba(250, 247, 239, 0.9);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.filterbar__label { flex-shrink: 0; }
.filterbar__set { display: flex; gap: 0.4rem; flex-wrap: wrap; flex: 1; }
.filterbar > .mono:last-child { flex-shrink: 0; }
@media (max-width: 700px) { .filterbar__label, .filterbar > .mono:last-child { display: none; } }

.chip {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.78rem;
  line-height: 1;
}
.chip--filter { cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s; }
.chip--filter:hover { color: var(--ink); border-color: var(--ink-4); transform: translateY(-1px); }
.chip--filter.is-on {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper-2);
  font-weight: 700;
}

/* ============================ SECTIONS ============================ */

.sect {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad) 0;
  scroll-margin-top: calc(var(--topbar-h) + 1.2rem);
}
.hero { scroll-margin-top: calc(var(--topbar-h) + 1.2rem); }
.sect.is-hidden { display: none; }

.sect__head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 62ch; }
.sect__head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.sect__note { color: var(--ink-3); margin: 0; font-size: 0.97rem; max-width: 56ch; }

/* ============================ ENTRIES ============================ */

.entries { border-top: 2px solid var(--ink); }

.entry {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.35s;
}
.entry::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 0; height: 2px;
  background: var(--mark-2);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.entry:hover::before { width: 100%; }
.entry.is-hidden { display: none; }

.entry__idx .mono {
  font-size: 0.85rem;
  color: var(--ink-4);
  display: block;
  padding-top: 0.35rem;
  transition: color 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.entry:hover .entry__idx .mono { color: var(--forest); transform: translateX(3px); }

.entry__main {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 1080px) { .entry__main { grid-template-columns: 1fr; gap: 1.1rem; } }
@media (max-width: 620px) {
  .entry { grid-template-columns: 1fr; gap: 0.5rem; }
  .entry__idx .mono { padding-top: 0; }
}

.entry__head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.45rem;
}
.entry__kicker {
  margin: 0 0 0.9rem;
  color: var(--ink-3);
  line-height: 1.4;
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.14rem;
}
.entry__meta { margin: 0; color: var(--ink-4); line-height: 1.9; }
.entry__meta .date { color: var(--ink-2); font-weight: 700; }
.entry__meta .sep { margin: 0 0.55em; }
.entry__meta .flag { color: var(--flare); font-weight: 700; }

.entry__body p { margin: 0 0 1rem; max-width: 70ch; }
.entry__body p:last-child { margin-bottom: 0; }
.entry__body strong { font-weight: 600; color: var(--ink); box-shadow: inset 0 -0.42em 0 rgba(223, 255, 79, 0.7); }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 1.2rem 0 0;
}
.entry .chip { transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.entry:hover .chip { border-color: var(--paper-4); }
.entry .chip:hover { color: var(--forest); border-color: var(--forest); transform: translateY(-1px); }

/* technical spec table on each entry */
.spec { margin: 1.3rem 0 0; border-top: 1px solid var(--line-2); }
.spec > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.58rem 0;
  border-bottom: 1px solid var(--line-2);
  align-items: baseline;
}
.spec dt { color: var(--ink-4); padding-top: 0.12rem; }
.spec dd { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.spec dd .copy { font-size: 0.68rem; }
@media (max-width: 520px) { .spec > div { grid-template-columns: 1fr; gap: 0.2rem; } }

.idline { margin: 1rem 0 0 !important; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--forest-2);
  background: rgba(20, 86, 63, 0.07);
  border: 1px dashed rgba(20, 86, 63, 0.32);
  border-radius: 4px;
  padding: 0.32rem 0.5rem;
  cursor: pointer;
  word-break: break-all;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.copy:hover { background: var(--mark); border-color: var(--forest); transform: translateY(-1px); }

.links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.3rem !important; }
.links a {
  position: relative;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.28rem;
  transition: color 0.2s;
}
.links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--line);
  transition: background 0.2s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.links a:hover { color: var(--forest); }
.links a:hover::after { background: var(--mark-2); transform: scaleY(1.6); }

/* ============================ LEDGER ============================ */

.sect--ledger { padding-bottom: clamp(3rem, 7vw, 6rem); }

.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-2);
  transition: padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s;
}
.ledger li:hover { padding-left: 0.7rem; background: rgba(223, 255, 79, 0.24); }
.ledger__date { color: var(--forest); font-size: 0.7rem; font-weight: 700; }
.ledger__name { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.15; color: var(--ink); }
.ledger__tag { color: var(--ink-4); font-size: 0.62rem; }
@media (max-width: 620px) {
  .ledger li { grid-template-columns: 5.6rem minmax(0, 1fr); }
  .ledger__tag { grid-column: 2; }
}

/* ============================ FOOTER ============================ */

.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(2rem, 4vw, 3rem);
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) { .foot { grid-template-columns: 1fr; } }

.foot__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.92;
  color: var(--ink);
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}
.foot__title::after {
  content: "\2009\25C8";
  color: var(--forest);
  font-size: 0.4em;
  vertical-align: 0.6em;
  display: inline-block;
  animation: pulse 2.6s ease-in-out infinite;
}
.foot__sub { color: var(--ink-3); margin: 0; max-width: 42ch; font-size: 0.97rem; }

.foot__links { display: flex; flex-direction: column; }
.foot__links a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-2);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  transition: color 0.2s, padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.foot__links a:first-child { border-top: 1px solid var(--line-2); }
.foot__links a:hover { color: var(--forest); padding-left: 0.6rem; }
.foot__links .num { color: var(--ink-4); font-size: 0.6rem; }

.foot__legal {
  grid-column: 1 / -1;
  color: var(--ink-4);
  font-size: 0.6rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-2);
}

/* ============================ TOAST ============================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 200%);
  background: var(--ink);
  color: var(--mark);
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  box-shadow: var(--lift-2);
  z-index: 500;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.is-up { transform: translate(-50%, 0); }

/* ============================================================
   LIVE ACTIVITY
   ============================================================ */

.sect--live { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.sect--live .sect__head { max-width: 68ch; }

.live { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.live > *, .live__split > *, .panel { min-width: 0; }

.stats--live { margin-top: 0; }
.stats--live .stat dd {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  padding-top: 0;
}

.panel {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 5px;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  box-shadow: var(--lift-1);
  transition: box-shadow 0.35s, transform 0.35s;
}
.panel:hover { box-shadow: var(--lift-2); }

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-2);
}
.panel__head h3 {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--ink);
}
.panel__head p { margin: 0; font-size: 0.6rem; }

.panel__note {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 52ch;
}

.live__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 900px) { .live__split { grid-template-columns: 1fr; } }

/* ---- heatmap ---- */

.heat__link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  transition: background 0.25s;
}
.heat__link:hover { background: rgba(223, 255, 79, 0.16); }

.heat__scroll { overflow-x: auto; overflow-y: hidden; padding: 0.2rem 0 0.4rem; }
.heat { display: inline-grid; gap: 0.35rem; min-width: 100%; }

.heat__months {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--cell, 12px);
  gap: 3px;
  height: 1rem;
}
.heat__month {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  grid-row: 1;
  white-space: nowrap;
}

.heat__grid {
  display: grid;
  grid-template-rows: repeat(7, var(--cell, 12px));
  grid-auto-flow: column;
  grid-auto-columns: var(--cell, 12px);
  gap: 3px;
}

.cell {
  display: block;
  width: var(--cell, 12px);
  height: var(--cell, 12px);
  border-radius: 2px;
  background: var(--paper-4);
  outline: 1px solid rgba(22, 21, 15, 0.045);
  outline-offset: -1px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
a.cell { text-decoration: none; }
a.cell:hover { transform: scale(1.42); filter: saturate(1.2); z-index: 2; position: relative; }
.cell--pad { background: transparent; outline: none; }
.cell[data-level="1"] { background: #D8F09C; }
.cell[data-level="2"] { background: #AEE05A; }
.cell[data-level="3"] { background: #66B22C; }
.cell[data-level="4"] { background: #2F7A1E; }

/* cells cascade in once the calendar scrolls into view */
.heat.is-in .cell { animation: pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes pop {
  from { transform: scale(0.2); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.heat__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}
.heat__foot p { margin: 0; font-size: 0.6rem; }
.heat__legend { display: flex; align-items: center; gap: 0.28rem; font-size: 0.6rem; }
.heat__legend .cell { width: 11px; height: 11px; }

.heat__cta {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--mark-2);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.heat__cta:hover { color: var(--ink); border-color: var(--forest); }

@media (max-width: 700px) { .heat { --cell: 11px; } }

/* ---- hour of day ---- */

.clock {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 3px;
  height: 132px;
  padding-bottom: 1.1rem;
}
.clock__bar {
  position: relative;
  height: max(3px, var(--h));
  background: linear-gradient(180deg, #AEE05A, #66B22C);
  border-radius: 3px 3px 0 0;
  transform-origin: 50% 100%;
  transition: filter 0.2s;
}
.clock.is-in .clock__bar { animation: grow 0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
.clock__bar:hover { filter: brightness(1.08) saturate(1.3); }
.clock__bar.is-peak { background: linear-gradient(180deg, var(--mark-2), var(--forest)); }
.clock__tick {
  position: absolute;
  bottom: -1.05rem;
  left: 0;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--ink-4);
}

/* ---- push feed ---- */

.feed {
  list-style: none;
  margin: 0;
  padding: 0 0.4rem 0 0;
  max-height: 21rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.feed::-webkit-scrollbar { width: 6px; }
.feed::-webkit-scrollbar-track { background: transparent; }
.feed::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.feed::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

.feed__item {
  padding: 0.72rem 0 0.72rem 0.9rem;
  border-bottom: 1px solid var(--line-2);
  border-left: 2px solid transparent;
  position: relative;
  transition: border-color 0.25s, background 0.25s;
}
.feed__item:hover { background: rgba(223, 255, 79, 0.18); border-left-color: var(--line); }
.feed__item:last-child { border-bottom: none; }
.feed__item.is-live { border-left-color: var(--mark-2); }
.feed__item.is-live::after {
  content: "LIVE";
  position: absolute;
  top: 0.75rem; right: 0;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: var(--paper-2);
  background: var(--forest);
  padding: 0.12rem 0.32rem;
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

.feed__head { display: flex; align-items: baseline; gap: 0.7rem; margin: 0 0 0.22rem; flex-wrap: wrap; }
.feed__repo {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.feed__repo:hover { border-bottom-color: var(--forest); }
.feed__when { font-size: 0.58rem; color: var(--ink-4); }
.feed__msg { margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); }
.feed__sha {
  display: inline-block;
  margin-top: 0.32rem;
  font-size: 0.6rem;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
}
.feed__sha:hover { color: var(--forest); }

.live[data-state="loading"] .panel,
.live[data-state="loading"] .stats--live { opacity: 0.5; }
.live__error { color: var(--flare); font-size: 0.62rem; margin: 0; }

.stat__sub { display: block; margin: 0.3rem 0 0; font-size: 0.55rem; color: var(--ink-4); margin-top: 0.3rem; }

/* ============================ MOTION ============================ */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .grain { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__title em::before { transform: scaleX(1) skewX(-14deg); }
}

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 2px; }
