/* ─────────────────────────────────────────────────────────
   Emrah Tokalak — kişisel blog
   Açık tema, iki tipografi yönü (A: Editorial, B: Engineer)
   ───────────────────────────────────────────────────────── */

:root {
  /* Light surface, Ghostty-blue accent */
  --bg: #f4f6f7;
  --bg-2: #e7ebed;
  --ink: #1c2024;
  --ink-2: #33383d;
  --muted: #6a7178;
  --muted-2: #9aa0a4;
  --rule: #dadfe1;
  --rule-2: #c8d0d4;
  --accent: #3f6896;
  --accent-soft: rgba(63, 104, 150, 0.12);

  /* Direction A: Editorial */
  --font-display: "Instrument Serif", "Source Serif 4", Georgia, serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-meta: var(--font-body);

  --measure: 64ch;
  --gutter: clamp(20px, 5vw, 64px);
  --root-fs: 17px;
}

[data-direction="b"] {
  --font-display: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-meta: "JetBrains Mono", ui-monospace, monospace;
  --bg: #f4f6f7;
  --bg-2: #e7ebed;
  --rule: #dadfe1;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--root-fs, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

/* ── Shell ─────────────────────────────────────────────── */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Top nav ───────────────────────────────────────────── */
.nav {
  padding: 36px 0 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
[data-direction="b"] .brand {
  font-size: 22px;
  letter-spacing: 0;
  font-weight: 600;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-meta);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
[data-direction="b"] .brand-mark {
  border-radius: 4px;
  background: var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  color: var(--muted);
}
.primary-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
[data-direction="b"] .nav-links {
  font-family: var(--font-meta);
  font-size: 13.5px;
  gap: 26px;
}
.nav-links a {
  padding: 6px 0;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current_page_parent > a,
.nav-links .current-menu-ancestor > a {
  color: var(--ink);
}
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current_page_parent > a,
.nav-links .current-menu-ancestor > a {
  border-bottom-color: var(--ink);
}
.nav-social {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding-left: 22px;
  border-left: 1px solid var(--rule);
}
.nav-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-social a:hover {
  color: var(--ink);
  background: var(--bg-2);
}
.nav-social svg {
  width: 18px;
  height: 18px;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  margin-top: 120px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
[data-direction="b"] .footer {
  font-family: var(--font-meta);
  font-size: 12px;
}
.footer a {
  border-bottom: 1px solid currentColor;
}

/* ── Hero variants ─────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
}

/* Hero 1: editorial intro */
.hero-1 .h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.0;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0 0 28px;
}
[data-direction="b"] .hero-1 .h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 600;
}
.hero-1 .h1 em {
  font-style: italic;
  color: var(--accent);
}
[data-direction="b"] .hero-1 .h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-1 .lede {
  font-size: 19px;
  line-height: 1.55;
  max-width: 56ch;
  color: var(--ink-2);
  margin: 0 0 28px;
}
[data-direction="b"] .hero-1 .lede {
  font-size: 18px;
  line-height: 1.6;
}
.hero-1 .meta {
  font-family: var(--font-meta);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-1 .meta .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted-2);
  display: inline-block;
}
.hero-1 .meta .live {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-1 .meta .live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}

/* Hero 2: statement quote */
.hero-2 {
  padding: 110px 0 80px;
}
.hero-2 .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.1;
  letter-spacing: 0;
  max-width: 22ch;
  margin: 0 0 36px;
  font-weight: 400;
}
[data-direction="b"] .hero-2 .quote {
  font-style: normal;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.3;
}
.hero-2 .quote-mark {
  color: var(--accent);
  font-style: normal;
}
.hero-2 .byline {
  font-family: var(--font-meta);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-2 .rule {
  width: 40px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
}

/* Hero 3: terminal prompt */
.hero-3 {
  padding: 90px 0 70px;
}
/* Ghostty default palette (Tomorrow Night) */
:root {
  --gh-bg:      #1d1f21;
  --gh-fg:      #c5c8c6;
  --gh-black:   #1d1f21;
  --gh-red:     #cc6666;
  --gh-green:   #b5bd68;
  --gh-yellow:  #f0c674;
  --gh-blue:    #81a2be;
  --gh-magenta: #b294bb;
  --gh-cyan:    #8abeb7;
  --gh-grey:    #969896;
  --gh-line:    #2c2f31;
}
.hero-3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 26px;
  align-items: stretch;
}
@media (max-width: 880px) {
  .hero-3-grid { grid-template-columns: 1fr; }
}
.hero-3 .term {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  padding: 28px 26px 24px;
  background: var(--gh-bg);
  color: var(--gh-fg);
  border-radius: 10px;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--gh-line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.45);
}
.hero-3 .term .prompt { color: var(--gh-green); }
.hero-3 .term .arg    { color: var(--gh-blue); }
.hero-3 .term .cmt    { color: var(--gh-grey); font-style: italic; }
.hero-3 .term .dim    { color: var(--gh-grey); }
.hero-3 .term .accent { color: var(--gh-yellow); font-weight: 600; }

