/* =============================================================================
   CHARLES HOLLEMEERSCH — PERSONAL SITE STYLESHEET
   Design: Space-age graphic design. Warm cream palette, bold geometry,
   vermillion accent. Space Grotesk display / DM Sans body.
   ============================================================================= */

/* ─── CUSTOM PROPERTIES ──────────────────────────────────────────────────── */
:root {
  /* Palette */
  --c-bg:           #FAF8F3;   /* warm cream background */
  --c-bg-alt:       #F2EDE2;   /* slightly darker cream for cards */
  --c-surface:      #FFFFFF;
  --c-border:       #E2D9CC;
  --c-border-dark:  #C8B99E;
  --c-text:         #1A1A2A;   /* near-black body text */
  --c-text-2:       #36344A;   /* secondary text */
  --c-text-muted:   #75726C;   /* muted/meta text */
  --c-accent:       #E05E28;   /* space-age vermillion/orange */
  --c-accent-dark:  #B74B1E;
  --c-accent-light: #F9E3D8;
  --c-navy:         #18253E;   /* deep space navy for headings */

  /* Typography */
  --f-display: 'Concert One', system-ui, sans-serif;
  --f-body:    'DM Sans', system-ui, sans-serif;

  /* Type scale */
  --fs-xs:   0.6875rem;  /* 11px */
  --fs-sm:   0.8125rem;  /* 13px */
  --fs-base: 1rem;       /* 16px */
  --fs-md:   1.0625rem;  /* 17px */
  --fs-lg:   1.1875rem;  /* 19px */
  --fs-xl:   1.375rem;   /* 22px */
  --fs-2xl:  1.625rem;   /* 26px */
  --fs-3xl:  2rem;       /* 32px */
  --fs-4xl:  2.625rem;   /* 42px */
  --fs-5xl:  3.5rem;     /* 56px */

  /* Spacing (8px grid) */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --layout-max:  1200px;
  --sidebar-w:   256px;
  --gap:         3rem;
  --header-h:    72px;
  --content-max: 700px;

  /* Radii */
  --r-sm: 3px;
  --r:    6px;
  --r-lg: 12px;

  /* Transitions */
  --t-fast: 140ms ease;
  --t-base: 240ms ease;
  --t-slow: 380ms ease;
}

/* ─── CSS RESET ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--c-accent-dark);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* ─── BASE TYPOGRAPHY ────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-navy);
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--fs-sm);
}

code, kbd {
  font-family: 'Menlo', 'Courier New', Courier, monospace;
  font-size: 0.875em;
  background: var(--c-bg-alt);
  padding: 0.15em 0.4em;
  border-radius: var(--r-sm);
  color: var(--c-accent-dark);
}

pre {
  background: var(--c-navy);
  color: #d8d8e8;
  padding: var(--sp-6);
  border-radius: var(--r);
  overflow-x: auto;
  margin-bottom: var(--sp-6);
  font-size: var(--fs-sm);
  line-height: 1.6;
  tab-size: 2;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

blockquote {
  border-left: 3px solid var(--c-accent);
  padding: var(--sp-3) var(--sp-6);
  margin: var(--sp-8) 0;
  color: var(--c-text-2);
  font-style: italic;
  font-size: var(--fs-lg);
}

blockquote cite {
  display: block;
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-top: var(--sp-2);
}

hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-10) 0;
}

/* ─── LAYOUT UTILITIES ───────────────────────────────────────────────────── */
.container {
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SITE HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: var(--c-bg);
  /* Thin decorative bottom line with accent streak */
  border-bottom: 1px solid var(--c-border);
  /* Subtle radial dot motif — space telemetry aesthetic */
  background-image: radial-gradient(circle, rgba(224,94,40,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--sp-6);
  /* Overlay a semi-transparent cream over the dot pattern for legibility */
  background: linear-gradient(
    to right,
    rgba(250,248,243,0.97) 60%,
    rgba(250,248,243,0.95)
  );
  /* The gradient is on this element's ::after so the header bg dots show */
}

/* ─ Logo ──── */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--c-navy);
  flex-shrink: 0;
  gap: 1px;
}

