/* ============================================================
   Latent Space — main.css
   Design system: Birch & Frost (Nordic Minimalist — warm light)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Birch & Frost — warm parchment base, cold accent */
  --bg:           #f5f0e8;   /* birch bark parchment */
  --surface:      #fdfcf8;   /* near-white */
  --surface-2:    #ece7de;   /* inset warm */
  --border:       #ddd5c6;
  --border-subtle:#e8e2d9;

  --text:         #1a1714;   /* warm near-black, dried ink */
  --text-2:       #6d6560;   /* warm medium gray */
  --text-3:       #b0aaa2;   /* very muted */

  --accent:       #3d6e7e;   /* steel-lake blue — single cold accent */
  --accent-dim:   rgba(61, 110, 126, 0.08);

  /* Section micro-accents — muted, atmospheric */
  --col-ai:       #4e7090;   /* slate blue */
  --col-travel:   #3d7265;   /* cold teal */
  --col-thoughts: #7a6250;   /* warm umber */
  --col-profile:  #5a7050;   /* lichen moss */

  /* Typography */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono:  'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1100px;
  --radius:    4px;
  --radius-lg: 8px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.5em; }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

.nav-logo span { color: var(--text-2); }

.nav-links {
  display: none;
  list-style: none;
  padding: 0;
  gap: 0;
}

.nav-links a {
  display: block;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}

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

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  outline: none;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}

.site-nav.menu-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 56px;
  left: 0; right: 0;
  background: var(--bg);
  padding: 0.75rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-nav.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.site-nav.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 768px) {
  .nav-hamburger { display: none; }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    border-bottom: none;
    padding: 0;
    background: none;
  }
}

/* ============================================================
   Home Layout
   ============================================================ */
.home-hero {
  border-bottom: 1px solid var(--border-subtle);
  padding: 5rem 1.5rem 4rem;
}

.home-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.home-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.home-hero p {
  font-size: 0.9rem;
  color: var(--text-2);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* Section tiles */
.section-tiles {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--border-subtle);
}

