:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3ff;
  --text: #10203a;
  --muted: #60708f;
  --line: #dbe3f2;
  --accent: #5a82f6;
  --accent-dark: #3258c7;
  --shadow: 0 20px 50px rgba(17, 35, 68, 0.08);
  --radius: 22px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f9fd 0%, #eef3ff 100%);
  line-height: 1.7;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 249, 253, 0.9);
  border-bottom: 1px solid rgba(219, 227, 242, 0.85);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 0.95rem; color: var(--text); }
.brand img { width: 48px; height: 48px; border-radius: 14px; box-shadow: var(--shadow); }
.brand span { display: flex; flex-direction: column; }
.brand small { color: var(--muted); font-size: 0.85rem; }
.main-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.main-nav a { color: var(--text); font-weight: 600; }
.site-main { padding-bottom: 4rem; }
.hero { padding: 4rem 0 2rem; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr); gap: 2rem; align-items: start;
}
.hero-copy, .author-panel, .callout-box, .post-card, .topic-card, .sidebar-card, .article-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; min-height: 100%; }
.hero-copy h1 { font-size: clamp(2.3rem, 4vw, 4.1rem); line-height: 1.05; margin: 0.2rem 0 1rem; }
.hero-text { font-size: 1.1rem; max-width: 58ch; color: var(--muted); }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.25rem; border-radius: 999px; font-weight: 700;
}
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); text-decoration: none; }
.button-secondary { background: var(--surface-alt); color: var(--accent-dark); }
.button-secondary:hover { text-decoration: none; }
.author-panel {
  padding: 1.25rem; display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem; align-items: center;
}
.author-panel img, .author-mini img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px;
}
.author-panel-stacked {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: stretch;
  min-height: 100%;
}
.author-panel-media img {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  border-radius: 24px;
}
.author-panel-body {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.author-panel-body h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
}
.author-panel-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}
.author-panel-cta {
  width: fit-content;
}
.author-panel-stacked .social-links {
  gap: 1.1rem;
}
.eyebrow {
  margin: 0 0 0.4rem; font-size: 0.8rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent-dark); font-weight: 800;
}
.social-links { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.section-block { padding-top: 1rem; }
.section-header {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 0 0 1.3rem;
}
.section-header h2, .page-head h1 { margin: 0.2rem 0 0; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.post-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem;
}
.post-card { overflow: hidden; }
.post-card-image img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.post-card-body { padding: 1.15rem 1.2rem 1.35rem; }
.post-card h2 { margin: 0.3rem 0 0.65rem; font-size: 1.22rem; line-height: 1.25; }
.post-card p { margin: 0; color: var(--muted); }
.post-meta { display: flex; gap: 0.85rem; flex-wrap: wrap; color: var(--muted); font-size: 0.95rem; margin-top: 0.9rem; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.topic-card { padding: 1.35rem; color: var(--text); }
.topic-card h3 { margin: 0.35rem 0 0.5rem; font-size: 1.18rem; }
.topic-card p { margin: 0; color: var(--muted); }
.split-callout {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.3rem; align-items: start; margin-top: 0.5rem;
}
.callout-box { padding: 1.5rem; }
.callout-box ul { margin: 0.7rem 0 0; padding-left: 1.1rem; }
.page-head { padding-top: 3rem; padding-bottom: 0.5rem; }
.page-head p { max-width: 70ch; color: var(--muted); }
.article-layout { padding-top: 2.5rem; }
.article-shell { padding: 2.4rem; }
.article-header h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; margin: 0; }
.article-dek { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.article-hero { margin: 1.5rem 0 0; }
.article-hero img { width: 100%; border-radius: 22px; aspect-ratio: 16 / 8; object-fit: cover; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; margin-top: 2rem; }
.prose { font-size: 1.06rem; }
.prose h2, .prose h3 { line-height: 1.2; margin-top: 2rem; }
.prose img { border-radius: 20px; margin: 1.5rem 0; }
.prose blockquote {
  margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--accent); background: var(--surface-alt); border-radius: 16px;
}
.prose ul, .prose ol { padding-left: 1.2rem; }
.sidebar-card { padding: 1.2rem; position: sticky; top: 100px; }
.author-mini h2 { margin-bottom: 0.4rem; }
.toc-card ul { margin: 0; padding-left: 1rem; }
.site-footer {
  border-top: 1px solid var(--line); background: #f0f4fb; margin-top: 4rem; padding: 2.2rem 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 2rem; }
.footer-brand, .footer-heading { margin: 0 0 0.55rem; font-weight: 800; }
.footer-grid a { display: block; margin-bottom: 0.45rem; }
@media (max-width: 980px) {
  .hero-grid, .split-callout, .article-grid, .footer-grid, .author-panel { grid-template-columns: 1fr; }
  .author-panel-stacked { min-height: auto; }
  .post-grid, .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; padding: 1rem 0; }
  .hero { padding-top: 2.5rem; }
  .hero-copy, .article-shell, .author-panel-stacked { padding: 1.4rem; }
  .post-grid, .topic-grid { grid-template-columns: 1fr; }
  .main-nav { gap: 0.8rem; }
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.brand img { background: #fff; border: 1px solid var(--line); box-shadow: none; }
.about-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.5rem; padding-top: 3rem; }
.about-hero-copy, .about-hero-media, .about-story, .about-gallery, .about-note { padding: 2rem; }
.about-hero-copy h1 { margin: 0.2rem 0 1rem; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.08; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.about-hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.hero-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.hero-stat-grid div { padding: 1rem; background: var(--surface-alt); border-radius: 18px; border: 1px solid var(--line); }
.hero-stat-grid strong { display: block; font-size: 1.8rem; line-height: 1; margin-bottom: 0.35rem; }
.hero-stat-grid span { color: var(--muted); font-size: 0.95rem; }
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 1.5rem; }
.prose-lite h2 { margin-top: 0; font-size: 1.8rem; }
.prose-lite p, .prose-lite li { color: var(--muted); }
.about-links { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.3rem; }
.gallery-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; }
.gallery-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.gallery-row img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; }
.about-note ul { margin: 0.7rem 0 0; padding-left: 1.2rem; }
@media (max-width: 980px) {
  .about-hero, .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .about-hero-copy, .about-hero-media, .about-story, .about-gallery, .about-note { padding: 1.35rem; }
  .hero-stat-grid, .gallery-row { grid-template-columns: 1fr; }
}
