/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  /* Sky blue palette */
  --sky:        #56C5F8;
  --sky-light:  #BAE6FD;
  --sky-faint:  #F0F9FF;
  --sky-mid:    #38BDF8;
  --sky-dark:   #0284C7;

  /* Anchor — deep ocean */
  --anchor:     #164E63;
  --anchor-mid: #1E6680;
  --anchor-soft:#2E7FA0;

  /* Warm accents */
  --butter:     #FFE66D;
  --butter-ink: #6B5200;
  --sage:       #A7D9B7;
  --sage-ink:   #1E5235;

  /* Neutrals */
  --white:      #FFFFFF;
  --surface:    #F8FCFF;
  --border:     #BAE6FD;
  --border-soft:#E0F2FE;
  --muted:      #5B8FA8;
  --muted-dark: #3D6B82;

  /* Typography */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-gap: 80px;
  --card-radius: 12px;
  --pill-radius: 100px;
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--sky-faint);
  color: var(--anchor);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

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

.fade { opacity: 0; animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fade:nth-child(1) { animation-delay: 0.05s; }
.fade:nth-child(2) { animation-delay: 0.15s; }
.fade:nth-child(3) { animation-delay: 0.25s; }
.fade:nth-child(4) { animation-delay: 0.35s; }
.fade:nth-child(5) { animation-delay: 0.45s; }

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 249, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.site-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.site-name {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--anchor);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-dark);
  padding: 6px 12px;
  border-radius: var(--pill-radius);
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--anchor);
  background: var(--border-soft);
}

nav a.nav-cta {
  color: var(--anchor);
  background: var(--sky-light);
  margin-left: 4px;
}

nav a.nav-cta:hover {
  background: var(--sky);
  color: var(--anchor);
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(86, 197, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--anchor);
  margin-bottom: 32px;
}

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

.hero-bio {
  font-size: 18px;
  line-height: 1.75;
  color: var(--anchor-mid);
  max-width: 640px;
  font-weight: 400;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--pill-radius);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
}

.badge-sky {
  background: var(--sky-faint);
  border-color: var(--sky-light);
  color: var(--anchor);
}

.badge-butter {
  background: rgba(255, 230, 109, 0.15);
  border-color: rgba(255, 230, 109, 0.5);
  color: var(--butter-ink);
}

.badge-sage {
  background: rgba(167, 217, 183, 0.15);
  border-color: rgba(167, 217, 183, 0.5);
  color: var(--sage-ink);
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--pill-radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--anchor);
  background: var(--white);
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.hero-link:hover {
  border-color: var(--sky);
  background: var(--sky-faint);
  color: var(--anchor);
}

/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */
.section {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border-soft);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
}

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--anchor);
  line-height: 1.1;
}

.section-subtitle {
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sky-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s;
}

.section-link:hover {
  color: var(--anchor);
}

/* ─────────────────────────────────────────
   PROJECT CARDS (Ghost post-based)
───────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card-post {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.project-card-post:hover {
  border-color: var(--sky-light);
  box-shadow: 0 8px 32px rgba(86, 197, 248, 0.12);
  transform: translateY(-3px);
}

.project-card-image {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--sky-faint);
  flex-shrink: 0;
  position: relative;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-post:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sky-faint) 0%, rgba(86,197,248,0.08) 100%);
}

.project-card-icon {
  font-size: 28px;
  color: var(--sky-light);
}

.project-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: 8px;
}

.project-card-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.project-card-title a {
  color: var(--anchor);
  transition: color 0.18s;
}

.project-card-title a:hover {
  color: var(--sky-dark);
}

.project-card-excerpt {
  font-size: 14px;
  color: var(--muted-dark);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sky-dark);
  transition: gap 0.18s, color 0.18s;
  margin-top: auto;
}

.project-card-link:hover {
  gap: 8px;
  color: var(--anchor);
}

.section-empty {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  padding: 40px 0;
}

/* ─────────────────────────────────────────
   WRITING / POST LIST
───────────────────────────────────────── */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--border-soft);
  text-decoration: none;
  transition: background 0.18s;
  position: relative;
}

.post-item:last-child {
  border-bottom: 1px solid var(--border-soft);
}

.post-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--sky);
  transition: width 0.18s;
  border-radius: 0 2px 2px 0;
}

.post-item:hover::after {
  width: 3px;
}

.post-item:hover {
  padding-left: 16px;
}

.post-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: 6px;
}

.post-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--anchor);
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.18s;
}

.post-item:hover .post-title {
  color: var(--sky-dark);
}