.section-tile {
  background: var(--bg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  transition: background .15s;
  position: relative;
}

.section-tile:hover { background: var(--surface); color: inherit; }

.tile-emoji { display: none; } /* hide emojis in nordic style */

.tile-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.section-tile[data-gradient="ai"]       .tile-label { color: var(--col-ai); }
.section-tile[data-gradient="travel"]   .tile-label { color: var(--col-travel); }
.section-tile[data-gradient="thoughts"] .tile-label { color: var(--col-thoughts); }
.section-tile[data-gradient="profile"]  .tile-label { color: var(--col-profile); }

.tile-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.tile-tagline {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 0.15rem;
}

@media (min-width: 768px) {
  .section-tiles { grid-template-columns: repeat(4, 1fr); }
}

/* Recent posts feed */
.home-feed {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.feed-heading {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}

.feed-list {
  display: flex;
  flex-direction: column;
}

.feed-card {
  display: block;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-subtle);
  transition: background .12s;
}

.feed-card:last-child { border-bottom: 1px solid var(--border-subtle); }
.feed-card:hover { color: inherit; }

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

.feed-badge {
  font-size: 0.63rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feed-badge[data-gradient="ai"]       { color: var(--col-ai); }
.feed-badge[data-gradient="travel"]   { color: var(--col-travel); }
.feed-badge[data-gradient="thoughts"] { color: var(--col-thoughts); }

.feed-date { font-size: 0.78rem; color: var(--text-3); }

.feed-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.feed-excerpt {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Section page hero banner
   ============================================================ */
.section-hero {
  padding: 3.5rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-hero-label {
  font-size: 0.63rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-hero[data-gradient="ai"]       .section-hero-label { color: var(--col-ai); }
.section-hero[data-gradient="travel"]   .section-hero-label { color: var(--col-travel); }
.section-hero[data-gradient="thoughts"] .section-hero-label { color: var(--col-thoughts); }
.section-hero[data-gradient="profile"]  .section-hero-label { color: var(--col-profile); }

.section-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-hero p {
  font-size: 0.85rem;
  color: var(--text-2);
  font-family: var(--font-mono);
}

.section-hero-emoji { display: none; } /* hidden in nordic style */

/* ============================================================
   Section page content area
   ============================================================ */
.section-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ============================================================
   AI Zone
   ============================================================ */
.til-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-bottom: 3rem;
  border: 1px solid var(--border-subtle);
  background: var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 768px)  { .til-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .til-grid { grid-template-columns: repeat(3, 1fr); } }

.til-card {
  background: var(--bg);
  padding: 1.25rem;
  display: block;
  transition: background .12s;
}

.til-card::before { display: none; }

.til-card:hover { background: var(--surface); color: inherit; }

.til-label {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--col-ai);
  margin-bottom: 0.5rem;
}

.til-card-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.til-card-date { font-size: 0.73rem; color: var(--text-3); }

.section-sub-heading {
  font-size: 0.63rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}

.post-list { display: flex; flex-direction: column; }

.post-list-card {
  display: block;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-subtle);
  transition: color .12s;
}

.post-list-card:last-child { border-bottom: 1px solid var(--border-subtle); }
.post-list-card:hover { color: inherit; }

.post-list-card-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.post-list-card-date { font-size: 0.75rem; color: var(--text-3); margin-bottom: 0.4rem; }

.post-list-card-excerpt {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Travel page
   ============================================================ */
.travel-placeholder {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-2);
}

.travel-placeholder .placeholder-icon { display: none; }

.travel-placeholder h2 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.travel-placeholder p { font-size: 0.85rem; color: var(--text-2); }

/* World map */
.world-map-section { margin-bottom: 3rem; }

.world-map-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.world-map-container svg {
  width: 100%;
  height: auto;
  display: block;
}

.world-map-container svg .country {
  fill: var(--surface-2);
  stroke: var(--border);
  stroke-width: 0.4px;
  cursor: default;
  transition: fill .15s;
}

.world-map-container svg .country.visited {
  fill: var(--col-travel);
  opacity: 0.85;
  cursor: crosshair;
}

.world-map-container svg .country.visited:hover {
  fill: var(--accent);
  opacity: 1;
}

.map-stats {
  display: flex;
  gap: 2rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
}

.map-stat strong { color: var(--text); }


.visited-summary {
  margin-top: 2rem;
}

.visited-countries-list {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.visited-country-row {
  padding: 0.9rem 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.visited-country-row:last-child { border-bottom: 1px solid var(--border-subtle); }

.visited-country-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.visited-cities-inline {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 0.15rem;
}


.btn-remove-country:hover { color: #e85555; }

/* ============================================================
   Thoughts layout
   ============================================================ */
.thoughts-list { display: flex; flex-direction: column; }

.thought-card {
  display: block;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
  transition: color .12s;
  border-left: none;
  border-image: none;
}

.thought-card:last-child { border-bottom: 1px solid var(--border-subtle); }
.thought-card:hover { color: inherit; }

.thought-card-date {
  font-size: 0.73rem;
  color: var(--text-3);
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
}

.thought-card-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.thought-card-excerpt { font-size: 0.85rem; color: var(--text-2); line-height: 1.65; }

.read-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ============================================================
   Profile / About
   ============================================================ */
.profile-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .profile-layout { grid-template-columns: 200px 1fr; gap: 4rem; }
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.profile-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.profile-name { font-size: 1rem; font-weight: 600; color: var(--text); }

.profile-handle { font-size: 0.78rem; color: var(--text-2); font-family: var(--font-mono); }

.profile-bio-sidebar {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.65;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .12s;
  font-family: var(--font-mono);
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.social-link:hover { color: var(--accent); }

.profile-body h2 {
  font-size: 0.63rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.profile-body h2:first-child { margin-top: 0; }

.profile-bio {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 0;
}

/* Timeline */
.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; }
.timeline::before { display: none; }

.timeline li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
}

.timeline li:last-child { border-bottom: 1px solid var(--border-subtle); }

.timeline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.timeline-content strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.timeline-content span { font-size: 0.78rem; color: var(--text-2); }

/* Skills */
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0; }

.skill-tag {
  padding: 0.2rem 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.73rem;
  color: var(--text-2);
  font-family: var(--font-mono);
}

/* ============================================================
   Post / Article layout
   ============================================================ */
.post-header-band {
  padding: 3rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* All section headers look the same in nordic — differentiated only by label color */
.post-header-band[data-gradient] { background: var(--bg); }

.post-header-inner { max-width: 720px; margin: 0 auto; }

.post-category-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.post-header-band[data-gradient="ai"]       .post-category-badge { color: var(--col-ai); }
.post-header-band[data-gradient="travel"]   .post-category-badge { color: var(--col-travel); }
.post-header-band[data-gradient="thoughts"] .post-category-badge { color: var(--col-thoughts); }
.post-header-band[data-gradient="default"]  .post-category-badge { color: var(--text-3); }

.post-header-band h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.post-meta { font-size: 0.75rem; color: var(--text-3); font-family: var(--font-mono); display: flex; gap: 1rem; flex-wrap: wrap; }

/* TIL card post header */
.post-til-header { max-width: 720px; margin: 2.5rem auto 0; padding: 0 1.5rem; }

.til-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--col-ai);
  margin-bottom: 0.75rem;
}

.post-til-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.post-til-header .post-meta { color: var(--text-3); }

/* Article body */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  font-size: 0.925rem;
  line-height: 1.8;
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.post-body h2 { font-size: 1.2rem; }
.post-body h3 { font-size: 1rem; }
.post-body h4 { font-size: 0.925rem; }

.post-body p { margin-bottom: 1.25rem; color: var(--text-2); }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--text); }
.post-body ul, .post-body ol { margin-bottom: 1.25rem; color: var(--text-2); }
.post-body li { margin-bottom: 0.3rem; }

.post-body blockquote {
  border-left: 2px solid var(--border);
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-2);
  font-style: italic;
}