/* Wide terminal with selectable post list */
.term.term-wide {
  outline: none;
  padding: 22px 26px 20px;
  cursor: default;
}
.term.term-wide:focus-visible {
  border-color: var(--gh-blue);
  box-shadow: 0 0 0 1px var(--gh-blue) inset, 0 30px 60px -30px rgba(0,0,0,0.45);
}
.term-cols {
  display: grid;
  grid-template-columns: minmax(210px, 290px) 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 760px) {
  .term-cols { grid-template-columns: 1fr; gap: 20px; }
}
.term-id {
  margin: 0;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
}
.term-list {
  border-left: 1px solid var(--gh-line);
  padding-left: 34px;
  min-width: 0;
}
@media (max-width: 760px) {
  .term-list { border-left: 0; padding-left: 0; border-top: 1px solid var(--gh-line); padding-top: 18px; }
}
.term-cmd {
  font-size: 13px;
  margin-bottom: 8px;
}
.term-posts {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.tp {
  padding: 5px 9px;
  margin: 0 -9px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s ease;
}
.tp a {
  display: grid;
  grid-template-columns: 14px 58px 1fr auto;
  align-items: baseline;
  gap: 12px;
}
.tp-arrow { color: var(--gh-green); text-align: center; }
.tp-date  { color: var(--gh-grey); font-size: 12px; }
.tp-title {
  color: #9a9d9a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.1s ease;
}
.tp-read { color: var(--gh-line); font-size: 11.5px; white-space: nowrap; }
.tp.sel {
  background: rgba(255, 255, 255, 0.055);
}
.tp.sel .tp-title { color: var(--gh-cyan); }
.tp.sel .tp-read  { color: var(--gh-grey); }
.term-hint {
  font-size: 13px;
  margin-top: 4px;
}

/* Right panel: a live durable workflow run */
.run-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 16px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 24px 50px -34px rgba(0,0,0,0.25);
  font-family: var(--font-mono);
}
.run-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.run-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.run-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-2);
}
.run-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: oklch(0.62 0.13 150);
  box-shadow: 0 0 0 0 oklch(0.62 0.13 150 / 0.5);
  animation: runpulse 1.8s ease-out infinite;
}
@keyframes runpulse {
  0%   { box-shadow: 0 0 0 0 oklch(0.62 0.13 150 / 0.45); }
  70%  { box-shadow: 0 0 0 6px oklch(0.62 0.13 150 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.62 0.13 150 / 0); }
}
.run-wf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 8px;
}
.run-wf-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  white-space: nowrap;
}
.run-wf-id {
  font-size: 11px;
  color: var(--muted-2);
  white-space: nowrap;
}
.run-steps {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  position: relative;
}
/* connector line threading the status icons */
.run-steps::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 20px;
  width: 1px;
  background: var(--rule);
}
.rs {
  display: grid;
  grid-template-columns: 19px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 6.5px 0;
  font-size: 13px;
  position: relative;
}
.rs-ic {
  width: 19px; height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  background: var(--bg-2);
  color: var(--muted-2);
  border: 1px solid var(--rule);
  z-index: 1;
}
.rs-name { color: var(--ink-2); }
.rs-t {
  font-size: 11px;
  color: var(--muted-2);
  white-space: nowrap;
}
/* done */
.rs.done .rs-ic {
  background: oklch(0.62 0.12 150 / 0.14);
  border-color: oklch(0.62 0.12 150 / 0.4);
  color: oklch(0.5 0.13 150);
}
.rs.done .rs-name { color: var(--ink); }
/* retry */
.rs.retry .rs-ic {
  background: oklch(0.72 0.13 70 / 0.16);
  border-color: oklch(0.72 0.13 70 / 0.45);
  color: oklch(0.55 0.13 60);
  animation: rsspin 2.4s linear infinite;
}
.rs.retry .rs-t { color: oklch(0.55 0.13 60); }
@keyframes rsspin { to { transform: rotate(360deg); } }
/* running */
.rs.run .rs-ic {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  animation: rsspin 1.6s linear infinite;
}
.rs.run .rs-name { color: var(--ink); font-weight: 500; }
.rs.run .rs-t { color: var(--accent); }
/* gate (waiting on human) */
.rs.gate .rs-ic { color: var(--muted-2); }
.rs.gate .rs-name,
.rs.gate .rs-t { color: var(--muted-2); }
.run-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.run-foot-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
  display: inline-block;
}
.hero-3 .term .caret {
  display: inline-block;
  width: 9px; height: 16px;
  background: var(--gh-fg);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1.05s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-3 .h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: 0;
  margin: 36px 0 14px;
  font-weight: 400;
}
[data-direction="b"] .hero-3 .h1 { font-weight: 600; }
.hero-3 .lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
}

