/* ============================================================
   Personal blog — component styles (ported from the design handoff)
   Inline design styles converted to reusable classes.
   ============================================================ */

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--serif); -webkit-font-smoothing: antialiased;
  font-synthesis: none;               /* no faux-bold/italic on CJK */
  transition: background .35s ease, color .35s ease;
  padding-bottom: 130px;              /* room for the fixed capsule nav */
}
a { color: var(--a2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--a1); }
::selection { background: var(--a1soft); }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: pretty; }

/* ---------- layout ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap-mid { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.reading { max-width: 66ch; margin: 0 auto; }

/* ---------- header ---------- */
.site-head {
  max-width: 1040px; margin: 0 auto; padding: 22px 24px 0;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); transition: opacity .2s ease; }
.brand:hover { opacity: .7; color: var(--ink); }
.brand .glyph {
  width: 26px; height: 26px; border-radius: 9px; background: var(--a1);
  position: relative; display: grid; place-items: center; box-shadow: var(--shadow);
}
.brand .glyph::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bg2); }
.brand .glyph::after {
  content: ""; position: absolute; inset: -5px; border-radius: 16px;
  border: 1px dashed var(--a2); animation: om-orbit 12s linear infinite;
}
.brand .word { font-family: var(--sans); font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.coord { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink2); letter-spacing: .08em; }

/* ---------- buttons / chips / tags ---------- */
.btn, .btn-ghost {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: 999px; cursor: pointer; text-decoration: none;
  display: inline-block; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn { background: var(--a1); color: var(--on-accent); box-shadow: var(--shadow); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--lift); color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--line); background: var(--bg2); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--a2); color: var(--ink); }

.tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; }
.tag-article { background: var(--a1soft); color: var(--a1); }
.tag-moment  { background: var(--a2soft); color: var(--a2); }

.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--a1); }
.mono-note { font-family: var(--mono); font-size: 12px; color: var(--ink2); letter-spacing: .04em; }

/* ---------- section head ---------- */
.sec-head { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--line); padding-top: 26px; }
.sec-title { font-family: var(--sans); font-weight: 800; font-size: 21px; letter-spacing: -.02em; margin: 0; }
.sec-sub { font-family: var(--mono); font-size: 11px; color: var(--ink2); }

.page-head { padding: 56px 0 30px; }
.page-title { font-family: var(--sans); font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.03em; margin: 0 0 12px; }

/* ---------- HOME: hero ---------- */
.hero { padding: 62px 0 52px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.hero h1.display {
  font-family: var(--sans); font-weight: 800; font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.08; letter-spacing: -.03em; margin: 0 0 24px;
}
.hero .display .mark { background: var(--a1soft); padding: 0 .1em; border-radius: 6px; }
.hero .lead { font-family: var(--serif); font-size: 18px; line-height: 1.75; color: var(--ink); max-width: 56ch; margin: 20px 0 0; }
.hero .lead + .lead { margin-top: 12px; color: var(--ink2); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

/* NOW card */
.nowcard-wrap { position: relative; padding-top: 16px; }
.nowcard {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow); transform: rotate(1.2deg); transition: transform .3s ease;
}
.nowcard:hover { transform: rotate(-.6deg); }
.nowcard .lbl { font-family: var(--mono); font-size: 10px; color: var(--ink2); letter-spacing: .14em; margin-bottom: 14px; }
.nowcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.nowcard li { display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1.5; }
.nowcard li .ic { font-size: 15px; flex: 0 0 auto; }
.now-badge {
  position: absolute; right: -4px; top: -6px; font-family: var(--mono); font-size: 10px;
  background: var(--a2); color: var(--on-accent); padding: 5px 10px; border-radius: 999px;
  animation: om-float 7s ease-in-out infinite;
}

/* ---------- HOME: feed ---------- */
.feed { display: grid; gap: 16px; padding: 22px 0 8px; }
.feed-card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
a.feed-card:hover { transform: translateY(-3px); box-shadow: var(--lift); color: var(--ink); }
a.feed-card.is-article:hover { border-color: var(--a1); }
a.feed-card.is-moment:hover  { border-color: var(--a2); }
.feed-meta { font-family: var(--mono); font-size: 10px; color: var(--ink2); line-height: 2; }
.feed-meta .tag { margin-bottom: 9px; }
.feed-card h3 { font-family: var(--sans); font-weight: 800; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 10px; }
.feed-card p { font-family: var(--serif); font-size: 15px; line-height: 1.7; color: var(--ink2); margin: 0; }
.more-row { display: flex; gap: 12px; flex-wrap: wrap; padding: 8px 0 40px; }
.more-pill {
  font-family: var(--sans); font-weight: 600; font-size: 13px; padding: 9px 16px;
  border-radius: 999px; border: 1px dashed var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .2s, color .2s;
}
.more-pill:hover { border-color: var(--a1); color: var(--a1); }
.more-pill.teal:hover { border-color: var(--a2); color: var(--a2); }

/* photo placeholders / real photos */
.photo, .photo-cell {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background: repeating-linear-gradient(115deg, var(--bg3) 0 9px, var(--bg2) 9px 18px);
  display: grid; place-items: center;
}
.photo .lbl, .photo-cell .lbl { font-family: var(--mono); font-size: 10px; color: var(--ink2); letter-spacing: .08em; }
.photo img, .photo-cell img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- ARTICLES list ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.chip {
  font-family: var(--mono); font-size: 11px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--a1); }