.site-logo:hover {
  color: var(--c-accent);
}

.logo-first {
  font-family: var(--f-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-last {
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  transition: color var(--t-fast);
}

.site-logo:hover .logo-last {
  color: var(--c-accent);
}

/* ─ Desktop nav ──── */
.site-nav {
  margin-left: auto;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.site-nav > ul > li {
  position: relative;
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--c-accent);
}

.site-nav a.active {
  background: var(--c-accent-light);
}

/* ─ Dropdown ──── */
.has-dropdown {
  position: relative;
}

.dropdown-trigger::after {
  content: '▾';
  font-size: 0.7em;
  opacity: 0.6;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  min-width: 210px;
  box-shadow: 0 12px 32px rgba(24, 37, 62, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--t-base), visibility var(--t-base), transform var(--t-base);
  padding: var(--sp-2) 0;
  z-index: 200;
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 0;
  color: var(--c-text-2);
}

.dropdown-menu a:hover {
  background: var(--c-bg-alt);
  color: var(--c-accent);
}

.dropdown-group {
  padding: var(--sp-2) var(--sp-5) var(--sp-1);
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
  margin-top: var(--sp-1);
  list-style: none;
}

.dropdown-group:first-child {
  border-top: none;
  margin-top: 0;
}

/* ─ Burger button ──── */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}

.burger-btn:hover {
  background: var(--c-accent-light);
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-navy);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(24, 37, 62, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(330px, 88vw);
  background: var(--c-bg);
  padding: var(--sp-5) var(--sp-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  border-left: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.mobile-menu-site-name {
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.05em;
}

.mobile-menu-close {
  font-size: var(--fs-xl);
  color: var(--c-text-muted);
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  line-height: 1;
  transition: color var(--t-fast), background var(--t-fast);
}

.mobile-menu-close:hover {
  color: var(--c-accent);
  background: var(--c-accent-light);
}

.mobile-nav {
  flex: 1;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav li {
  border-bottom: 1px solid var(--c-border);
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a {
  display: block;
  padding: var(--sp-3) 0;
  font-family: var(--f-display);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--c-navy);
  transition: color var(--t-fast);
}

.mobile-nav a:hover {
  color: var(--c-accent);
}

.mobile-nav-group {
  padding: var(--sp-4) 0 var(--sp-2);
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  border-bottom: none !important;
}

.mobile-nav-indent a {
  padding-left: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--c-text-2);
}

.mobile-menu-social {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

.mobile-menu-social a {
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.mobile-menu-social a:hover {
  color: var(--c-surface);
  background: var(--c-accent);
  border-color: var(--c-accent);
}

body.menu-open {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SITE BODY + TWO-COLUMN LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.site-body {
  padding-block: var(--sp-12) var(--sp-20);
}

.site-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE — POST LIST
   ═══════════════════════════════════════════════════════════════════════════ */
.home-header {
  margin-bottom: var(--sp-10);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--c-border);
  position: relative;
}

/* Decorative accent line */
.home-header::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--c-accent);
}

.home-title {
  font-size: var(--fs-4xl);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-3);
}

.home-subtitle {
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
  font-weight: 300;
  max-width: 52ch;
  line-height: 1.6;
}

/* ─ Post cards ──── */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-card {
  padding-block: var(--sp-8);
  border-bottom: 1px solid var(--c-border);
  position: relative;
}

.post-card:first-child {
  padding-top: 0;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}

.post-date {
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* Dot separator between date and tags */
.post-card-meta .post-date::after {
  content: '·';
  margin-left: var(--sp-3);
  opacity: 0.4;
}

.post-card-meta .post-date:only-child::after {
  display: none;
}

.post-tags {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  list-style: none;
}

.post-tag {
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-light);
  padding: 2px 7px;
  border-radius: 2px;
}

.post-card-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: var(--sp-4);
}

.post-card-title a {
  color: var(--c-navy);
  transition: color var(--t-fast);
}

.post-card-title a:hover {
  color: var(--c-accent);
}

.post-card-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-5);
}