.post-read-time {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  padding: 4px 10px;
  background: var(--sky-faint);
  border: 1px solid var(--border-soft);
  border-radius: var(--pill-radius);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 13px;
  color: var(--muted);
}

.pagination a {
  font-weight: 600;
  color: var(--sky-dark);
  transition: color 0.18s;
}

.pagination a:hover {
  color: var(--anchor);
}

/* ─────────────────────────────────────────
   PRESS / MEDIA
───────────────────────────────────────── */
.media-intro {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--muted-dark);
  margin-bottom: 28px;
  font-weight: 400;
}

.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.media-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--anchor);
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  letter-spacing: 0.01em;
}

.media-badge:hover {
  border-color: var(--sky);
  background: var(--sky-faint);
  color: var(--sky-dark);
}

.pub-dot {
  width: 6px;
  height: 6px;
  background: var(--sky);
  border-radius: 50%;
  flex-shrink: 0;
}

.ft-context {
  font-size: 14px;
  color: var(--muted-dark);
  line-height: 1.75;
  max-width: 600px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--sky);
  border-radius: 0 8px 8px 0;
}

.ft-context em {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--anchor);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  padding: 48px 0 56px;
}

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

.footer-name {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--anchor);
  margin-bottom: 4px;
  font-weight: 400;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

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

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-dark);
  padding: 6px 12px;
  border-radius: var(--pill-radius);
  transition: color 0.18s, background 0.18s;
}

.footer-links a:hover {
  color: var(--anchor);
  background: var(--border-soft);
}

/* ─────────────────────────────────────────
   POST / PAGE CONTENT
───────────────────────────────────────── */
.post-page {
  padding: 72px 0 96px;
}

.post-content-wrap {
  width: 100%;
}

.post-header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-soft);
}

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: 16px;
}

.post-tag a {
  color: inherit;
  transition: color 0.18s;
}

.post-tag a:hover {
  color: var(--anchor);
}

.post-page-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--anchor);
  margin-bottom: 18px;
}

.post-excerpt {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--muted-dark);
  line-height: 1.5;
  margin-bottom: 20px;
}

.post-page-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.post-page-meta time {
  font-weight: 500;
  color: var(--anchor-mid);
}

.meta-sep {
  color: var(--border);
  font-size: 18px;
  line-height: 1;
}

.post-feature-image {
  margin-bottom: 48px;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.post-feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─────────────────────────────────────────
   GHOST CONTENT TYPOGRAPHY
───────────────────────────────────────── */
.gh-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--anchor);
  font-weight: 400;
  max-width: 760px;
}

.gh-content p { margin-bottom: 1.5em; }

.gh-content h2,
.gh-content h3,
.gh-content h4 {
  font-family: var(--serif);
  color: var(--anchor);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 2.25em 0 0.75em;
  font-weight: 400;
}

.gh-content h2 { font-size: 30px; }
.gh-content h3 { font-size: 24px; }
.gh-content h4 { font-size: 20px; }

.gh-content a {
  color: var(--sky-dark);
  text-decoration: underline;
  text-decoration-color: rgba(86, 197, 248, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s, color 0.18s;
}

.gh-content a:hover {
  color: var(--anchor);
  text-decoration-color: var(--sky);
}

.gh-content blockquote {
  border-left: 3px solid var(--sky);
  padding: 4px 0 4px 24px;
  margin: 2em 0;
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  color: var(--anchor-mid);
  line-height: 1.5;
}

.gh-content code {
  font-family: 'SF Mono', 'Fira Mono', 'Consolas', monospace;
  font-size: 0.85em;
  background: var(--sky-faint);
  border: 1px solid var(--border-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--sky-dark);
}

.gh-content pre {
  background: var(--anchor);
  border-radius: var(--card-radius);
  padding: 24px 28px;
  overflow-x: auto;
  margin: 2em 0;
}

.gh-content pre code {
  background: none;
  border: none;
  color: var(--sky-faint);
  padding: 0;
  font-size: 14px;
  line-height: 1.7;
}

.gh-content ul,
.gh-content ol {
  padding-left: 24px;
  margin-bottom: 1.5em;
}

.gh-content li { margin-bottom: 0.4em; }

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

.gh-content figure { margin: 2.5em 0; }

.gh-content figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.gh-content img {
  border-radius: var(--card-radius);
  border: 1px solid var(--border-soft);
  margin: 1.5em 0;
}

/* ─────────────────────────────────────────
   POST TAGS
───────────────────────────────────────── */
.post-tags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tags-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag-link {
  padding: 4px 12px;
  background: var(--sky-faint);
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--anchor-mid);
  transition: border-color 0.18s, color 0.18s;
}

