/*
Theme Name: Tramaine Darby
Theme URI: https://tramainedarby.com
Author: Tramaine Darby
Author URI: https://tramainedarby.com
Description: Personal portfolio theme for Tramaine Darby — Senior Engineering Manager at Red Hat.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: portfolio, personal, one-page
Text Domain: tramaine-darby
*/

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

:root {
  --ink: #1a1730;
  --paper: #f8f7fc;
  --cream: #eeecf7;
  --accent: #4a2dbd;
  --accent-mid: #6b4fd4;
  --accent-light: #9b82e8;
  --accent-glow: rgba(74, 45, 189, 0.12);
  --muted: #6e6a82;
  --border: #ddd9f0;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

/* ── NAV ── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 4rem;
  background: rgba(248, 247, 252, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--accent-light);
  flex-shrink: 0;
}

.nav-pronoun {
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.04em;
}

#site-nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* WordPress adds .menu to the ul — target both */
#site-nav .menu,
#site-nav > ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-nav ul a,
#site-nav .menu a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

#site-nav ul a:hover,
#site-nav .menu a:hover { color: var(--accent); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 70px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem;
}

.hero-eyebrow {
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.15s;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.3s;
}

.hero-name em { font-style: italic; color: var(--accent); }

.hero-pronouns {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.38s;
}

.hero-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.35rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.44s;
}

.hero-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.5s;
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 430px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.56s;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.68s;
}

.hero-right {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 4rem 2rem 3rem;
  background: var(--cream);
}

.hero-banner-img {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  filter: saturate(1.1);
}

.hero-banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(238,236,247,0) 40%, var(--cream) 100%);
  pointer-events: none;
}

.hero-photo-wrap {
  position: relative;
  width: 250px;
  height: 250px;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.5s;
  margin-top: 80px;
  flex-shrink: 0;
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px; right: -12px; bottom: -12px;
  border: 2px solid var(--accent);
  z-index: 0;
  border-radius: 3px;
}

.hero-photo-wrap img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  object-position: top;
  position: relative;
  z-index: 1;
  border-radius: 3px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.85s;
}

.hero-stat { text-align: center; }

.hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.hero-stat span {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SHARED ── */
.site-divider { height: 1px; background: var(--border); margin: 0 4rem; }

.site-section { padding: 6rem 4rem; max-width: 1100px; margin: 0 auto; }

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3820a0; transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.about-text p:first-child {
  font-size: 1.12rem;
  color: var(--ink);
  font-weight: 400;
}

.about-highlights { display: flex; flex-direction: column; gap: 1.15rem; }

.highlight-card {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--cream);
  transition: box-shadow 0.2s;
}

.highlight-card:hover { box-shadow: 0 4px 20px var(--accent-glow); }
.highlight-card h4 { font-family: var(--serif); font-size: 1rem; margin-bottom: 0.3rem; }
.highlight-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── SKILLS ── */
.skills-section { background: var(--ink); color: var(--paper); padding: 6rem 4rem; }
.skills-inner { max-width: 1100px; margin: 0 auto; }
.skills-section .section-label { color: var(--accent-light); }
.skills-section .section-label::after { background: #2d2a45; }
.skills-section .section-title { color: var(--paper); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.skill-group h4 {
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2d2a45;
}

.skill-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.skill-tag {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid #2d2a45;
  color: #9d9ab5;
  border-radius: 2px;
  transition: all 0.2s;
}

.skill-tag:hover { border-color: var(--accent-light); color: var(--accent-light); }

/* ── EXPERIENCE ── */
.timeline { margin-top: 3rem; position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  padding-left: 2.5rem;
  padding-bottom: 3rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.timeline-company { font-family: var(--serif); font-size: 1.2rem; }

.timeline-tenure {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-transform: uppercase;
  background: var(--cream);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
}

.timeline-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  font-style: italic;
}

.timeline-roles { margin-bottom: 0.75rem; }

.timeline-role-entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--border);
}

.timeline-role-entry:last-child { border-bottom: none; }

.timeline-role-title { font-size: 0.9rem; color: var(--accent); font-weight: 500; }
.timeline-role-date { font-size: 0.77rem; color: var(--muted); white-space: nowrap; }

