/* ============================================================
   r1 — components
   ============================================================ */

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 7rem 0 6rem;
}

.hero-nepali {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--sun-dim);
  margin-bottom: 1.6rem;
}

.hero-nepali span { color: var(--ink-3); margin-left: 0.6em; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 1.6rem;
}

.hero p {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34rem;
  font-weight: 300;
}

.hero p + p { margin-top: 0.9rem; }

.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

.hero-foot .clock { color: var(--ink-2); }
.hero-foot .clock b { color: var(--sun-dim); font-weight: 400; }

.hero-foot a { color: var(--ink-3); }
.hero-foot a:hover { color: var(--sun); }

/* ---------- lists (projects / work / writing) ---------- */
.list { list-style: none; }

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1.5rem;
  row-gap: 0.15rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.row:last-child { border-bottom: 1px solid var(--line); }

.row .name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.25s ease;
}

.row .name .g { color: var(--sun); }

.row .desc {
  grid-column: 1;
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 300;
}

.row .meta {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: baseline;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  text-align: right;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.row .meta a { color: var(--ink-3); transition: color 0.2s ease; }
.row .meta a:hover { color: var(--sun); }

a.row:hover .name, .row:hover .name { color: #fff; }
a.row:hover .name::after { transform: translateX(3px); opacity: 1; }

a.row .name::after {
  content: '→';
  display: inline-block;
  margin-left: 0.5em;
  color: var(--sun);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.after {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-2);
}

.after a { color: var(--ink-2); }
.after a:hover { color: var(--sun); }

/* floating project preview (desktop only) */
#peek {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  aspect-ratio: 16 / 10;
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--line-2);
  background: #0a0a0a;
  overflow: hidden;
  will-change: transform;
}

#peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}

#peek.on { opacity: 1; }

@media (hover: none), (max-width: 900px) {
  #peek { display: none; }
}

/* ---------- moon interlude ---------- */
.moon {
  position: relative;
  min-height: 66vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000 url('../assets/moon.png') center 40% / cover no-repeat;
  overflow: hidden;
}

.moon::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.35) 25%, rgba(0,0,0,0.35) 75%, #000 100%);
}

.moon blockquote {
  position: relative;
  padding: 0 var(--gutter);
}

.moon .q {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.8);
}

.moon .who {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.moon .who i { color: var(--ink-2); font-style: italic; font-family: var(--serif); font-size: 0.95rem; letter-spacing: 0; display: block; margin-top: 0.4rem; }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 15rem;
  gap: 3rem;
  align-items: start;
}

.about p { color: var(--ink-2); font-weight: 300; }
.about p + p { margin-top: 1rem; }
.about p strong { color: var(--ink); font-weight: 400; }

.about .note {
  transform: rotate(2deg);
  opacity: 0.92;
  filter: saturate(0.85);
  margin-top: 0.5rem;
}

/* wide screens: let the note spill into the empty right margin so it can be bigger */
@media (min-width: 1100px) {
  .about {
    grid-template-columns: minmax(0, 1fr) 22rem;
    margin-right: -10rem;
  }
}

/* ---------- contact ---------- */
.say p { color: var(--ink-2); font-weight: 300; max-width: 30rem; }

.form {
  margin-top: 2rem;
  display: grid;
  gap: 1.6rem;
  max-width: 30rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: lowercase;
}

.field input, .field textarea {
  width: 100%;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  border-radius: 0;
  transition: border-color 0.25s ease;
  outline: none;
}

.field textarea { min-height: 5.5rem; resize: vertical; }

.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); font-style: italic; }

.field input:focus, .field textarea:focus { border-color: var(--sun); }

.send {
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--sun);
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.send:hover { color: var(--sun); }
.send:disabled { color: var(--ink-3); border-color: var(--ink-3); cursor: default; }

.sent {
  margin-top: 2rem;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 30rem;
}
.sent b { color: var(--sun); font-weight: 400; }

