/*
Theme Name: Work Insight Hub
Theme URI: https://workinsighthub.com
Author: Work Insight Hub
Author URI: https://workinsighthub.com
Description: A dark, editorial WordPress theme with an animated 3D ambient background, a mega-menu built from your categories, an optional top bar, and five distinct auto-rotating category layouts (cover grid, split rail, bento overlay, editorial rows, connected timeline). Fully controllable from Appearance → Customize.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: work-insight-hub
*/

:root {
  --void: #0A0B0D;
  --surface: #131418;
  --surface2: #1B1D22;
  --line: #26282E;
  --ink: #F5F4F0;
  --muted: #8D9096;
  --teal: #4FE8C8;
  --violet: #A78BFA;
  --pink: #F472B6;
  --amber: #FBBF24;
  --sky: #60A5FA;
  --header-h: 90px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.font-display { font-family: 'Fraunces', serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- ambient bg ---------- */
#canvas-wrap { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#canvas-wrap canvas { display: block; width: 100%; height: 100%; }
.vignette {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,11,13,0.2), rgba(10,11,13,0.85) 58%, var(--void) 100%);
}

/* ---------- top wrapper (topbar + header), fixed as one unit ---------- */
#site-topwrap { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 9px 40px; background: var(--surface); border-bottom: 1px solid var(--line);
  font-size: 0.78rem; color: var(--muted); flex-wrap: wrap;
}
.topbar .topbar-text { color: var(--muted); }
.topbar .topbar-cats { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar .topbar-cats a { color: var(--muted); text-decoration: none; transition: color .2s; }
.topbar .topbar-cats a:hover { color: var(--teal); }
@media (max-width: 900px) { .topbar { padding: 8px 20px; } .topbar .topbar-cats { display: none; } }

/* ---------- Header ---------- */
header#siteHeader {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  background: rgba(10,11,13,0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
header#siteHeader.scrolled { border-color: var(--line); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .wordmark { font-family: 'Fraunces', serif; font-size: 1.28rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand .wordmark .accent { color: var(--teal); }
.brand img.custom-logo { max-height: 34px; width: auto; }

nav.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a.nav-link {
  background: none; border: none; color: var(--muted); font-family: inherit;
  font-size: 0.9rem; padding: 10px 4px 10px 14px; cursor: pointer; transition: color .2s;
  text-decoration: none;
}
.nav-item > a.nav-link:hover, .nav-item.open > a.nav-link { color: var(--ink); }
.nav-item > button.caret-btn {
  background: none; border: none; color: var(--muted); padding: 10px 12px 10px 4px; cursor: pointer;
  display: flex; align-items: center;
}
.nav-item > button.caret-btn .caret { font-size: 0.6rem; transition: transform .25s; opacity: 0.6; }
.nav-item.open > button.caret-btn .caret { transform: rotate(180deg); }

.mega-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-8px);
  width: 240px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 0;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
.nav-item.open .mega-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-panel a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; color: var(--muted); text-decoration: none; font-size: 0.85rem;
  transition: color .2s, background .2s;
  border-left: 2px solid transparent;
}
.mega-panel a:hover { color: var(--ink); background: rgba(79,232,200,0.06); border-left-color: var(--teal); }
.mega-panel a::after { content: '→'; opacity: 0; transform: translateX(-4px); transition: all .2s; color: var(--teal); }
.mega-panel a:hover::after { opacity: 1; transform: translateX(0); }

.contact-btn {
  display: flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 8px; font-size: 0.85rem; text-decoration: none;
  transition: border-color .25s, background .25s;
}
.contact-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.contact-btn:hover { border-color: var(--teal); background: rgba(79,232,200,0.06); }

.mobile-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; background: var(--surface2); border-bottom: 1px solid var(--line); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 20px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.mobile-nav a:hover { color: var(--ink); }
@media (max-width: 980px) {
  nav.main-nav, .contact-btn { display: none; }
  .mobile-toggle { display: block; }
}

main { position: relative; z-index: 10; }
.page-offset { padding-top: calc(var(--header-h) + 40px); }

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 100px 40px 0; overflow: hidden; }
.hero { padding-top: calc(var(--header-h) + 60px); }

