/* Barış Akın — blog. Colours come from zap's theme tokens (theme.css), so the
   light and dark themes are the library's own and the components on the page
   match the page around them. */

:root { --wrap: 1440px; --narrow: 860px; --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body.zap {
  background: var(--zap-bg);
  color: var(--zap-text);
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
body.zap main { flex: 1; }
a { color: var(--zap-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mono { font-family: var(--mono); }
.muted { color: var(--zap-muted); }
.small { font-size: .85rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--zap-primary); color: var(--zap-primary-contrast); padding: 6px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* -- header -------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--zap-bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--zap-border);
}
.head-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--zap-text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  font: 700 13px/1 var(--mono); letter-spacing: .5px; color: var(--zap-primary-contrast);
  background: var(--zap-primary);
  flex: none;
}
.brand-mark.lg { width: 48px; height: 48px; font-size: 16px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15px; font-weight: 700; }
.brand-text small { font: 12px var(--mono); color: var(--zap-muted); }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { color: var(--zap-muted); padding: 6px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--zap-text); background: var(--zap-surface); text-decoration: none; }
.main-nav a.on { color: var(--zap-text); background: var(--zap-primary-soft); }
.head-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.search-btn {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px;
  border: 1px solid var(--zap-border); border-radius: 10px; color: var(--zap-muted);
  background: var(--zap-surface); font-size: 14px; min-width: 170px;
}
.search-btn:hover { text-decoration: none; color: var(--zap-text); border-color: var(--zap-primary); }
.search-btn kbd { margin-left: auto; font: 11px var(--mono); border: 1px solid var(--zap-border); border-radius: 5px; padding: 1px 5px; background: var(--zap-bg); }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--zap-border); background: var(--zap-surface); color: var(--zap-text);
}
.icon-btn:hover { border-color: var(--zap-primary); }
.icon-btn .moon { display: none; }
[data-theme="dark"] .icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .moon { display: block; }

/* -- hero ---------------------------------------------------------------- */
.hero { padding: 64px 0 40px; max-width: 820px; }
.hero-kicker { color: var(--zap-primary); font-size: 14px; margin: 0 0 10px; }
.hero-title { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
.grad { color: var(--zap-primary); }
.hero-lead { font-size: 1.15rem; color: var(--zap-muted); margin: 0 0 20px; max-width: 680px; }
.hero-stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 13px; }
.hero-stack span { padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--zap-border); color: var(--zap-muted); }

/* -- layout -------------------------------------------------------------- */
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-bottom: 64px; }
.section-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--zap-muted); margin: 8px 0 18px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.section-title small { font: 500 12px var(--mono); text-transform: none; letter-spacing: 0; }
.side { display: flex; flex-direction: column; gap: 20px; }
.side-box { border: 1px solid var(--zap-border); border-radius: 14px; padding: 18px 20px; background: var(--zap-surface); position: sticky; top: 88px; }
.side-box + .side-box { position: static; }
.side-box h3 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--zap-muted); }
.side-box p { margin: 0 0 8px; }

/* -- cards --------------------------------------------------------------- */
.feed { display: flex; flex-direction: column; gap: 18px; }
.feed.narrow { padding-bottom: 64px; }
.card {
  display: grid; grid-template-columns: 1fr; border: 1px solid var(--zap-border); border-radius: 16px;
  background: var(--zap-surface); overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: color-mix(in srgb, var(--zap-primary) 55%, var(--zap-border)); transform: translateY(-2px); box-shadow: var(--zap-shadow); }