.links {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-2);
}

.links a { color: var(--ink-2); transition: color 0.2s ease; }
.links a:hover { color: var(--sun); }
.links a sup { color: var(--ink-3); font-size: 0.7em; margin-left: 0.15em; }

/* ---------- page headers (projects / blog) ---------- */
.page-head {
  padding: 9rem 0 3rem;
}

.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.01em;
}

.page-head h1 .g { color: var(--sun); font-style: italic; margin-right: 0.35em; }

.page-head p {
  margin-top: 1rem;
  color: var(--ink-2);
  font-weight: 300;
  font-size: 1.15rem;
  max-width: 30rem;
}

/* ---------- projects page entries ---------- */
.entry {
  display: grid;
  grid-template-columns: 1fr 17rem;
  gap: 2.4rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

.entry:last-of-type { border-bottom: 1px solid var(--line); }

.entry h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1.2;
}

.entry h2 .g { color: var(--sun); }

.entry .tags {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 0.4rem;
}

.entry p {
  margin-top: 1rem;
  color: var(--ink-2);
  font-weight: 300;
}

.entry .bits {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  line-height: 1.8;
}

.entry .go {
  margin-top: 1.2rem;
  display: flex;
  gap: 1.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.entry .go a { color: var(--ink-2); }
.entry .go a:hover { color: var(--sun); }

.entry .shot {
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a0a;
  align-self: start;
}

.entry .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) contrast(1.05);
  transition: filter 0.5s ease, transform 0.8s ease;
}

.entry:hover .shot img { filter: none; transform: scale(1.02); }

.entry.lit { box-shadow: inset 3px 0 0 var(--sun); padding-left: 1.2rem; transition: box-shadow 0.6s ease, padding-left 0.6s ease; }

/* ---------- blog post pages (blog/*.html) ---------- */
.blog-post-page { padding: 8rem 0 4rem; }
.blog-post-container { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.blog-post-nav { margin-bottom: 2.5rem; font-family: var(--mono); font-size: 0.78rem; }
.back-to-blog { color: var(--ink-2); }
.back-to-blog:hover { color: var(--sun); }
.blog-post-full h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; color: #fff; }
.blog-meta { margin-top: 0.8rem; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); display: flex; gap: 1rem; flex-wrap: wrap; }
.blog-tags { display: inline-flex; gap: 0.7rem; }
.blog-tag::before { content: '#'; color: var(--sun-dim); }
.blog-post-content { margin-top: 2.5rem; }
.blog-post-content h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 2rem 0 0.6rem; color: var(--ink); }
.blog-post-content h3 { font-family: var(--mono); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--sun-dim); margin: 1.6rem 0 0.4rem; }
.blog-post-content p { color: var(--ink-2); font-weight: 300; margin-bottom: 1rem; }
.blog-post-content a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--ink-3); }
.blog-post-content a:hover { text-decoration-color: var(--sun); }
.footer { max-width: var(--measure); margin: 3rem auto 0; border-top: 1px solid var(--line); padding: 2rem var(--gutter) 2.6rem; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); }
.footer a { color: var(--ink-2) !important; }
.footer a:hover { color: var(--sun) !important; }

/* ---------- album ---------- */
/* ---------- album: editorial mosaic ---------- */
/* the wrapper is the query container, so the grid can make each row exactly one
   column wide. cells are square and every tile is a whole number of them —
   which is what lets the bands below tile without leaving holes. */
.album-wrap { container-type: inline-size; }

.album {
  --cols: 12;
  --gap: 0.85rem;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gap);
  grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols));
  grid-auto-flow: row dense;
  padding-bottom: 5rem;
}