.chip.is-on { background: var(--a1); color: var(--on-accent); border-color: var(--a1); }
.year { font-family: var(--mono); font-size: 11px; color: var(--a1); letter-spacing: .14em; padding: 18px 0 14px; border-top: 1px solid var(--line); }
.year.tight { border-top: 0; padding-top: 34px; }
.art-list { display: grid; gap: 0; }
.art-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 24px; align-items: start;
  padding: 26px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: padding-left .22s ease, background .22s ease;
}
.art-row:hover { padding-left: 20px; background: var(--bg2); color: var(--ink); }
.art-row .when { font-family: var(--mono); font-size: 11px; color: var(--ink2); line-height: 1.8; padding-top: 3px; }
.art-row h3 { font-family: var(--sans); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 8px; }
.art-row p { font-family: var(--serif); font-size: 15px; line-height: 1.6; color: var(--ink2); margin: 0; }
.art-row .read { font-family: var(--mono); font-size: 10px; color: var(--ink2); padding-top: 3px; white-space: nowrap; }

/* ---------- ARTICLE reading ---------- */
.article { max-width: 66ch; margin: 0 auto; padding: 38px 0 60px; }
.crumb { font-family: var(--mono); font-size: 11px; color: var(--ink2); padding: 34px 0 0; text-decoration: none; display: inline-block; transition: color .2s; }
.crumb:hover { color: var(--a1); }
.article .a-meta { font-family: var(--mono); font-size: 11px; color: var(--ink2); letter-spacing: .1em; margin-bottom: 22px; }
.article h1 { font-family: var(--sans); font-weight: 800; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 30px; }
.article .standfirst { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink2); padding-bottom: 26px; border-bottom: 1px solid var(--line); margin: 0 0 34px; }
.article p { font-family: var(--serif); font-size: 18px; line-height: 1.85; margin: 0 0 26px; }
.article h2 {
  font-family: var(--sans); font-weight: 800; font-size: 24px; letter-spacing: -.02em;
  margin: 40px 0 18px; display: flex; align-items: center; gap: 12px;
}
.article h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--a1); flex: 0 0 auto; }
.article blockquote {
  border-left: 3px solid var(--a1); padding: 6px 0 6px 22px; margin: 0 0 34px;
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--ink);
}
.article figure { margin: 0 0 34px; }
.article figure .fig-media { height: auto; }
.article figcaption { font-family: var(--mono); font-size: 10px; color: var(--ink2); margin-top: 10px; letter-spacing: .04em; }
.article pre {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  margin: 0 0 34px; font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-x: auto; color: var(--ink);
}
.article code { font-family: var(--mono); font-size: .9em; }
.byline { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 44px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.byline .av { width: 40px; height: 40px; border-radius: 12px; background: var(--a1); display: grid; place-items: center; color: var(--on-accent); font-family: var(--sans); font-weight: 800; font-size: 15px; overflow: hidden; }
.byline .who { flex: 1; min-width: 180px; font-family: var(--mono); font-size: 11px; color: var(--ink2); line-height: 1.7; }
.byline .who b { color: var(--ink); font-family: var(--sans); font-size: 13px; }
.byline .next { font-family: var(--sans); font-weight: 600; font-size: 13px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s; }
.byline .next:hover { border-color: var(--a1); color: var(--ink); }

/* ---------- MOMENTS timeline ---------- */
.timeline { position: relative; }
.tl-head { display: grid; grid-template-columns: 118px 26px minmax(0, 1fr); align-items: center; }
.tl-head .m-name { text-align: right; padding-right: 18px; font-family: var(--sans); font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.tl-rail { display: flex; justify-content: center; align-self: stretch; position: relative; }
.tl-rail .line { width: 1px; background: var(--line); min-height: 100%; }
.tl-head .count { position: absolute; width: 19px; height: 19px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 8px; color: var(--ink2); }
.tl-head .m-year { padding-left: 20px; font-family: var(--mono); font-size: 10px; color: var(--ink2); letter-spacing: .12em; }
.tl-head .m-year .m-name-sm { display: none; }
.tl-gap { height: 22px; }

.tl-entry { display: grid; grid-template-columns: 118px 26px minmax(0, 1fr); gap: 0; align-items: start; }
.tl-entry .when { text-align: right; padding: 2px 18px 0 0; font-family: var(--mono); font-size: 11px; color: var(--ink2); line-height: 1.85; }
.tl-entry .when .day { color: var(--ink); font-size: 13px; }
.tl-entry .when .tm { color: var(--ink2); font-size: 10px; letter-spacing: .02em; }
.tl-entry .dot { position: absolute; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--a2); transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.tl-entry .dot.terra { border-color: var(--a1); }
.tl-entry:hover .dot { transform: scale(1.6); }
.tl-body { padding: 0 0 32px 20px; }
.m-meta { display: flex; gap: 9px; align-items: center; margin-bottom: 9px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; flex-wrap: wrap; }
.m-meta .when-sm { display: none; align-items: center; gap: 6px; color: var(--ink); }
.m-meta .place { display: inline-flex; align-items: center; gap: 5px; color: var(--a2); }
.m-meta .m-tag { color: var(--ink2); }
.moment-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.moment-card:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.moment-card .text { font-family: var(--serif); font-size: 16px; line-height: 1.75; margin: 0 0 16px; }
.moment-card .text:last-child { margin-bottom: 0; }
/* Moment photo gallery: 1 shows natural size, 2–9 tile into a cropped grid. */
.m-gallery { margin: 4px 0 0; display: grid; gap: 6px; }
.m-gallery[data-count="1"] { display: block; }
.m-gallery[data-count="2"], .m-gallery[data-count="4"] { grid-template-columns: repeat(2, 1fr); max-width: 360px; }
.m-gallery[data-count="3"], .m-gallery[data-count="5"], .m-gallery[data-count="6"],
.m-gallery[data-count="7"], .m-gallery[data-count="8"], .m-gallery[data-count="9"] { grid-template-columns: repeat(3, 1fr); max-width: 460px; }
.m-gallery .shot { padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg3); cursor: zoom-in; display: block; transition: filter .15s ease; }
.m-gallery .shot:hover { filter: brightness(.94); }
.m-gallery .shot:focus-visible { outline: 2px solid var(--a1); outline-offset: 2px; }
.m-gallery[data-count="1"] .shot { display: inline-block; max-width: 360px; }
.m-gallery[data-count="1"] .shot img { display: block; width: auto; max-width: 100%; height: auto; max-height: 460px; }
.m-gallery:not([data-count="1"]) .shot { aspect-ratio: 1 / 1; }
.m-gallery:not([data-count="1"]) .shot img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Lightbox: full-screen image viewer for moment galleries. */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: oklch(0.14 0.01 60 / 0.92); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 24px 64px -14px oklch(0 0 0 / .7); user-select: none; -webkit-user-select: none; }
.lb-close, .lb-nav { position: absolute; border: 0; background: oklch(1 0 0 / 0.12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .15s ease; }
.lb-close:hover, .lb-nav:hover { background: oklch(1 0 0 / 0.26); }
.lb-close { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 20px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 26px; padding-bottom: 3px; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; background: oklch(0 0 0 / 0.4); padding: 5px 12px; border-radius: 20px; }
.lightbox[data-single="true"] .lb-nav, .lightbox[data-single="true"] .lb-count { display: none; }
body.lb-lock { overflow: hidden; }
@media (max-width: 520px) { .lb-nav { width: 40px; height: 40px; font-size: 22px; } }
.moment-actions { display: flex; gap: 14px; align-items: center; margin-top: 16px; font-family: var(--mono); font-size: 10px; color: var(--ink2); }
.moment-actions span { cursor: default; }
.tl-end { display: grid; grid-template-columns: 118px 26px minmax(0, 1fr); }
.tl-end .fade { width: 1px; height: 40px; background: linear-gradient(var(--line), transparent); margin: 0 auto; }
.tl-end .lbl { padding-left: 20px; font-family: var(--mono); font-size: 10px; color: var(--ink2); letter-spacing: .1em; }

/* ---------- PLAYGROUND ---------- */
.play-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 44px; }
.play-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.play-card:hover { transform: translateY(-4px); box-shadow: var(--lift); color: var(--ink); }
.play-card.solar:hover { border-color: var(--a2); }
.play-card.music:hover { border-color: var(--a1); }
.play-media { height: 170px; position: relative; display: grid; place-items: center; overflow: hidden; }
.play-media.solar { background: oklch(0.22 0.03 265); }
.play-media.solar .orbit1 { width: 150px; height: 150px; border-radius: 50%; border: 1px dashed oklch(0.62 0.11 265); animation: om-orbit 26s linear infinite; display: grid; place-items: center; }
.play-media.solar .orbit2 { width: 88px; height: 88px; border-radius: 50%; border: 1px dashed oklch(0.66 0.10 205); position: relative; }
.play-media.solar .planet { position: absolute; top: -4px; left: 38px; width: 8px; height: 8px; border-radius: 50%; background: oklch(0.74 0.12 205); }
.play-media.solar .sun { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: oklch(0.82 0.16 78); box-shadow: 0 0 34px oklch(0.82 0.16 78 / .6); }
.play-media.music { background: var(--a1soft); display: flex; align-items: flex-end; justify-content: center; gap: 5px; padding: 26px 22px; }
.play-media.music i { width: 7px; border-radius: 3px; transform-origin: bottom; display: block; }
.play-body { padding: 20px 22px; }
.play-body .row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.play-body h3 { font-family: var(--sans); font-weight: 800; font-size: 19px; letter-spacing: -.02em; margin: 0; }
.play-body .kind { font-family: var(--mono); font-size: 9px; padding: 3px 7px; border-radius: 5px; background: var(--bg3); color: var(--ink2); }
.play-body p { font-family: var(--serif); font-size: 15px; line-height: 1.6; color: var(--ink2); margin: 0 0 16px; }
.play-body .go { font-family: var(--sans); font-weight: 600; font-size: 13px; }
.play-body .go.teal { color: var(--a2); }
.play-body .go.terra { color: var(--a1); }
.next-toy { border: 1px dashed var(--line); border-radius: 16px; display: grid; place-items: center; min-height: 220px; color: var(--ink2); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; transition: border-color .24s, color .24s; }
.next-toy:hover { border-color: var(--a1); color: var(--a1); }
button.play-card { width: 100%; text-align: left; font: inherit; cursor: pointer; padding: 0; }

