/*
Theme Name: Personal Blog
Theme URI: https://github.com/Thommi/PersonalBlog2
Author: Thommi
Description: A custom WordPress theme for PersonalBlog2.
Version: 0.5.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: personalblog
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; cursor: pointer; color: inherit; }

/* ─── Accessibility: visible focus ring for keyboard users only ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Skip-link target receives programmatic focus; suppress the outline there. */
main[tabindex="-1"]:focus { outline: none; }

/* ─── Skip-to-content link (visually hidden until focused) ─── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--teal);
  color: #fff;
  padding: 12px 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  z-index: 9999;
  transition: top 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

:root {
  /* Base */
  --bg:        #F9F6F0;
  --surface:   #FFF3E8;
  --white:     #FFFFFF;
  --text:      #2C2C2C;
  --dark:      #2C2C2C;          /* alias, kept for existing styles */
  --muted:     #7A7A7A;
  --subtle:    #7A7A7A;
  --border:    #E2D9CE;

  /* Categories */
  --teal:         #4A9B8E;
  --teal-ink:     #3a8a7e; /* for teal text on light bg — meets WCAG AA 4.5:1 */
  --teal-dark:    #2c6e64; /* hover state — darker than teal-ink for visible feedback */
  --teal-light:   #E8F5F3;
  --teal-soft:    rgba(74,155,142,0.12);
  --rose:         #D4736A;
  --rose-light:   #FDE8E6;
  --red:          #D4736A;       /* alias */
  --red-soft:     rgba(212,115,106,0.12);
  --mustard:      #E8B84B;
  --mustard-dark: #B8860B;
  --mustard-light:#FDF4DC;
  --purple:       #7B5EA7;
  --purple-light: #F3EFF9;
  --purple-soft:  rgba(123,94,167,0.12);

  /* Shadows */
  --shadow-soft:   0 2px 8px rgba(44,44,44,0.06);
  --shadow-card:   0 8px 24px rgba(44,44,44,0.08);
  --shadow-medium: 0 6px 20px rgba(44,44,44,0.10);
  --shadow-teal:   0 6px 20px rgba(74,155,142,0.28);

  /* Layout */
  --gutter: 48px;
}
@media (max-width: 560px) {
  :root { --gutter: 24px; }
}

/* ─── Nav ─── */
.nav {
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 56px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-self: start;
}
.nav-links { justify-self: center; }
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 14px;
}
.nav-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 16px;
  color: var(--dark);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  padding-bottom: 3px;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--dark); }
.nav-links a.active {
  color: var(--dark);
  font-weight: 600;
  border-bottom: 2px solid var(--teal);
}
.nav-contact {
  font-size: 14px;
  color: var(--teal-ink);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s;
}
.nav-contact:hover { color: var(--teal-dark); }