/* tiles. every band adds up to 12 columns, so the mosaic never leaves a hole */
.album figure      { grid-column: span 4;  grid-row: span 5;  }  /* 4:5, the default */
.album .t6         { grid-column: span 4;  grid-row: span 6;  }  /* 2:3, a little taller */
.album .big        { grid-column: span 8;  grid-row: span 10; }  /* 4:5 at double size */
.album .wide       { grid-column: span 8;  grid-row: span 6;  }  /* 4:3 landscape */
.album .half       { grid-column: span 6;  grid-row: span 4;  }  /* 3:2, two to a row */
.album .sq         { grid-column: span 4;  grid-row: span 4;  }  /* 1:1, three to a row */
.album .duo        { grid-column: span 6;  grid-row: span 7;  }  /* 6:7, the closing pair */
.album .pan        { grid-column: span 12; grid-row: span 7;  }  /* 12:7, a band of its own */

.album figure {
  position: relative;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

/* the tile itself is the button — whole photo is the hit area */
.album .shot {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  background: none;
  border: 0;
  padding: 0;
}

.album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
}

/* caption + date slide up out of the bottom edge on hover */
.album .meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 2.4rem 0.85rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.album .meta .cap  { color: var(--ink); }
.album .meta .when { color: var(--sun-dim); white-space: nowrap; margin-left: auto; }

@media (hover: hover) {
  .album .shot:hover img { transform: scale(1.045); filter: saturate(1); }
  .album .shot:hover .meta { opacity: 1; transform: none; }
}

.album .shot:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.album .shot:focus-visible .meta { opacity: 1; transform: none; }

/* tiles in the same band land together — walk them in one after another */
.album figure:nth-child(3n + 2) { transition-delay: 0.08s; }
.album figure:nth-child(3n + 3) { transition-delay: 0.16s; }

/* ---------- album lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.lb.on { opacity: 1; visibility: visible; }

.lb figure {
  margin: 0;
  max-width: min(100%, 68rem);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lb img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid var(--line);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lb.ready img { opacity: 1; transform: none; }

.lb figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.lb figcaption .when { color: var(--sun-dim); white-space: nowrap; }

/* controls */
.lb-btn {
  position: absolute;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.lb-btn:hover { color: var(--sun); border-color: var(--line-2); }
.lb-btn:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lb-prev  { left: clamp(0.6rem, 2.5vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-next  { right: clamp(0.6rem, 2.5vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }

.lb-count {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}

/* the page behind shouldn't scroll while the lightbox is up */
body.lb-open { overflow: hidden; }

.album-empty {
  color: var(--ink-2);
  font-weight: 300;
  max-width: 30rem;
  padding-bottom: 5rem;
}

/* entries with no screenshot */
.entry.text { grid-template-columns: 1fr; }

/* the older stuff, dimmer */
.earlier { margin-top: 4rem; }
.earlier .entry h2 { font-size: 1.3rem; color: var(--ink-2); }
.earlier .entry p { font-size: 1rem; }
.earlier .entry .shot { max-width: 12rem; }

/* ---------- stuff page: the ledger ---------- */
.page-head .tally {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
}

.page-head .tally b { color: var(--sun); font-weight: 400; font-size: 1.05rem; margin-right: 0.3em; }

.ledger .sec-head { margin-bottom: 1rem; }

.ledger .lede {
  color: var(--ink-2);
  font-weight: 300;
  max-width: 38rem;
  margin-bottom: 1.6rem;
}

.ledger .row .meta { line-height: 1.7; }
.ledger .row .earn { color: var(--sun-dim); }
.ledger .row a.name:hover { color: #fff; }

/* stuff page: the way in for someone who might hire me */
.page-head .cta,
.ledger .hire {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem 1.8rem;
  margin-top: 2.2rem;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.page-head .cta a { color: var(--ink-3); }
.page-head .cta a:hover { color: var(--sun); }

.cta-main {
  color: var(--bg) !important;
  background: var(--sun);
  padding: 0.7rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}
.cta-main:hover { background: #fff; }

.ledger .hire {
  margin-top: 3.5rem;
  padding: 1.8rem;
  border: 1px solid var(--line-2);
  justify-content: space-between;
}
.ledger .hire p {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink);
  max-width: 32rem;
}

/* stuff page: three featured case studies */
.feat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 0.4rem;
}

.feat-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid var(--line-2);
  transition: border-color 0.25s ease;
}
.feat-card:hover { border-color: var(--sun-dim); }

.feat-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--ink);
}

.feat-card p {
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-2);
}
.feat-card p b { color: var(--ink); font-weight: 400; }

.feat-card .feat-result {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--sun);
  font-weight: 400;
}