/* ── Article list ──────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.section-title {
  font-family: var(--font-meta);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.section-meta {
  font-family: var(--font-meta);
  font-size: 12px;
  color: var(--muted-2);
}

.post-list {
  display: flex;
  flex-direction: column;
}

.post {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 28px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background .2s, padding-left .2s;
  position: relative;
}
.post-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.post-title a,
.post-tags a {
  position: relative;
  z-index: 2;
}
.post:hover {
  background: var(--bg-2);
  padding-left: 14px;
  padding-right: 14px;
  margin: 0 -14px;
}
.post:hover .post-title {
  color: var(--accent);
}
.post-date {
  font-family: var(--font-meta);
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.post-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 0 6px;
  transition: color .15s;
  color: var(--ink);
}
[data-direction="b"] .post-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}
.post-excerpt {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  max-width: 56ch;
}
[data-direction="b"] .post-excerpt {
  font-size: 15px;
}
.post-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--font-meta);
  font-size: 11px;
  color: var(--muted-2);
}
.post-tags a:hover {
  color: var(--accent);
}
.post-read {
  font-family: var(--font-meta);
  font-size: 12px;
  color: var(--muted-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Year separator */
.year-row {
  padding: 20px 0 8px;
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: none;
}
.year-row::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--rule);
  margin-top: 8px;
}

/* ── Tag chips ────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--font-meta);
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  color: var(--ink-2);
  background: transparent;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
[data-direction="b"] .chip {
  border-radius: 4px;
}
.chip:hover {
  border-color: var(--ink);
  background: var(--bg-2);
}
.chip-count {
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ── Article (single) ─────────────────────────────────── */
.article-head {
  padding: 60px 0 32px;
}
.article-back {
  font-family: var(--font-meta);
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin-bottom: 36px;
  transition: color .15s;
}
.article-back:hover { color: var(--ink); }