.card-cover { display: block; aspect-ratio: 1200 / 630; overflow: hidden; border-top: 1px solid var(--zap-border); border-bottom: 1px solid var(--zap-border); background: var(--zap-bg); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.card:hover .card-cover img { transform: scale(1.02); }
.card-head { padding: 22px 24px 18px; }
.card-body { padding: 18px 24px 20px; }
.meta { margin: 0 0 6px; font: 13px var(--mono); color: var(--zap-muted); }
.meta .dot { margin: 0 8px; opacity: .6; }
.card-title { margin: 0; font-size: 1.7rem; line-height: 1.22; letter-spacing: -.015em; }
.card-title a { color: var(--zap-text); }
.card-title a:hover { color: var(--zap-primary); text-decoration: none; }
.card-summary { margin: 0 0 12px; color: var(--zap-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag {
  font: 12.5px var(--mono); padding: 3px 9px; border-radius: 7px; color: var(--zap-primary);
  background: var(--zap-primary-soft); border: 1px solid transparent;
}
.tag:hover { text-decoration: none; border-color: var(--zap-primary); }
.tag small { color: var(--zap-muted); margin-left: 2px; }
.cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud.big .tag { font-size: 15px; padding: 6px 12px; }
.empty-note { border: 1px dashed var(--zap-border); border-radius: 16px; padding: 40px; text-align: center; }
.empty-note p { margin: 4px 0; }
.btn-ghost { display: inline-block; padding: 7px 14px; border: 1px solid var(--zap-border); border-radius: 9px; color: var(--zap-text); font-weight: 500; font-size: 14px; }
.btn-ghost:hover { border-color: var(--zap-primary); text-decoration: none; }

/* -- pager --------------------------------------------------------------- */
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.pager-btn { padding: 8px 14px; border: 1px solid var(--zap-border); border-radius: 10px; color: var(--zap-text); font-size: 14px; }
.pager-btn:hover { border-color: var(--zap-primary); text-decoration: none; }
.pager-btn.off { opacity: .4; }
.pager-pos { font: 13px var(--mono); color: var(--zap-muted); }

/* -- page heads ---------------------------------------------------------- */
.page-head { padding: 56px 0 28px; max-width: var(--narrow); margin: 0 auto; }
.page-head.center { text-align: center; padding: 96px 0; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.02em; margin: 0 0 8px; }
.search-form { display: flex; gap: 8px; margin: 16px 0 10px; }
.search-form input { flex: 1; font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--zap-border); background: var(--zap-surface); color: var(--zap-text); }
.search-form input:focus { outline: 2px solid var(--zap-primary); outline-offset: 1px; }
.search-form button, .plain-form button { font: 600 15px Inter, sans-serif; padding: 0 20px; border-radius: 12px; border: 0; background: var(--zap-primary); color: var(--zap-primary-contrast); cursor: pointer; }

/* -- post ---------------------------------------------------------------- */
.post { max-width: var(--narrow); margin: 0 auto; padding: 56px 0 24px; }
.post-title { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.12; letter-spacing: -.025em; margin: 6px 0 14px; font-weight: 800; }
.post-lead { font-size: 1.2rem; color: var(--zap-muted); margin: 0 0 16px; }
.post-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--zap-border); }
.post-cover { margin: 0 0 32px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 1600 / 840; object-fit: cover; border-radius: 16px; display: block; }
.post-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--zap-border); }
.author { display: flex; gap: 14px; align-items: center; }
.author p { margin: 2px 0 0; font-size: 14px; }

.prose { font-size: 1.075rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { line-height: 1.25; letter-spacing: -.015em; margin: 2em 0 .5em; scroll-margin-top: 90px; }
.prose h2 { font-size: 1.6rem; padding-bottom: .3em; border-bottom: 1px solid var(--zap-border); }
.prose h3 { font-size: 1.3rem; }
.prose h2 a.anchor, .prose h3 a.anchor { opacity: 0; margin-left: 8px; font-weight: 400; color: var(--zap-muted); }
.prose h2:hover a.anchor, .prose h3:hover a.anchor { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose img { max-width: 100%; border-radius: 12px; cursor: zoom-in; display: block; margin: 0 auto; }
.prose blockquote { margin-left: 0; padding: .4em 1.2em; border-left: 4px solid var(--zap-primary); background: var(--zap-primary-soft); border-radius: 0 12px 12px 0; color: var(--zap-text); }
.prose hr { border: 0; height: 1px; background: var(--zap-border); margin: 2.4em 0; }
.prose :not(pre) > code { font: .88em var(--mono); background: var(--zap-surface); border: 1px solid var(--zap-border); padding: .12em .4em; border-radius: 6px; }
.prose pre { font: 14px/1.6 var(--mono); background: var(--zap-code-bg); color: var(--zap-code-text); padding: 16px 18px; border-radius: 12px; overflow-x: auto; border: 1px solid var(--zap-border); }
.prose pre code { font: inherit; }
.prose .zap-code { margin: 1.4em 0; font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--zap-border); border-radius: 12px; }
.prose table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--zap-border); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { background: var(--zap-surface); font-weight: 600; }