.aurora { position: absolute; inset: 0; z-index: 0; filter: blur(70px); opacity: 0.55; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora .a1 { width: 420px; height: 420px; background: var(--teal); top: -80px; right: 8%; animation: drift1 16s ease-in-out infinite; }
.aurora .a2 { width: 380px; height: 380px; background: var(--violet); top: 20%; right: 26%; animation: drift2 20s ease-in-out infinite; }
.aurora .a3 { width: 300px; height: 300px; background: var(--pink); bottom: -60px; right: 14%; animation: drift3 18s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px, 30px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -30px); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-20px, -40px); } }

#hero-canvas-wrap { position: absolute; inset: 0; z-index: 1; }
#hero-canvas-wrap canvas { width: 100%; height: 100%; display: block; }

.hero-content { position: relative; z-index: 2; }
.kicker { color: var(--teal); font-size: 0.9rem; margin-bottom: 24px; opacity: 0; letter-spacing: 0.02em; }
.hero h1 { font-family: 'Fraunces', serif; font-size: clamp(2.4rem, 6.2vw, 5.2rem); line-height: 0.95; max-width: 900px; }
.hero h1 .line { display: block; opacity: 0; }
.hero h1 .muted { color: var(--muted); }
.hero-sub { margin-top: 28px; max-width: 460px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; opacity: 0; }
.hero-scroll-cue { position: absolute; bottom: 42px; left: 40px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.75rem; opacity: 0; z-index: 2; }
.hero-scroll-cue .line-el { width: 32px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll-cue .line-el::after { content: ''; position: absolute; left: -100%; top: 0; width: 100%; height: 100%; background: var(--teal); animation: cueline 2.2s ease-in-out infinite; }
@keyframes cueline { 0% { left: -100%; } 50% { left: 0; } 100% { left: 100%; } }

/* ---------- Category section shared wrapper ---------- */
.category-section { padding: 120px 40px 20px; position: relative; }
.cat-head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 24px; margin-bottom: 48px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cat-head .cat-index { font-family: 'Fraunces', serif; color: var(--accent, var(--teal)); font-size: 1rem; }
.cat-head h2 { font-family: 'Fraunces', serif; font-size: 2rem; }
.cat-head h2 a { text-decoration: none; }
.cat-head .cat-desc { color: var(--muted); font-size: 0.9rem; margin-left: auto; max-width: 320px; text-align: right; }
.cat-head .cat-style-tag { font-size: 0.68rem; color: var(--accent, var(--violet)); border: 1px solid var(--accent, var(--violet)); opacity: 0.85; border-radius: 999px; padding: 4px 10px; margin-left: 8px; }

.cat-more { display: flex; justify-content: center; margin-top: 48px; }
.see-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent, var(--teal)); border: 1px solid var(--accent, var(--teal));
  border-radius: 999px; padding: 10px 22px; font-size: 0.85rem; text-decoration: none;
  transition: background .25s, color .25s, transform .2s;
}
.see-more-btn .arrow { transition: transform .2s; }
.see-more-btn:hover { background: var(--accent, var(--teal)); color: var(--void); transform: translateY(-2px); }
.see-more-btn:hover .arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  header#siteHeader { padding: 14px 20px; }
  .hero, .category-section { padding-left: 20px; padding-right: 20px; }
  .cat-head { flex-wrap: wrap; }
  .cat-head .cat-desc { text-align: left; margin-left: 0; }
}

