/* ============================================================
   JESSICAJOYHALE THEME — MAIN STYLESHEET
   Six color schemes + page templates + element variations
   ============================================================ */

/* ── COLOR SCHEMES ── */

/* 1. Electric Teal (default) */
:root,
body.scheme-electric-teal {
  --base:     #12141C;
  --surface:  #1C1F2E;
  --surface2: #222638;
  --text:     #E8E8F0;
  --muted:    #9AA4BC;
  --accent:   #40D9D6;
}

/* 2. Soft Teal */
body.scheme-soft-teal {
  --base:     #0E1318;
  --surface:  #162028;
  --surface2: #1E2B36;
  --text:     #E4EEF2;
  --muted:    #8AAAB8;
  --accent:   #40D9D6;
}

/* 3. Gold */
body.scheme-gold {
  --base:     #120F09;
  --surface:  #1E1810;
  --surface2: #272016;
  --text:     #F2EDE8;
  --muted:    #B8A888;
  --accent:   #FFD966;
}

/* 4. Soft Crimson */
body.scheme-soft-crimson {
  --base:     #130D0D;
  --surface:  #1F1515;
  --surface2: #2A1B1B;
  --text:     #F2E8E8;
  --muted:    #B89797;
  --accent:   #FF9090;
}

/* 5. Rose Violet */
body.scheme-rose-violet {
  --base:     #110D1A;
  --surface:  #1C1728;
  --surface2: #251F35;
  --text:     #F0E8F2;
  --muted:    #B097B8;
  --accent:   #D490FF;
}

/* 6. Sage */
body.scheme-sage {
  --base:     #0A120D;
  --surface:  #131D16;
  --surface2: #1A2620;
  --text:     #E8F2EA;
  --muted:    #90A894;
  --accent:   #7ECFA0;
}

/* 7. Blue (Mentis — the mind) */
body.scheme-blue {
  --base:     #0A0F1A;
  --surface:  #121A2A;
  --surface2: #1B2740;
  --text:     #E6ECF7;
  --muted:    #8DA0C6;
  --accent:   #4F9DFF;
}

/* 8. Red (Artifex — the maker) */
body.scheme-red {
  --base:     #150C0C;
  --surface:  #221313;
  --surface2: #2E1A1A;
  --text:     #F7E9E9;
  --muted:    #C49A9A;
  --accent:   #FF5350;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--base);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.8; }

img { max-width: 100%; height: auto; display: block; }

/* ── HEADER + NAV ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

/* Offset below the WordPress admin toolbar when logged in */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Network bar — cross-site navigation */
.net-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem 4rem;
  background: var(--surface);
  border-bottom: 1px solid var(--surface2);
}
.net-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}
.net-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.net-item {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c, var(--accent));
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}
.net-item:hover { opacity: 1; }
.net-item.current { opacity: 1; }

nav.site-nav {
  position: relative;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, var(--base) 60%, transparent);
}

.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-toggle { display: none; }
.mobile-tabbar { display: none; }
ul.nav-links { list-style: none; margin: 0; padding: 0; }
ul.nav-links li { list-style: none; }
ul.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
ul.nav-links a:hover { color: var(--accent); opacity: 1; }

.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-name:hover { color: var(--accent); opacity: 1; }

.nav-links { display: flex; gap: 2rem; align-items: center; }

.nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-link:hover { color: var(--accent); opacity: 1; }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--surface2), transparent);
  margin: 0 4rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   HERO VARIATIONS
   ============================================================ */

/* Hero base */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 6rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-name span { color: var(--accent); }

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 580px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-tagline em { color: var(--text); font-style: normal; }

/* Hero variant 1: Default (centered left, vertical accent line) */
.hero-v1::after {
  content: '';
  position: absolute;
  right: 4rem; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 30vh;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0.4;
}

/* Hero variant 2: Split — name left, tagline right */
.hero-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  min-height: 100vh;
  padding: 8rem 4rem 6rem;
}