/* ─── Mobile nav: hamburger + drawer ─── */
.nav-burger {
  display: none;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-burger-icon {
  position: relative;
  width: 20px; height: 2px;
  background: var(--dark);
  border-radius: 1px;
  transition: background 0.18s;
}
.nav-burger-icon::before,
.nav-burger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: var(--dark);
  border-radius: 1px;
  transition: transform 0.18s, top 0.18s;
}
.nav-burger-icon::before { top: -6px; }
.nav-burger-icon::after  { top:  6px; }
.nav-burger.is-open .nav-burger-icon { background: transparent; }
.nav-burger.is-open .nav-burger-icon::before { top: 0; transform: rotate(45deg); }
.nav-burger.is-open .nav-burger-icon::after  { top: 0; transform: rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-medium);
  padding: 16px 24px 24px;
  z-index: 9;
  animation: pb-drawer-in 0.22s ease;
}
@keyframes pb-drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-drawer.is-open { display: block; }
.nav-drawer a {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a.active { color: var(--teal-ink); }
.nav-drawer a.is-contact { color: var(--teal-ink); }

@media (max-width: 720px) {
  .nav {
    padding: 0 24px;
    grid-template-columns: 1fr auto;
  }
  .nav-links, .nav-contact { display: none; }
  .nav-burger { display: flex; }
}

/* ─── Hero ─── */
.hero {
  background: var(--dark);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 75% 50%, rgba(74,155,142,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.hero-eyebrow-line {
  width: 24px; height: 2px;
  background: var(--teal);
  flex-shrink: 0;
}
.hero-eyebrow-text {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--teal);
  text-transform: uppercase;
}
.hero h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.06;
  margin-bottom: 18px;
  max-width: 560px;
}
.hero h1 .name    { color: #fff; }
.hero h1 .accent  { color: var(--teal); }
.hero h1 .dim     { color: rgba(255,255,255,0.3); }
.hero-bio {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.72;
  max-width: 440px;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 13px 28px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost {
  padding: 13px 28px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

/* ─── Content shell ─── */
.content {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Section headers ─── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--teal-ink);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.section-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--dark);
}
.section-link {
  font-size: 13px;
  color: var(--teal-ink);
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-end;
  padding: 6px 4px 6px 8px;
  margin: -6px -4px -6px -8px;
}

/* ─── Empty-state info card (used when post / portfolio is empty) ─── */
.featured-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
}
.featured-card a { color: var(--teal); }

/* ─── Shared card meta + tags ─── */
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cat-badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--teal-soft);
  color: var(--teal-ink);
}
.cat-badge.rose    { background: var(--rose-light);    color: var(--rose); }
.cat-badge.mustard { background: var(--mustard-light); color: var(--mustard-dark); }
.cat-badge.purple  { background: var(--purple-light);  color: var(--purple); }
.meta-dot { color: var(--border); }
.meta-text { font-size: 13px; color: var(--muted); }
.tag-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.tag {
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--muted);
}

