/* ==========================================================================
   mutlak.net — Vektör Defteri Tasarım Sistemi
   Swiss editorial typography + architectural drafting grid
   ========================================================================== */

:root {
  --bg: #EDEEF0;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #E2E4E8;
  --ink: #111214;
  --ink-muted: #52565E;
  --line: #CFD3DA;
  --accent: #E84C22;
  --accent-soft: rgba(232, 76, 34, 0.10);
  --accent-ink: #FFFFFF;

  --header-bg: #EDEEF0;
  --band-bg: #FFFFFF;
  --section-subtle-bg: #E2E4E8;

  --footer-bg: #DFE2E6;
  --footer-bg-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.03) 100%);
  --footer-vignette: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
  --footer-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M0.5 0V56M14.5 0V56M42.5 0V56M0 0.5H56M0 14.5H56M0 42.5H56' fill='none' stroke='%234F5561' stroke-opacity='0.20' stroke-width='1'/%3E%3Cpath d='M28.5 0V56M0 28.5H56' fill='none' stroke='%234F5561' stroke-opacity='0.35' stroke-width='1'/%3E%3Cpath d='M22.5 28.5H34.5M28.5 22.5V34.5' fill='none' stroke='%23E84C22' stroke-opacity='0.90' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  --footer-border: #C4C9D2;
  --footer-ink-muted: #52565E;
  --footer-rule: rgba(79, 85, 97, 0.24);
  --footer-panel-bg: rgba(8, 9, 11, 0.85);
  --footer-panel-border: #000000;
  --footer-panel-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  --footer-panel-ink: #F3F4F6;
  --footer-panel-heading: #E8EAEE;
  --footer-panel-muted: #C2C6CE;
  --footer-panel-accent: #F2643B;
  --footer-panel-rule: rgba(243, 244, 246, 0.16);

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container-max: 1180px;
  --prose-max: 68ch;
  --radius: 2px;
  --dot-color: rgba(91, 96, 107, 0.24);
}

html[data-theme="dark"] {
  --bg: #111214;
  --bg-elevated: #17191C;
  --bg-subtle: #1E2126;
  --ink: #ECEAE4;
  --ink-muted: #9E9B92;
  --line: #2C3038;
  --accent: #F2643B;
  --accent-soft: rgba(242, 100, 59, 0.14);
  --accent-ink: #FFFFFF;
  --dot-color: rgba(236, 234, 228, 0.08);

  --header-bg: #111214;
  --band-bg: #17191C;
  --section-subtle-bg: #1E2126;

  --footer-bg: #111316;
  --footer-bg-image: linear-gradient(180deg, rgba(23, 25, 28, 0) 0%, rgba(17, 18, 20, 0.25) 100%);
  --footer-vignette: linear-gradient(90deg, rgba(6, 7, 9, 0.52) 0%, rgba(6, 7, 9, 0.14) 22%, rgba(6, 7, 9, 0.14) 78%, rgba(6, 7, 9, 0.52) 100%);
  --footer-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M0.5 0V56M14.5 0V56M42.5 0V56M0 0.5H56M0 14.5H56M0 42.5H56' fill='none' stroke='%23ECEAE4' stroke-opacity='0.075' stroke-width='1'/%3E%3Cpath d='M28.5 0V56M0 28.5H56' fill='none' stroke='%23ECEAE4' stroke-opacity='0.135' stroke-width='1'/%3E%3Cpath d='M22.5 28.5H34.5M28.5 22.5V34.5' fill='none' stroke='%23F2643B' stroke-opacity='0.56' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  --footer-border: #2C3038;
  --footer-ink-muted: #9E9B92;
  --footer-rule: #2C3038;
  --footer-panel-bg: rgba(4, 5, 7, 0.84);
  --footer-panel-border: #000000;
  --footer-panel-shadow: 0 0 0 1px rgba(236, 234, 228, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --footer-panel-ink: #ECEAE4;
  --footer-panel-heading: #DFDDD6;
  --footer-panel-muted: #B8B5AC;
  --footer-panel-accent: #F2643B;
  --footer-panel-rule: rgba(236, 234, 228, 0.14);
}

html[data-theme="blueprint"] {
  --bg: #0A192F;
  --bg-elevated: #0E223F;
  --bg-subtle: #12294A;
  --ink: #EAF1FC;
  --ink-muted: #98B3D9;
  --line: rgba(174, 206, 250, 0.22);
  --accent: #6CD4F5;
  --accent-soft: rgba(108, 212, 245, 0.13);
  --accent-ink: #071426;
  --dot-color: rgba(207, 226, 255, 0.14);

  --header-bg: #0A192F;
  --band-bg: #0E223F;
  --section-subtle-bg: #12294A;

  --footer-bg: #081529;
  --footer-bg-image: linear-gradient(180deg, rgba(14, 34, 63, 0) 0%, rgba(10, 25, 47, 0.25) 100%);
  --footer-vignette: linear-gradient(90deg, rgba(4, 10, 22, 0.54) 0%, rgba(4, 10, 22, 0.14) 22%, rgba(4, 10, 22, 0.14) 78%, rgba(4, 10, 22, 0.54) 100%);
  --footer-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M0.5 0V56M14.5 0V56M42.5 0V56M0 0.5H56M0 14.5H56M0 42.5H56' fill='none' stroke='%23DCEBFF' stroke-opacity='0.08' stroke-width='1'/%3E%3Cpath d='M28.5 0V56M0 28.5H56' fill='none' stroke='%23DCEBFF' stroke-opacity='0.145' stroke-width='1'/%3E%3Cpath d='M22.5 28.5H34.5M28.5 22.5V34.5' fill='none' stroke='%236CD4F5' stroke-opacity='0.54' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  --footer-border: rgba(174, 206, 250, 0.24);
  --footer-ink-muted: #A8C0E2;
  --footer-rule: rgba(174, 206, 250, 0.18);
  --footer-panel-bg: rgba(4, 9, 18, 0.86);
  --footer-panel-border: #000000;
  --footer-panel-shadow: 0 0 0 1px rgba(174, 206, 250, 0.20), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --footer-panel-ink: #EAF1FC;
  --footer-panel-heading: #DCE8FA;
  --footer-panel-muted: #A4BCDD;
  --footer-panel-accent: #6CD4F5;
  --footer-panel-rule: rgba(174, 206, 250, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='1' cy='1' r='0.9' fill='%235B606B' fill-opacity='0.24'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  background-repeat: repeat;
  background-attachment: scroll;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='1' cy='1' r='0.9' fill='%23858278' fill-opacity='0.22'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  background-repeat: repeat;
  background-attachment: scroll;
}

html[data-theme="blueprint"] body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='1' cy='1' r='0.9' fill='%238EA9D2' fill-opacity='0.22'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  background-repeat: repeat;
  background-attachment: scroll;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img, svg {
  max-width: 100%;
  height: auto;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-subtle);
  padding: 0.1em 0.38em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}

.reading-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 60ms linear;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: 132px;
  height: 32px;
}