.post-body img { border-radius: var(--radius); margin: 1.5rem auto; border: 1px solid var(--border); }

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

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.12em 0.4em;
  color: #953800;
}

.post-body pre { margin: 1.5rem 0; border-radius: var(--radius); overflow-x: auto; }
.post-body pre code { background: none; border: none; padding: 0; color: inherit; font-size: 0.85rem; }

.highlight { background: #f6f8fa; border: 1px solid var(--border); border-radius: var(--radius); }
.highlight pre { margin: 0; padding: 1.25em; overflow: auto; font-size: 0.85rem; line-height: 1.65; font-family: var(--font-mono); color: #24292f; }

/* Post footer */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1.5rem 0; max-width: 720px; margin: 0 auto; }
.post-tag { padding: 0.18rem 0.55rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 3px; font-size: 0.72rem; color: var(--text-2); font-family: var(--font-mono); }

/* ============================================================
   Static pages (layout: page)
   ============================================================ */
.page-container { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }

.page-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-body h2 { font-size: 1.1rem; font-weight: 500; color: var(--text); margin-top: 2rem; margin-bottom: 0.75rem; }
.page-body p { margin-bottom: 1.25rem; color: var(--text-2); font-size: 0.925rem; }
.page-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.page-body code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 3px; padding: 0.12em 0.4em; color: var(--col-ai); }
.page-body pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; margin: 1.5rem 0; padding: 1.25em; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.65; color: var(--text-2); }
.page-body pre code { background: none; border: none; padding: 0; color: inherit; }
.page-body ul, .page-body ol { margin-bottom: 1.25rem; padding-left: 1.5em; color: var(--text-2); font-size: 0.925rem; }
.page-body li { margin-bottom: 0.3rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr 1fr; } }

.footer-col-title {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}

.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-3); transition: color .12s; }
.footer-links a:hover { color: var(--text-2); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  font-family: var(--font-mono);
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--text-2); }

/* ============================================================
   Utilities
   ============================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.empty-state { text-align: center; padding: 4rem 1.5rem; color: var(--text-3); font-size: 0.85rem; font-family: var(--font-mono); }

/* ============================================================
   Syntax highlighting — GitHub Light (warm bg variant)
   ============================================================ */
.highlight .hll { background: #fffbdd; }
.highlight .c  { color: #6e7781; font-style: italic; }
.highlight .err { color: #cf222e; }
.highlight .k  { color: #cf222e; font-weight: bold; }
.highlight .o  { color: #24292f; }
.highlight .cm { color: #6e7781; font-style: italic; }
.highlight .cp { color: #6e7781; }
.highlight .c1 { color: #6e7781; font-style: italic; }
.highlight .cs { color: #6e7781; font-style: italic; }
.highlight .gd { color: #82071e; background: #ffebe9; }
.highlight .ge { font-style: italic; }
.highlight .gs { font-weight: bold; }
.highlight .gi { color: #116329; background: #dafbe1; }
.highlight .kc { color: #0550ae; }
.highlight .kd { color: #cf222e; }
.highlight .kn { color: #cf222e; }
.highlight .kp { color: #0550ae; }
.highlight .kr { color: #cf222e; }
.highlight .kt { color: #0550ae; }
.highlight .m  { color: #0550ae; }
.highlight .s  { color: #0a3069; }
.highlight .na { color: #116329; }
.highlight .nb { color: #0550ae; }
.highlight .nc { color: #953800; font-weight: bold; }
.highlight .no { color: #0550ae; }
.highlight .nd { color: #8250df; }
.highlight .ni { color: #24292f; }
.highlight .ne { color: #953800; font-weight: bold; }
.highlight .nf { color: #8250df; }
.highlight .nl { color: #0550ae; }
.highlight .nn { color: #953800; }
.highlight .nt { color: #116329; }
.highlight .nv { color: #24292f; }
.highlight .ow { color: #cf222e; }
.highlight .w  { color: #24292f; }
.highlight .mi { color: #0550ae; }
.highlight .mf { color: #0550ae; }
.highlight .s1 { color: #0a3069; }
.highlight .s2 { color: #0a3069; }
.highlight .se { color: #0550ae; }
.highlight .ss { color: #0a3069; }
.highlight .sr { color: #0a3069; }
.highlight .bp { color: #0550ae; }