/* ─── Shared category label (used on rows + stream rows) ─── */
.cat-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ─── Single portfolio / single post hero (shared) ─── */
.portfolio-single-hero {
  background: var(--dark);
  padding: 56px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
}
.portfolio-single-hero.has-image {
  background-size: cover;
  background-position: center;
}
.portfolio-single-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 75% 50%, rgba(74,155,142,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.portfolio-single-hero.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,44,44,0.92) 0%, rgba(44,44,44,0.62) 60%, rgba(44,44,44,0.45) 100%);
  pointer-events: none;
}
.portfolio-single-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.portfolio-single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.portfolio-single-type {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--teal);
  text-transform: uppercase;
}
.portfolio-single-year {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
}
.portfolio-single-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.portfolio-single-eyebrow-line {
  width: 24px;
  height: 2px;
  background: var(--teal);
}
.portfolio-single-eyebrow-text {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}
.portfolio-single-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.05;
  color: #fff;
  max-width: 720px;
  letter-spacing: -0.01em;
}
.portfolio-single-blurb {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  max-width: 600px;
  margin-top: 22px;
}
.portfolio-single-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px var(--gutter) 80px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--dark);
}
.portfolio-single-body p { margin-bottom: 18px; }
.portfolio-single-body h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 24px;
  margin: 32px 0 14px;
}
.portfolio-single-body h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 24px 0 10px;
}
.portfolio-single-body a { color: var(--teal); text-decoration: underline; }
.portfolio-single-body img,
.portfolio-single-body video,
.portfolio-single-body iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px 0;
  border-radius: 8px;
}
.portfolio-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--teal-ink);
  font-weight: 600;
  padding: 6px 8px;
  margin-left: -8px;
}
.post-tags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* ─── Portfolio single — facts strip ─── */
.portfolio-single-facts {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.portfolio-single-facts-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
}
.portfolio-single-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portfolio-single-fact-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.portfolio-single-fact-value {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

/* ─── Portfolio single — prev/next nav ─── */
.portfolio-single-nav {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.portfolio-single-nav-item {
  display: block;
  padding: 18px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.portfolio-single-nav-item:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.portfolio-single-nav-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.portfolio-single-nav-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.18s;
}
.portfolio-single-nav-item:hover .portfolio-single-nav-title { color: var(--teal); }
.portfolio-single-nav-item.is-next { text-align: right; }
.portfolio-single-nav-item.is-empty { visibility: hidden; }

/* ─── Compact closing variant (used on portfolio single pages) ─── */
.closing.is-compact { padding: 60px 0 68px; margin-top: 80px; }
.closing.is-compact h2 { font-size: clamp(26px, 4.5vw, 32px); line-height: 1.15; margin-bottom: 22px; }

@media (max-width: 720px) {
  .portfolio-single-facts-inner { gap: 24px; padding: 18px 24px; }
  .portfolio-single-nav { grid-template-columns: 1fr; padding: 0 24px; }
  .portfolio-single-nav-item.is-next { text-align: left; }
  .portfolio-single-nav-item.is-empty { display: none; }
}

/* ─── Spacing helpers ─── */
.section { padding: 52px 0 0; }
.section:last-child { padding-bottom: 80px; }

/* ─── Portfolio band (full-bleed cream separator from Writing) ─── */
.portfolio-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.portfolio-band .feature-card,
.portfolio-band .item-row {
  box-shadow: var(--shadow-soft);
}

/* ════════════════════════════════════════════════════════════
   HOME — feature card (50/50 cover + content) and item row
   (with 2-line excerpt). Used by front-page.php for both the
   Writing and Portfolio sections.
   ════════════════════════════════════════════════════════════ */
.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  min-height: 280px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.feature-card .cover-panel { min-height: 220px; }
.feature-card .cover-glyph { font-size: 48px; }
.feature-card .cover-mark  { font-size: 11px; max-width: 280px; }

.feature-card-body {
  padding: 28px 32px;
  display: flex; flex-direction: column;
  justify-content: center;
}
.feature-card .card-meta { margin-bottom: 12px; }
.feature-card h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 22px;
  line-height: 1.3; margin-bottom: 10px;
  color: var(--text);
  transition: color 0.18s;
}
.feature-card:hover h2 { color: var(--teal); }
.feature-card-body p {
  font-size: 14.5px; color: var(--muted);
  line-height: 1.6; margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-card-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.feature-card-arrow {
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 14px;
  color: var(--teal);
  transition: transform 0.18s;
  white-space: nowrap;
}
.feature-card:hover .feature-card-arrow { transform: translateX(4px); }

/* ─── Item rows (replaces .post-row / .portfolio-card pair) ─── */
.item-list {
  display: flex; flex-direction: column; gap: 4px;
}
.item-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: 12px;
  padding: 18px 22px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.item-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.item-row-bar {
  width: 3px;
  border-radius: 2px;
  align-self: stretch;
  min-height: 36px;
}
.item-row-body {
  display: flex; flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.item-row-meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.item-row h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 15px;
  line-height: 1.35;
  color: var(--text);
  transition: color 0.18s;
}
.item-row:hover h3 { color: var(--teal); }
.item-row-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
.item-row-arrow {
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 13px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s, transform 0.18s, color 0.18s;
  align-self: center;
}
.item-row:hover .item-row-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--teal-ink);
}

/* ─── Closing slab (echoes hero) ─── */
.closing {
  background: var(--dark);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.closing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 25% 50%, rgba(74,155,142,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner {
  position: relative; z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.closing-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.closing-eyebrow-line {
  width: 24px; height: 2px;
  background: var(--teal);
}
.closing-eyebrow-text {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em;
  color: var(--teal); text-transform: uppercase;
}
.closing h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 5.5vw, 44px);
  line-height: 1.1;
  max-width: 560px;
  margin-bottom: 18px;
}
.closing h2 .name   { color: #fff; }
.closing h2 .accent { color: var(--teal); }
.closing-bio {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.72;
  max-width: 480px;
  margin-bottom: 28px;
}
.closing-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════
   ABOUT PAGE — Typographic poster (compact)
   Hero is name + eyebrow + meta chips; body uses WP page content
   typography; connect block is a hairline list.
   ════════════════════════════════════════════════════════════ */
.about-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
}
.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.about-eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--teal);
}
.about-eyebrow-text {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--teal-ink);
  text-transform: uppercase;
}
.about-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.about-name .dim { color: var(--border); }
.about-meta {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.about-meta span {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.about-meta strong {
  color: var(--text);
  font-weight: 700;
}

/* Body — reuses the reading typography from portfolio-single-body */
.about-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 44px var(--gutter) 32px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
}
.about-body p { margin-bottom: 18px; }
.about-body h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 24px;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.about-body h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 24px 0 8px;
}
.about-body a {
  color: var(--teal-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-body ul, .about-body ol { margin: 0 0 18px 1.4em; }
.about-body li { margin-bottom: 6px; }
.about-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 8px 0 8px 20px;
  margin: 20px 0;
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
}
.about-body img,
.about-body video,
.about-body iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px 0;
  border-radius: 8px;
}