.logo-bar {
  transition: transform 200ms ease;
}

.brand-link:hover .logo-bar-left,
.brand-link:focus-visible .logo-bar-left {
  transform: translateX(2px);
}

.brand-link:hover .logo-bar-right,
.brand-link:focus-visible .logo-bar-right {
  transform: translateX(-2px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink-muted);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active {
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px;
  gap: 2px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.theme-btn:hover {
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme="light"] .theme-btn[data-theme-set="light"],
html:not([data-theme]) .theme-btn[data-theme-set="light"],
html[data-theme="dark"] .theme-btn[data-theme-set="dark"],
html[data-theme="blueprint"] .theme-btn[data-theme-set="blueprint"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.mobile-menu-btn { display: none; }
.mobile-menu-btn .menu-icon-close { display: none; }
.mobile-menu-btn[aria-expanded="true"] .menu-icon-open { display: none; }
.mobile-menu-btn[aria-expanded="true"] .menu-icon-close { display: inline-flex; }

.mobile-nav-drawer {
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 12px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
}

.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link.is-active { color: var(--accent); }

/* Buttons & Typography Primitives */
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.mono-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

/* Hero Section */
.hero-section {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 48px;
  align-items: center;
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-stats dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-visual-caption {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: right;
}

/* Sections & Dividers */
.section {
  padding: 56px 0;
}

.section-subtle {
  background: var(--section-subtle-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.divider-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.divider-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
}

.section-more:hover {
  color: var(--accent);
}

/* Post Cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 180ms ease;
}

.post-card:hover {
  border-color: var(--ink);
}

.post-card-cover {
  display: block;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.svg-cover {
  display: block;
  width: 100%;
  height: auto;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 22px;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-decoration: none;
}

.cat-badge:hover {
  border-color: var(--accent);
}

.post-card-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.28;
}

.post-card-title a {
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--accent);
}

.post-card-summary {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Categories Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 160ms ease;
}

.category-card:hover {
  border-color: var(--accent);
}

.category-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.category-code {
  color: var(--accent);
  font-weight: 500;
}

.category-count {
  color: var(--ink-muted);
}

.category-name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.25;
}

.category-desc {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  flex: 1;
}

.category-geom {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-muted);
}

/* Latest List */
.latest-list {
  border-top: 1px solid var(--line);
}

.latest-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 150px;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.latest-row-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.latest-cat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  text-decoration: none;
}

.latest-cat:hover {
  color: var(--accent);
}

.latest-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.3;
}

.latest-title a {
  text-decoration: none;
}

.latest-title a:hover {
  color: var(--accent);
}

.latest-summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.latest-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

/* Page Header & Archive Controls */
.page-header {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--band-bg);
}

.page-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-muted);
}