.article-kicker {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.8vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0 0 28px;
}
[data-direction="b"] .article-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
}
.article-meta {
  font-family: var(--font-meta);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.article-meta > span,
.article-meta > a { white-space: nowrap; }
.article-meta .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted-2);
}
.article-meta .meta-tag {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}
.article-meta .meta-tag:hover {
  border-bottom-color: var(--accent);
}

.article-body {
  padding: 16px 0 0;
}
.article-body.post {
  display: block;
  grid-template-columns: none;
  gap: 0;
  align-items: initial;
  border-bottom: 0;
  cursor: auto;
}
.article-body.post:hover {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}
.article-body > * {
  max-width: 100%;
}
.article-body p,
.article-body ul,
.article-body ol,
.article-body .wp-block-list {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 1.4em;
  color: var(--ink-2);
}
[data-direction="b"] .article-body p,
[data-direction="b"] .article-body li {
  font-size: 18.5px;
  line-height: 1.65;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 400;
  margin: 56px 0 18px;
  color: var(--ink);
}
[data-direction="b"] .article-body h2 {
  font-size: 22px;
  font-weight: 600;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  margin: 38px 0 12px;
  letter-spacing: 0;
}
[data-direction="b"] .article-body h3 {
  font-size: 17px;
  font-weight: 600;
}
.article-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color .15s;
}
.article-body a:hover { border-bottom-color: var(--accent); }

.article-body img,
.article-body figure {
  max-width: 100%;
  height: auto;
}
.article-body figure {
  margin: 32px 0;
}
.article-body figcaption {
  margin-top: 10px;
  font-family: var(--font-meta);
  font-size: 12px;
  color: var(--muted);
}
.article-body .wp-block-columns {
  display: block;
  padding: 0;
  background: transparent;
}
.article-body .wp-block-column {
  flex-basis: auto !important;
  max-width: none;
  margin: 0;
}
.article-body .wp-block-column > :last-child {
  margin-bottom: 1.4em;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink-2);
}
[data-direction="b"] .article-body blockquote {
  font-style: normal;
  font-size: 18px;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.article-body ul li,
.article-body ol li {
  margin-bottom: 0.45em;
}
.article-body ul {
  padding-left: 22px;
}
.article-body ul li {
  list-style: none;
  position: relative;
}
.article-body ul li::before {
  content: "-";
  position: absolute;
  left: -22px;
  color: var(--muted-2);
}

/* Code block */
.code {
  margin: 28px 0;
  background: var(--gh-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gh-line);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
}
.article-body pre.wp-block-code,
.article-body pre {
  margin: 28px 0;
  padding: 18px;
  background: var(--gh-bg);
  border: 1px solid var(--gh-line);
  border-radius: 10px;
  color: var(--gh-fg);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  overflow-x: auto;
}
.article-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gh-line);
  font-size: 11.5px;
  color: var(--gh-grey);
  letter-spacing: 0.02em;
}
.code-head .dots {
  display: inline-flex;
  gap: 5px;
}
.code-head .dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3a3d3f;
}
.code-body {
  padding: 16px 18px 18px;
  color: var(--gh-fg);
  overflow-x: auto;
  white-space: pre;
}
.code-body .k  { color: var(--gh-magenta); }      /* keyword */
.code-body .s  { color: var(--gh-green); }        /* string */
.code-body .n  { color: var(--gh-yellow); }       /* number */
.code-body .c  { color: var(--gh-grey); font-style: italic; } /* comment */
.code-body .f  { color: var(--gh-blue); }         /* function */
.code-body .t  { color: var(--gh-cyan); }         /* type */
.code-body .p  { color: #7e8385; }                /* punctuation */
.code-body .v  { color: var(--gh-fg); }           /* var */

/* ── Hakkımda ─────────────────────────────────────────── */
.about {
  padding: 70px 0 40px;
}
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
.about-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.about-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-name {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0 0 8px;
}
[data-direction="b"] .about-name {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: 0;
}
.about-role {
  font-family: var(--font-meta);
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 32px;
}
.about-body p {
  font-size: 17.5px;
  line-height: 1.7;
  margin: 0 0 1.2em;
  color: var(--ink-2);
  max-width: 60ch;
}

.about-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 24px;
  font-size: 14.5px;
  margin: 28px 0;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.about-list dt {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 2px;
}
.about-list dd {
  margin: 0;
  color: var(--ink-2);
}
.about-body a,
.about-list a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}
.about-social {
  margin-top: 12px;
}