/* -- related & comments --------------------------------------------------- */
.related { padding: 8px 0 8px; }
.rel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rel-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--zap-border); border-radius: 12px; background: var(--zap-surface); }
.rel-list .muted { font: 13px var(--mono); white-space: nowrap; }
.comments { padding: 32px 0 80px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.comment { display: flex; gap: 12px; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 13px Inter, sans-serif; background: var(--zap-primary-soft); color: var(--zap-primary); text-transform: uppercase; }
.comment-head { margin: 0; display: flex; gap: 10px; align-items: baseline; }
.comment-head .muted { font: 12px var(--mono); }
.comment-body { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.plain-form { display: grid; gap: 12px; border: 1px solid var(--zap-border); border-radius: 16px; padding: 20px; background: var(--zap-surface); }
.plain-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; }
.plain-form input, .plain-form textarea { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--zap-border); background: var(--zap-bg); color: var(--zap-text); }
.plain-form button { justify-self: start; height: 42px; }
.comment-card { border: 1px solid var(--zap-border); border-radius: 16px; padding: 20px; background: var(--zap-surface); display: grid; gap: 14px; }
.comment-card .row { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* -- about --------------------------------------------------------------- */
.about { padding-bottom: 80px; }

/* -- footer -------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--zap-border); padding: 24px 0; color: var(--zap-muted); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-row p { margin: 0; }
.foot-links { display: flex; gap: 16px; }
.foot-links a { color: var(--zap-muted); }

/* -- small screens ------------------------------------------------------- */
@media (max-width: 900px) {
  .layout-2 { grid-template-columns: 1fr; }
  .side-box { position: static; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { min-width: 0; width: 36px; padding: 0; justify-content: center; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .brand-text small { display: none; }
  .card-head { padding: 18px 18px 14px; }
  .card-body { padding: 14px 18px 18px; }
  .card-title { font-size: 1.4rem; }
  .hero { padding-top: 40px; }
  .wrap { padding: 0 16px; }
}
.prose pre.output { background: var(--zap-surface); color: var(--zap-text); border-style: dashed; position: relative; padding-top: 30px; }
.prose pre.output::before { content: "çıktı"; position: absolute; top: 8px; left: 18px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--zap-muted); }

/* -- shell: the menu down the left, the page beside it ----------------------- */
.shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.main-col { min-width: 0; padding-bottom: 72px; }
.main-col > .hero, .main-col > .page-head { max-width: none; margin-left: 0; }
.main-col .post, .main-col .related, .main-col .comments, .main-col .crumbs, .main-col .feed, .main-col > .hero, .main-col > .page-head, .main-col > section { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.main-col .feed { max-width: var(--narrow); display: flex; flex-direction: column; gap: 22px; }
.main-col .feed > .section-title, .main-col .feed > .pager, .main-col .feed > .empty-note { grid-column: 1 / -1; }
.side-menu { position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 28px 4px 28px 0; scrollbar-width: thin; }
.side-details > summary { display: none; list-style: none; }
.side-details > summary::-webkit-details-marker { display: none; }
.side-h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--zap-muted); margin: 0 0 10px; font-weight: 700; }
.side-posts ul { list-style: none; margin: 0 0 28px; padding: 0; border-left: 1px solid var(--zap-border); }
.side-posts li a { display: block; padding: 7px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--zap-text); font-size: 14px; line-height: 1.4; }
.side-posts li a:hover { text-decoration: none; border-left-color: var(--zap-border); background: var(--zap-surface); }
.side-posts li a.on { border-left-color: var(--zap-primary); color: var(--zap-primary); font-weight: 600; background: var(--zap-primary-soft); }
.side-posts .t { display: block; }
.side-posts .d { display: block; font: 11.5px var(--mono); color: var(--zap-muted); margin-top: 2px; }
.side-tags .cloud { gap: 6px; }
.side-tags .tag { font-size: 12px; }
.side-rss { margin: 20px 0 0; font-size: 13px; }