.archive-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-field:focus-within {
  border-color: var(--accent);
}

.search-field input {
  width: 100%;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
}

.search-field-sm {
  max-width: 280px;
}

.search-field-sm input {
  height: 36px;
  font-size: 14px;
}

.search-icon {
  color: var(--ink-muted);
  display: inline-flex;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-switcher {
  margin-top: 22px;
}

.filter-pill {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg);
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.filter-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.archive-status {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.post-list-filtered {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.filtered-card {
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filtered-card:hover {
  border-color: var(--ink);
}

.filtered-empty {
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-muted);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page-numbers {
  display: flex;
  gap: 6px;
}

.page-link,
.page-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-link:hover:not(.is-disabled),
.page-num:hover {
  border-color: var(--ink);
}

.page-num.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.page-link.is-disabled {
  opacity: 0.45;
  cursor: default;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 7px 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
}

/* Single Article Page */
.article-header {
  padding: 36px 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--band-bg);
}

.article-header-inner {
  max-width: 920px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.article-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 3.8vw, 3.1rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.article-subtitle {
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 60ch;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  padding: 2px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.article-cover {
  margin: 0;
  border: 1px solid var(--line);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 52px;
  padding-top: 40px;
  padding-bottom: 56px;
}

.article-body-col {
  min-width: 0;
}

.prose {
  max-width: var(--prose-max);
}

.prose > p:first-child {
  font-size: 19.5px;
  line-height: 1.72;
}

.prose h2 {
  margin: 2.2em 0 0.65em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.01em;
  scroll-margin-top: 86px;
}

.prose h3 {
  margin: 1.7em 0 0.5em;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.3;
  scroll-margin-top: 86px;
}

.prose p {
  margin: 0 0 1.25em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.45em;
}

.callout {
  margin: 1.8em 0;
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}

.callout strong {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.callout p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
}

/* Inline SVG Figures & Interactive Widgets */
.svg-figure {
  margin: 2em 0;
  padding: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.svg-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.svg-figure figcaption {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.svg-widget-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.svg-widget-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.svg-widget-controls input[type="range"] {
  accent-color: var(--accent);
  cursor: pointer;
}

.widget-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.widget-btn {
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
}

.widget-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* Takeaways Box */
.takeaways-box {
  max-width: var(--prose-max);
  margin: 2.8em 0 2em;
  padding: 24px 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--ink);
}

.takeaways-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.takeaways-head h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

.takeaways-list {
  margin: 0;
  padding-left: 20px;
}

.takeaways-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.takeaways-list li:last-child {
  margin-bottom: 0;
}

/* Adjacent Post Nav */
.post-adjacent {
  max-width: var(--prose-max);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.adjacent-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  text-decoration: none;
}

.adjacent-card:hover {
  border-color: var(--accent);
}

.adjacent-next {
  text-align: right;
  align-items: flex-end;
}

.adjacent-dir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.adjacent-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.3;
}

/* Sticky TOC */
.toc-sticky {
  position: sticky;
  top: 92px;
  padding: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.toc-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-item {
  margin-bottom: 8px;
  line-height: 1.4;
}

.toc-level-3 {
  padding-left: 14px;
  font-size: 13px;
}

.toc-item a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.toc-item a:hover,
.toc-item a.is-active {
  color: var(--ink);
  border-left-color: var(--accent);
}

.toc-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.toc-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
}

.toc-print-btn:hover {
  border-color: var(--ink);
}

.toc-mobile {
  display: none;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.toc-mobile summary {
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
}

.toc-mobile .toc-list {
  margin-top: 12px;
}

/* Sketches */
.sketch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sketch-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sketch-card[hidden] {
  display: none;
}

.sketch-trigger {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.sketch-card:hover {
  border-color: var(--ink);
}

.sketch-svg-wrap {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 10px;
}

.sketch-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

.sketch-body {
  padding: 16px 18px 20px;
}

.sketch-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
}

.sketch-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
}

.sketch-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-muted);
}

.sketch-dialog {
  max-width: 680px;
  width: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--bg-elevated);
  color: var(--ink);
}

.sketch-dialog::backdrop {
  background: rgba(17, 18, 20, 0.72);
}

.sketch-dialog-inner {
  padding: 22px 24px 26px;
}

.sketch-dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sketch-dialog-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.sketch-dialog-svg {
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--bg);
  margin-bottom: 16px;
}

.sketch-dialog-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
}