.hero-v2 .hero-left { display: flex; flex-direction: column; }
.hero-v2 .hero-right {
  border-left: 1px solid var(--surface2);
  padding-left: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.hero-v2 .hero-eyebrow { margin-bottom: 1rem; }

/* Hero variant 3: Minimal centered */
.hero-v3 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 4rem 6rem;
}

.hero-v3 .hero-name { font-size: clamp(3rem, 10vw, 9rem); }
.hero-v3 .hero-tagline { text-align: center; max-width: 600px; }

.hero-v3::before {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid var(--surface2);
  opacity: 0.3;
  pointer-events: none;
}

/* ============================================================
   INTRO SECTION
   ============================================================ */

.intro {
  padding: 8rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.intro-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.4rem;
  position: sticky;
  top: 6rem;
}

.intro-text p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text);
  margin-bottom: 1.5rem;
}

.intro-text p.large {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.4;
  margin-bottom: 2rem;
}

.intro-text p.muted { color: var(--muted); font-size: 0.95rem; }
.intro-text .accent-line { color: var(--accent); font-style: italic; }

/* ============================================================
   ECOSYSTEM / CARDS
   ============================================================ */

.ecosystem {
  padding: 8rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ecosystem-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-note {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Card Style 1: Grid (default) */
.cards-v1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--surface2);
  border: 1px solid var(--surface2);
}

.cards-v1 .card {
  background: var(--surface);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
  cursor: default;
}

.cards-v1 .card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--accent);
  transition: height 0.4s ease;
}

.cards-v1 .card:hover { background: var(--surface2); }
.cards-v1 .card:hover::before { height: 100%; }

/* Card Style 2: Horizontal list */
.cards-v2 {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--surface2);
  border: 1px solid var(--surface2);
}

.cards-v2 .card {
  background: var(--surface);
  padding: 2rem 3rem;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 3rem;
  transition: background 0.3s ease;
  cursor: default;
}

.cards-v2 .card:hover { background: var(--surface2); }

.cards-v2 .card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s ease;
}

.cards-v2 .card:hover .card-name { color: var(--accent); }

/* Card Style 3: Floating cards */
.cards-v3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cards-v3 .card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 2px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.cards-v3 .card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.cards-v3 .card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.cards-v3 .card:hover::after { transform: scaleX(1); }

/* Shared card elements */
.card-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.card:hover .card-name { color: var(--accent); }

.card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 380px;
}

.card-status {
  margin-top: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
}

.card.active .card-status { color: var(--accent); opacity: 1; }

/* Clickable ecosystem cards (each tinted to its destination site) */
a.card { text-decoration: none; cursor: pointer; }
a.card:hover { opacity: 1; }

/* ============================================================
   SECTION LAYOUT VARIATIONS
   ============================================================ */

/* Section v1: Label left, content right (default) */
.section-v1 {
  padding: 8rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-v1 .section-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

/* Section v2: Full width with top label */
.section-v2 {
  padding: 8rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-v2 .section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--surface2);
}

/* Section v3: Alternating — text + visual side by side */
.section-v3 {
  padding: 6rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-v3 .section-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--surface2);
}

.section-v3 .section-pair:last-child { border-bottom: none; }
.section-v3 .section-pair.reverse { direction: rtl; }
.section-v3 .section-pair.reverse > * { direction: ltr; }

/* ============================================================
   CV SECTION
   ============================================================ */

.cv-section {
  padding: 6rem 4rem 8rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cv-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.cv-text p { color: var(--muted); font-size: 0.9rem; }

.cv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cv-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.cv-link:hover { color: var(--base); opacity: 1; }
.cv-link:hover::before { transform: translateX(0); }

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */

/* ── Blog Index ── */
.page-blog { padding: 8rem 4rem 6rem; max-width: 1200px; margin: 0 auto; }

.page-blog .page-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.page-blog .page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4rem;
  line-height: 1.1;
}

.post-list { display: flex; flex-direction: column; gap: 1px; background: var(--surface2); border: 1px solid var(--surface2); }

