/* ============================================================
   Mert Kaya — Kişisel Blog
   Tüm tasarım tek dosyada. Bootstrap 5.3 üzerine ince bir katman.
   ============================================================ */


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🎨  RENK PALETİ — buradan değiştir
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Aşağıdaki 8 değişkeni değiştirirsen tüm site yeniden renklenir.
   Karanlık tema için daha aşağıdaki `[data-bs-theme="dark"]` bloğunu kullan.
   Hazır paletler için bu bölümün altına bak.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {

  /* — Marka rengi (linkler, kategori noktası, accent çubuğu) — */
  --accent:      oklch(0.58 0.13 38);            /* terracotta */
  --accent-soft: oklch(0.58 0.13 38 / 0.10);

  /* — Açık tema — */
  --bg:      #fafaf8;   /* sayfa arka planı (en geniş yüzey)   */
  --bg-soft: #f3f1ec;   /* kart, kod bloğu, hafif vurgu        */
  --fg:      #1a1a1a;   /* ana yazı, başlık                    */
  --fg-soft: #2e2e2c;   /* paragraf gövdesi                    */
  --muted:   #75756f;   /* tarih, meta, ikincil bilgi          */
  --border:  #e6e3dc;   /* ince çizgi ayırıcılar               */

  /* — Tipografi (font ailelerini istersen burada değiştir) — */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-bs-theme="dark"] {
  /* — Karanlık tema — */
  --bg:      #131312;
  --bg-soft: #1c1c1a;
  --fg:      #ededeb;
  --fg-soft: #d4d3cf;
  --muted:   #8a8a83;
  --border:  #2a2926;
  --accent:      oklch(0.72 0.13 45);
  --accent-soft: oklch(0.72 0.13 45 / 0.14);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HAZIR PALETLER — denemek için birini yukarıdaki :root içine kopyala.
   Hepsinin koyu temasını da değiştirmek istersen ayrıca [data-bs-theme]
   bloğunu da güncelle.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   ▌ Mavi accent (modern, soğuk)
     --accent:      oklch(0.55 0.16 245);
     --accent-soft: oklch(0.55 0.16 245 / 0.10);

   ▌ Yeşil accent (sakin, doğal)
     --accent:      oklch(0.55 0.13 155);
     --accent-soft: oklch(0.55 0.13 155 / 0.10);

   ▌ Mor accent (yazınsal)
     --accent:      oklch(0.50 0.15 295);
     --accent-soft: oklch(0.50 0.15 295 / 0.10);

   ▌ Soğuk gri zemin (sıcak beyaz yerine nötr)
     --bg:      #f7f7f9;
     --bg-soft: #ededf2;
     --fg:      #15161a;
     --fg-soft: #2a2c33;
     --muted:   #6d6e78;
     --border:  #e1e1e8;

   ▌ Daha sıcak / kağıt
     --bg:      #faf6ee;
     --bg-soft: #f0e9dc;
     --fg:      #1b1610;
     --fg-soft: #3a2f20;
     --muted:   #87705a;
     --border:  #e6dcc6;
     --accent:      oklch(0.50 0.13 50);
     --accent-soft: oklch(0.50 0.13 50 / 0.10);

   ▌ Tamamen monokrom (hiç accent yok)
     --accent:      #1a1a1a;
     --accent-soft: #1a1a1a14;
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* -------- base -------- */
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-soft); color: var(--fg); }

a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--border);
  transition: color .15s, text-decoration-color .15s;
}
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

h1, h2, h3, h4, h5, h6, .h-serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; }
h2 { font-size: 1.625rem; line-height: 1.25; }
h3 { font-size: 1.25rem; line-height: 1.3; }

.mono { font-family: var(--mono); font-size: 0.82em; letter-spacing: -0.01em; }
.muted, .text-muted-c { color: var(--muted) !important; }

hr.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* -------- navbar -------- */
.site-nav {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1030;
}
.site-nav .navbar-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: .55rem;
}
.site-nav .site-logo {
  max-height: 36px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  display: block;
}
.site-nav .navbar-brand .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}
.site-nav .nav-link {
  color: var(--fg-soft);
  font-size: 0.94rem;
  padding: .35rem .85rem;
  border-radius: 6px;
  position: relative;
}
.site-nav .nav-link:hover { color: var(--accent); background: transparent; }
.site-nav .nav-link.active { color: var(--fg); }
.site-nav .nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: -3px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