.feat-for,
.feat-stack {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.feat-stack a { color: var(--ink-3); }
.feat-stack a:hover { color: var(--sun); }

@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; }
}

/* ---------- wall page: every project, as tiles ---------- */
.wall-page .page-head p { max-width: 36rem; }

.wall-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
}
.wall-jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;            /* a thumb-sized target */
  padding: 0 0.2rem;
  color: var(--ink-3);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}
.wall-jump a:active { color: var(--sun); }

.wall-sec { padding: clamp(2.6rem, 6vh, 4rem) 0; scroll-margin-top: 4rem; }
.wall-sec .sec-head { margin-bottom: 1.2rem; }
.wall-sec .lede {
  color: var(--ink-2);
  font-weight: 300;
  max-width: 38rem;
  margin: -0.4rem 0 1.4rem;
}

/* hairline wall: each tile draws its own single-pixel grid lines, so a short last row leaves no grey hole */
.wall {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  margin: 0 1px 1px 0;
  --gl: var(--line);
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  padding: 1.15rem 1.2rem 1rem;
  background: var(--bg);
  box-shadow: 1px 0 0 0 var(--gl), 0 1px 0 0 var(--gl), 1px 1px 0 0 var(--gl),
              1px 0 0 0 var(--gl) inset, 0 1px 0 0 var(--gl) inset;
}

.tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

.tile h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.tile h2 .g { color: var(--sun); }

.tile .what {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-2);
}

.tile .money {
  margin-top: auto;
  padding-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--sun-dim);
}

.tile .go {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  margin: -0.35rem 0 -0.6rem;     /* the padded links sit flush with the tile edge */
  font-family: var(--mono);
  font-size: 0.74rem;
}
.tile .go a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink-3);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}
.tile .go a:active { color: var(--sun); }

.tile.hot { --gl: rgba(244, 221, 23, 0.22); position: relative; z-index: 1; }
.tile.hot h2 { color: #fff; }
.tile.dead h2 { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--sun-dim); text-decoration-thickness: 1px; }
.tile.quiet h2 { color: var(--ink-2); }
.tile.quiet .money, .tile.dead .money { color: var(--ink-3); }

/* status chips */
.chip {
  display: inline-block;
  flex-shrink: 0;
  padding: 0.18rem 0.5rem 0.2rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--ink-2);
  user-select: none;
  -webkit-user-select: none;
}
.chip.earning  { background: var(--sun); border-color: var(--sun); color: #000; }
.chip.alive    { border-color: var(--sun-dim); color: var(--sun); }
.chip.progress { border-style: dashed; border-color: var(--sun-dim); color: var(--ink); }
.chip.personal { color: var(--ink-2); }
.chip.handed   { border-color: var(--ink-3); color: var(--ink-2); }
.chip.shut     { border-color: var(--ink-3); color: var(--ink-2); background: rgba(255,255,255,0.05); }
.chip.never    { border-style: dotted; border-color: var(--ink-3); color: var(--ink-3); }
.chip.class    { border-style: dotted; color: var(--ink-2); }

@media (hover: hover) and (pointer: fine) {
  .wall-jump a:hover, .tile .go a:hover { color: var(--sun); }
  .wall-jump a:hover .chip:not(.earning) { border-color: var(--sun); }
}
