/* ============================================
   DESIGN SYSTEM — AKIN DEMIR
   Sharp / flat / no border-radius
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg: #0a0a0a;
  --bg-hover: #111111;
  --bg-alt: #0c0c0c;
  --bg-alt2: #0d0d0d;
  --border: #2b2b2b;
  --border-subtle: #1c1c1c;
  --border-mid: #3a3a3a;
  --text: #f5f5f4;
  --text-body: #b7b7b2;
  --text-secondary: #cfcfca;
  --text-muted: #9a9a95;
  --text-dim: #8a8a85;
  --text-vdim: #6a6a66;
  --text-dark: #3a3a3a;
  --accent: #ff9100;
  --accent-hover: #ffa733;
  --accent-border: #3a2a12;
  --green: #00e676;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Selection */
::selection { background: var(--accent); color: var(--bg); }
::-moz-selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* --- Grid Background --- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(#ffffff07 1px, transparent 1px),
    linear-gradient(90deg, #ffffff07 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* --- Container with side borders --- */
.site-container {
  max-width: var(--max-w);
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 100vh;
  position: relative;
}

/* --- Fade-up animation --- */
.fu {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fu.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 56px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-brand .brand-square {
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-dim);
  padding: 18px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border: 1px solid var(--border);
  border-top: none;
  background: var(--bg);
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: color .2s;
}

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

/* ============================================
   SECTION PRIMITIVES
   ============================================ */
.sec {
  border-bottom: 1px solid var(--border);
  padding: 48px;
}

.sec-label {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 16px;
}

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

.sec-head-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: .04em;
}

.sec-head-right {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}

.sec-head-right a {
  color: var(--accent);
  transition: color .2s;
}
.sec-head-right a:hover {
  color: var(--accent-hover);
}

/* Big heading */
.big-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

/* ============================================
   HOME — HERO
   ============================================ */
.hero {
  border-bottom: 1px solid var(--border);
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-left .hero-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 20px;
}

.hero-left .hero-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(52px, 8vw, 98px);
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-left .hero-desc {
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 520px;
}

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

.hero-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
  padding: 6px 14px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-accent {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background .2s;
  display: inline-block;
  border-radius: 0;
}
.btn-accent:hover { background: var(--accent-hover); }

.btn-outline {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  display: inline-block;
  border-radius: 0;
}
.btn-outline:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--border-mid);
}

/* Avatar box */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-frame {
  position: relative;
  width: 300px;
  height: 300px;
  border: 1px solid var(--border);
  background: radial-gradient(var(--bg-alt2) 1px, transparent 1px);
  background-size: 18px 18px;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* Corner marks */
.avatar-frame::before,
.avatar-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 2;
}

.avatar-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.avatar-frame::after {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.avatar-corner-bl {
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  z-index: 2;
}
.avatar-corner-br {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  z-index: 2;
}

/* ============================================
   HOME — STATUS STRIP
   ============================================ */
.status-strip {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .02em;
  gap: 16px;
  flex-wrap: wrap;
}

.status-strip-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  display: inline-block;
  animation: pulse 2s infinite;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ============================================
   HOME — SKILLS
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.skills-col {
  border-right: 1px solid var(--border);
  padding: 0 32px;
}
.skills-col:first-child { padding-left: 0; }
.skills-col:last-child { border-right: none; padding-right: 0; }

.skills-col-head {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0;
}

.skill-item {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-item:first-of-type { border-top: none; }

.skill-item .tree {
  color: var(--text-dark);
  font-size: 14px;
}

/* ============================================
   HOME — LATEST POSTS
   ============================================ */
.post-row {
  display: grid;
  grid-template-columns: 130px 1fr 160px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  transition: background .2s;
  text-decoration: none;
  color: inherit;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.post-row:first-child { border-top: none; }
.post-row:hover { background: var(--bg-hover); }

.post-row-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.post-row-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: color .2s;
}
.post-row:hover .post-row-title { color: var(--accent); }

.post-row-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-align: center;
  justify-self: end;
  white-space: nowrap;
}

/* ============================================
   HOME — CTA GRID
   ============================================ */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.cta-card {
  padding: 48px;
  border-right: 1px solid var(--border);
  transition: background .2s;
  display: block;
}
.cta-card:last-child { border-right: none; }
.cta-card:hover { background: var(--bg-hover); }

.cta-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-vdim);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.cta-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.cta-card-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.exp-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
}
.exp-row:first-child { border-top: none; }