.post-item {
  background: var(--surface);
  padding: 2rem 3rem;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 3rem;
  align-items: center;
  transition: background 0.3s ease;
  cursor: pointer;
}

.post-item:hover { background: var(--surface2); }

.post-date {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s ease;
}

.post-item:hover .post-title { color: var(--accent); }
.post-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--surface2);
  white-space: nowrap;
}

/* ── Article index controls (search + filters) ── */
.article-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin: 0 0 2.5rem;
}
.article-search { flex: 1 1 240px; }
.article-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface2);
  color: var(--text);
  padding: 0.7rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.article-search input:focus { border-color: var(--accent); }
.article-search input::placeholder { color: var(--muted); opacity: 0.55; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--surface2);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { color: var(--base); background: var(--accent); border-color: var(--accent); }

/* ── Post item: title + inline tag chips ── */
.post-main { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.post-chip {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--surface2);
  padding: 0.15rem 0.5rem;
}

.no-results { color: var(--muted); padding: 2rem 0; font-size: 0.9rem; }

/* ── Single article: tag links ── */
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.article-tags a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--surface2);
  padding: 0.3rem 0.8rem;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.article-tags a:hover { color: var(--accent); border-color: var(--accent); opacity: 1; }

/* ===========================================================================
   LIFE SITE — books, recipes, fun
   =========================================================================== */

.status-badge {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border: 1px solid var(--surface2);
}
.status-reading { color: var(--accent); border-color: var(--accent); }
.status-finished { color: var(--muted); }

.stars { display: inline-flex; gap: 2px; }
.star { color: var(--surface2); font-size: 1rem; line-height: 1; }
.star.on { color: var(--accent); }

.book-byline { font-family: 'Playfair Display', serif; font-style: italic; color: var(--muted); font-size: 1.1rem; margin-bottom: 1rem; }
.book-rating { margin-bottom: 2rem; }

.recipe-source { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

.callout {
  margin-top: 2.5rem; padding: 1.5rem 1.75rem;
  background: var(--surface); border-left: 2px solid var(--accent);
}
.callout-label {
  display: block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem;
}
.callout p { color: var(--text); font-size: 1rem; line-height: 1.7; margin: 0; }

.reading-section { margin-bottom: 4rem; }
.section-sub {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--text);
  margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--surface2);
}

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.book-card {
  background: var(--surface); border: 1px solid var(--surface2); padding: 1.75rem;
  text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.book-card:hover { transform: translateY(-4px); border-color: var(--accent); opacity: 1; }
.book-card .status-badge { margin-bottom: 0.4rem; }
.back-link { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; }
.back-link:hover { opacity: 0.8; }

/* ===========================================================================
   CV — interactive timeline + publications
   =========================================================================== */
.cv-header .cv-link { margin-top: 1.75rem; }

.timeline { margin-top: 0.5rem; }
.tl-entry { position: relative; padding-left: 2rem; border-left: 1px solid var(--surface2); }
.tl-entry::before {
  content: ''; position: absolute; left: -5px; top: 1.5rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--surface2);
  transition: background 0.3s ease;
}
.tl-entry.open::before { background: var(--accent); }
.tl-head {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: baseline; gap: 1.5rem; padding: 1.25rem 0;
}
.tl-head[disabled] { cursor: default; }
.tl-dates { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--accent); min-width: 130px; flex: none; }
.tl-main { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; min-width: 0; }
.tl-role { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--text); }
.tl-org { font-size: 0.85rem; color: var(--muted); }
.tl-caret { color: var(--muted); font-size: 1.4rem; line-height: 1; flex: none; transition: transform 0.3s ease, color 0.3s ease; }
.tl-entry.open .tl-caret { transform: rotate(45deg); color: var(--accent); }
.tl-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.tl-entry.open .tl-body { max-height: 600px; }
.tl-body-inner { padding: 0 0 1.5rem; }
.tl-body-inner ul { list-style: none; padding: 0; margin: 0; }
.tl-body-inner li { font-size: 0.9rem; color: var(--muted); line-height: 1.6; padding-left: 1rem; position: relative; margin-bottom: 0.35rem; }
.tl-body-inner li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.tl-body-inner p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.75rem; }