/* Click dropdown — parent link tıklanabilir, ok butonu toggle eder */
.site-nav .nav-dropdown { position: relative; display: flex; align-items: center; }

.site-nav .nav-chevron-btn {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; margin-left: -2px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); border-radius: 4px;
  transition: color .15s, background .15s;
}
.site-nav .nav-chevron-btn:hover { color: var(--accent); background: var(--surface-hover, #f0f0f0); }
.site-nav .nav-chevron-btn svg { transition: transform .18s ease; }
.site-nav .nav-dropdown.open .nav-chevron-btn svg { transform: rotate(180deg); }

.site-nav .nav-submenu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  min-width: 160px; list-style: none; margin: 0; padding: .35rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  z-index: 200;
}
.site-nav .nav-dropdown.open .nav-submenu { display: block; }
.site-nav .nav-submenu li a {
  display: block; padding: .45rem 1rem;
  font-size: .875rem; color: var(--fg);
  text-decoration: none; white-space: nowrap;
}
.site-nav .nav-submenu li a:hover { color: var(--accent); background: var(--surface-hover, #f5f5f5); }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-soft);
  border-radius: 8px;
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 16px; height: 16px; }

/* offcanvas */
.offcanvas {
  background: var(--bg);
  color: var(--fg);
  border-left: 1px solid var(--border) !important;
}
.offcanvas .offcanvas-title {
  font-family: var(--serif);
  font-size: 1.1rem;
}
.offcanvas .mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 0;
  font-size: 1.15rem;
  font-family: var(--serif);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg);
}
.offcanvas .mobile-nav a:hover { color: var(--accent); }
.offcanvas .mobile-nav a .arrow { color: var(--muted); font-family: var(--sans); font-size: .9rem; }
.offcanvas .mobile-subnav { padding: 0 0 .5rem .75rem; border-left: 2px solid var(--border); margin-bottom: .25rem; }
.offcanvas .mobile-subnav a {
  display: block; padding: .5rem 0;
  font-size: .95rem; font-family: var(--sans);
  border-bottom: none; color: var(--muted);
  text-decoration: none;
}
.offcanvas .mobile-subnav a:hover { color: var(--accent); }
.offcanvas .mini-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-soft);
}
.offcanvas .mini-social a:hover { color: var(--accent); border-color: var(--accent); }

/* -------- forms / search -------- */
.form-control, .form-select {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 8px;
  padding: .65rem .85rem;
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  background: transparent;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  color: var(--fg);
}
.form-control::placeholder { color: var(--muted); }

.btn-ink {
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 8px;
  padding: .65rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity .15s;
}
.btn-ink:hover { color: var(--bg); opacity: .88; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .65rem 1.15rem;
  font-size: 0.95rem;
}
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }

/* -------- containers / layout -------- */
.container-narrow { max-width: 720px; margin-inline: auto; padding-inline: 1.25rem; }
.container-mid    { max-width: 920px; margin-inline: auto; padding-inline: 1.25rem; }
.container-wide   { max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }

section { padding-block: clamp(2.5rem, 5vw, 4rem); }
section + section { border-top: 1px solid var(--border); }

