:root {
    --accent: #9B7CBF;
    --primary: #5B3F8C;
    --primary-dark: #3F2A66;
    --ink: #2A2335;
    --ink-deep: #1F1829;
    --paper: #EEEBF6;
    --paper-light: #F6F3FB;
    --card: #F8F6FC;
    --line: #D9D2EA;
    --muted: #6F6683;
    --on-dark-muted: #B8ADCC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.home {
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.home a { color: var(--primary); }
body.home a:hover { color: var(--ink); }

.page { width: 100%; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.section-pad { width: 100%; padding-left: clamp(16px, 5vw, 72px); padding-right: clamp(16px, 5vw, 72px); }
.container { max-width: 1160px; margin: 0 auto; }
.display { font-family: 'Fraunces', serif; font-weight: 900; letter-spacing: -0.02em; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }

/* Header */
.header-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
body.home a.brand { color: var(--ink); }
.brand-text { font-family: 'Fraunces', serif; font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }
.accent-text { color: var(--primary); }
.nav { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
body.home .nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 2px; border-bottom: 2px solid transparent; }
body.home .nav a:hover { border-bottom-color: var(--accent); }
.nav-rss { display: inline-flex; align-items: center; gap: 6px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
body.home .btn-primary { background: var(--primary); color: var(--paper-light); }
body.home .btn-primary:hover { background: var(--primary-dark); color: #fff; }
body.home .btn-dark { background: var(--ink); color: var(--paper-light); }
body.home .btn-dark:hover { background: #000; color: #fff; }
body.home .btn-accent { background: var(--accent); color: var(--ink-deep); }
body.home .btn-accent:hover { background: #fff; color: var(--ink); }
body.home .link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
body.home .link:hover { border-bottom-color: var(--ink); color: var(--ink); }
body.home .on-dark a.plain { color: var(--line); text-decoration: none; font-size: 14px; font-weight: 500; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
body.home .on-dark a.plain:hover { color: #fff; border-bottom-color: #fff; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 88px; }
.hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.hero-title { font-size: clamp(44px, 6.2vw, 80px); line-height: 0.98; color: var(--ink); }
.hero-title-mark { color: var(--primary); text-decoration: underline; text-decoration-thickness: 6px; text-underline-offset: 8px; text-decoration-color: var(--accent); }
.hero-copy { max-width: 520px; font-size: 18px; line-height: 1.6; color: #4D4460; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

.author-card { flex: 1 1 340px; max-width: 420px; min-width: 0; background: var(--ink); color: var(--paper-light); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 22px; position: relative; overflow: hidden; }
.author-glow { position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--accent); opacity: 0.35; }
.author-head { display: flex; align-items: center; gap: 16px; position: relative; }
.author-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #CFC5E4; flex: none; }
.author-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.author-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 24px; line-height: 1.1; }
.author-role { font-size: 14px; color: var(--line); }
.author-place { font-size: 14px; color: var(--on-dark-muted); }
.author-bio { font-size: 15px; line-height: 1.6; color: var(--line); position: relative; }
.author-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); position: relative; }

/* Featured */
.featured { background: var(--accent); padding-top: 72px; padding-bottom: 72px; }
.featured-inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.featured-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.featured .eyebrow { color: var(--ink-deep); }
.featured-title { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.02; color: var(--ink-deep); }
body.home .featured-title a { color: inherit; text-decoration: none; }
.featured-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-deep); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.pill-on-accent { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .35); color: var(--ink-deep); }
.pill-comments { background: var(--ink); color: var(--paper-light); border-color: var(--ink); }

/* Articles grid */
.recent { padding-top: 80px; padding-bottom: 80px; }
.recent-inner { display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-title { font-size: 40px; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
body.home .card { display: flex; flex-direction: column; gap: 18px; min-height: 220px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: transform .15s ease, border-color .15s ease; }
body.home .card:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--ink); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-date { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.card-tag { font-size: 13px; color: var(--muted); }
.card-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; flex: 1 1 auto; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.empty-message { color: var(--muted); }

/* Topics */
.topics { background: var(--line); padding-top: 80px; padding-bottom: 80px; }
.topics-inner { display: flex; flex-wrap: wrap; gap: 48px; }
.topics-head { flex: 1 1 360px; min-width: 0; }
.topics-title { font-size: clamp(36px, 4vw, 52px); line-height: 1.02; color: var(--ink); }
.topics-body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.topics-copy { font-size: 17px; line-height: 1.65; color: #3E3550; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
body.home .tag { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
body.home .tag:hover { background: var(--ink); color: var(--paper-light); }

/* Contact band */
.band-dark { background: var(--ink); padding-top: 88px; padding-bottom: 72px; }
.contact-inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.contact-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-title { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.02; color: var(--paper-light); }
.contact-copy { max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--on-dark-muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* Footer */
.foot { background: var(--ink-deep); padding-top: 28px; padding-bottom: 28px; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot-copy { font-size: 14px; color: var(--on-dark-muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
body.home .foot a { color: var(--on-dark-muted); text-decoration: none; font-size: 14px; }
body.home .foot a:hover { color: #fff; }

/* Icon buttons */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .25); }
body.home .on-dark a.icon-btn { color: var(--paper-light); }
body.home .on-dark a.icon-btn:hover { background: #fff; color: var(--ink); }
body.home .on-dark a.icon-btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink-deep); }
.icon-btn-sm { width: 40px; height: 40px; border-radius: 10px; }