/* shared bits */
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 0.78rem; font-weight: 600; color: #0A0B0D;
  border: 2px solid var(--void); background-size: cover; background-position: center; overflow: hidden;
}
.byline { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--muted); }
.byline .author-name { color: var(--ink); font-weight: 500; }
.byline .sep { opacity: 0.5; }
.tag-chip { font-size: 0.68rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); display: inline-block; }
.tag-chip.solid { background: var(--accent, var(--teal)); border-color: transparent; color: #0A0B0D; font-weight: 700; letter-spacing: 0.01em; }

/* ===================================================================
   Layout 1 — "Cover Story Grid"
   =================================================================== */
.cat-layout-grid { position: relative; }
.cat-layout-grid .ghost-num { position: absolute; top: 20px; right: 40px; font-family: 'Fraunces', serif; font-size: 11rem; color: rgba(255,255,255,0.025); line-height: 1; pointer-events: none; z-index: 0; user-select: none; }
.cat-layout-grid .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.cat-layout-grid .card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-decoration: none; opacity: 0; transition: border-color .3s, transform .3s, box-shadow .3s; }
.cat-layout-grid .card:hover { border-color: var(--accent, var(--teal)); transform: translateY(-4px); box-shadow: 0 16px 40px -12px var(--accent, rgba(79,232,200,0.35)); }
.cat-layout-grid .cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background-size: cover; background-position: center; }
.cat-layout-grid .cover .tag-chip { z-index: 2; }
.cat-layout-grid .card-body { padding: 18px 20px 22px; }
.cat-layout-grid .card h3 { font-family: 'Fraunces', serif; font-size: 1.18rem; line-height: 1.3; margin: 12px 0 14px; transition: color .25s; }
.cat-layout-grid .card:hover h3 { color: var(--accent, var(--teal)); }
.cat-layout-grid .card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--accent, var(--teal)); margin-top: 12px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.cat-layout-grid .card:hover .card-cta { opacity: 1; transform: translateX(0); }
@media (max-width: 900px) { .cat-layout-grid .grid { grid-template-columns: 1fr; } .cat-layout-grid .ghost-num { font-size: 6rem; } }

/* ===================================================================
   Layout 2 — "Split Rail Cards"
   =================================================================== */
.cat-layout-rail .rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; margin: 0 -40px; padding-left: 40px; padding-right: 40px; }
.cat-layout-rail .rail::-webkit-scrollbar { height: 6px; }
.cat-layout-rail .rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.cat-layout-rail .card {
  flex: 0 0 360px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 0;
  background: var(--surface2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  text-decoration: none; transition: transform .3s, border-color .3s; opacity: 0;
}
.cat-layout-rail .card:hover { transform: translateY(-6px); border-color: var(--accent, var(--amber)); box-shadow: 0 16px 40px -12px var(--accent, rgba(251,191,36,0.35)); }
.cat-layout-rail .thumb { width: 100%; aspect-ratio: 16/10; flex: 0 0 auto; position: relative; background-size: cover; background-position: center; }
.cat-layout-rail .card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cat-layout-rail .card h3 { font-family: 'Fraunces', serif; font-size: 1.08rem; line-height: 1.28; transition: color .25s; }
.cat-layout-rail .card:hover h3 { color: var(--accent, var(--amber)); }
.cat-layout-rail .card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--accent, var(--amber)); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.cat-layout-rail .card:hover .card-cta { opacity: 1; transform: translateX(0); }
.cat-layout-rail .rail-hint { font-size: 0.75rem; color: var(--muted); margin-top: 14px; }

/* ===================================================================
   Layout 3 — "Bento Overlay Grid"
   =================================================================== */
