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

:root {
  --gold: #b8900a;
  --gold-light: #d4a820;
  --gold-pale: #f5e9c0;
  --gold-dark: #7a5f00;
  --black: #0d0d0d;
  --black-soft: #1a1917;
  --bg: #f8f7f4;
  --surface: #ffffff;
  --border: #e5e0d0;
  --border-strong: #c8b87a;
  --text: #1a1917;
  --text-secondary: #6b6760;
  --text-tertiary: #9c998f;
  --mono: 'DM Mono', monospace;
  --serif: 'Fraunces', serif;
  --sans: 'DM Sans', sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(184,144,10,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links li a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  display: block;
}

.nav-links li a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.nav-links li a.active {
  color: var(--gold-light);
  font-weight: 500;
}

.nav-links li a.nav-cta {
  background: var(--gold);
  color: var(--black) !important;
  font-weight: 500;
}

.nav-links li a.nav-cta:hover { opacity: 0.88; }

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(184,144,10,0.2);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo img { height: 36px; width: auto; opacity: 0.85; }

.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ─── UTILITIES ─── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 48px;
}

.section {
  padding: 72px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 48px;
}

.page-header {
  padding: 72px 48px 48px;
  max-width: 800px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 13px 30px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.88; color: var(--black); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 13px 30px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-secondary:hover { background: var(--surface); color: var(--text); }

/* ─── HOME ─── */
.hero {
  padding: 100px 48px 80px;
  max-width: 940px;
  margin: 0 auto;
}

.hero-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero h1 {
    /* font-family: var(--mono); */
    font-size: clamp(46px, 6vw, 72px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: var(--text);
    margin: 0 0 32px;
  }

.hero h1 em {
    font-weight: 300;
    color: var(--text-secondary);
  }

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin: 0 0 20px;
}

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

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.15s;
}

.service-card:hover { background: #fefcf5; }

.service-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdf8ec;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 900px) {
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
@media (max-width: 500px) {
    .services-grid {
    grid-template-columns: 1fr;
    }
}

/* ─── PROCESS ─── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
  margin-top: 16px;
}

.process-step {
  background: var(--surface);
  padding: 32px;
}

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.process-step h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--black);
  color: #fff;
  padding: 44px 48px;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 2px solid var(--gold);
}

.stat-item {
  flex: 1;
  min-width: 150px;
  padding: 0 40px 0 0;
  border-right: 1px solid rgba(184,144,10,0.25);
  margin-right: 40px;
}

.stat-item:last-child { border-right: none; margin-right: 0; }

.stat-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--gold-light);
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}

/* ─── PORTFOLIO ─── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.project-card {
  background: var(--surface);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: background 0.15s;
}

.project-card:hover { background: #fefcf5; }

.project-thumb {
  width: 100%;
  height: 220px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-thumb-placeholder {
  opacity: 0.18;
}

.project-thumb-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}

.project-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid var(--border-strong);
  background: var(--gold-pale);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.project-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.project-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ─── PROJECT PAGE ─── */
.project-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 48px;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.15s;
}

.project-back:hover { color: var(--gold); }

.project-layout h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 12px;
}

.project-hero-img {
  width: 100%;
  max-height: 700px;
  /* object-fit: contain; */
  /* object-position: bottom; */
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 32px 0;
  display: block;
  background: var(--card-bg);
  box-sizing: border-box;
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.spec-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.spec-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.spec-value {
  font-size: 13px;
  color: var(--text);
}

.project-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.project-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--text);
  margin: 40px 0 16px;
}

.project-body p { margin-bottom: 20px; text-align: justify;}

/* ─── BLOG ─── */
.blog-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

.blog-grid {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 48px;
}

.blog-row {
  display: grid;
  grid-template-columns: 120px 1fr 24px;
  align-items: start;
  gap: 32px;
  padding: 32px 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}