/* -- language switch ---------------------------------------------------------- */
.lang-switch { display: flex; border: 1px solid var(--zap-border); border-radius: 10px; overflow: hidden; height: 36px; background: var(--zap-surface); }
.lang-switch a, .lang-switch span { display: grid; place-items: center; padding: 0 10px; font: 600 12.5px var(--mono); color: var(--zap-muted); }
.lang-switch a:hover { color: var(--zap-text); text-decoration: none; background: var(--zap-bg); }
.lang-switch .on { color: var(--zap-primary-contrast); background: var(--zap-primary); }

/* -- breadcrumbs and notes ------------------------------------------------------- */
.crumbs { padding-top: 32px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: var(--zap-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--zap-muted); }
.crumbs li[aria-current] { color: var(--zap-text); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-col .post { padding-top: 20px; }
.note-box { border: 1px solid var(--zap-warning); background: color-mix(in srgb, var(--zap-warning) 12%, transparent); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 0 0 24px; }

@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; gap: 0; }
  .side-menu { position: static; max-height: none; overflow: visible; padding: 16px 0 0; }
  .side-details { border: 1px solid var(--zap-border); border-radius: 12px; background: var(--zap-surface); padding: 0 14px; }
  .side-details > summary { display: block; cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; }
  .side-details[open] { padding-bottom: 14px; }
  .side-posts ul { max-height: 50vh; overflow-y: auto; }
}
@media (max-width: 640px) { .lang-switch a, .lang-switch span { padding: 0 8px; } }

