/* AlterCV Blog — shared styles. Brand teal palette. */
:root {
  --brand: #2A9D9F;
  --brand-hi: #4DD0CD;
  --brand-deep: #094D4F;
  --brand-soft: #D5F0EF;
  --ink: #07101C;
  --ink-2: #18263C;
  --ink-3: #4A5568;
  --ink-4: #94A0B4;
  --paper: #FFFFFF;
  --cream: #FBF8F3;
  --line: #E7E2D5;
  --line-2: #DCD5C5;
  --shadow: 0 20px 60px rgba(7,16,28,0.08);
  --radius: 16px;
  --radius-lg: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }

/* ===== Nav (matches toolkit) ===== */
.tk-nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, 0.92); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line); }
.tk-nav-inner { max-width: 1280px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; gap: 28px; }
.tk-brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.tk-brand-mark { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; }
.tk-brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tk-nav-links { display: flex; gap: 24px; font-size: 14px; flex: 1; }
.tk-nav-links a { font-weight: 500; color: var(--ink-2); transition: color .15s; position: relative; }
.tk-nav-links a:hover, .tk-nav-links a.active { color: var(--brand); }
.tk-nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brand); border-radius: 2px; }
@media (max-width: 720px) { .tk-nav-inner { gap: 16px; padding: 14px 20px; } .tk-nav-links { gap: 14px; font-size: 13px; } }

/* ===== Buttons ===== */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hi) 100%); color: #fff !important; font-size: 14px; font-weight: 700; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: 0 10px 26px rgba(42,157,159,0.30); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(42,157,159,0.40); color: #fff; }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 600; transition: all .15s; }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

/* ===== Article hero ===== */
.bp-hero { padding: 56px 32px 32px; max-width: 880px; margin: 0 auto; }
.bp-breadcrumb { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.bp-breadcrumb a { color: var(--ink-3); }
.bp-breadcrumb a:hover { color: var(--brand); }
.bp-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 11px; font-weight: 800; letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: 16px; }
.bp-title { font-family: 'Fraunces', serif; font-size: clamp(30px, 4vw, 48px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 16px; color: var(--ink); padding-bottom: 6px; }
.bp-title em { font-style: italic; color: var(--brand-deep); }
.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.bp-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }
.bp-author { display: inline-flex; align-items: center; gap: 8px; }
.bp-author-mark { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hi) 100%); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }

/* ===== Article body ===== */
.bp-body { max-width: 760px; margin: 0 auto; padding: 24px 32px 64px; }
.bp-tldr { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 18px 22px; border-radius: 12px; margin: 0 0 32px; font-size: 16px; color: var(--brand-deep); font-weight: 500; }
.bp-tldr strong { color: var(--ink); display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: 6px; }
.bp-body h2 { font-family: 'Fraunces', serif; font-size: clamp(24px, 2.8vw, 32px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.22; margin: 48px 0 14px; color: var(--ink); padding-bottom: 4px; }
.bp-body h3 { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; margin: 32px 0 10px; color: var(--ink-2); }
.bp-body p { margin: 0 0 18px; }
.bp-body strong { color: var(--ink); font-weight: 700; }
.bp-body ul, .bp-body ol { margin: 0 0 22px; padding-left: 24px; }
.bp-body li { margin: 6px 0; line-height: 1.65; }
.bp-body li::marker { color: var(--brand); }
.bp-body blockquote { background: linear-gradient(135deg, var(--brand-soft) 0%, #fff 100%); border-left: 4px solid var(--brand); padding: 18px 22px; margin: 24px 0; border-radius: 12px; color: var(--ink-2); font-style: normal; }
.bp-body blockquote p { margin: 0; }
.bp-body blockquote a { color: var(--brand-deep); font-weight: 700; }
.bp-body blockquote a:hover { color: var(--brand); }
.bp-body code { font-family: 'JetBrains Mono', monospace; font-size: 13.5px; background: rgba(7,16,28,0.06); padding: 2px 6px; border-radius: 5px; }
.bp-body pre { background: #07101C; color: #E7E2D5; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: 13.5px; line-height: 1.6; margin: 22px 0; }
.bp-body pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }
.bp-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14.5px; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(7,16,28,0.04); }
.bp-body th, .bp-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.bp-body th { background: var(--brand-soft); font-weight: 700; color: var(--brand-deep); font-size: 13.5px; }
.bp-body tr:last-child td { border-bottom: 0; }
.bp-body a { color: var(--brand-deep); text-decoration: underline; text-decoration-color: rgba(42,157,159,0.35); text-underline-offset: 3px; font-weight: 600; }
.bp-body a:hover { color: var(--brand); text-decoration-color: var(--brand); }

/* ===== FAQ ===== */
.bp-faq { max-width: 760px; margin: 0 auto; padding: 32px 32px 16px; }
.bp-faq h2 { font-family: 'Fraunces', serif; font-size: clamp(26px, 3vw, 36px); font-weight: 400; letter-spacing: -0.02em; margin: 0 0 24px; color: var(--ink); }
.bp-faq h2 em { font-style: italic; color: var(--brand-deep); }
.bp-faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 0 0 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.bp-faq details[open] { border-color: var(--brand-hi); box-shadow: 0 8px 24px rgba(7,16,28,0.06); }
.bp-faq summary { font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--ink); }
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary::after { content: '+'; font-size: 20px; color: var(--brand); transition: transform .2s ease; flex-shrink: 0; line-height: 1; }
.bp-faq details[open] summary::after { content: '−'; }
.bp-faq details > p { margin: 14px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }

/* ===== Bottom CTA ===== */
.bp-cta { max-width: 880px; margin: 24px auto 0; padding: 0 32px 80px; }
.bp-cta-card { background: linear-gradient(135deg, #07101C 0%, #094D4F 100%); border-radius: 24px; padding: 40px 36px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.bp-cta-card::before { content: ''; position: absolute; top: -120px; right: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(77,208,205,0.30), transparent 60%); }
.bp-cta-card h3 { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 400; letter-spacing: -0.02em; margin: 0 0 10px; position: relative; }
.bp-cta-card h3 em { font-style: italic; color: var(--brand-hi); }
.bp-cta-card p { color: rgba(255,255,255,0.78); margin: 0 0 22px; font-size: 16px; position: relative; }
.bp-cta-card .btn-primary { position: relative; }

/* ===== Related posts ===== */
.bp-related { max-width: 1080px; margin: 0 auto; padding: 32px 32px 64px; }
.bp-related h2 { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; margin: 0 0 18px; }
.bp-related h2 em { font-style: italic; color: var(--brand-deep); }
.bp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .bp-related-grid { grid-template-columns: 1fr; } }
.bp-related a { display: block; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: all .2s ease; text-decoration: none; }
.bp-related a:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); }
.bp-related a strong { display: block; font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px; color: var(--ink); margin-bottom: 6px; line-height: 1.35; }
.bp-related a span { font-size: 13px; color: var(--ink-3); }

/* ===== Blog index ===== */
.bx-hero { padding: 72px 32px 32px; max-width: 1080px; margin: 0 auto; text-align: center; }
.bx-hero h1 { font-family: 'Fraunces', serif; font-size: clamp(36px, 5vw, 56px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 14px; color: var(--ink); padding-bottom: 4px; }
.bx-hero h1 em { font-style: italic; color: var(--brand-deep); }
.bx-hero p { color: var(--ink-3); font-size: 18px; max-width: 640px; margin: 0 auto; }
.bx-grid { max-width: 1180px; margin: 0 auto; padding: 32px 32px 96px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1020px) { .bx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bx-grid { grid-template-columns: 1fr; } }
.bx-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; transition: all .25s ease; text-decoration: none; color: inherit; height: 100%; position: relative; overflow: hidden; }
.bx-card::before { content: ''; position: absolute; top: -100px; right: -100px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(77,208,205,0.16), transparent 60%); opacity: 0; transition: opacity .25s ease; }
.bx-card:hover { transform: translateY(-4px); border-color: var(--brand-hi); box-shadow: var(--shadow); }
.bx-card:hover::before { opacity: 1; }
.bx-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; align-self: flex-start; position: relative; }
.bx-card h2 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 12px; color: var(--ink); position: relative; }
.bx-card p { color: var(--ink-3); font-size: 14.5px; line-height: 1.55; margin: 0 0 18px; flex: 1; position: relative; }
.bx-card .bx-foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-3); position: relative; }
.bx-card .bx-arrow { font-weight: 700; color: var(--brand); transition: transform .2s ease; }
.bx-card:hover .bx-arrow { transform: translateX(4px); }

/* ===== Footer ===== */
.bp-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 48px 32px; text-align: center; font-size: 14px; }
.bp-footer a { color: var(--brand-hi); }
.bp-footer a:hover { color: #fff; }