.blog-row:last-child { border-bottom: none; }
.blog-row:hover { background: #fefcf5; }

.blog-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.5;
  padding-top: 3px;
}

.blog-row h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-row p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.blog-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  border: 1px solid var(--border-strong);
  background: var(--gold-pale);
  padding: 2px 7px;
  border-radius: 3px;
}

.blog-arrow { color: var(--gold); font-size: 18px; align-self: center; }

/* ─── POST PAGE ─── */
.post-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 48px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.15s;
}

.post-back:hover { color: var(--gold); }

.post-layout h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.post-body { font-size: 16px; line-height: 1.8; color: var(--text-secondary); text-align: justify;}
.post-body p { margin-bottom: 20px; text-align: justify;}
.post-body h2 { font-family: var(--serif); font-size: 24px; font-weight: 300; color: var(--text); margin: 40px 0 16px; }
.post-body h3 { font-size: 18px; font-weight: 500; color: var(--text); margin: 28px 0 12px; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 20px; }
.post-body li { margin-bottom: 6px; }
.post-body code { font-family: var(--mono); font-size: 13px; background: var(--gold-pale); padding: 2px 6px; border-radius: 3px; color: var(--gold-dark); }
.post-body pre { background: var(--black); color: #e8e8e8; padding: 20px 24px; border-radius: 8px; overflow-x: auto; margin-bottom: 20px; }
.post-body pre code { background: none; color: inherit; padding: 0; }

/* ─── CONTACT ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 68px);
}

.contact-left {
  padding: 72px 48px;
  border-right: 1px solid var(--border);
  background: var(--black);
  color: #fff;
}

.contact-left .section-label { color: var(--gold-light); }

.contact-heading {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.25;
  margin-top: 12px;
  color: #fff;
}

.contact-info-items {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}

.contact-right {
  padding: 72px 48px;
  background: var(--bg);
}

.contact-right h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 32px;
}

/* ─── FORMS ─── */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit {
  width: 100%;
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 13px 24px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.15s;
}

.form-submit:hover { opacity: 0.88; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  footer { padding: 28px 20px; flex-direction: column; align-items: flex-start; }
  .hero { padding: 56px 20px 48px; }
  .section { padding: 48px 20px; }
  .divider { margin: 0 20px; }
  .page-header { padding: 48px 20px 32px; }
  .stats-bar { padding: 32px 20px; flex-direction: column; gap: 24px; }
  .stat-item { border-right: none; margin-right: 0; border-bottom: 1px solid rgba(184,144,10,0.2); padding-bottom: 24px; }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-left, .contact-right { padding: 40px 20px; }
  .blog-list { padding: 0 20px 60px; }
  .blog-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 20px; }
  .blog-arrow { display: none; }
  .post-layout, .project-layout { padding: 40px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─── HAMBURGER MENU ─── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
  }
  
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
  }
  
  /* Animate to X when open */
  .nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .nav-hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  @media (max-width: 768px) {
    .nav-hamburger {
      display: flex;
    }
  
    .nav-links {
      display: none;
      position: absolute;
      top: 68px;
      left: 0;
      right: 0;
      background: var(--black);
      border-bottom: 1px solid rgba(184,144,10,0.3);
      flex-direction: column;
      padding: 12px 20px 20px;
      gap: 4px;
      z-index: 100;
    }
  
    .nav-links.open {
      display: flex;
    }
  
    .nav-links li {
      width: 100%;
    }
  
    .nav-links li a {
      display: block;
      padding: 12px 16px;
      width: 100%;
      font-size: 15px;
    }
  
    .nav-links li a.nav-cta {
      margin-top: 8px;
      text-align: center;
    }
  }

.contact-left a {
color: var(--gold-light);
text-decoration: none;
transition: opacity 0.15s;
}
  
.contact-left a:hover {
opacity: 0.75;
}