/* Connect — hairline list of link rows with slide-on-hover */
.about-connect {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px var(--gutter) 80px;
}
.about-connect-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.about-connect-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
}
.about-connect-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.18s, padding 0.18s;
}
.about-connect-row:last-child { border-bottom: none; }
.about-connect-row:hover {
  color: var(--teal-ink);
  padding-left: 6px;
}
.about-connect-handle {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

/* ════════════════════════════════════════════════════════════
   SITE FOOTER — three-column editorial + copyright row
   ════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand-logo .nav-mark {
  width: 28px; height: 28px; font-size: 13px;
}
.footer-brand-logo .nav-name { font-size: 15px; }
.footer-tagline {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links a {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: color 0.18s;
}
.footer-col-links a:hover { color: var(--teal); }
.footer-col-links a .arrow {
  display: inline-block;
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  transition: transform 0.18s, color 0.18s;
}
.footer-col-links a:hover .arrow {
  transform: translate(2px, -2px);
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.footer-back-to-top {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--teal-ink);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px;
  margin: -8px -10px;
}
.footer-back-to-top:hover { color: var(--teal-dark); }

@media (max-width: 720px) {
  .site-footer-inner { padding: 40px 24px 0; }
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 32px;
  }
}

/* ─── Home redesign mobile collapse ─── */
@media (max-width: 720px) {
  .feature-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .feature-card .cover-panel { min-height: 200px; }
  .item-row { grid-template-columns: auto 1fr; }
  .item-row-arrow { display: none; }
}

/* ════════════════════════════════════════════════════════════
   WRITING PAGE  (home.php — posts index)
   ════════════════════════════════════════════════════════════ */

/* ─── Light page header (replaces dark hero for index pages) ─── */
.page-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px var(--gutter) 24px;
}
.page-header-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-header h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.page-header h1 .accent { color: var(--teal); }
.page-header-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.55;
}

/* ─── Filter chips ─── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px var(--gutter) 8px;
}
.filter-token {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.filter-token:hover { border-color: var(--teal); color: var(--teal-ink); }
.filter-token.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* ─── Writing content shell ─── */
.writing-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px var(--gutter) 0;
}

/* ─── Cover panel (shared: featured + stream) ─── */
.cover-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
}
.cover-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 22% 28%, rgba(255,255,255,0.10) 0, transparent 50%),
    radial-gradient(circle at 78% 80%, rgba(0,0,0,0.06) 0, transparent 55%);
  pointer-events: none;
}
.cover-panel.cover-image::before { display: none; }
.cover-glyph {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  line-height: 1;
  position: relative;
}
.cover-mark {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  text-align: center;
  padding: 0 18px;
  position: relative;
}
.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Featured (Writing page variant: 50/50 with cover) ─── */
.writing-featured-section { margin-bottom: 56px; }

.writing-featured {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.writing-featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: var(--teal);
}
.writing-featured .featured-cover { min-height: 100%; }
.writing-featured .featured-cover .cover-glyph { font-size: 56px; }
.writing-featured .featured-cover .cover-mark { font-size: 12px; max-width: 320px; }