.exp-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.exp-type-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 3px 8px;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 6px;
}

.exp-right h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 4px;
}

.exp-right .exp-company {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.exp-right p {
  color: var(--text-body);
  font-size: 15px;
  margin-top: 8px;
  line-height: 1.6;
}

/* Education / Certs 2-col */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.split-col {
  padding-right: 32px;
}
.split-col:last-child {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid var(--border);
}

.split-col .sec-head-tag {
  margin-bottom: 16px;
}

.edu-row, .cert-row {
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
}
.edu-row:first-of-type, .cert-row:first-of-type { border-top: none; }

.edu-row h4, .cert-row h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

.edu-row .edu-school, .cert-row .cert-issuer {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.degree-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
  padding: 2px 8px;
  text-transform: uppercase;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

.cert-check {
  color: var(--green);
  margin-right: 6px;
}

/* Blog blurb card */
.blog-blurb {
  display: block;
  padding: 48px;
  transition: background .2s;
}
.blog-blurb:hover { background: var(--bg-hover); }

.blog-blurb .blurb-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.blog-blurb h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 12px;
}

.blog-blurb p {
  color: var(--text-body);
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 600px;
}

.blog-blurb .blurb-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ============================================
   BLOG LISTING
   ============================================ */
.blog-header {
  border-bottom: 1px solid var(--border);
  padding: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.blog-header-right {
  color: var(--text-body);
  font-size: 15px;
  max-width: 400px;
  text-align: right;
  line-height: 1.6;
}

.count-strip {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 12px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-vdim);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.blog-row {
  display: grid;
  grid-template-columns: 54px 120px 1fr 150px;
  gap: 16px;
  align-items: center;
  padding: 18px 48px;
  border-top: 1px solid var(--border-subtle);
  transition: background .2s;
  text-decoration: none;
  color: inherit;
}
.blog-row:first-child { border-top: none; }
.blog-row:hover { background: var(--bg-hover); }

.blog-row-idx {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 700;
}

.blog-row-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.blog-row-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-row-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: color .2s;
}
.blog-row:hover .blog-row-title { color: var(--accent); }

.blog-row-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.blog-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.blog-row-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}

.blog-row-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-vdim);
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.project-card {
  padding: 40px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.project-card:nth-child(2n) { border-right: none; }
.project-card:hover { background: var(--bg-hover); }

.project-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--border);
  margin-bottom: 12px;
}

.project-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: .02em;
  display: inline-block;
  margin-bottom: 16px;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 27px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.project-card p {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.project-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .2s;
}
.project-link:hover { color: var(--accent-hover); }

.github-strip {
  border-bottom: 1px solid var(--border);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.github-strip a {
  color: var(--accent);
  transition: color .2s;
}
.github-strip a:hover { color: var(--accent-hover); }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.contact-card {
  padding: 40px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background .2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  position: relative;
}
.contact-card:nth-child(2n) { border-right: none; }
.contact-card:hover { background: var(--bg-hover); }

.contact-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-card-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.contact-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dark);
}

.contact-card-arrow {
  font-size: 18px;
  color: var(--text-dim);
  transition: color .2s, transform .2s;
}
.contact-card:hover .contact-card-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.contact-card-bottom {}

.contact-card-handle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-card-detail {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   POST TEMPLATE
   ============================================ */
.post-header-section {
  border-bottom: 1px solid var(--border);
  padding: 64px 48px 48px;
}

.post-header-section .post-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 16px;
}

.post-header-section h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.post-meta-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.post-meta-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.post-meta-read {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-vdim);
  text-transform: uppercase;
}

/* Post content */
.post-content {
  padding: 48px;
  border-bottom: 1px solid var(--border);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  margin-top: 2em;
  margin-bottom: .75em;
  line-height: 1.2;
}

.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 22px; }
.post-content h4 { font-size: 18px; }