.post-card-excerpt {
  font-size: var(--fs-md);
  color: var(--c-text-2);
  line-height: 1.75;
  max-width: 68ch;
  margin-bottom: var(--sp-5);
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  transition: gap var(--t-fast), color var(--t-fast);
}

.post-read-more::after {
  content: '→';
  transition: transform var(--t-fast);
}

.post-read-more:hover {
  color: var(--c-accent-dark);
  gap: var(--sp-3);
}

.post-read-more:hover::after {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   POST ARTICLE PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.post-article {
  max-width: var(--content-max);
}

.post-header {
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--c-border);
  position: relative;
}

/* Orange accent streak under post header */
.post-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--c-accent);
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.post-eyebrow {
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.post-meta-date {
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
}

.post-meta-date::before {
  content: '·';
  margin-right: var(--sp-2);
  opacity: 0.4;
}

.post-title {
  font-size: clamp(var(--fs-2xl), 4.5vw, var(--fs-4xl));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--c-navy);
  margin-bottom: var(--sp-3);
}

.post-description {
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
  font-weight: 300;
  line-height: 1.6;
}

.post-featured-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-10);
}

/* ─── PAGE (static pages) ──── */
.page-article {
  max-width: var(--content-max);
}

.page-header-block {
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--c-border);
  position: relative;
}

.page-header-block::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--c-accent);
}

.page-title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--c-navy);
  margin-bottom: var(--sp-3);
}

.page-description {
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROSE CONTENT (.post-content / .prose)
   ═══════════════════════════════════════════════════════════════════════════ */
.prose {
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--c-text);
}

.prose h1 {
  font-size: var(--fs-3xl);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
}

.prose h2 {
  font-size: var(--fs-2xl);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}

.prose h3 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}

.prose h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
  color: var(--c-accent);
  letter-spacing: 0;
}

.prose p {
  margin-bottom: var(--sp-5);
}

.prose a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-color: var(--c-accent-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast), color var(--t-fast);
}

.prose a:hover {
  color: var(--c-accent-dark);
  text-decoration-color: var(--c-accent-dark);
}

.prose ul {
  list-style: disc;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.prose ol {
  list-style: decimal;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.prose li {
  margin-bottom: var(--sp-2);
  line-height: 1.75;
}

.prose li > ul,
.prose li > ol {
  margin-top: var(--sp-2);
  margin-bottom: 0;
}

.prose img {
  border-radius: var(--r);
  max-width: 100%;
  height: auto;
  margin-block: var(--sp-6);
}

.prose figure {
  margin-block: var(--sp-8);
}

.prose figcaption {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-top: var(--sp-2);
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-6);
}

.prose th,
.prose td {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-border);
  text-align: left;
}

.prose th {
  background: var(--c-bg-alt);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─ Gallery ──── */
.gallery,
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-3);
  margin-block: var(--sp-6);
}

.gallery img,
.image-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--r);
  margin: 0;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.gallery img:hover,
.image-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gallery img,
.image-gallery img {
  cursor: zoom-in;
}

/* ─ Video embed ──── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin-block: var(--sp-6);
  background: var(--c-navy);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─ Post navigation (prev/next) ──── */