.writing-featured-body {
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.writing-featured-body .card-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.writing-featured-body h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 2.4vw, 30px);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
  transition: color 0.18s;
}
.writing-featured:hover .writing-featured-body h2 { color: var(--teal); }
.writing-featured-arrow {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--teal);
  white-space: nowrap;
  transition: transform 0.18s;
}
.writing-featured:hover .writing-featured-arrow { transform: translateX(4px); }
.writing-featured-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 22px;
}
.writing-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ─── Stream rows (cover left, body, read link) ─── */
.stream-section { margin-bottom: 24px; }

.stream-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stream-row {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: stretch;
  gap: 22px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.stream-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--teal);
}
.stream-cover {
  border-radius: 10px;
  min-height: 130px;
}
.stream-cover .cover-glyph { font-size: 26px; }
.stream-cover .cover-mark  { font-size: 10px; padding: 0 12px; }

.stream-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0;
}
.stream-meta {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.stream-cat {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.stream-date {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.stream-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
  transition: color 0.18s;
}
.stream-row:hover .stream-title { color: var(--teal); }
.stream-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stream-row-arrow {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  align-self: center;
  padding-right: 8px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s, transform 0.18s, color 0.18s;
}
.stream-row:hover .stream-row-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--teal);
}

/* ─── Year divider (replaces "// Featured" / "// All posts" eyebrows) ─── */
.year-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0 16px;
  font-family: 'Space Mono', monospace;
}
.year-divider:first-child { margin-top: 8px; }
.year-divider-year {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
}
.year-divider-count {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.year-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 8px;
}
.page-link {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  min-width: 38px; height: 38px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.page-link:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.page-link.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.page-link.dots {
  border: none;
  background: transparent;
}

/* ─── Responsive ─── */
@media (max-width: 820px) {
  .writing-featured {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .writing-featured .featured-cover { min-height: 220px; }
  .stream-row { grid-template-columns: 130px 1fr; }
  .stream-cover { min-height: 110px; }
  .stream-row-arrow { display: none; }
}
@media (max-width: 560px) {
  .writing-featured-body { padding: 24px 22px; }
  .writing-featured-footer { flex-direction: column; align-items: flex-start; }
  .stream-row { grid-template-columns: 1fr; }
  .stream-cover { min-height: 160px; }
}

/* ─── Portfolio Track Timeline ─── */

.tl-empty {
  max-width: 720px;
  margin: 48px auto;
  padding: 32px;
  text-align: center;
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: 16px;
}
.tl-empty p { margin: 0 0 8px; }
.tl-empty-help { color: var(--muted); font-size: 14px; }

.tl-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 24px 56px 8px;
  max-width: 1200px; margin: 0 auto;
  align-items: center;
}
.tl-filters-spacer { flex: 1; }
.tl-scroll-hint {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 8px;
}
.tl-scroll-hint span { color: var(--teal); font-weight: 700; }

.tl-wrap {
  margin-top: 0;
}
.tl-viewport {
  overflow-x: auto;
  overflow-y: visible;
  padding: 16px 56px 60px;
  scroll-behavior: smooth;
  background:
    linear-gradient(to right, rgba(74,155,142,0.03) 0%, transparent 6%, transparent 94%, rgba(74,155,142,0.03) 100%),
    var(--bg);
}
.tl-viewport::-webkit-scrollbar { height: 12px; }
.tl-viewport::-webkit-scrollbar-track {
  background: var(--surface); border-radius: 9999px;
}
.tl-viewport::-webkit-scrollbar-thumb {
  background: var(--teal); border-radius: 9999px;
  border: 3px solid var(--surface);
}

.tl-track {
  position: relative;
  height: 720px;
  padding: 0 60px;
}

.tl-axis {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right,
    transparent 0,
    var(--border) 4%,
    var(--border) 96%,
    transparent 100%);
  border-radius: 2px;
}
.tl-axis::before, .tl-axis::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--teal);
}
.tl-axis::before { left: 4%; }
.tl-axis::after { right: 4%; box-shadow: 0 0 0 6px rgba(74,155,142,0.12); }