/* tracklist panel (revealed under the music card) */
.tracklist { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 44px; }
.tracklist[hidden] { display: none; }
.tracklist .panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tracklist .panel-head b { font-family: var(--sans); font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.tracklist .panel-head .mono { font-family: var(--mono); font-size: 10px; color: var(--ink2); letter-spacing: .04em; }
.track { display: flex; align-items: center; gap: 16px; padding: 18px 22px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); transition: background .2s ease, padding-left .2s ease; }
.track:last-child { border-bottom: 0; }
.track:hover { background: var(--bg); padding-left: 28px; color: var(--ink); }
.track .n { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.track .s { font-family: var(--mono); font-size: 11px; color: var(--ink2); margin-top: 3px; }
.track .arr { margin-left: auto; color: var(--a1); font-family: var(--mono); font-size: 11px; white-space: nowrap; }

.embed-panel { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 44px; }
.embed-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.embed-head b { font-family: var(--sans); font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.embed-head .mono { font-family: var(--mono); font-size: 10px; color: var(--ink2); }
.embed-body { padding: 4px; }
.embed-body strudel-repl { display: block; }
.embed-body strudel-repl iframe { width: 100%; border: 0; border-radius: 12px; background: var(--bg); }

/* ---------- ABOUT ---------- */
.about-head { padding: 64px 0 0; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.about-head .portrait { width: 82px; height: 82px; border-radius: 24px; border: 1px solid var(--line); overflow: hidden; background: var(--bg3); }
.about-head .portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-head h1 { font-family: var(--sans); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; margin: 0 0 8px; }
.about-head .sub { font-family: var(--mono); font-size: 11px; color: var(--ink2); letter-spacing: .1em; }
.about-body { padding: 38px 0 0; font-size: 19px; line-height: 1.9; max-width: 60ch; }
.about-body p { margin: 0 0 20px; }
.about-body p.muted { color: var(--ink2); margin-bottom: 0; }
.contact { margin: 44px 0 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact .lbl { font-family: var(--mono); font-size: 11px; color: var(--a1); letter-spacing: .14em; margin-bottom: 20px; }
.contact .rows { display: grid; gap: 10px; }
.contact a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 15px; transition: transform .2s ease, border-color .2s; }
.contact a:hover { transform: translateX(5px); border-color: var(--a1); color: var(--ink); }
.contact a .k { font-family: var(--mono); font-size: 10px; color: var(--ink2); width: 76px; letter-spacing: .08em; }
.contact a .arr { margin-left: auto; color: var(--ink2); }
.colophon { padding: 26px 0 40px; font-family: var(--mono); font-size: 11px; color: var(--ink2); line-height: 1.9; }

/* CV — experience / education */
.cv { margin: 44px 0 0; }
.cv-label { font-family: var(--mono); font-size: 11px; color: var(--a1); letter-spacing: .14em; margin-bottom: 4px; }
.cv-list { display: grid; grid-template-columns: 116px minmax(0, 1fr); margin: 0; }
.cv-list dt, .cv-list dd { padding: 15px 0; border-top: 1px solid var(--line); margin: 0; }
.cv-list dt { font-family: var(--mono); font-size: 12px; color: var(--ink2); }
.cv-role { font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--ink); }
.cv-role a { color: var(--a1); text-decoration: none; border-bottom: 1px solid var(--a1soft); }
.cv-role a:hover { color: var(--a1); border-bottom-color: var(--a1); }
.cv-what { font-family: var(--serif); font-size: 15px; line-height: 1.7; color: var(--ink2); margin-top: 5px; }
.cv-what a { color: var(--a2); }
@media (max-width: 720px) {
  .cv-list { grid-template-columns: 1fr; }
  .cv-list dd { border-top: 0; padding-top: 0; }
}

/* commit heatmap */
.heatmap-sec { margin: 44px 0 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.heatmap-sec .lbl { font-family: var(--mono); font-size: 11px; color: var(--a1); letter-spacing: .14em; margin-bottom: 16px; }
.heatmap { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-rows: repeat(7, auto); gap: 3px; width: 100%; }
.heatmap i { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 2px; background: var(--ramp-0); }
.heatmap i[data-l="1"] { background: var(--ramp-1); }
.heatmap i[data-l="2"] { background: var(--ramp-2); }
.heatmap i[data-l="3"] { background: var(--ramp-3); }
.heatmap i[data-l="4"] { background: var(--ramp-4); }
.heatmap-note { font-family: var(--mono); font-size: 11px; color: var(--ink2); margin: 14px 0 0; }

/* like widget + per-country leaderboard */
.like { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.like-btn, .like-meta { border: 0; background: none; cursor: pointer; padding: 4px 6px; border-radius: 999px; color: var(--ink2); transition: color .2s ease, background .2s ease, transform .15s ease; }
.like-btn:focus, .like-meta:focus { outline: none; }
.like-btn:focus-visible, .like-meta:focus-visible { outline: 2px solid var(--a1soft); outline-offset: 1px; }
.like-btn { font-size: 21px; line-height: 1; }
.like-btn:hover { color: var(--a1); transform: scale(1.12); }
.like.is-liked .like-btn { color: var(--a1); }
.like-btn:disabled { opacity: .55; cursor: default; }
.like-meta { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 13.5px; }
.like-meta:hover { color: var(--ink); background: var(--bg3); }
.like-count { font-variant-numeric: tabular-nums; }
.like-flags { display: inline-flex; align-items: center; }
.like .flag { width: 19px; height: 14px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1.5px var(--bg2); }
.like-flags .flag { margin-left: -7px; }
.like-flags .flag:first-child { margin-left: 3px; }
.flag-x { display: inline-block; width: 19px; height: 14px; border-radius: 3px; background: var(--bg3); }
.like-board { position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 30; min-width: 200px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--lift); padding: 12px 14px; }
.like-board[hidden] { display: none; }
.lb-title { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); margin-bottom: 10px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-family: var(--sans); font-size: 14px; }
.lb-row .flag { flex: 0 0 auto; }
.lb-name { flex: 1; color: var(--ink); }
.lb-n { font-family: var(--mono); font-size: 12px; color: var(--a1); font-variant-numeric: tabular-nums; }
.lb-empty { font-family: var(--mono); font-size: 12px; color: var(--ink2); }
.article .like { margin: 14px 0 26px; margin-left: -6px; }
.moment-card .like { margin: 14px 0 0 -6px; }

/* static tech-stack chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip.static { cursor: default; }
.chip.static:hover { border-color: var(--line); color: var(--ink); }

/* ---------- footer ---------- */
.site-foot { max-width: 1040px; margin: 0 auto; padding: 34px 24px 0; border-top: 1px solid var(--line); display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink2); }
.site-foot .spring { flex: 1; }
.site-foot a { color: var(--ink2); text-decoration: none; }
.site-foot a:hover { color: var(--a1); }

/* ---------- capsule nav (fixed) + theme toggle ---------- */
.capsule { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: flex; gap: 8px; align-items: center; max-width: calc(100vw - 24px); }
.capsule .pills { display: flex; gap: 3px; padding: 6px; border-radius: 999px; background: color-mix(in oklab, var(--bg2) 88%, transparent); backdrop-filter: blur(14px) saturate(1.5); border: 1px solid var(--line); box-shadow: var(--lift); overflow-x: auto; overscroll-behavior-x: none; scrollbar-width: none; }
.capsule .pills::-webkit-scrollbar { display: none; }
.capsule .pills a { font-family: var(--sans); font-weight: 600; font-size: 13px; padding: 8px 15px; border-radius: 999px; white-space: nowrap; text-decoration: none; color: var(--ink2); transition: background .2s ease, color .2s ease; }
.capsule .pills a:hover { color: var(--ink); }
.capsule .pills a[aria-current="page"] { background: var(--a1); color: var(--on-accent); view-transition-name: nav-pill; }

/* iOS-style: the terracotta pill slides between tabs across page navigations.
   Falls back to an instant change where the View Transitions API isn't supported. */
@view-transition { navigation: auto; }
::view-transition-group(nav-pill) { animation-duration: .38s; animation-timing-function: cubic-bezier(.4, .8, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(nav-pill) { animation-duration: .001s; } }
/* theme toggle — lives in the header, top-right */
.theme-toggle { margin-left: auto; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); display: grid; place-items: center; cursor: pointer; font-size: 14px; color: var(--ink); transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .2s ease; }
.theme-toggle:hover { border-color: var(--a1); transform: rotate(-20deg) scale(1.08); }

/* ---------- animations ---------- */
@keyframes om-float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes om-orbit { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes om-bar { 0%,100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .feed-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .feed-card .feed-meta { display: flex; gap: 10px; align-items: center; }
  .art-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .art-row .when { display: flex; gap: 10px; align-items: center; }
  .art-row .read { order: -1; }
  .tl-entry, .tl-head { grid-template-columns: 16px minmax(0, 1fr); }
  .tl-entry .when, .tl-head .m-name { display: none; }
  .m-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
  .m-meta .when-sm { display: inline-flex; }
  .tl-head .m-year .m-name-sm { display: inline; font-family: var(--sans); font-weight: 800; font-size: 15px; letter-spacing: -.02em; color: var(--ink); margin-right: 9px; }
  .embed-strudel { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; }
}