.pub-list { display: flex; flex-direction: column; gap: 1px; background: var(--surface2); border: 1px solid var(--surface2); margin-top: 0.5rem; }
.pub-item { background: var(--surface); padding: 1.25rem 1.5rem; display: grid; grid-template-columns: 70px 1fr auto; gap: 1.5rem; align-items: center; }
.pub-year { font-size: 0.8rem; color: var(--muted); }
.pub-main { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.pub-title { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--text); }
.pub-title a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s ease, color 0.2s ease; }
.pub-title a:hover { color: var(--accent); border-bottom-color: var(--accent); opacity: 1; }
.pub-venue { font-size: 0.82rem; color: var(--muted); }
.pub-type { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--surface2); padding: 0.2rem 0.6rem; white-space: nowrap; }

@media (max-width: 700px) {
  .tl-head { flex-direction: column; gap: 0.4rem; }
  .tl-dates { min-width: 0; }
  .tl-caret { position: absolute; right: 0; top: 1.25rem; }
  .pub-item { grid-template-columns: 1fr; gap: 0.5rem; }
}
.book-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--text); margin-bottom: 0.25rem; }
.book-author { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.book-learned { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-top: 0.75rem; }

.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.recipe-card {
  background: var(--surface); border: 1px solid var(--surface2); padding: 1.75rem;
  text-decoration: none; display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.recipe-card:hover { transform: translateY(-4px); border-color: var(--accent); opacity: 1; }
.recipe-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--text); }
.recipe-ex { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.recipe-flag { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }

.fun-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5px; background: var(--surface2); border: 1px solid var(--surface2); }
.fun-card {
  background: var(--surface); padding: 2.5rem; text-decoration: none;
  display: flex; flex-direction: column; gap: 0.5rem; transition: background 0.3s ease;
}
.fun-card:hover { background: var(--surface2); opacity: 1; }
.fun-card-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--text); transition: color 0.3s ease; }
.fun-card:hover .fun-card-title { color: var(--accent); }
.fun-card-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.fun-card-count { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }

.recipe-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.recipe-tagchip {
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--surface2); padding: 0.12rem 0.45rem;
}

/* ── Pagination (client-side filter lists + WordPress archives) ── */
.filter-pagination,
.navigation.pagination .nav-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 3rem;
}
.page-btn, .page-numbers {
  font-size: 0.8rem; letter-spacing: 0.05em; color: var(--muted);
  background: transparent; border: 1px solid var(--surface2); padding: 0.45rem 0.85rem;
  cursor: pointer; text-decoration: none; font-family: 'DM Sans', sans-serif; line-height: 1;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.page-btn:hover, .page-numbers:hover { color: var(--text); border-color: var(--muted); opacity: 1; }
.page-btn.active, .page-numbers.current { color: var(--base); background: var(--accent); border-color: var(--accent); }
.page-btn:disabled { opacity: 0.3; cursor: default; }
.navigation .screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ── Single Post / Article ── */
.page-article {
  padding: 8rem 4rem 6rem;
  max-width: 800px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.article-date {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.article-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 3rem;
}

.article-body { color: var(--text); font-size: 1.1rem; line-height: 1.8; }
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--text); margin: 3rem 0 1rem; }
.article-body h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--text); margin: 2rem 0 0.75rem; }
.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  color: var(--muted);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}
.article-body a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.article-body a:hover { border-bottom-color: var(--accent); opacity: 1; }
.article-body code { font-family: monospace; background: var(--surface); padding: 0.2em 0.4em; font-size: 0.9em; color: var(--accent); }
.article-body pre { background: var(--surface); padding: 1.5rem; overflow-x: auto; margin: 2rem 0; }
.article-body pre code { background: none; padding: 0; }

/* ── About Page ── */
.page-about { padding: 8rem 4rem 6rem; max-width: 1200px; margin: 0 auto; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8rem;
  align-items: start;
}