/* ─── FOOTER SOCIAL ICONS ─── */
.footer-social {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
  }
  
  .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: rgba(255,255,255,0.4);
    transition: color 0.15s, background 0.15s;
  }
  
  .footer-social a:hover {
    color: var(--gold-light);
    background: rgba(184,144,10,0.12);
  }

.service-card[onclick] {
cursor: pointer;
}

.service-card[onclick]:hover {
background: #fefcf5;
transform: translateY(-2px);
transition: transform 0.15s, background 0.15s;
}

/* ─── MARKDOWN styles ─── */
.mbtablestyle {
    border-collapse: collapse;

> table, td, th {
    border: 1px solid rgb(233, 229, 229);
    }
}


/* ─── ABOUT PAGE ─── */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
  
  .about-heading {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 24px;
    margin-top: 12px;
  }
  
  .about-body p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
  }
  
  .about-cta {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
  }
  
  /* Skill list */
  .skill-list {
    list-style: none;
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
  }
  
  .skill-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    transition: background 0.15s;
  }
  
  .skill-list li:last-child { border-bottom: none; }
  .skill-list li:hover { background: #fefcf5; }
  
  .skill-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
  }
  
  .skill-detail {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
  }
  
  /* Sector chips */
  .sector-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }
  
  .sector-chip {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-dark);
    border: 1px solid var(--border-strong);
    background: var(--gold-pale);
    padding: 5px 12px;
    border-radius: 4px;
  }
  
  /* Values grid */
  .values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--border);
  }
  
  .value-card {
    background: var(--surface);
    padding: 32px;
  }
  
  .value-num {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 0.06em;
  }
  
  .value-card h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text);
  }
  
  .value-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .about-layout {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    .values-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (max-width: 500px) {
    .values-grid {
      grid-template-columns: 1fr;
    }
  }


/* ─── POST & PROJECT IMAGES ─── */

/* Full width — spans the whole content column */
.post-body img,
.post-body figure,
.project-body img,
.project-body figure  {
  width: 100%;
  margin: 8px 0;
}

.post-body figure img,
.project-body figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.post-body figcaption, 
.project-body figcaption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* Half width — floats to the right, text wraps around it */
.post-body figure.half,
.project-body figure.half {
  width: 48%;
  float: right;
  margin: 8px 0 24px 32px;
}

/* Small — centred, doesn't fill full width */
.post-body figure.small,
.project-body figure.small {
  width: 60%;
  margin: 32px auto;
}

/* Clear floats after a floated image */
.post-body .clearfix,
.project-body .clearfix {
  clear: both;
}


/* ─── FOOTNOTES ─── */
.post-body .footnotes {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.post-body .footnotes ol {
    padding-left: 20px;
}

.post-body .footnotes li {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.post-body .footnotes li p {
    margin-bottom: 0;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: left;
}

/* The footnote number in the body text */
.post-body sup {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--gold);
    font-weight: 500;
}

.post-body sup a {
    color: var(--gold);
    text-decoration: none;
}

.post-body sup a:hover {
    text-decoration: underline;
}

/* Back arrow link in footnote */
.post-body .footnotes a.reversefootnote {
    color: var(--gold);
    text-decoration: none;
    margin-left: 4px;
}

/* ─── POST SHARE ─── */
.post-share {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.post-share-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 14px;
    text-align: left !important;
}

.post-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.share-btn:hover {
    color: var(--gold-dark);
    border-color: var(--border-strong);
    background: var(--gold-pale);
}

.post-content-wrap {
    display: flex;
    flex-direction: column;
}

.post-content-wrap .post-body {
    display: contents;
}

.post-share {
    order: 99;
    margin-top: 0;
}

.post-body .footnotes {
    order: 100;
    margin-top: 10;
}

h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: 80px;
}

.table-sm table {
    font-size: 0.85rem;
}

.table-sm table code {
    font-size: 0.7rem;
}

a {
  color: var(--gold);
}

a:hover {
  color: #d4a012;
}