.tl-year-tick {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.tl-tick-line {
  width: 2px; height: 16px;
  background: var(--border); border-radius: 1px;
}
.tl-tick-label {
  margin-top: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 13px; font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 6px;
}
.tl-year-tick.is-current .tl-tick-label { color: var(--teal); }

.tl-event {
  position: absolute;
  width: 240px;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center;
  transition: opacity 0.18s;
}
.tl-event.is-hidden { opacity: 0.12; filter: grayscale(1); pointer-events: none; }
.tl-event--above { bottom: 50%; margin-bottom: 28px; flex-direction: column-reverse; }
.tl-event--below { top: 50%; margin-top: 28px; }

.tl-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: block;
  color: inherit;
}
.tl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--tone, var(--teal));
}
.tl-event.is-featured .tl-card {
  border-color: var(--tone, var(--teal));
  box-shadow: 0 8px 24px rgba(44,44,44,0.10);
}

.tl-card-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.tl-cat {
  font-family: 'Space Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px;
  background: var(--tone-light, var(--teal-light));
  color: var(--tone, var(--teal));
}
.tl-date {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.tl-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--text);
}
.tl-card:hover .tl-title { color: var(--tone, var(--teal)); }
.tl-blurb {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tl-connector {
  width: 2px;
  height: 36px;
  background: var(--tone, var(--teal));
  opacity: 0.4;
}
.tl-event--above .tl-connector { background: linear-gradient(to bottom, transparent, var(--tone, var(--teal))); }
.tl-event--below .tl-connector { background: linear-gradient(to top, transparent, var(--tone, var(--teal))); }

.tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--tone, var(--teal));
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--tone, var(--teal));
  position: relative;
  z-index: 2;
}

.tl-milestone-flag {
  position: absolute;
  top: calc(50% - 14px);
  left: 50%;
  transform: translate(-50%, -100%);
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px;
  background: var(--text); color: #fff;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 3;
}

@media (max-width: 720px) {
  .tl-filters { padding-left: 24px; padding-right: 24px; }
  .tl-viewport { padding: 40px 20px 50px; }
  .tl-event { width: 200px; }
}

/* ════════════════════════════════════════════════════════════
   READING PROGRESS BAR — thin teal bar at top of viewport on
   singular post/portfolio pages
   ════════════════════════════════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--teal);
  z-index: 100;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   IMAGE LIGHTBOX — clickable images in reading bodies expand
   into a fullscreen overlay
   ════════════════════════════════════════════════════════════ */
.pb-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.pb-lightbox.is-open { display: flex; }
.pb-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
}
.pb-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.pb-lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* Cursor hint on clickable images */
.portfolio-single-body .wp-block-image img,
.portfolio-single-body .wp-block-gallery img,
.about-body .wp-block-image img,
.about-body .wp-block-gallery img,
.portfolio-single-body > img,
.about-body > img { cursor: zoom-in; }

/* ════════════════════════════════════════════════════════════
   WP NATIVE BLOCKS — styled deliberately for reading bodies
   (gallery, pull quote, quote, code, separator)
   ════════════════════════════════════════════════════════════ */
.portfolio-single-body .wp-block-gallery,
.about-body .wp-block-gallery { margin: 32px 0; }
.portfolio-single-body .wp-block-gallery .wp-block-image,
.about-body .wp-block-gallery .wp-block-image { margin: 0; }
.portfolio-single-body .wp-block-gallery img,
.about-body .wp-block-gallery img {
  border-radius: 8px;
}
.portfolio-single-body .wp-block-image,
.about-body .wp-block-image { margin: 24px 0; }
.portfolio-single-body .wp-block-image img,
.about-body .wp-block-image img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}
.portfolio-single-body .wp-block-image figcaption,
.about-body .wp-block-image figcaption,
.portfolio-single-body .wp-block-gallery figcaption,
.about-body .wp-block-gallery figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.04em;
}

