:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-elev: #ffffff;
  --ink: #0b1f3a;
  --ink-muted: #5a6b7d;
  --line: #e6eef7;
  --primary: #1e4fd6;
  --primary-deep: #0b2a6a;
  --primary-soft: #dbe7ff;
  --glow: rgba(30, 79, 214, 0.22);
  --success: #12805c;
  --warning: #b45309;
  --danger: #b42318;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 10px 30px rgba(11, 42, 106, 0.08);
  --shadow-glow: 0 0 80px var(--glow);
  --font-sans: "Sora", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #111a2c;
  --bg-elev: #152038;
  --ink: #e8eef8;
  --ink-muted: #9aa8bc;
  --line: #243149;
  --primary: #5b8cff;
  --primary-deep: #3d6fe0;
  --primary-soft: #1a2d55;
  --glow: rgba(91, 140, 255, 0.28);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.site-header {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}
.brand { color: var(--ink); font-weight: 700; display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; display: block; flex-shrink: 0;
  object-fit: cover; overflow: hidden;
  box-shadow: 0 4px 14px rgba(11, 42, 106, 0.2);
  background: var(--primary-deep);
}
.nav { display: flex; gap: 16px; font-size: 14px; margin-left: 8px; flex: 1; }
.nav a { color: var(--ink-muted); }
.nav a:hover, .nav a.active { color: var(--primary); }
.header-utils { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search input {
  height: 38px; min-width: 160px; max-width: 220px; width: 28vw;
  border: 1px solid var(--line); border-radius: 10px; padding: 0 12px;
  font: inherit; background: var(--bg-elev); color: var(--ink);
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--ink); cursor: pointer; font-size: 16px;
  display: inline-grid; place-items: center;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
html[data-theme="light"] .theme-icon-dark { display: none; }
html[data-theme="dark"] .theme-icon-light { display: none; }
.nav-toggle { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-deep);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-poster,
.hero-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-poster { z-index: 0; }
.hero-video-el {
  z-index: 1;
  opacity: 0;
  transition: opacity .45s ease;
}
.hero-video-el.is-ready { opacity: 1; }
.hero-media-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg,
      rgba(8, 22, 48, 0.88) 0%,
      rgba(8, 22, 48, 0.78) 38%,
      rgba(11, 42, 106, 0.55) 62%,
      rgba(11, 42, 106, 0.32) 100%),
    linear-gradient(180deg, rgba(8, 22, 48, 0.35) 0%, transparent 40%, rgba(8, 22, 48, 0.4) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px 64px;
  animation: heroRise .55s ease both;
}
.hero-copy { max-width: 36rem; }
.hero .eyebrow {
  color: #b8d0ff;
  text-shadow: 0 1px 12px rgba(8, 22, 48, 0.55);
}
.hero h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(8, 22, 48, 0.45);
}
.hero .lead {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 14px rgba(8, 22, 48, 0.4);
}
.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  background: rgba(8, 22, 48, 0.35);
  backdrop-filter: blur(6px);
}
.hero .btn-secondary:hover {
  background: rgba(8, 22, 48, 0.55);
  border-color: #fff;
  color: #fff;
}

.eyebrow { letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--primary); margin: 0 0 10px; text-transform: uppercase; }
.hero h1, .page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 14px; }
.lead { color: var(--ink-muted); max-width: 42ch; margin: 0 0 22px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); color: #fff; }
.btn-secondary { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-secondary:hover { background: var(--primary-soft); }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.reduce-motion .hero-inner { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hero-inner { animation: none !important; }
  .hero-video-el { display: none !important; }
}

.page-hero {
  max-width: 1180px; margin: 0 auto; padding: 40px 28px 8px;
}
.page-hero .lead { margin-bottom: 0; }

.section { padding: 48px 28px; max-width: 1180px; margin: 0 auto; }
.section-soft {
  background: var(--bg-soft); max-width: none;
  padding-left: max(28px, calc((100% - 1180px) / 2 + 28px));
  padding-right: max(28px, calc((100% - 1180px) / 2 + 28px));
}
.section-head { margin-bottom: 24px; }
.section-head h2, .section-head h1 { margin: 0 0 6px; font-size: 1.5rem; }
.section-head p { margin: 0; color: var(--ink-muted); }
.section-more { margin-top: 24px; }

.category-strip {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin;
}
.cat-chip {
  flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-muted);
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center;
}
.cat-chip:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }

.list-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.list-toolbar input, .list-toolbar select {
  height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px;
  font: inherit; min-width: 180px; background: var(--bg-elev); color: var(--ink);
}

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.project-card, .post-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-card { padding: 18px; color: inherit; }
.project-card-link { color: inherit; }
.project-card-link:hover, .post-card:hover {
  transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11, 42, 106, .12);
}
.project-card h3, .post-card-body h3 {
  margin: 0 0 8px; font-size: 1.05rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-card p { margin: 0; color: var(--ink-muted); font-size: 14px; }
.card-go { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--primary); }
.post-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1f3a; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card-body p { margin: 0; }
.excerpt-clamp {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--ink-muted); font-size: 14px;
}
.read-more { font-size: 13px; font-weight: 600; margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chips span {
  font-size: 11px; background: var(--primary-soft); color: var(--ink-muted);
  padding: 4px 8px; border-radius: 8px;
}
.status { font-size: 12px; font-weight: 600; color: var(--success); }
.status-inprogress, .status-paused { color: var(--warning); }
.meta, .muted { color: var(--ink-muted); font-size: 13px; }
.pager { display: flex; gap: 16px; align-items: center; margin-top: 28px; font-weight: 600; }

.article { max-width: 760px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
  max-width: 1120px;
}
.article-main { min-width: 0; max-width: 760px; }
.article-main h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 12px; }
.article-deck { font-size: 1.1rem; color: var(--ink-muted); margin: 0 0 24px; }
.article-body {
  font-size: 1.05rem; line-height: 1.75;
  color: var(--ink);
}
/* WP / Word / editör inline renklerini bastır (DB strip + CSS yedek) */
.article-body :where(p, span, div, li, td, th, h1, h2, h3, h4, h5, h6, strong, em, b, i, u, font, label, small, mark) {
  color: inherit !important;
  background-color: transparent !important;
  -webkit-text-fill-color: currentColor !important;
}
.article-body a {
  color: var(--primary) !important;
  background-color: transparent !important;
  -webkit-text-fill-color: currentColor !important;
}
.article-body::after {
  content: ""; display: table; clear: both;
}
.article-body > p { margin: 0 0 1em; }
.article-body > p:last-child { margin-bottom: 0; }
.article-body img {
  max-width: 100%; height: auto; border-radius: 12px;
  cursor: zoom-in;
}
.article-body a:has(img) { cursor: zoom-in; }
.article-body .alignleft,
.article-body img.alignleft,
.article-body .wp-caption.alignleft {
  float: left;
  margin: 0.2rem 1.1rem 1rem 0;
  max-width: min(280px, 46%);
}
.article-body .alignright,
.article-body img.alignright,
.article-body .wp-caption.alignright {
  float: right;
  margin: 0.2rem 0 1rem 1.1rem;
  max-width: min(280px, 46%);
}
.article-body .aligncenter,
.article-body img.aligncenter,
.article-body .wp-caption.aligncenter {
  display: block;
  float: none;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
.article-body .alignnone,
.article-body img.alignnone,
.article-body .wp-caption.alignnone {
  float: none;
  display: block;
  max-width: 100%;
  margin: 1rem 0 1.25rem;
}

/* Lightbox gallery */
.lb-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(11, 31, 58, .88);
  display: none; align-items: center; justify-content: center;
  padding: 24px 56px;
}
.lb-overlay.is-open { display: flex; }
.lb-figure {
  margin: 0; max-width: min(1100px, 100%); max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.lb-figure img {
  max-width: 100%; max-height: calc(90vh - 48px);
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
  background: #0b1f3a;
}
.lb-caption {
  color: #dce6f2; font-size: 13px; text-align: center;
  max-width: 40rem; line-height: 1.4;
}
.lb-counter {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  color: #c9d4e2; font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lb-btn {
  position: absolute; width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 10px;
  background: rgba(11, 31, 58, .55); color: #fff;
  font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(30, 79, 214, .75); border-color: transparent; }
.lb-close { top: 16px; right: 16px; font-size: 26px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) {
  .lb-overlay { padding: 56px 12px 20px; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-overlay { transition: none; }
}
.article-body pre, .article-body code { font-family: var(--font-mono); font-size: 0.9em; }
.article-body code { background: color-mix(in srgb, var(--primary-soft) 70%, var(--bg)); padding: .1em .35em; border-radius: 4px; }
.article-body pre,
.article-body pre.code-block {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  padding: 14px; border-radius: 12px; overflow-x: auto; white-space: pre-wrap;
}
.article-body pre * {
  color: #e2e8f0 !important;
  -webkit-text-fill-color: currentColor !important;
  background-color: transparent !important;
}
.article-body pre code { background: transparent; padding: 0; }
.article-body code:not(pre code) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}
.article-back { margin-top: 32px; }

.share-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 22px; padding: 10px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.share-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-muted); margin-right: 4px;
}
.share-btn {
  width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-elev); color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.share-btn svg { display: block; }