.sketch-dialog-note {
  margin: 0 0 20px;
  color: var(--ink-muted);
}

.sketch-dialog-nav {
  display: flex;
  justify-content: space-between;
}

/* Concept Map */
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.map-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.concept-map-svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

.map-node {
  cursor: pointer;
  transition: opacity 150ms ease;
}

.map-node-dot {
  transition: r 150ms ease, fill 150ms ease, stroke 150ms ease;
}

.map-node-label {
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.map-node:hover .map-node-label,
.map-node:focus .map-node-label,
.map-node.is-focus .map-node-label {
  opacity: 1;
}

.map-node:hover .map-node-dot,
.map-node.is-focus .map-node-dot {
  fill: var(--accent);
  stroke: var(--accent);
}

.map-node.is-neighbor .map-node-dot {
  stroke: var(--accent);
  stroke-width: 2.2;
}

.map-node.is-dimmed,
.map-edge.is-dimmed {
  opacity: 0.14;
}

.map-edge.is-highlighted {
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 1;
}

.map-inspector {
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  position: sticky;
  top: 88px;
}

.map-inspector-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.map-inspector-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.28;
}

.map-inspector-summary {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-muted);
}

.map-inspector-tags {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.map-directory {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.map-dir-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.map-dir-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.map-dir-heading a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}

.map-dir-heading a:hover {
  color: var(--accent);
}

.map-dir-list {
  margin: 0;
  padding: 0 8px 0 0;
  list-style: none;
  max-height: 460px;
  overflow-y: auto;
}

.map-dir-list li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.map-dir-list a {
  display: flex;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-muted);
}

.map-dir-list a:hover {
  color: var(--ink);
}

/* About & 404 */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.about-specimen {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.specimen-card {
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.specimen-label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.swatch-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.swatch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.swatch-box {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.page-404 {
  padding: 64px 0 80px;
}

.page-404-inner {
  max-width: 680px;
}

.page-404-svg {
  margin: 28px 0;
}

/* Footer */
.site-footer {
  position: relative;
  border-top: 1px solid var(--footer-border);
  background-color: var(--footer-bg);
  background-image: var(--footer-vignette), var(--footer-pattern), var(--footer-bg-image);
  background-size: 100% 100%, 56px 56px, 100% 100%;
  background-repeat: no-repeat, repeat, no-repeat;
  padding: 44px 0;
}

.footer-panel {
  padding: 36px 40px 24px;
  background: var(--footer-panel-bg);
  border: 2px solid var(--footer-panel-border);
  border-radius: 0;
  color: var(--footer-panel-ink);
  box-shadow: var(--footer-panel-shadow);
}

.footer-panel .brand-link {
  color: var(--footer-panel-ink);
}

.footer-panel .mono-idx {
  color: var(--footer-panel-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-tagline {
  margin: 14px 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--footer-panel-muted);
  max-width: 38ch;
}

.footer-meta-mono {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--footer-panel-muted);
}

.footer-heading {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-panel-heading);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 7px;
  font-size: 14.5px;
}

.footer-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--footer-panel-muted);
}

.footer-links a:hover {
  color: var(--footer-panel-accent);
}

.footer-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--footer-panel-muted);
}

.footer-colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--footer-panel-rule);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--footer-panel-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid,
  .article-layout,
  .map-frame,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .post-grid,
  .sketch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid,
  .map-dir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-toc-col {
    display: none;
  }

  .toc-mobile {
    display: block;
  }

  .map-inspector {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
    background-attachment: scroll;
  }

  .footer-panel {
    padding: 26px 20px 20px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-section {
    padding: 36px 0 42px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-grid,
  .sketch-grid,
  .category-grid,
  .post-list-filtered,
  .post-adjacent,
  .map-dir-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .latest-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .latest-row-right {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 12pt;
    line-height: 1.55;
  }
  .site-header,
  .site-footer,
  .reading-progress,
  .article-toc-col,
  .toc-mobile,
  .post-adjacent,
  .svg-widget-controls,
  .section-subtle {
    display: none !important;
  }
  .article-layout {
    display: block;
    padding: 0;
  }
  .prose {
    max-width: 100%;
  }
  .svg-figure,
  .takeaways-box {
    break-inside: avoid;
    border-color: #999999;
  }
}

/* Sözleşme bağlantıları */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--footer-panel-rule);
  font-size: 13px;
}

.footer-legal a {
  color: var(--footer-panel-muted);
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-legal + .footer-colophon {
  margin-top: 16px;
}