/* ── Tag page ─────────────────────────────────────────── */
.tag-head {
  padding: 70px 0 32px;
}
.tag-label {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.tag-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0 0 18px;
}
[data-direction="b"] .tag-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
}
.tag-title .hash { color: var(--accent); }
.tag-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 24px;
}
.tag-count {
  font-family: var(--font-meta);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

/* ── Misc ─────────────────────────────────────────────── */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

.post-nav {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 14px;
}
.post-nav div:last-child {
  text-align: right;
}
.post-nav a {
  display: block;
  color: var(--ink);
}
.post-nav span {
  display: block;
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.post-nav strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
}

.pagination,
.nav-links.pagination {
  margin-top: 40px;
  font-family: var(--font-meta);
  font-size: 13px;
}
.page-numbers {
  display: inline-flex;
  min-width: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--muted);
}
.page-numbers.current,
.page-numbers:hover {
  color: var(--ink);
  border-color: var(--rule-2);
  background: var(--bg-2);
}
.empty-state {
  color: var(--muted);
  font-size: 16px;
}

/* ── Bookmarks ────────────────────────────────────────── */
.bm {
  max-width: 760px;
  margin-top: 8px;
}
.bm-group {
  margin-top: 44px;
}
.bm-group:first-child {
  margin-top: 16px;
}
.bm-group-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.bm-group-title {
  font-family: var(--font-meta);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
}
.bm-group-note {
  font-family: var(--font-meta);
  font-size: 12px;
  color: var(--muted-2);
  flex: 1;
}
.bm-group-count {
  font-family: var(--font-meta);
  font-size: 12px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.bm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bm-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: baseline;
  padding: 16px 14px 16px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding .15s ease, background .15s ease;
}
.bm-list li:last-child .bm-item {
  border-bottom: none;
}
.bm-item:hover {
  background: var(--bg-2);
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 8px;
  margin: 0 -14px;
  border-bottom-color: transparent;
}
.bm-item-main {
  min-width: 0;
}
.bm-item-title {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: 0;
  transition: color .15s ease;
}
[data-direction="b"] .bm-item-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}
.bm-item:hover .bm-item-title {
  color: var(--accent);
}
.bm-item-desc {
  display: block;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 4px;
  max-width: 52ch;
  text-wrap: pretty;
}
.bm-item-side {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}
.bm-item-meta {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}
.bm-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted-2);
  transition: color .15s ease, transform .15s ease;
}
.bm-item:hover .bm-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}
@media (max-width: 640px) {
  .bm-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .bm-item-side {
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .nav {
    padding-top: 24px;
  }
  .nav-inner,
  .nav-links,
  .primary-menu {
    align-items: flex-start;
  }
  .nav-inner {
    flex-direction: column;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }
  .primary-menu {
    gap: 18px;
    flex-wrap: wrap;
  }
  .nav-social {
    margin-left: auto;
    padding-left: 14px;
  }
  .hero {
    padding: 56px 0 44px;
  }
  .hero-3 .term {
    font-size: 12px;
    padding: 20px;
    overflow-x: auto;
  }
  .tp {
    padding-right: 6px;
    padding-left: 6px;
  }
  .tp a {
    grid-template-columns: 14px 56px minmax(0, 1fr);
  }
  .tp-read {
    display: none;
  }
  .post {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }
  .post-read {
    display: none;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .article-head,
  .tag-head,
  .about {
    padding-top: 48px;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav div:last-child {
    text-align: left;
  }
  .about-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