.share-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.share-btn.share-x:hover { color: #0f1419; border-color: #0f1419; background: #f3f4f5; }
.share-btn.share-linkedin:hover { color: #0a66c2; border-color: #0a66c2; background: #e8f1fa; }
.share-btn.share-facebook:hover { color: #1877f2; border-color: #1877f2; background: #e8f1fd; }
.share-btn.share-whatsapp:hover { color: #25d366; border-color: #25d366; background: #e9f9ef; }
.share-btn.is-copied { border-color: var(--success); color: var(--success); }
.share-btn.is-copied .share-ico-copy { display: none; }
.share-btn.is-copied .share-ico-done { display: block; }
.share-ico-done { display: none; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line);
}
.post-nav a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-md);
  color: inherit; text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.post-nav a:hover { border-color: var(--primary); background: var(--primary-soft); }
.post-nav-next { text-align: right; }
.post-nav-dir { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); }
.post-nav-title {
  font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-nav-prev.is-empty { visibility: hidden; }

.article-aside { position: sticky; top: 88px; }
.related-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px;
}
.related-panel h2 {
  margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--ink);
}
.related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.related-card {
  display: grid; grid-template-columns: 88px 1fr; gap: 10px;
  color: inherit; text-decoration: none;
  padding: 8px; margin: -8px; border-radius: 10px;
}
.related-card:hover { background: var(--bg-soft); }
.related-cover {
  display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden;
  background: #0b1f3a;
}
.related-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.related-title {
  font-size: 13px; font-weight: 650; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-excerpt {
  font-size: 12px; color: var(--ink-muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.article-comments {
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
}
.article-comments h2 {
  margin: 0 0 18px; font-size: 1.25rem; font-weight: 650;
  display: flex; align-items: baseline; gap: 8px;
}
.comments-older {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  overflow: hidden;
}
.comments-older > summary {
  list-style: none; cursor: pointer;
  padding: 12px 14px;
  font-size: 13px; font-weight: 650; color: var(--primary-deep);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.comments-older > summary::-webkit-details-marker { display: none; }
.comments-older > summary::after {
  content: "+"; font-size: 18px; font-weight: 500; color: var(--primary); line-height: 1;
}
.comments-older[open] > summary::after { content: "−"; }
.comments-older > summary:hover { background: color-mix(in srgb, var(--primary-soft) 55%, transparent); }
.comments-older .comment-list {
  padding: 4px 14px 16px; gap: 18px;
  border-top: 1px solid var(--line);
}
.comment-list-recent { margin-top: 4px; }
.comment-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 22px;
}
.comment-replies {
  list-style: none; margin: 14px 0 0; padding: 0 0 0 18px;
  display: flex; flex-direction: column; gap: 16px;
  border-left: 2px solid #7eb3e8;
}
.comment-item { margin: 0; }
.comment-block { margin: 0; }
.comment-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 6px;
}
.comment-who {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.comment-avatar {
  flex: 0 0 28px; width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.comment-avatar-guest {
  font-size: 12px; font-weight: 700;
  background: #e8eef6; color: var(--ink-muted);
}
.comment-avatar-owner {
  background: var(--primary); border-color: var(--primary-deep);
  padding: 0;
}
.comment-avatar-owner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.comment-author {
  font-weight: 700; font-size: 0.95rem; color: var(--ink); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.comment-author:hover { color: var(--primary); }
.comment-item.is-owner .comment-author { color: var(--primary-deep); }
.comment-role {
  flex: 0 0 auto;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line));
  border-radius: 999px; padding: 1px 7px;
}
.comment-head time {
  flex: 0 0 auto; font-size: 12px; color: var(--ink-muted); white-space: nowrap;
}
.comment-body {
  font-size: 0.98rem; line-height: 1.7; color: var(--ink);
  word-break: break-word;
}
.magnet-link {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 6px 0; padding: 8px 12px;
  max-width: 100%;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 10px;
  color: var(--primary-deep);
  font-weight: 600; font-size: 13px; line-height: 1.35;
  text-decoration: none; word-break: break-word;
}
.magnet-link:hover {
  background: color-mix(in srgb, var(--primary-soft) 70%, #fff);
  border-color: var(--primary);
}
.magnet-label {
  flex: 0 0 auto;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--primary);
  border-radius: 6px; padding: 3px 7px;
}
@media (max-width: 640px) {
  .comment-replies { padding-left: 12px; }
  .comment-list { gap: 18px; }
}

.article-hero-cover {
  position: relative; max-height: 360px; overflow: hidden; background: #0b1f3a;
}
.article-hero-cover img { width: 100%; height: 360px; object-fit: cover; display: block; }
.article-hero-wash {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg));
}
.project-hero {
  background:
    radial-gradient(ellipse at 70% 20%, var(--glow), transparent 55%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.project-hero-inner { padding-top: 40px; padding-bottom: 36px; }
.project-hero h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

.about-grid, .contact-layout {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px; align-items: start;
}
.about-prose h2 { margin: 28px 0 10px; font-size: 1.2rem; }
.about-prose h2:first-child { margin-top: 0; }
.about-list { padding-left: 1.1rem; color: var(--ink-muted); }
.about-aside, .contact-aside { display: flex; flex-direction: column; gap: 12px; }
.about-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 16px; box-shadow: var(--shadow-card);
}
.about-card h3 { margin: 0 0 8px; font-size: 1rem; }
.about-card p { margin: 0; color: var(--ink-muted); font-size: 14px; }
.contact-form {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px; box-shadow: var(--shadow-card); max-width: 520px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font: inherit; background: var(--bg); color: var(--ink);
}

.flash {
  max-width: 1180px; margin: 16px auto 0; padding: 10px 14px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
}
.flash.ok { background: #e8f6ef; color: var(--success); border: 1px solid #b7e0cc; }
.flash.err { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
html[data-theme="dark"] .flash.ok { background: #123528; border-color: #1f6b4a; }
html[data-theme="dark"] .flash.err { background: #3b1515; border-color: #7a2e2e; }

.site-footer {
  border-top: 1px solid var(--line); padding: 28px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: var(--ink-muted); font-size: 13px; max-width: 1180px; margin: 0 auto;
}
.footer-brand .brand { margin-bottom: 8px; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.footer-links a { color: var(--ink-muted); }
.footer-links a:hover { color: var(--primary); }

.wp-caption {
  display: block; max-width: 100%; width: auto !important; box-sizing: border-box;
  margin: 1rem 0 1.25rem;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 8px;
}
.wp-caption img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.wp-caption-text { margin: 8px 4px 2px; font-size: 13px; color: var(--ink-muted); text-align: center; }
.wp-caption.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption.alignleft { margin-right: 1rem; }
.wp-caption.alignright { margin-left: 1rem; }
.wp-embed {
  position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 9;
  margin: 1.25rem 0; border-radius: 12px; overflow: hidden; background: #0f172a;
}
.wp-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wp-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; margin: 1.25rem 0;
}
.wp-gallery-item {
  display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1;
}
.wp-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-aside { position: static; }
  .article-main { max-width: none; }
}
@media (max-width: 900px) {
  .hero { min-height: min(62vh, 520px); }
  .hero-inner { padding: 48px 20px 44px; }
  .project-grid, .post-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-layout { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; min-height: 44px; display: flex; align-items: center; }
  .header-search input { min-width: 0; width: 120px; }
  .wp-caption.alignleft, .wp-caption.alignright,
  .article-body .alignleft, .article-body .alignright,
  .article-body img.alignleft, .article-body img.alignright {
    float: none; max-width: 100%; margin-left: 0; margin-right: 0;
  }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .post-nav-prev.is-empty { display: none; }
}