.timeline-desc { font-size: 0.9rem; color: var(--muted); max-width: 700px; margin-top: 0.75rem; }
.timeline-desc ul { padding-left: 1.2rem; margin-top: 0.5rem; }
.timeline-desc li { margin-bottom: 0.4rem; line-height: 1.65; }

/* ── EDUCATION ── */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }

.edu-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--cream);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.edu-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.edu-card h4 { font-family: var(--serif); font-size: 1rem; margin-bottom: 0.2rem; }
.edu-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ── THOUGHT LEADERSHIP ── */
.tl-section { background: var(--cream); padding: 6rem 4rem; }
.tl-inner { max-width: 1100px; margin: 0 auto; }

.tl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3rem; }

.tl-card {
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s;
}

.tl-card:hover {
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-2px);
  color: var(--ink);
}

.tl-type { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tl-title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.tl-source { font-size: 0.82rem; color: var(--muted); }
.tl-arrow { font-size: 0.9rem; color: var(--accent-light); margin-top: auto; padding-top: 0.5rem; }

/* ── COMMUNITY ── */
.community-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }

.community-card {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.community-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px var(--accent-glow); }
.community-card h4 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.5rem; }
.community-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ── CONTACT ── */
.contact-section { background: var(--accent); padding: 6rem 4rem; text-align: center; }
.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-section .section-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 1rem; }
.contact-section p { color: rgba(255,255,255,0.82); font-size: 1rem; margin-bottom: 2.5rem; }

.contact-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  border-radius: 3px;
}

.contact-link:hover { background: rgba(255,255,255,0.25); border-color: #fff; color: #fff; }

/* ── FOOTER ── */
#site-footer {
  background: var(--ink);
  color: var(--muted);
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
}

#site-footer a { color: var(--accent-light); text-decoration: none; }

/* ── REVEAL ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ── MOBILE ── */
@media (max-width: 820px) {
  #site-nav { padding: 1rem 1.5rem; }
  #site-nav ul { gap: 1rem; }
  #site-nav ul a { font-size: 0.74rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 3.5rem 1.5rem 2rem; }
  .hero-right { padding: 2rem 1.5rem 3rem; }
  .hero-photo-wrap { margin-top: 50px; width: 200px; height: 200px; }
  .hero-photo-wrap img { width: 200px; height: 200px; }
  .site-section { padding: 4rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .skills-section { padding: 4rem 1.5rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .tl-section { padding: 4rem 1.5rem; }
  .tl-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 4rem 1.5rem; }
  .site-divider { margin: 0 1.5rem; }
  .timeline-role-entry { flex-direction: column; gap: 0.05rem; }
  .timeline-role-date { white-space: normal; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  #site-nav ul { display: none; }
}

/* ════════════════════════════════════
   BLOG — LIST PAGE
════════════════════════════════════ */

.blog-hero {
  background: var(--ink);
  padding: 8rem 4rem 5rem;
  margin-top: 70px;
}

.blog-hero-inner { max-width: 700px; margin: 0 auto; text-align: center; }

.blog-hero .hero-eyebrow {
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
  opacity: 1;
  animation: none;
}

.blog-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--paper);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.blog-hero-desc {
  font-size: 1rem;
  color: #9d9ab5;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 1;
  animation: none;
}

.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 4rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* First post spans full width */
.blog-grid .blog-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.blog-card {
  border: 1px solid var(--border);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}

.blog-card:hover {
  box-shadow: 0 8px 30px var(--accent-glow);
  transform: translateY(-2px);
}

.blog-card-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--cream);
}

.blog-grid .blog-card:first-child .blog-card-thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img { transform: scale(1.03); }

.blog-card-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  min-height: 200px;
}

.blog-card-thumb--placeholder span {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--accent-light);
  font-style: italic;
}

.blog-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.blog-card-date {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.blog-card-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  background: var(--cream);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  transition: background 0.2s;
}

.blog-card-cat:hover { background: var(--accent); color: #fff; }

.blog-card-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.blog-grid .blog-card:first-child .blog-card-title { font-size: 1.7rem; }

.blog-card-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

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

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}