/* -------- post list -------- */
.post-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.75rem;
  padding: 1.75rem 0 1.75rem 1rem;
  margin-left: -1rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  position: relative;
  transition: padding-left .25s ease;
}
.post-row::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2px; height: 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height .25s ease;
}
.post-row:hover::before { height: calc(100% - 2.5rem); }
.post-row:hover .title a { color: var(--accent); }
.post-row:hover .title { transform: translateX(2px); }
.post-row .title { transition: transform .25s ease; }
.post-row:first-child { border-top: 1px solid var(--border); }
.post-row .date { color: var(--muted); font-family: var(--mono); font-size: .82rem; padding-top: .35rem; white-space: nowrap; }
.post-row .meta { color: var(--muted); font-family: var(--mono); font-size: .78rem; white-space: nowrap; padding-top: .35rem; }
.post-row .title {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 0 0 .35rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.post-row .title a { text-decoration: none; color: var(--fg); transition: color .2s; }
.post-row .excerpt { color: var(--muted); font-size: 0.97rem; margin: 0; }
.post-row .tags { margin-top: .55rem; display: flex; gap: .4rem; flex-wrap: wrap; }
@media (max-width: 720px) {
  .post-row { grid-template-columns: 1fr; gap: .35rem; padding: 1.35rem 0; }
  .post-row .date { padding-top: 0; }
  .post-row .meta { padding-top: 0; }
}

/* -------- featured -------- */
.featured {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}
.featured .ph {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg, var(--border) 0 1px, transparent 1px 12px),
    var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
}
.featured .ph::after {
  content: attr(data-label);
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono); font-size: .72rem;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 6px;
}
/* tarih damgası */
.featured .stamp {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 96px; height: 96px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--accent);
  background: var(--bg);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  transform: rotate(-8deg);
}
.featured .stamp .stamp-big {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0;
  line-height: 1;
}
.featured .stamp .stamp-small { font-size: .62rem; margin-top: .1rem; }
.featured .kicker {
  font-family: var(--mono); font-size: .78rem;
  color: var(--accent); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: .9rem;
}
.featured h2.title {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.featured h2.title a { text-decoration: none; color: var(--fg); }
.featured h2.title a:hover { color: var(--accent); }
.featured .lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.25rem; }
@media (max-width: 768px) {
  .featured { grid-template-columns: 1fr; gap: 1.5rem; }
  .featured .stamp { width: 72px; height: 72px; top: .75rem; right: .75rem; }
  .featured .stamp .stamp-big { font-size: 1.1rem; }
}

/* -------- chips / tags -------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .6rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
}
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* -------- article -------- */
.article-header { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.25rem); }
.article-header .kicker {
  font-family: var(--mono); font-size: .78rem;
  color: var(--accent); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 1.25rem;
}
.article-header h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.article-header .lede { color: var(--muted); font-size: 1.15rem; line-height: 1.5; }
.article-header .meta {
  margin-top: 1.75rem;
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .8rem; color: var(--muted);
  padding-top: 1.25rem; border-top: 1px solid var(--border);
}

.article-body {
  font-size: 1.075rem;
  line-height: 1.78;
  color: var(--fg-soft);
}
.article-body > * { margin-bottom: 1.25rem; }
.article-body p { text-wrap: pretty; }

/* drop cap on first paragraph after lede */
.article-body > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4em;
  line-height: 0.85;
  font-weight: 500;
  float: left;
  padding: 0.05em 0.12em 0 0;
  color: var(--fg);
  font-feature-settings: "ss01";
}