.cat-layout-bento .bento { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 220px; gap: 16px; }
.cat-layout-bento .b-card {
  position: relative; border-radius: 10px; overflow: hidden; text-decoration: none;
  border: 1px solid var(--line); opacity: 0; transition: transform .3s;
}
.cat-layout-bento .b-card:hover { transform: scale(1.015); }
.cat-layout-bento .b-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.cat-layout-bento .b-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cat-layout-bento .b-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,11,13,0.92) 10%, rgba(10,11,13,0.15) 70%); }
.cat-layout-bento .b-content { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.cat-layout-bento .b-content h3 { font-family: 'Fraunces', serif; font-size: 1.05rem; line-height: 1.25; color: #fff; transition: color .25s; }
.cat-layout-bento .b-card:hover .b-content h3 { color: var(--accent, var(--violet)); }
.cat-layout-bento .b-card:nth-child(1) .b-content h3 { font-size: 1.5rem; }
.cat-layout-bento .b-top { display: flex; justify-content: space-between; align-items: flex-start; }
@media (max-width: 900px) {
  .cat-layout-bento .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .cat-layout-bento .b-card:nth-child(1) { grid-column: span 2; grid-row: span 1; min-height: 240px; }
}

/* ===================================================================
   Layout 4 — "Editorial Thumbnail Rows"
   (Always left-to-right — no mirroring, so it never collides regardless
   of image size or content length.)
   =================================================================== */
.cat-layout-rows .rows { display: flex; flex-direction: column; gap: 18px; }
.cat-layout-rows .row {
  display: flex; align-items: center; gap: 26px; padding: 20px; text-decoration: none; opacity: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s, transform .3s, box-shadow .3s;
}
.cat-layout-rows .row:hover { border-color: var(--accent, var(--pink)); transform: translateY(-3px); box-shadow: 0 16px 40px -16px var(--accent, rgba(244,114,182,0.35)); }
.cat-layout-rows .thumb-wrap { position: relative; flex: 0 0 180px; }
.cat-layout-rows .thumb { width: 180px; height: 130px; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center; }
.cat-layout-rows .thumb-avatar { position: absolute; bottom: -8px; right: -8px; }
.cat-layout-rows .ordinal { font-family: 'Fraunces', serif; font-size: 2.2rem; color: rgba(245,244,240,0.14); flex: 0 0 auto; transition: color .3s; }
.cat-layout-rows .row:hover .ordinal { color: var(--accent, var(--pink)); }
.cat-layout-rows .row-body { flex: 1; min-width: 0; }
.cat-layout-rows .row-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; background: var(--accent, var(--pink)); color: #0A0B0D; border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.cat-layout-rows .row-excerpt { color: var(--muted); font-size: 0.88rem; line-height: 1.5; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-layout-rows .row h3 {
  font-family: 'Fraunces', serif; font-size: 1.4rem; line-height: 1.3; margin-top: 0; transition: color .25s;
  background-image: linear-gradient(var(--accent, var(--pink)), var(--accent, var(--pink))); background-repeat: no-repeat; background-position: left bottom; background-size: 0% 1px; transition: background-size .4s, color .25s; display: inline;
}
.cat-layout-rows .row:hover h3 { background-size: 100% 1px; color: var(--accent, var(--pink)); }
@media (max-width: 900px) {
  .cat-layout-rows .row { gap: 16px; padding: 14px; flex-wrap: wrap; }
  .cat-layout-rows .thumb-wrap { flex: 0 0 110px; }
  .cat-layout-rows .thumb { width: 110px; height: 90px; }
  .cat-layout-rows .ordinal { font-size: 1.5rem; }
  .cat-layout-rows .row-excerpt { display: none; }
}

/* ===================================================================
   Layout 5 — "Connected Timeline"
   (Single-column feed with the connector line and avatar nodes on the
   left — no left/right zig-zag, so cards never overlap at any width.)
   =================================================================== */
.cat-layout-timeline .timeline { position: relative; padding: 20px 0 20px 56px; max-width: 1000px; margin: 0 auto; }
.cat-layout-timeline .timeline::before { content: ''; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.cat-layout-timeline .t-item { position: relative; display: block; margin-bottom: 32px; text-decoration: none; opacity: 0; }
.cat-layout-timeline .t-item .node-avatar { position: absolute; top: 4px; left: -56px; width: 30px; height: 30px; border: 2px solid var(--accent, var(--sky)); box-shadow: 0 0 12px var(--accent, rgba(96,165,250,0.5)); }
.cat-layout-timeline .t-item .card-inner { position: relative; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .3s, transform .3s; }
.cat-layout-timeline .t-item:hover .card-inner { border-color: var(--accent, var(--sky)); transform: translateY(-3px); box-shadow: 0 16px 40px -14px var(--accent, rgba(96,165,250,0.35)); }
.cat-layout-timeline .strip { height: 170px; position: relative; background-size: cover; background-position: center; }
.cat-layout-timeline .t-body { padding: 16px 18px 18px; text-align: left; }
.cat-layout-timeline .t-item h3 { font-family: 'Fraunces', serif; font-size: 1.1rem; line-height: 1.3; margin: 10px 0 4px; transition: color .25s; }
.cat-layout-timeline .t-item:hover h3 { color: var(--accent, var(--sky)); }
@media (max-width: 900px) {
  .cat-layout-timeline .timeline { padding-left: 46px; }
  .cat-layout-timeline .timeline::before { left: 12px; }
  .cat-layout-timeline .t-item .node-avatar { left: -46px; width: 26px; height: 26px; }
}

/* ---------- Single / Page / Archive generic content ---------- */
.simple-article { padding: 0 40px 60px; }
.simple-article .entry-thumb img { width: 100%; height: auto; display: block; }
.simple-article .entry-header { border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 36px; }
.simple-article .entry-title { font-family: 'Fraunces', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin-bottom: 18px; }
.simple-article .entry-meta { color: var(--muted); font-size: 0.85rem; }
.simple-article .entry-content { font-size: 1.05rem; line-height: 1.8; color: #DEDCD6; max-width: 800px; margin-left: auto; margin-right: auto; }
.simple-article .entry-content p { margin-bottom: 1.3em; }
.simple-article .entry-content h2, .simple-article .entry-content h3 { font-family: 'Fraunces', serif; margin: 1.6em 0 0.6em; color: var(--ink); }
.simple-article .entry-content a { color: var(--teal); text-decoration: underline; }
.simple-article .entry-content img { border-radius: 10px; margin: 1.5em 0; }
.simple-article .entry-content blockquote { border-left: 3px solid var(--teal); padding-left: 20px; color: var(--muted); font-style: italic; margin: 1.5em 0; }

.related-posts { margin: 20px auto 0; padding: 50px 40px 20px; border-top: 1px solid var(--line); }
.related-posts h2 { font-family: 'Fraunces', serif; font-size: 1.6rem; margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; transition: border-color .3s, transform .3s, box-shadow .3s; }
.related-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 16px 40px -14px rgba(79,232,200,0.3); }
.related-cover { aspect-ratio: 16/10; background: var(--surface2); overflow: hidden; }
.related-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-cover-fallback { width: 100%; height: 100%; }
.related-body { padding: 16px 18px 20px; }
.related-body h3 { font-family: 'Fraunces', serif; font-size: 1.02rem; line-height: 1.32; margin-bottom: 12px; transition: color .25s; }
.related-card:hover .related-body h3 { color: var(--teal); }
@media (max-width: 900px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-posts { padding: 40px 20px 10px; }
}
.archive-header { max-width: 1200px; margin: 0 auto 40px; padding: 0 40px; }
.archive-header h1 { font-family: 'Fraunces', serif; font-size: 2.4rem; }
.archive-header p { color: var(--muted); margin-top: 10px; }
.simple-list { max-width: 900px; margin: 0 auto; padding: 0 40px 100px; display: flex; flex-direction: column; gap: 26px; }
.simple-list .s-item { display: flex; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); text-decoration: none; }
.simple-list .s-item .thumb { width: 110px; height: 110px; flex: 0 0 110px; border-radius: 10px; background-size: cover; background-position: center; }
.simple-list .s-item h2 { font-family: 'Fraunces', serif; font-size: 1.25rem; margin: 8px 0 6px; }
.pagination-row { display: flex; gap: 10px; justify-content: center; padding: 20px 40px 80px; }
.pagination-row a, .pagination-row span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.85rem; text-decoration: none; color: var(--muted); }
.pagination-row .current { color: var(--ink); border-color: var(--teal); }

