/* ==========================================================
   EpiVet Chronicles - site theme (ported from the Blogger theme v3)
   Brand charter: colours, Fraunces / Source Sans 3 / JetBrains Mono,
   12-16px corners, pill buttons, 8px spacing grid.
   ========================================================== */
:root {
  --magenta: #D4146E;
  --magenta-dark: #B80F5D;
  --purple: #4B1E8C;
  --blue: #2F5FD0;
  --link: #2552BD;
  --navy: #1B1F5E;
  --pink: #F06BA8;
  --ink: #2A2540;
  --mist: #6B6680;
  --pearl: #E6E2EE;
  --lavender: #F3EEFA;
  --paper: #FBF9FC;
  --gradient: linear-gradient(90deg, #D4146E, #4B1E8C 55%, #2F5FD0);
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-text: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, 'Courier New', monospace;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-field: 8px;
  --shadow: 0 4px 16px rgba(75, 30, 140, .07);
  --shadow-lg: 0 14px 36px rgba(75, 30, 140, .13);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: 18px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
::selection { background: #F6D9E8; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--purple); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 16px; }
h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
p { margin: 0 0 20px; }
.lead { font-size: 21px; line-height: 1.6; }
.meta, .caption, figcaption, .tr-caption { font-size: 14px; color: var(--mist); }
.eyebrow { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta-dark); }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--purple); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.5) blur(10px); backdrop-filter: saturate(1.5) blur(10px); border-bottom: 1px solid var(--pearl); }
.site-header::before { content: ''; display: block; height: 4px; background: var(--gradient); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; }
.brand img { display: block; height: 50px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--purple); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { margin: 0; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--purple); text-decoration: none; transition: background-color .15s ease; }
.site-nav a:hover { background: var(--lavender); }
.site-nav a.is-current { color: var(--magenta-dark); }
.site-nav a.is-current::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--magenta); }
.nav-toggle { display: none; }
.read-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--gradient); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--magenta); background: var(--magenta); color: #fff; font-family: var(--font-text); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { background: var(--magenta-dark); border-color: var(--magenta-dark); color: #fff; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-secondary:hover { background: var(--lavender); border-color: var(--purple); color: var(--purple); }
.btn-light { background: #fff; border-color: #fff; color: var(--purple); }
.btn-light:hover { background: var(--lavender); border-color: var(--lavender); color: var(--purple); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--link); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Avatars ---------- */
.avatar { flex: none; display: block; width: 48px; height: 48px; border-radius: 50%; padding: 2px; background: var(--gradient); }
.avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 2px solid #fff; }
.avatar--lg { width: 88px; height: 88px; padding: 3px; }

/* ---------- Homepage: hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 88px; background: radial-gradient(circle at 90% 8%, rgba(240, 107, 168, .16), transparent 40%), radial-gradient(circle at 0% 100%, rgba(47, 95, 208, .09), transparent 42%), linear-gradient(135deg, #fff 0%, var(--lavender) 100%); border-bottom: 1px solid var(--pearl); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 24px; }
.hero h1 .grad-text { display: block; }
.hero .lead { max-width: 590px; margin: 0; }
.hero-sign { display: flex; align-items: center; gap: 12px; margin: 36px 0 0; font-size: 15px; line-height: 1.4; color: var(--mist); }
.hero-sign strong { display: block; color: var(--ink); font-weight: 600; font-size: 16px; }
.hero-sign a { color: inherit; text-decoration: none; }
.hero-sign a:hover strong { text-decoration: underline; }
.hero-art svg { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }

/* ---------- Homepage: bands ---------- */
.band { padding: 88px 0; }
.band--white { background: #fff; }
.band--lavender { background: var(--lavender); }
.band--navy { position: relative; background: var(--navy); color: #fff; }
.band--navy::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient); }
.band--navy h2 { color: #fff; }
.band--navy .lead { color: #E6E2EE; }
.band--navy :focus-visible { outline-color: #fff; }
.band--purple { background: var(--purple); color: #fff; }
.band--purple h2 { color: #fff; }
.band--purple .lead { color: #F3EEFA; }
.band--purple :focus-visible { outline-color: #fff; }
.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head .lead { margin: 0; color: var(--mist); }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.section-head--row h2 { margin: 0; }

/* Topic cards */
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.topic-card { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; background: #fff; border: 1px solid var(--pearl); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.topic-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient); opacity: 0; transition: opacity .2s ease; }
a.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D8CFE8; text-decoration: none; }
a.topic-card:hover::before { opacity: 1; }
.topic-card h3 { font-size: 21px; line-height: 1.25; margin: 20px 0 8px; }
.topic-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--mist); }
.topic-card .more { margin-top: auto; padding-top: 20px; font-size: 15px; font-weight: 600; color: var(--link); }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--lavender); color: var(--purple); }
.icon-tile svg { width: 28px; height: 28px; }

/* Training */
.training-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.training-grid .lead { color: var(--ink); }
.course-card { position: relative; background: #fff; border: 1px solid var(--pearl); border-radius: var(--radius-lg); padding: 36px 32px 32px; box-shadow: var(--shadow-lg); overflow: hidden; }
.course-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--gradient); }
.course-card h3 { font-size: 26px; line-height: 1.25; margin: 16px 0 16px; }
.course-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 24px; padding: 14px 0; border-top: 1px solid var(--pearl); border-bottom: 1px solid var(--pearl); font-size: 15px; color: var(--mist); }
.course-meta li { margin: 0; }
.course-meta strong { color: var(--ink); font-weight: 600; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--magenta); vertical-align: middle; }

/* Founder */
.founder-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: center; }
.founder-photo { position: relative; width: 220px; margin: 0 auto; }
.founder-photo::before { content: ''; position: absolute; inset: 14px -14px -14px 14px; border-radius: 20px; background: var(--gradient); opacity: .9; }
.founder-photo img { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; border-radius: 20px; border: 4px solid #fff; box-shadow: var(--shadow-lg); }
.founder-grid h2 { margin-bottom: 8px; }
.founder-grid .lead { color: var(--ink); margin-bottom: 0; }
.facts { list-style: none; display: grid; gap: 12px; margin: 28px 0 0; padding: 0; }
.facts li { position: relative; margin: 0; padding-left: 34px; font-size: 17px; line-height: 1.55; }
.facts li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B1E8C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Connect */
.connect-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.connect-grid h2 { margin-bottom: 12px; }
.connect-grid .lead { max-width: 640px; margin: 0; }
.connect-grid .actions { margin: 0; }

/* ---------- Main area, lists ---------- */
.main-wrap { padding-top: 56px; padding-bottom: 88px; }
.main-wrap--home { padding-top: 88px; }
.archive-header { position: relative; overflow: hidden; margin: 0 0 40px; padding: 44px 44px 36px; background: radial-gradient(circle at 95% 0%, rgba(240, 107, 168, .14), transparent 45%), linear-gradient(135deg, #fff, var(--lavender)); border: 1px solid var(--pearl); border-radius: var(--radius-lg); }
.archive-header h1 { margin-bottom: 8px; }
.archive-header .lead { max-width: 680px; margin: 0; color: var(--mist); }
.search-form { display: flex; gap: 8px; max-width: 560px; margin: 28px 0 0; }
.search-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 20px; border: 1px solid #80798E; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--font-text); font-size: 16px; }
.search-form input::placeholder { color: var(--mist); }
.topic-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--pearl); background: #fff; color: var(--purple); font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.chip:hover { border-color: var(--purple); text-decoration: none; }
.chip.is-current { background: var(--purple); border-color: var(--purple); color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.post-grid > .post-card:only-child { max-width: 560px; }
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pearl); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.post-card::before { content: ''; display: block; height: 4px; background: var(--gradient); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card .card-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 24px; }
.card-title { font-size: 23px; line-height: 1.28; margin: 0 0 12px; }
.card-title a { color: var(--purple); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.excerpt { margin: 0 0 20px; font-size: 16.5px; line-height: 1.6; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.excerpt:empty { display: none; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--pearl); font-size: 14px; color: var(--mist); }
.rt-wrap { display: none; }
.rt-wrap.is-on { display: inline; }
.read-more { font-weight: 600; color: var(--link); text-decoration: none; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; }
.tag { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--lavender); color: var(--purple); font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none; }
a.tag:hover { background: #E8DEF6; text-decoration: none; }
.empty { padding: 40px; text-align: center; background: #fff; border: 1px dashed var(--pearl); border-radius: var(--radius-lg); color: var(--mist); }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 48px 0 0; }
.pager--post { max-width: 740px; margin-left: auto; margin-right: auto; }
.pager a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--purple); background: #fff; color: var(--purple); font-weight: 600; text-decoration: none; }
.pager a:hover { background: var(--lavender); }
.pager .older { margin-left: auto; }

/* ---------- Articles and pages ---------- */
.article { max-width: 740px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 24px; font-size: 14px; color: var(--mist); }
.crumbs a { color: var(--mist); text-decoration: none; }
.crumbs a:hover { color: var(--purple); text-decoration: underline; }
.article-header { margin: 0 0 40px; padding: 0 0 32px; border-bottom: 1px solid var(--pearl); }
.article-title { font-size: 44px; line-height: 1.14; letter-spacing: -.02em; margin: 0 0 24px; }
.byline { display: flex; align-items: center; gap: 14px; }
.byline-text { display: flex; flex-direction: column; margin: 0; line-height: 1.4; }
.byline-name { font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
a.byline-name:hover { text-decoration: underline; }
.byline-meta { font-size: 14px; color: var(--mist); }
.post-body { overflow-wrap: break-word; font-size: 18px; line-height: 1.75; }
.post-body > p:first-child { font-size: 20px; line-height: 1.65; }
.post-body p, .post-body li { text-align: justify !important; }
.is-home main p, .is-home main li { text-align: justify; }
.post-body h1, .post-body h2, .post-body h3 { text-align: left !important; }
.post-body [id] { scroll-margin-top: 96px; }
.post-body h2 { font-size: 30px; margin: 56px 0 16px; }
.post-body h3 { font-size: 22px; margin: 36px 0 12px; }
.post-body ul, .post-body ol { padding-left: 26px; margin: 0 0 24px; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--magenta); }
.post-body img { border-radius: var(--radius-field); }
.post-body .separator, .post-body figure { margin: 32px 0; }
.post-body .tr-caption-container { margin: 32px auto; }
.post-body blockquote { margin: 32px 0 !important; padding: 18px 22px !important; background: var(--lavender) !important; border: 0 !important; border-left: 4px solid var(--magenta) !important; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }
.post-body blockquote > :last-child { margin-bottom: 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0; }
.post-body th, .post-body td { padding: 12px 14px !important; border: 0 !important; border-bottom: 1px solid var(--pearl) !important; }
.post-body th { background: var(--lavender) !important; color: var(--purple); font-weight: 700; }
.post-body tr:last-child td { border-bottom: 0 !important; }
.post-body > table { display: block; overflow-x: auto; margin: 32px 0; border: 1px solid var(--pearl); border-radius: var(--radius); }
.post-body div[style*="overflow-x"] { margin: 32px 0 12px !important; background: #fff; border: 1px solid var(--pearl); border-radius: var(--radius); overflow-x: auto; }
.post-body p[style*="#666666"] { color: var(--mist) !important; text-align: center !important; font-size: 14px !important; }
.post-body p[style*="Cambria"] { margin: 24px 0 !important; padding: 16px 20px; background: #fff; border: 1px solid var(--pearl); border-radius: var(--radius); text-align: center !important; overflow-x: auto; }
.post-body #contents { position: relative; overflow: hidden; margin: 32px 0 !important; padding: 22px 26px 14px !important; background: #fff !important; border: 1px solid var(--pearl) !important; border-radius: var(--radius-lg) !important; box-shadow: var(--shadow); }
.post-body #contents::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient); }
.post-body #contents summary { font-family: var(--font-head); font-size: 20px; font-weight: 600 !important; color: var(--purple); cursor: pointer; padding: 2px 0 8px; }
.post-body #contents ul { margin: 8px 0 0 !important; }
.post-body #contents li { margin: 0; padding: 9px 0; border-top: 1px solid var(--pearl); font-size: 16px; line-height: 1.45; }
.post-body #contents li::marker { content: none; }
.post-body #contents a { color: var(--ink); text-decoration: none; }
.post-body #contents a:hover { color: var(--link); text-decoration: underline; }
.post-body div[style*="faf8fd"]:not(#contents) { margin: 32px 0 !important; padding: 22px 26px !important; background: var(--lavender) !important; border: 0 !important; border-left: 4px solid var(--magenta) !important; border-radius: 0 var(--radius) var(--radius) 0 !important; }
.post-body div[style*="faf8fd"] > :last-child { margin-bottom: 0; }
.post-body code { font-family: var(--font-mono); font-size: .88em; background: var(--lavender); padding: 2px 6px; border-radius: 4px; }
.post-body pre, .code-output { font-family: var(--font-mono); font-size: 15px; line-height: 1.6; background: var(--navy); color: #fff; padding: 24px; border-radius: var(--radius); overflow-x: auto; margin: 32px 0; }
.post-body pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.key-takeaway, .method-note { background: var(--lavender); border-left: 4px solid var(--magenta); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 32px 0; }
.method-note { border-left-color: var(--blue); }
.key-takeaway > :last-child, .method-note > :last-child { margin-bottom: 0; }
.is-page .post-body img { border-radius: var(--radius); }
.is-page .article:has(.post-body h1) .article-header { display: none; }
.post-body h1 { font-size: 44px; line-height: 1.15; margin: 0 0 24px; }
.post-body h1 .separator { text-align: left !important; margin: 0 0 20px !important; }
.post-body h1 .separator a { float: none !important; display: inline-block; margin: 0 !important; }

.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* ---------- Static pages (About, founder) ---------- */
.post-body .page-hero { margin: 0 0 40px; padding: 0 0 32px; border-bottom: 1px solid var(--pearl); }
.post-body .page-hero h1 { margin: 0 0 16px; }
.post-body .page-hero .lead, .post-body .profile-hero .lead { margin: 0; font-size: 21px; line-height: 1.6; }
.post-body .area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 32px; }
.post-body .area-card { position: relative; overflow: hidden; padding: 26px 22px 22px; background: #fff; border: 1px solid var(--pearl); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.post-body .area-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient); }
.post-body .area-card h3 { font-size: 20px; margin: 0 0 8px; }
.post-body .area-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--mist); }
.post-body .profile-card { display: flex; align-items: center; gap: 20px; margin: 8px 0 28px; padding: 20px 24px; background: var(--lavender); border-radius: var(--radius-lg); }
.post-body .profile-card img { flex: none; display: block; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 4px solid #fff; box-shadow: var(--shadow); }
.post-body .profile-card h3 { margin: 0 0 4px; }
.post-body .profile-card p { margin: 0; color: var(--mist); }
.post-body .profile-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: center; margin: 0 0 40px; padding: 0 14px 40px 0; border-bottom: 1px solid var(--pearl); }
.post-body .profile-hero .founder-photo { width: 200px; margin: 0; }
.post-body .founder-photo img { border-radius: 20px; }
.post-body .profile-hero h1 { margin: 0 0 16px; }
.post-body .hello { margin: 0 0 8px; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--magenta-dark); }
.post-body ul.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; }
.post-body ul.chip-list li { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--lavender); color: var(--purple); font-size: 15px; font-weight: 600; line-height: 1.4; }
.post-body ul.timeline { list-style: none; margin: 0 0 32px 7px; padding: 4px 0 4px 26px; border-left: 2px solid var(--pearl); }
.post-body ul.timeline li { position: relative; margin: 0 0 20px; }
.post-body ul.timeline li:last-child { margin-bottom: 0; }
.post-body ul.timeline li::before { content: ''; position: absolute; left: -35px; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--gradient); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--pearl); }
.post-body .page-cta { margin: 48px 0 0; padding: 36px 32px; background: radial-gradient(circle at 95% 0%, rgba(240, 107, 168, .14), transparent 45%), linear-gradient(135deg, #fff, var(--lavender)); border: 1px solid var(--pearl); border-radius: var(--radius-lg); }
.post-body .page-cta h2 { margin-top: 0; }
.post-body .page-cta .actions { margin: 24px 0 0; }
.post-body .page-sign { margin: 24px 0 0; font-size: 15px; color: var(--mist); }
@media (max-width: 760px) {
  .post-body .area-grid { grid-template-columns: 1fr; }
  .post-body .profile-hero { grid-template-columns: 1fr; gap: 28px; }
  .post-body .profile-hero .founder-photo { width: 170px; }
  .post-body .page-cta { padding: 28px 22px; }
}

.article-footer { margin-top: 56px; }
.author-card { position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 24px; padding: 32px; background: #fff; border: 1px solid var(--pearl); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.author-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient); }
.author-card .eyebrow { margin-bottom: 4px; }
.author-card h2 { font-size: 24px; margin: 0 0 8px; }
.author-card p { font-size: 16px; line-height: 1.6; margin: 0 0 8px; }
.article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 28px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #D9D5E8; font-size: 16px; }
.site-footer::before { content: ''; display: block; height: 4px; background: var(--gradient); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.footer-logo svg { width: 42px; height: 42px; flex: none; }
.footer-logo span { font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: 24px; line-height: 1.1; color: #fff; }
.footer-brand p { max-width: 360px; margin: 16px 0 0; line-height: 1.6; }
.footer-brand .footer-tagline { font-family: var(--font-head); font-size: 18px; color: #fff; }
.site-footer h2, .site-footer h3 { margin: 0 0 14px; font-family: var(--font-text); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer a { color: #D9D5E8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 14px; color: #B4AEC8; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #B4AEC8; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 48px; }
  .site-nav a { padding: 0 10px; }
  .site-nav a.is-current::after { left: 10px; right: 10px; }
}
@media (max-width: 880px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--purple); background: transparent; color: var(--purple); font-family: var(--font-text); font-size: 16px; font-weight: 600; cursor: pointer; }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
  .nav-toggle .bars { position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ''; position: absolute; left: 0; }
  .nav-toggle .bars::before { top: -6px; }
  .nav-toggle .bars::after { top: 6px; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 8px 24px 20px; background: #fff; border-bottom: 1px solid var(--pearl); box-shadow: var(--shadow-lg); }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: flex; width: 100%; min-height: 52px; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--pearl); }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a:hover { background: transparent; color: var(--magenta-dark); }
  .site-nav a.is-current::after { display: none; }
  .hero-grid, .training-grid, .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 340px; margin: 0 auto; }
  .founder-photo { width: 180px; margin: 0; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  h1, .article-title { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 21px; }
  .lead { font-size: 19px; }
  .wrap { padding: 0 20px; }
  .brand img { height: 42px; }
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero-art { max-width: 260px; }
  .band { padding: 64px 0; }
  .topic-grid, .post-grid { grid-template-columns: 1fr; }
  .main-wrap { padding-top: 32px; padding-bottom: 64px; }
  .main-wrap--home { padding-top: 64px; }
  .archive-header { padding: 28px 22px 24px; }
  .search-form { flex-direction: column; }
  .card-body { padding: 22px 22px 20px; }
  .post-body { font-size: 17px; }
  .post-body > p:first-child { font-size: 18px; }
  .post-body h2 { font-size: 25px; margin-top: 44px; }
  .post-body h3 { font-size: 20px; }
  .author-card { flex-direction: column; padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  a.topic-card:hover, .post-card:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .pager, .article-actions, .read-progress { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}