.portfolio-single-body .wp-block-pullquote,
.about-body .wp-block-pullquote {
  border-top: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  padding: 28px 0;
  margin: 36px 0;
  text-align: center;
  background: transparent;
}
.portfolio-single-body .wp-block-pullquote p,
.about-body .wp-block-pullquote p {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}
.portfolio-single-body .wp-block-pullquote cite,
.about-body .wp-block-pullquote cite {
  display: block;
  margin-top: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-style: normal;
  text-transform: uppercase;
}

.portfolio-single-body .wp-block-code,
.about-body .wp-block-code,
.portfolio-single-body pre,
.about-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
}
.portfolio-single-body code,
.about-body code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.92em;
}
.portfolio-single-body pre code,
.about-body pre code {
  background: transparent;
  border: none;
  padding: 0;
}

.portfolio-single-body .wp-block-separator,
.about-body .wp-block-separator,
.portfolio-single-body hr,
.about-body hr {
  border: none;
  border-top: 1px solid var(--border);
  height: 0;
  margin: 36px 0;
}

/* ════════════════════════════════════════════════════════════
   PRINT STYLESHEET — clean, ink-friendly output for articles
   ════════════════════════════════════════════════════════════ */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.55;
    display: block;
  }
  .nav, .nav-drawer, .nav-burger,
  .skip-link, .reading-progress, .pb-lightbox,
  .site-footer, .closing,
  .portfolio-single-nav, .portfolio-back,
  .post-tags, .filter-bar, .pagination,
  .section-link, #greeting-overlay {
    display: none !important;
  }

  .portfolio-single-hero {
    background: #fff !important;
    color: #000 !important;
    min-height: 0;
    padding: 16px 0;
    display: block;
  }
  .portfolio-single-hero::after,
  .portfolio-single-hero.has-image::before { display: none !important; }
  .portfolio-single-hero h1,
  .portfolio-single-eyebrow-text,
  .portfolio-single-blurb,
  .portfolio-single-fact-value { color: #000 !important; }
  .portfolio-single-eyebrow-line { background: #000 !important; }

  .portfolio-single-facts {
    background: #fff !important;
    border-bottom: 1px solid #000;
  }

  .portfolio-single-body, .about-body {
    max-width: 100%;
    padding: 16px 0;
    color: #000;
  }
  .portfolio-single-body img,
  .about-body img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  h1, h2, h3, h4 {
    page-break-after: avoid;
    color: #000 !important;
  }
  a { color: #000; text-decoration: underline; }
  blockquote,
  .portfolio-single-body .wp-block-pullquote,
  .about-body .wp-block-pullquote {
    border-left: 2px solid #000 !important;
    border-top: none !important;
    border-bottom: none !important;
    page-break-inside: avoid;
    padding: 4px 0 4px 16px;
    text-align: left;
  }
}

/* ─── First-visit greeting overlay ─── */
#greeting-overlay { display: none; }
html.pb-first-visit #greeting-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.72s cubic-bezier(.76,0,.24,1),
              opacity   0.72s ease;
}
html.pb-first-visit #greeting-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
  pointer-events: none;
}
#greeting-overlay.hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
body.pb-greeting-lock { overflow: hidden; }

.greeting-wrap { text-align: center; overflow: visible; position: relative; }
.greeting-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.22,1,.36,1);
}
.greeting-text .accent { color: var(--teal); }
.greeting-text.show { opacity: 1; transform: translateY(0); }

.greeting-text .wave {
  display: inline-block;
  transform-origin: 70% 80%;
  will-change: transform;
}
.greeting-text.show .wave {
  animation: pb-wave 1.33s ease-in-out 0.2s 1 both;
}
@keyframes pb-wave {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-18deg); }
  30%  { transform: rotate(20deg); }
  45%  { transform: rotate(-14deg); }
  60%  { transform: rotate(16deg); }
  75%  { transform: rotate(-8deg); }
  100% { transform: rotate(0deg); }
}

.underline-bar {
  display: block;
  margin: 14px auto 0;
  height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--teal), var(--mustard), var(--rose));
  width: 0;
  transition: width 0.6s cubic-bezier(.22,1,.36,1);
}
.underline-bar.show { width: 120px; }