.post-footer {
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  color: var(--c-text);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.post-nav-link:hover {
  border-color: var(--c-accent);
  background: var(--c-accent-light);
  color: var(--c-text);
}

.post-nav-next {
  text-align: right;
}

.post-nav-label {
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.post-nav-title {
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.site-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-8));
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.sidebar-widget {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  /* Subtle left accent bar */
  border-left: 3px solid var(--c-accent);
}

.sidebar-label {
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}

.sidebar-group {
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.sidebar-nav li {
  border-bottom: 1px solid var(--c-border);
}

.sidebar-nav li:last-child {
  border-bottom: none;
}

.sidebar-nav a {
  display: block;
  padding: var(--sp-2) 0;
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--c-text-2);
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.sidebar-nav a:hover,
.sidebar-nav a.current {
  color: var(--c-accent);
  padding-left: var(--sp-2);
}

.sidebar-nav a.current {
  font-weight: 600;
}

.sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  list-style: none;
}

.sidebar-posts li {
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}

.sidebar-posts li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-posts a {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-navy);
  line-height: 1.4;
  margin-bottom: var(--sp-1);
  transition: color var(--t-fast);
}

.sidebar-posts a:hover {
  color: var(--c-accent);
}

.sidebar-post-date {
  display: block;
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,0.65);
  padding-block: var(--sp-12);
  /* Subtle grid dot texture */
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--c-navy);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-8);
}

.footer-logo {
  font-family: var(--f-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: white;
  letter-spacing: 0.06em;
  transition: color var(--t-fast);
}

.footer-logo:hover {
  color: var(--c-accent);
}

.footer-tagline {
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: var(--sp-1);
}

.footer-center {
  text-align: center;
}

.footer-copy {
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
}

.footer-right {
  display: flex;
  justify-content: flex-end;
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-family: var(--f-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.footer-social a:hover {
  background: var(--c-accent);
  color: white;
  border-color: var(--c-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.error-page {
  padding-block: var(--sp-24);
  text-align: center;
}

.error-number {
  font-family: var(--f-display);
  font-size: 9rem;
  font-weight: 700;
  color: var(--c-accent);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: calc(-1 * var(--sp-16));
}

.error-title {
  font-size: var(--fs-3xl);
  position: relative;
  z-index: 1;
}

.error-text {
  color: var(--c-text-muted);
  margin-top: var(--sp-4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Large desktop: sidebar narrows */
@media (max-width: 1280px) {
  :root {
    --sidebar-w: 224px;
    --gap: 2.5rem;
  }
}

/* Tablet / small laptop: collapse sidebar & desktop nav, show burger */
@media (max-width: 1024px) {
  .site-nav {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .site-layout {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    display: none;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }
}

/* Medium: tighten up spacing */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }

  .home-title {
    font-size: var(--fs-3xl);
  }

  .post-card-title {
    font-size: var(--fs-xl);
  }
}

/* Mobile */
@media (max-width: 540px) {
  .container {
    padding-inline: var(--sp-4);
  }

  .gallery,
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery img,
  .image-gallery img {
    height: 140px;
  }

  .post-title {
    font-size: var(--fs-2xl);
  }

  .page-title {
    font-size: var(--fs-2xl);
  }

  .error-number {
    font-size: 6rem;
  }
}

/* ─── LIGHTBOX ───────────────────────────────────────────────────────────── */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 10, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lb-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lb-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 5rem);
  max-height: calc(100vh - 5rem);
}

.lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: var(--r);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transition: opacity 180ms ease;
}

.lb-img.lb-loading {
  opacity: 0.3;
}

.lb-caption {
  margin-top: var(--sp-3);
  color: rgba(255,255,255,0.7);
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  text-align: center;
  max-width: 60ch;
}

.lb-counter {
  color: rgba(255,255,255,0.4);
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  margin-top: var(--sp-2);
}

/* Close button */
.lb-close {
  position: fixed;
  top: var(--sp-4);
  right: var(--sp-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast);
  z-index: 9010;
}

.lb-close:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

/* Prev / Next arrows */
.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--t-fast);
  z-index: 9010;
  user-select: none;
}

.lb-prev { left: var(--sp-4); }
.lb-next { right: var(--sp-4); }

.lb-prev:hover,
.lb-next:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.lb-prev.lb-hidden,
.lb-next.lb-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Prose images outside galleries are also clickable */
.prose img:not(.no-lightbox) {
  cursor: zoom-in;
}