/* -- the right-hand column ------------------------------------------------------ */
:root { --wrap: 1760px; }
.shell { grid-template-columns: 300px minmax(0, 1fr) 300px; }
/* Pinned beside the page: it does not scroll, with the page or on its own. */
.side-right { position: sticky; top: 64px; align-self: start; padding: 28px 0; display: flex; flex-direction: column; gap: 14px; }
.side-right .box { padding: 14px 16px; }
.side-right .box { border: 1px solid var(--zap-border); border-radius: 14px; background: var(--zap-surface); }
.side-right .side-h { margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--zap-border); }
.toc li a { display: block; padding: 4px 10px; margin-left: -1px; border-left: 2px solid transparent; color: var(--zap-muted); font-size: 13.5px; line-height: 1.4; }
.toc li.lv3 a { padding-left: 22px; font-size: 13px; }
.toc li a:hover { color: var(--zap-text); text-decoration: none; }
.toc li a.on { color: var(--zap-primary); border-left-color: var(--zap-primary); font-weight: 600; }
.me-row { display: flex; gap: 12px; align-items: center; }
.me-row p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; }
.me-links { display: flex; gap: 14px; margin: 12px 0 0; font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.stats-grid div { background: var(--zap-bg); border: 1px solid var(--zap-border); border-radius: 10px; padding: 10px 12px; }
.stats-grid dt { font-size: 12px; color: var(--zap-muted); }
.stats-grid dd { margin: 2px 0 0; font: 700 20px var(--mono); color: var(--zap-text); }
.top-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.top-list li { font-size: 13.5px; line-height: 1.4; }
.top-list li::marker { color: var(--zap-primary); font: 700 13px var(--mono); }
.top-list a { color: var(--zap-text); }
.top-list .n { display: block; font: 11.5px var(--mono); color: var(--zap-muted); margin-top: 2px; }
.recent-c { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.recent-c p { margin: 0; font-size: 13px; line-height: 1.45; }
.rc-text { color: var(--zap-muted); margin-top: 3px !important; overflow-wrap: anywhere; }
.rc-date { font: 11.5px var(--mono); color: var(--zap-muted); margin-top: 3px !important; }

@media (max-width: 1480px) {
  .shell { grid-template-columns: 280px minmax(0, 1fr); }
  .side-right { grid-column: 2; position: static; max-height: none; overflow: visible; padding: 0 0 64px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
  .side-right .toc { display: none; }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .side-right { grid-column: 1; }
}

/* -- about ------------------------------------------------------------------- */
.about-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); letter-spacing: -.03em; margin-bottom: 6px; }
.about-role { font: 600 15px var(--mono); color: var(--zap-primary); margin: 0 0 16px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.about-stats div { border: 1px solid var(--zap-border); border-radius: 14px; background: var(--zap-surface); padding: 14px 16px; }
.about-stats dt { font-size: 13px; color: var(--zap-muted); }
.about-stats dd { margin: 4px 0 0; font: 800 28px var(--mono); color: var(--zap-text); }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.about-grid section { border: 1px solid var(--zap-border); border-radius: 14px; padding: 16px 18px; background: var(--zap-surface); }
.prose .about-grid h3 { margin: 0 0 6px; font-size: 1.05rem; }
.prose .about-grid p { font-size: .95rem; color: var(--zap-muted); }
.timeline { list-style: none; padding: 0 !important; margin: 0; border-left: 2px solid var(--zap-border); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 0 0 18px 18px; position: relative; margin: 0 !important; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--zap-primary); border: 2px solid var(--zap-bg); }
.timeline .when { font: 13px var(--mono); color: var(--zap-muted); padding-top: 3px; }
.timeline p { margin: 4px 0 0; font-size: .95rem; color: var(--zap-muted); }
@media (max-width: 700px) { .about-stats, .about-grid { grid-template-columns: 1fr 1fr; } .timeline li { grid-template-columns: 1fr; gap: 2px; } }
/* The right column never scrolls, so on a short screen it shows less rather
   than running off the bottom. */
@media (min-width: 1481px) and (max-height: 900px) { .side-right .me { display: none; } }
@media (min-width: 1481px) and (max-height: 760px) { .side-right .recent-box { display: none; } }
.me-links { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 0; font-size: 13px; }
.socials { display: flex; gap: 6px; }
.social { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--zap-border); background: var(--zap-bg); color: var(--zap-muted); }
.social:hover { color: var(--zap-primary); border-color: var(--zap-primary); text-decoration: none; }

/* flags in the language switch: drawn, not emoji, so Windows shows them too */
.lang-switch a, .lang-switch span { display: flex; align-items: center; gap: 6px; }
.lang-switch .flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }

/* live memory box, last in the right column */
.mem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.mem-grid div { background: var(--zap-bg); border: 1px solid var(--zap-border); border-radius: 10px; padding: 10px 12px; }
.mem-grid dt { font-size: 12px; color: var(--zap-muted); }
.mem-grid dd { margin: 2px 0 0; font: 13px var(--mono); color: var(--zap-muted); }
.mem-grid dd b { font: 700 20px var(--mono); color: var(--zap-text); }
.mem-note { font-size: 11.5px; margin: 10px 0 0; line-height: 1.4; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--zap-success); margin-left: 6px; vertical-align: middle; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* -- page generation box ----------------------------------------------------- */
.gen-stat .gen-total { margin: 10px 0 0; font: 13px var(--mono); color: var(--zap-muted); }
.gen-stat .gen-total b { color: var(--zap-text); font-weight: 600; }

/* -- endless feed ------------------------------------------------------------- */
.card.rise { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1), border-color .15s, box-shadow .15s; }
.card.rise.in { opacity: 1; transform: none; }
.card.rise.in:hover { transform: translateY(-2px); }
.feed-more { display: flex; justify-content: center; align-items: center; min-height: 64px; grid-column: 1 / -1; }
.feed-end { font: 13px var(--mono); color: var(--zap-muted); }
.feed-dots { display: inline-flex; gap: 6px; }
.feed-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--zap-primary); animation: feed-dot 1s ease-in-out infinite; }
.feed-dots i:nth-child(2) { animation-delay: .15s; }
.feed-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes feed-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .feed-dots i { animation: none; } }