/* ---------- Footer ---------- */
footer#siteFooter { position: relative; z-index: 10; margin-top: 100px; border-top: 1px solid var(--line); padding: 70px 40px 40px; text-align: center; }
footer#siteFooter .footer-mark { display: flex; justify-content: center; margin-bottom: 22px; }
footer#siteFooter h3 { font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--ink); margin-bottom: 14px; }
.footer-email { display: inline-block; color: var(--teal); text-decoration: none; font-size: 1.05rem; letter-spacing: 0.01em; border-bottom: 1px solid rgba(79,232,200,0.3); padding-bottom: 3px; transition: border-color .25s; }
.footer-email:hover { border-color: var(--teal); }
.footer-widgets { margin-top: 20px; }
footer#siteFooter .footer-divider { width: 60px; height: 1px; background: var(--line); margin: 34px auto; }

.footer-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; color: var(--muted); font-size: 0.8rem; max-width: 1200px; margin: 0 auto; text-align: left; }
.footer-copy { white-space: nowrap; }
.footer-line-links { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.footer-line-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-line-links a:hover { color: var(--teal); text-decoration: underline; }
.footer-line-links a:not(:last-child)::after { content: '|'; margin-left: 10px; color: var(--line); }
@media (max-width: 700px) {
  .footer-line { justify-content: center; text-align: center; }
}