.article-body h2 {
  font-size: 1.65rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.article-body h3 {
  font-size: 1.25rem; margin-top: 2rem; margin-bottom: .75rem;
  font-family: var(--sans); font-weight: 600;
}
.article-body blockquote {
  position: relative;
  border-left: 2px solid var(--accent);
  padding: .1rem 0 .1rem 2.25rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--fg);
  font-style: italic;
  margin: 2.25rem 0;
}
.article-body blockquote::before {
  content: """;
  position: absolute;
  left: .35rem; top: -.4rem;
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: .35;
  font-style: normal;
}
.article-body code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
}
.article-body pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .88rem;
  line-height: 1.65;
}
.article-body pre code { background: none; border: 0; padding: 0; }
.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-body li { margin-bottom: .4rem; }
.article-body a { color: var(--accent); text-decoration-color: var(--accent); }
.article-body figure { margin: 2rem 0; }
.article-body figure .ph {
  width: 100%; aspect-ratio: 16/9;
  background:
    repeating-linear-gradient(135deg, var(--border) 0 1px, transparent 1px 12px),
    var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
}
.article-body figure .ph::after {
  content: attr(data-label);
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono); font-size: .72rem;
  color: var(--muted); background: var(--bg);
  padding: 2px 6px;
}
.article-body figcaption {
  font-family: var(--mono); font-size: .78rem;
  color: var(--muted); margin-top: .6rem;
}

/* -------- tepkiler / reactions -------- */
.reactions {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 2.25rem;
  margin: 1rem 0 2rem;
  text-align: center;
}
.reactions .prompt {
  font-family: var(--mono);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.reactions-group {
  display: flex;
  gap: .65rem;
  justify-content: center;
  flex-wrap: wrap;
}
.reaction {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1rem 1.1rem .85rem;
  min-width: 96px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  color: var(--fg-soft);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
  position: relative;
  font-family: inherit;
}
.reaction:hover {
  border-color: var(--fg);
  color: var(--fg);
  transform: translateY(-2px);
}
.reaction.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.reaction.is-active .cnt { color: var(--accent); }
.reaction .ic {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s;
}
.reaction.is-active .ic { transform: scale(1.1); }
.reaction .lbl {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: -.005em;
}
.reaction .cnt {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: -.01em;
  transition: color .2s;
}
.reaction:disabled { opacity: .6; cursor: not-allowed; }

/* tıklayınca ufak baloncuk efekti */
@keyframes reaction-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1.1); }
}
.reaction.is-active .ic { animation: reaction-pop .35s ease-out; }

@media (max-width: 540px) {
  .reaction { min-width: 0; flex: 1 1 calc(50% - .65rem); padding: .85rem .5rem .75rem; }
}

/* -------- comments -------- */
.comment {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.comment .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--fg-soft); font-family: var(--mono); font-size: .9rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.comment .head {
  display: flex; gap: .65rem; align-items: baseline; flex-wrap: wrap;
  margin-bottom: .35rem;
}
.comment .name { font-weight: 500; color: var(--fg); }
.comment .time { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.comment .body { color: var(--fg-soft); font-size: .98rem; line-height: 1.6; }
.comment .reply {
  margin-top: .5rem; font-size: .82rem; color: var(--muted);
  background: none; border: 0; padding: 0;
  text-decoration: underline; text-decoration-color: var(--border);
}
.comment .reply:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* -------- footer -------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem 2.25rem;
  color: var(--muted);
  font-size: .9rem;
  position: relative;
}
/* dekoratif imza */
.site-footer .signature {
  display: block;
  margin: 2.5rem auto 1rem;
  max-width: 180px;
  opacity: .35;
  transition: opacity .3s;
}
.site-footer .signature:hover { opacity: .9; }
.site-footer .signature path {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-footer h6 {
  font-family: var(--mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.site-footer a { color: var(--fg-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: .25rem 0; }
.site-footer .colophon {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap;
  font-family: var(--mono); font-size: .78rem;
}

/* -------- newsletter -------- */
.newsletter {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  background: var(--bg-soft);
}
.newsletter h3 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 .35rem; }
.newsletter p { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }
.newsletter form { display: flex; gap: .5rem; }
.newsletter input { flex: 1; min-width: 0; }
@media (max-width: 520px) {
  .newsletter form { flex-direction: column; }
}

/* -------- archive -------- */
.archive-year {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg);
  padding-top: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}
.archive-year::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px; background: var(--border);
}
.archive-year::after {
  content: attr(data-count);
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: uppercase;
}
.archive-year:first-of-type { padding-top: 0; }
.archive-year:first-of-type::before { display: none; }
.archive-row {
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  gap: 1.5rem;
  padding: .9rem 0;
  border-bottom: 1px dotted var(--border);
  font-size: .98rem;
  align-items: baseline;
}
.archive-row .date { color: var(--muted); font-family: var(--mono); font-size: .82rem; }
.archive-row .title a { text-decoration: none; color: var(--fg); }
.archive-row .title a:hover { color: var(--accent); }
.archive-row .cat { color: var(--muted); font-family: var(--mono); font-size: .78rem; text-align: right; }
@media (max-width: 640px) {
  .archive-row { grid-template-columns: 1fr; gap: .2rem; }
  .archive-row .cat { text-align: left; }
}

/* -------- project grid -------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project {
  display: flex; flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  text-decoration: none;
  color: var(--fg);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.project::after {
  content: "→";
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  font-family: var(--sans);
  color: var(--muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s, color .2s;
}
.project:hover {
  border-color: var(--fg);
  color: var(--fg);
  transform: translateY(-2px);
}
.project:hover::after { opacity: 1; transform: translateX(0); color: var(--accent); }
.project:hover .ph { transform: scale(1.02); }
.project .ph {
  width: 100%; aspect-ratio: 4/3; border-radius: 3px;
  background:
    repeating-linear-gradient(135deg, var(--border) 0 1px, transparent 1px 10px),
    var(--bg-soft);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: transform .3s ease;
}
.project .year { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.project h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin: .35rem 0 .5rem; }
.project p { font-size: .92rem; color: var(--muted); margin: 0; flex: 1; }
.project .tech {
  margin-top: 1rem; display: flex; gap: .35rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .72rem; color: var(--muted);
}
.project .tech span { padding: 2px 7px; border: 1px solid var(--border); border-radius: 3px; }

/* -------- 404 -------- */
.not-found {
  min-height: 60vh;
  display: grid; place-items: center;
  text-align: center;
}
.not-found .glyph {
  font-family: var(--serif);
  font-size: clamp(7rem, 22vw, 14rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
  display: inline-block;
}
.not-found .glyph .accent {
  color: var(--accent);
  display: inline-block;
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-6px) rotate(-3deg); }
}

/* -------- contact -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.contact-list .label { font-family: var(--mono); font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

/* -------- table of contents on yazi -------- */
.toc {
  border-left: 1px solid var(--border);
  padding-left: 1.25rem;
  font-size: .9rem;
}
.toc .toc-title {
  font-family: var(--mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  margin-bottom: .75rem;
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { padding: .25rem 0; }
.toc a { color: var(--fg-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* -------- breadcrumb -------- */
.crumbs {
  font-family: var(--mono); font-size: .78rem;
  color: var(--muted);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 .5rem; opacity: .5; }

/* -------- search modal -------- */
.search-modal .modal-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.15), 0 4px 12px -4px rgba(0,0,0,.08);
}
.search-modal .modal-dialog { max-width: 580px; }
.search-modal .modal-body { padding: 0; }

.cmd-search {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.cmd-search input {
  background: transparent; border: 0; outline: 0;
  flex: 1; font-size: 1.05rem; color: var(--fg);
  font-family: inherit;
  padding: 0;
}
.cmd-search input::placeholder { color: var(--muted); }
.cmd-search .esc {
  font-family: var(--mono); font-size: .72rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 6px;
}

.cmd-section-label {
  font-family: var(--mono); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted);
  padding: .85rem 1.25rem .5rem;
}

.cmd-list { list-style: none; padding: 0 .5rem .5rem; margin: 0; }
.cmd-list li { margin: 0; }
.cmd-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .65rem .75rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--fg-soft);
  text-decoration: none;
  font-size: .94rem;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background .12s, color .12s;
}
.cmd-item:hover {
  background: var(--bg-soft);
  color: var(--fg);
}
.cmd-item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}
.cmd-item.is-active .icn { color: var(--accent); }
.cmd-item .icn {
  width: 16px; height: 16px;
  opacity: .8;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cmd-item .lbl { display: block; }
.cmd-item .desc {
  color: var(--muted);
  font-size: .82rem;
  margin-left: .35rem;
}
.cmd-item .keys { display: flex; gap: .25rem; }
.cmd-item .keys kbd {
  font-family: var(--mono); font-size: .68rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--muted);
}
.cmd-item.is-active .keys kbd { border-color: var(--accent); color: var(--accent); }

.cmd-footer {
  padding: .65rem 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: .7rem;
  color: var(--muted);
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.cmd-footer kbd {
  font-family: inherit; font-size: inherit;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--fg-soft);
}

.cmd-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.cmd-empty .empty-hint {
  margin-top: .5rem;
  font-family: var(--mono); font-size: .76rem;
}

.cmd-toast {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--fg);
  color: var(--bg);
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-size: .88rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  font-family: var(--sans);
  display: flex; align-items: center; gap: .5rem;
}
.cmd-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* -------- microblog list (notlar) -------- */
.micro-list { list-style: none; padding: 0; margin: 0; }
.micro {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.micro:first-child { border-top: 1px solid var(--border); }
.micro .when {
  font-family: var(--mono); font-size: .78rem;
  color: var(--muted); padding-top: .2rem;
  white-space: nowrap;
}
.micro .body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
  text-wrap: pretty;
}
.micro .body a { color: var(--accent); }
.micro .body code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-soft); padding: 1px 6px; border-radius: 3px;
  border: 1px solid var(--border);
}
.micro .body em { color: var(--muted); font-style: italic; }
.micro .body strong { color: var(--fg); font-weight: 500; }
.micro .ph {
  display: block;
  margin-top: .85rem;
  aspect-ratio: 16/9;
  background:
    repeating-linear-gradient(135deg, var(--border) 0 1px, transparent 1px 12px),
    var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  max-width: 520px;
}
.micro .quote {
  display: block;
  margin-top: .65rem;
  padding: .65rem 0 .65rem 1.1rem;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--fg);
  line-height: 1.4;
}
.micro .quote .attr {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .82rem;
  color: var(--muted);
  margin-top: .35rem;
}
.micro .link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .55rem;
  padding: .55rem .8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  text-decoration: none;
  color: var(--fg);
  font-size: .92rem;
  transition: border-color .15s;
}
.micro .link:hover { border-color: var(--accent); color: var(--accent); }
.micro .link .arrow { font-family: var(--mono); color: var(--accent); }
.micro .link .domain {
  font-family: var(--mono); font-size: .78rem;
  color: var(--muted);
  margin-left: auto;
}
@media (max-width: 540px) {
  .micro { grid-template-columns: 1fr; gap: .35rem; padding: 1.15rem 0; }
}

/* "son notlar" mini şerit anasayfa için */
.recent-notes {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 0;
}
.recent-notes .head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin-bottom: 1rem;
}
.recent-notes .head h3 {
  font-family: var(--mono); font-size: .76rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted);
  margin: 0;
}
.recent-notes .head a {
  font-family: var(--mono); font-size: .76rem;
  color: var(--muted);
  text-decoration: none;
}
.recent-notes .head a:hover { color: var(--accent); }
.recent-notes ul { list-style: none; padding: 0; margin: 0; }
.recent-notes li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  padding: .55rem 0;
  border-top: 1px dotted var(--border);
  font-size: .92rem;
}
.recent-notes li:first-child { border-top: 0; padding-top: 0; }
.recent-notes .when {
  font-family: var(--mono); font-size: .72rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: .1rem;
}
.recent-notes .body { color: var(--fg-soft); margin: 0; line-height: 1.5; }
.recent-notes .body a { color: var(--fg); text-decoration: none; }
.recent-notes .body:hover { color: var(--fg); }


/* -------- utilities -------- */
.divider-dot { color: var(--muted); margin-inline: .5rem; }
.hover-accent:hover { color: var(--accent); }

/* Kicker / üst etiket — mono, küçük, uppercase, harf aralıklı */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.eyebrow.is-accent { color: var(--accent); }

/* Marka noktası — global olarak istediğin yerde kullan */
.brand-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: .5rem;
  vertical-align: middle;
}

/* Footer / offcanvas marka yazısı */
.brand-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
}


/* -------- yazı okuma çubuğu (yazi.html, proje.html) -------- */
.read-progress {
  position: fixed; top: 64px; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  z-index: 1029;
  transition: transform .12s linear;
}


/* -------- proje detay: specs listesi -------- */
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  font-size: .92rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .k {
  font-family: var(--mono); font-size: .74rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
}
.spec-list .v { color: var(--fg-soft); }
.spec-list .v code {
  font-family: var(--mono); font-size: .85em;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 3px;
}

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-right: .4rem;
}
.status-live     { background: oklch(0.62 0.14 145); }
.status-paused   { background: oklch(0.72 0.13 80); }
.status-archived { background: var(--muted); }


/* -------- proje detay: galeri -------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.gallery .ph {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg, var(--border) 0 1px, transparent 1px 12px),
    var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
}
.gallery .ph.wide { grid-column: span 2; aspect-ratio: 16/8; }
.gallery .ph::after {
  content: attr(data-label);
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono); font-size: .72rem;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 6px;
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .ph.wide { grid-column: auto; }
}


/* -------- zaman çizelgesi -------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--border);
}
.timeline li {
  position: relative;
  padding: 0 0 1.25rem 1.75rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 2px; top: .55rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--fg);
}
.timeline li:first-child::before {
  background: var(--accent);
  border-color: var(--accent);
}
.timeline .date {
  font-family: var(--mono); font-size: .76rem;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.timeline .title {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: .15rem 0 .3rem;
}
.timeline .body {
  font-size: .94rem;
  color: var(--fg-soft);
  margin: 0;
}

/* -------- a11y: skip to content -------- */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 2000;
  background: var(--fg); color: var(--bg);
  padding: .6rem 1rem; border-radius: 6px;
  text-decoration: none; font-size: .9rem; font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; color: var(--bg); outline: 2px solid var(--accent); outline-offset: 2px; }

/* better focus styles */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.btn-ink:focus-visible, .btn-ghost:focus-visible, .icon-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* -------- back to top -------- */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1020;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--fg-soft);
  border: 1px solid var(--border); border-radius: 999px;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, color .15s, border-color .15s;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { color: var(--accent); border-color: var(--accent); }
.back-to-top svg { width: 16px; height: 16px; }

/* -------- code block: copy button -------- */
.article-body pre { position: relative; }
.copy-btn {
  position: absolute; top: .55rem; right: .55rem;
  background: var(--bg); color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px;
  padding: .2rem .55rem; font-family: var(--mono); font-size: .72rem;
  cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, border-color .15s;
}
.article-body pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); }

/* -------- heading anchor links -------- */
.article-body h2, .article-body h3 { scroll-margin-top: 90px; }
.heading-anchor {
  display: inline-block;
  margin-left: .35rem;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono); font-size: .7em;
  font-weight: 400;
  opacity: 0; transition: opacity .15s, color .15s;
  vertical-align: middle;
}
.article-body h2:hover .heading-anchor,
.article-body h3:hover .heading-anchor,
.heading-anchor:focus { opacity: 1; }
.heading-anchor:hover { color: var(--accent); }

/* -------- TOC scrollspy active -------- */
.toc a.active {
  color: var(--accent);
  position: relative;
}
.toc a.active::before {
  content: ""; position: absolute; left: -1.25rem; top: .35rem; bottom: .35rem;
  width: 2px; background: var(--accent);
}

/* -------- search modal: results -------- */
.search-results {
  list-style: none; padding: 0; margin: .5rem 0 0;
  max-height: 360px; overflow-y: auto;
}
.search-results li a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem; align-items: baseline;
  padding: .65rem .8rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--fg);
  font-size: .94rem;
}
.search-results li a:hover,
.search-results li a.active {
  background: var(--bg-soft);
  color: var(--fg);
}
.search-results .row-title { font-family: var(--serif); }
.search-results .row-meta { font-family: var(--mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.search-results .row-excerpt { color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.search-empty { color: var(--muted); font-size: .9rem; padding: 1.5rem; text-align: center; }

/* -------- "Şu an" widget (hakkımda) -------- */
.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.now-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.1rem 1.15rem;
  background: var(--bg);
}
.now-card .label {
  font-family: var(--mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .5rem;
  display: flex; align-items: center; gap: .4rem;
}
.now-card .label .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-soft); }
  70%  { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.now-card .value {
  font-family: var(--serif); font-size: 1.1rem;
  line-height: 1.3; color: var(--fg);
  margin: 0;
}
.now-card .sub {
  margin-top: .2rem;
  font-size: .82rem; color: var(--muted);
}

/* -------- varied placeholder patterns -------- */
.ph[data-pattern="dots"] {
  background:
    radial-gradient(var(--border) 1px, transparent 1.5px) 0 0 / 14px 14px,
    var(--bg-soft) !important;
}
.ph[data-pattern="grid"] {
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 18px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 18px 100%,
    var(--bg-soft) !important;
}
.ph[data-pattern="cross"] {
  background:
    repeating-linear-gradient(45deg, var(--border) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, var(--border) 0 1px, transparent 1px 14px),
    var(--bg-soft) !important;
}
.ph[data-pattern="wave"] {
  background:
    radial-gradient(circle at 50% 100%, var(--border) 12px, transparent 13px) 0 0 / 24px 24px,
    var(--bg-soft) !important;
}

/* -------- print -------- */
@media print {
  .site-nav, .offcanvas, .modal, .back-to-top, .skip-link,
  .read-progress, .site-footer, .crumbs, .toc,
  [data-newsletter], [data-comment], .copy-btn,
  .icon-btn { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .container-narrow, .container-mid, .container-wide { max-width: 100% !important; padding: 0 !important; }
  .article-body { font-size: 11pt; line-height: 1.55; color: black; }
  .article-body h2, .article-body h3, h1 { color: black; page-break-after: avoid; }
  .article-body pre, .article-body blockquote { page-break-inside: avoid; }
  a { color: black; text-decoration: underline; }
  .article-header { padding-block: 0 1rem !important; }
  section + section { border-top: 0; }
  section { padding-block: 1rem !important; }
  .ph { display: none; }
}

/* -------- reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .now-card .label .pulse { animation: none !important; }
  .not-found .glyph .accent { animation: none !important; }
  .post-row:hover .title { transform: none !important; }
  .project:hover { transform: none !important; }
  .project:hover .ph { transform: none !important; }
}