.tag-link:hover {
  border-color: var(--sky);
  color: var(--anchor);
}

/* Post footer nav */
.post-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-dark);
  transition: color 0.18s;
}

.back-link:hover {
  color: var(--anchor);
}

/* ─────────────────────────────────────────
   GHOST KOENIG CARD WIDTHS (GScan required)
───────────────────────────────────────── */
.kg-width-wide {
  margin-left: calc(50% - 50vw + 48px);
  margin-right: calc(50% - 50vw + 48px);
  width: auto;
  max-width: min(1440px, calc(100vw - 96px));
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

/* ─────────────────────────────────────────
   KOENIG EDITOR CARDS
───────────────────────────────────────── */
.kg-card { margin: 2em 0; }

.kg-image { max-width: 100%; height: auto; border-radius: var(--card-radius); }
.kg-image-card { margin: 2em 0; }
.kg-image-card figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }

.kg-gallery-container { display: flex; flex-direction: column; gap: 4px; margin: 2em 0; }
.kg-gallery-row { display: flex; gap: 4px; }
.kg-gallery-image { flex: 1; min-width: 0; overflow: hidden; border-radius: 6px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.kg-bookmark-card { margin: 2em 0; }
.kg-bookmark-container {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
  transition: border-color 0.18s;
}
.kg-bookmark-container:hover { border-color: var(--sky); }
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-family: var(--serif); font-size: 17px; color: var(--anchor); margin-bottom: 6px; }
.kg-bookmark-description { font-size: 13px; color: var(--muted-dark); line-height: 1.5; }
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.kg-callout-card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--card-radius);
  background: var(--sky-faint);
  border: 1px solid var(--border);
  border-left: 3px solid var(--sky);
  margin: 2em 0;
}
.kg-callout-text { font-size: 15px; line-height: 1.7; color: var(--anchor-mid); }

.kg-toggle-card { margin: 2em 0; border: 1px solid var(--border-soft); border-radius: var(--card-radius); overflow: hidden; }
.kg-toggle-heading { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; font-family: var(--serif); font-size: 18px; color: var(--anchor); background: var(--white); }
.kg-toggle-content { padding: 0 20px 16px; font-size: 15px; color: var(--anchor-mid); line-height: 1.7; background: var(--white); }

.kg-video-card { margin: 2em 0; border-radius: var(--card-radius); overflow: hidden; }
.kg-video-card video { width: 100%; display: block; }

.kg-audio-card { margin: 2em 0; padding: 16px 20px; background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--card-radius); }

.kg-file-card { margin: 2em 0; }
.kg-file-card-container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  text-decoration: none;
  transition: border-color 0.18s;
}
.kg-file-card-container:hover { border-color: var(--sky); }
.kg-file-card-title { font-weight: 500; color: var(--anchor); font-size: 14px; }
.kg-file-card-caption { font-size: 12px; color: var(--muted); }

.kg-header-card { padding: 60px 32px; text-align: center; background: var(--sky-faint); margin: 2em 0; border-radius: var(--card-radius); border: 1px solid var(--border-soft); }
.kg-header-card h2 { font-family: var(--serif); font-size: clamp(28px, 5vw, 48px); font-weight: 400; color: var(--anchor); }

/* ─────────────────────────────────────────
   ERROR PAGE
───────────────────────────────────────── */
.error-page {
  padding: 96px 0;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  :root { --section-gap: 56px; }

  .header-inner { height: 56px; }
  .site-name { display: none; }
  nav a { font-size: 13px; padding: 5px 10px; }
  nav a.nav-cta { display: none; }

  .hero { padding: 64px 0 56px; }
  .hero::before { display: none; }
  .hero-name { margin-bottom: 24px; }
  .hero-bio { font-size: 16px; margin-bottom: 28px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .project-grid { grid-template-columns: 1fr; }

  .post-item { padding: 18px 0; gap: 16px; }
  .post-title { font-size: 18px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { flex-wrap: wrap; }

  .post-page { padding: 48px 0 64px; }
  .gh-content { font-size: 16px; }

  .kg-width-wide {
    margin-left: calc(50% - 50vw + 24px);
    margin-right: calc(50% - 50vw + 24px);
    max-width: calc(100vw - 48px);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  nav { gap: 2px; }
  nav a { padding: 4px 8px; }
  .hero-badges { gap: 6px; }
  .hero-links { gap: 4px; }
  .hero-link { padding: 7px 12px; font-size: 13px; }
  .media-grid { gap: 8px; }
  .media-badge { padding: 7px 14px; font-size: 12px; }
}