.about-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.about-name span { color: var(--accent); }

.about-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
}

.about-body p { color: var(--text); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }
.about-body .accent-line { color: var(--accent); font-style: italic; font-family: 'Playfair Display', serif; font-size: 1.2rem; }

.about-skills {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--surface2);
  border: 1px solid var(--surface2);
}

.skill-row {
  background: var(--surface);
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
}

.skill-label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.skill-value { font-size: 0.9rem; color: var(--muted); }

/* ── CV Page ── */
.page-cv { padding: 8rem 4rem 6rem; max-width: 900px; margin: 0 auto; }

.cv-header { margin-bottom: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--surface2); }

.cv-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.cv-tagline { font-size: 1rem; color: var(--muted); margin-bottom: 0; }

.cv-section-title {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

.cv-entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--surface2);
}

.cv-entry:last-child { border-bottom: none; }

.cv-entry-meta { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.cv-entry-meta .dates { color: var(--accent); display: block; margin-bottom: 0.25rem; font-size: 0.75rem; letter-spacing: 0.1em; }
.cv-entry-content h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--text); margin-bottom: 0.25rem; }
.cv-entry-content .org { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.cv-entry-content p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.cv-entry-content ul { list-style: none; padding: 0; }
.cv-entry-content ul li { font-size: 0.9rem; color: var(--muted); line-height: 1.6; padding-left: 1rem; position: relative; margin-bottom: 0.25rem; }
.cv-entry-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

/* ── Portfolio / Work Page ── */
.page-portfolio { padding: 8rem 4rem 6rem; max-width: 1200px; margin: 0 auto; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--surface2);
  border: 1px solid var(--surface2);
  margin-top: 3rem;
}

.portfolio-item {
  background: var(--surface);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  cursor: pointer;
}

.portfolio-item:hover { background: var(--surface2); }

.portfolio-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.portfolio-item:hover::before { transform: scaleX(1); }

.portfolio-tag { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; opacity: 0.7; }
.portfolio-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; transition: color 0.3s ease; }
.portfolio-item:hover .portfolio-title { color: var(--accent); }
.portfolio-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.5rem; }
.portfolio-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stack-tag { font-size: 0.7rem; letter-spacing: 0.1em; padding: 0.2rem 0.6rem; border: 1px solid var(--surface2); color: var(--muted); }

/* ── Contact Page ── */
.page-contact { padding: 8rem 4rem 6rem; max-width: 800px; margin: 0 auto; }

.contact-intro {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.contact-intro span { color: var(--accent); }
.contact-sub { font-size: 1rem; color: var(--muted); margin-bottom: 4rem; line-height: 1.7; }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.form-input,
.form-textarea {
  background: var(--surface);
  border: 1px solid var(--surface2);
  color: var(--text);
  padding: 1rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none;
  resize: vertical;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); opacity: 0.5; }
.form-textarea { min-height: 160px; }

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  align-self: flex-start;
}

.form-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.form-submit:hover { color: var(--base); }
.form-submit:hover::before { transform: translateX(0); }

/* ── Project Showcase Page ── */
.page-showcase { padding: 8rem 4rem 6rem; max-width: 1200px; margin: 0 auto; }

.showcase-hero {
  margin-bottom: 6rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--surface2);
}

.showcase-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.showcase-title span { color: var(--accent); }

.showcase-meta {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.meta-item { display: flex; flex-direction: column; gap: 0.25rem; }
.meta-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.meta-value { font-size: 0.9rem; color: var(--muted); }

.showcase-body { font-size: 1.05rem; color: var(--text); line-height: 1.8; }
.showcase-body p { margin-bottom: 1.5rem; }
.showcase-body h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--text); margin: 3rem 0 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */

footer.site-footer {
  border-top: 1px solid var(--surface2);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-name { font-family: 'Playfair Display', serif; font-size: 0.85rem; color: var(--muted); }
.footer-note { font-size: 0.75rem; color: var(--muted); opacity: 0.4; letter-spacing: 0.05em; }

/* ============================================================
   SCHEME SWITCHER (admin bar area)
   ============================================================ */

.scheme-switcher {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.scheme-switcher-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}

.scheme-dots {
  display: flex;
  gap: 6px;
  background: var(--surface);
  padding: 8px 12px;
  border: 1px solid var(--surface2);
}

.scheme-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.scheme-dot:hover { transform: scale(1.2); }
.scheme-dot.active { border-color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  nav.site-nav { padding: 1.5rem 2rem; }
  .nav-links { gap: 1.25rem; }
  .net-bar { padding: 0.5rem 2rem; }
  .net-links { gap: 1rem; }

  .hero, .hero-v1 { padding: 7rem 2rem 4rem; }
  .hero-v1::after { display: none; }

  .hero-v2 { grid-template-columns: 1fr; gap: 2rem; padding: 7rem 2rem 4rem; }
  .hero-v2 .hero-right { border-left: none; border-top: 1px solid var(--surface2); padding-left: 0; padding-top: 2rem; }

  .hero-v3 { padding: 7rem 2rem 4rem; }

  .divider { margin: 0 2rem; }

  .intro { padding: 5rem 2rem; }
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .intro-label { position: static; }

  .ecosystem { padding: 5rem 2rem; }
  .ecosystem-header { flex-direction: column; gap: 0.5rem; }

  .cards-v1, .cards-v3 { grid-template-columns: 1fr; }
  .cards-v2 .card { grid-template-columns: 1fr; gap: 0.75rem; }

  .cv-section { padding: 4rem 2rem 6rem; flex-direction: column; gap: 2rem; align-items: flex-start; }

  .page-blog, .page-article, .page-about, .page-cv,
  .page-portfolio, .page-contact, .page-showcase { padding: 7rem 2rem 4rem; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cv-entry { grid-template-columns: 1fr; gap: 0.5rem; }
  .post-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .portfolio-grid { grid-template-columns: 1fr; }

  .section-v1 .section-inner { grid-template-columns: 1fr; gap: 2rem; }
  .section-v3 .section-pair { grid-template-columns: 1fr; gap: 2rem; }
  .section-v3 .section-pair.reverse { direction: ltr; }

  .showcase-meta { gap: 1.5rem; }

  footer.site-footer { padding: 2rem; flex-direction: column; gap: 1rem; align-items: flex-start; }

  .scheme-switcher { bottom: 1rem; right: 1rem; }
}

@media (max-width: 600px) {
  .net-bar { justify-content: center; }
  .net-label { display: none; }
  .net-links { gap: 0.9rem; justify-content: center; }
}

/* ===========================================================================
   MOBILE (hybrid app feel): hamburger nav + bottom tab bar
   =========================================================================== */
@media (max-width: 768px) {
  /* Bottom tabs replace the top network strip on phones */
  .net-bar { display: none; }

  /* Hamburger button */
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.25rem 0.4rem;
  }
  .nav-toggle::before { content: "\2630"; }
  .site-header.nav-open .nav-toggle::before { content: "\2715"; }
  .nav-toggle:hover { color: var(--accent); }

  /* Page menu becomes a dropdown panel */
  .nav-right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--surface2);
    padding: 0.5rem 0;
  }
  .site-header.nav-open .nav-right { display: block; }
  ul.nav-links { flex-direction: column; gap: 0; align-items: stretch; }
  ul.nav-links li { width: 100%; }
  ul.nav-links a { display: block; padding: 0.9rem 2rem; }

  /* Bottom tab bar */
  .mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--surface);
    border-top: 1px solid var(--surface2);
  }
  .mobile-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0.55rem 0 calc(0.55rem + env(safe-area-inset-bottom, 0px));
    text-decoration: none;
  }
  .mtab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
  .mtab-label { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .mobile-tabbar a.current .mtab-label { color: var(--c, var(--accent)); }
  .mobile-tabbar a.current .mtab-dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--c, var(--accent)); }

  /* Room so content isn't hidden behind the fixed tab bar */
  body { padding-bottom: 72px; }
}