.blog-card-excerpt p { margin: 0; }

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}

.blog-card-link:hover { color: var(--accent-mid); }

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1.5px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 2px;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 6rem 2rem;
}

.blog-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.blog-empty h2 { font-family: var(--serif); font-size: 2rem; margin-bottom: 0.75rem; }
.blog-empty p { color: var(--muted); margin-bottom: 2rem; }

/* ════════════════════════════════════
   BLOG — SINGLE POST
════════════════════════════════════ */

.single-post-page { padding-top: 70px; }

.single-hero {
  background: var(--ink);
  padding: 5rem 4rem 4rem;
}

.single-hero-inner { max-width: 760px; margin: 0 auto; }

.single-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.single-back {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-light);
  text-decoration: none;
  margin-right: 0.5rem;
  transition: color 0.2s;
}

.single-back:hover { color: #fff; }

.single-date {
  font-size: 0.8rem;
  color: #9d9ab5;
}

.single-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--paper);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.single-byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.single-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--accent-light);
  flex-shrink: 0;
}

.single-author {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--paper);
}

.single-read-time {
  font-size: 0.78rem;
  color: #9d9ab5;
}

.single-featured-img {
  max-height: 480px;
  overflow: hidden;
}

.single-featured-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.single-content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 4rem 6rem;
}

.single-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #3a3650;
}

.single-content h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

.single-content h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.single-content p { margin-bottom: 1.5rem; }

.single-content a { color: var(--accent); }
.single-content a:hover { color: var(--accent-mid); }

.single-content ul,
.single-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.single-content li { margin-bottom: 0.5rem; }

.single-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--cream);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
}

.single-content blockquote p { margin: 0; }

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 1.5rem 0;
}

.single-content code {
  background: var(--cream);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  font-size: 0.9em;
  color: var(--accent-mid);
  font-family: monospace;
}

.single-content pre {
  background: var(--ink);
  color: var(--accent-light);
  padding: 1.5rem;
  border-radius: 3px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.single-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Tags */
.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2.5rem 0;
}

.single-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
}

.single-tag:hover { border-color: var(--accent); color: var(--accent); }

/* Post navigation */
.single-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.single-post-nav-prev,
.single-post-nav-next {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--cream);
  transition: border-color 0.2s;
}

.single-post-nav-prev:hover,
.single-post-nav-next:hover { border-color: var(--accent); }

.single-post-nav-next { text-align: right; }

.nav-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.single-post-nav a {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.2s;
}

.single-post-nav a:hover { color: var(--accent); }

/* ── Blog Mobile ── */
@media (max-width: 820px) {
  .blog-hero { padding: 6rem 1.5rem 4rem; }
  .blog-container { padding: 3rem 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .blog-card:first-child { grid-template-columns: 1fr; }
  .blog-grid .blog-card:first-child .blog-card-thumb { min-height: 220px; }
  .single-hero { padding: 4rem 1.5rem 3rem; }
  .single-content-wrap { padding: 3rem 1.5rem 4rem; }
  .single-post-nav { grid-template-columns: 1fr; }
  .single-post-nav-next { text-align: left; }
}

/* ════════════════════════════════════
   MOBILE NAV — HAMBURGER
════════════════════════════════════ */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animate to X when open */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 480px) {
  .nav-toggle { display: flex; }

  #site-nav ul,
  #site-nav .menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 150;
    padding: 5rem 2rem 2rem;
  }

  #site-nav ul.is-open,
  #site-nav .menu.is-open {
    display: flex;
  }

  #site-nav ul li,
  #site-nav .menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  #site-nav ul li:first-child,
  #site-nav .menu li:first-child {
    border-top: 1px solid var(--border);
  }

  #site-nav ul a,
  #site-nav .menu a {
    display: block;
    padding: 1.1rem 1rem;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: var(--ink);
  }

  #site-nav ul a:hover,
  #site-nav .menu a:hover {
    color: var(--accent);
    background: var(--cream);
  }

  /* Keep logo above the overlay */
  .nav-logo { z-index: 200; position: relative; }
  .nav-toggle { z-index: 200; position: relative; }
}