.post-content p {
  margin-bottom: 1.25em;
  line-height: 1.75;
  font-size: 16px;
}

.post-content a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-border);
  transition: border-color .2s;
}
.post-content a:hover {
  border-bottom-color: var(--accent);
}

.post-content ul, .post-content ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li {
  margin-bottom: .5em;
  line-height: 1.7;
}

.post-content img {
  border: 1px solid var(--border);
  margin: 1.5em 0;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 1.5em 0;
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-style: italic;
}
.post-content blockquote p:last-child { margin-bottom: 0; }

.post-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: #1a1a1a;
  color: var(--accent);
  padding: 2px 6px;
  border: 1px solid var(--border-subtle);
}

.post-content pre {
  background: #0d0d0d;
  border: 1px solid var(--border);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.5em 0;
  line-height: 1.6;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}

.post-content th {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-dim);
  border-bottom: 2px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.post-content td {
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 12px;
  color: var(--text-secondary);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

.post-content strong { color: var(--text); }

/* Post nav */
.post-nav {
  padding: 32px 48px;
  border-bottom: 1px solid var(--border);
}

/* ============================================
   PAGE HEADER (generic)
   ============================================ */
.page-header-section {
  border-bottom: 1px solid var(--border);
  padding: 48px;
}

.page-header-section .page-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 16px;
}

.page-header-section h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.page-header-section p {
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.65;
  max-width: 640px;
}

/* ============================================
   RESPONSIVE (< 768px)
   ============================================ */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 32px;
  }

  .hero-left .hero-name {
    font-size: clamp(40px, 12vw, 64px);
  }

  .hero-right {
    order: -1;
  }

  .avatar-frame {
    width: 200px;
    height: 200px;
  }

  .sec { padding: 32px 20px; }

  .status-strip,
  .count-strip {
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .skills-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }
  .skills-col:last-child { border-bottom: none; }

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

  .post-row-cat { justify-self: start; }

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

  .cta-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 32px 20px;
  }
  .cta-card:last-child { border-bottom: none; }

  /* About */
  .exp-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .split-col {
    padding-right: 0;
  }

  .split-col:last-child {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 8px;
  }

  /* Blog */
  .blog-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 20px;
  }

  .blog-header-right { text-align: left; }

  .blog-row {
    grid-template-columns: 1fr;
    padding: 16px 20px;
    gap: 6px;
  }

  .blog-row-idx { display: none; }
  .blog-row-meta { align-items: flex-start; }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    border-right: none;
    padding: 32px 20px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    border-right: none;
    padding: 32px 20px;
  }

  /* Post */
  .post-header-section { padding: 32px 20px; }
  .post-content { padding: 32px 20px; }
  .post-nav { padding: 24px 20px; }
  .page-header-section { padding: 32px 20px; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
    text-align: center;
  }

  .blog-blurb { padding: 32px 20px; }
  .github-strip { padding: 20px; flex-direction: column; gap: 12px; }
}

/* ============================================
   SYNTAX HIGHLIGHTING (Rouge)
   ============================================ */
.highlight { position: relative; }
.highlight pre { margin: 0; }

/* Muted dark theme tokens */
.highlight .c,
.highlight .cm,
.highlight .c1,
.highlight .cs { color: #6a6a66; font-style: italic; }
.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kp,
.highlight .kr,
.highlight .kt { color: #ff9100; }
.highlight .s,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .s2,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .s1 { color: #00e676; }
.highlight .na { color: #cfcfca; }
.highlight .nb { color: #b7b7b2; }
.highlight .nc,
.highlight .no { color: #ffa733; }
.highlight .nd { color: #ff9100; }
.highlight .ni { color: #cfcfca; }
.highlight .ne { color: #ff9100; }
.highlight .nf { color: #f5f5f4; }
.highlight .nn { color: #cfcfca; }
.highlight .nt { color: #ff9100; }
.highlight .nv,
.highlight .vi,
.highlight .vg,
.highlight .vc { color: #cfcfca; }
.highlight .o,
.highlight .ow { color: #9a9a95; }
.highlight .p { color: #b7b7b2; }
.highlight .m,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo { color: #ffa733; }
.highlight .err { color: #ff5252; }
