/* themes/default/style.css — pollab blog design ported (F10, spec 10 §2).
   Design tokens from pollab's style.css; --accent is overridden per blog
   from blogs.accent_color via an inline <style> in _head.
   F15: dark palette + .mode-toggle fab (uniform color-scheme contract —
   spec 15 §2 R3). data-theme is set server-side for fixed schemes or by
   the pre-paint init script in auto. */

:root,
[data-theme="light"] {
	--ink-1: #16181d;
	--ink-2: #4b5160;
	--ink-3: #8a90a0;
	--bg: #ffffff;
	--bg-soft: #f6f7f9;
	--border: #e5e7ec;
	--accent: #aa3366;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(20, 22, 28, .06), 0 8px 24px rgba(20, 22, 28, .07);
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Lora", Georgia, serif;
}

[data-theme="dark"] {
	--ink-1: #e8eaf0;
	--ink-2: #aab1c2;
	--ink-3: #7d8698;
	--bg: #121419;
	--bg-soft: #1a1d24;
	--border: #2a2e3a;
	--shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .45);
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink-1);
	background: var(--bg);
}
body.font-serif { font-family: var(--font-display); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.icon { width: 18px; height: 18px; vertical-align: -3px; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: baseline; gap: 12px; padding: 18px 20px; }
.site-nav { margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.site-nav a:hover { color: var(--accent); }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.brand-tag { color: var(--ink-3); font-size: .85rem; }
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; padding: 26px 20px; color: var(--ink-2); font-size: .9rem; }
.footer-links a { color: var(--ink-2); }

/* hero band */
.hero-band { background: var(--bg-soft); border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.hero-band .container { padding-top: 48px; padding-bottom: 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
.eyebrow a { color: var(--accent); text-decoration: none; }
.display { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.18; margin: 0; }
.lead { color: var(--ink-2); font-size: 1.06rem; }

/* language switcher + pills */
.lang-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0; color: var(--ink-3); }
.pill {
	display: inline-block; padding: 5px 14px; border: 1px solid var(--border);
	border-radius: 999px; text-decoration: none; font-size: .85rem; color: var(--ink-2);
	background: var(--bg);
}
.pill.active, .pill:hover { border-color: var(--accent); color: var(--accent); }

/* badge */
.badge {
	display: inline-block; padding: 3px 10px; border-radius: 999px;
	background: color-mix(in srgb, var(--accent) 12%, var(--bg)); color: var(--accent);
	font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}

/* featured */
.featured {
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center;
	border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); margin-bottom: 40px; background: var(--bg);
}
.featured-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.featured-body { padding: 26px; }
.featured-title { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.25; margin: 10px 0; }
.featured-title a { text-decoration: none; }
.featured-title a:hover { color: var(--accent); }
@media (max-width: 720px) { .featured { grid-template-columns: 1fr; } }

/* grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
	border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
	background: var(--bg); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.3; margin: 0; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--ink-2); font-size: .92rem; margin: 0; }
.card-meta { color: var(--ink-3); font-size: .82rem; margin: auto 0 0; }

/* article */
.article-wrap { max-width: 760px; }
.post-head { margin: 36px 0 8px; }
.post-head .display { margin: 12px 0; }
.post-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink-3); font-size: .9rem; }
.post-hero { margin: 26px 0; }
.post-hero img { border-radius: var(--radius); width: 100%; }

.prose { font-size: 1.05rem; }
.prose p { margin: 1.1em 0; }
.prose p.lede { font-size: 1.22rem; color: var(--ink-2); }
.prose h2, .prose h3 { font-family: var(--font-display); line-height: 1.3; margin: 1.6em 0 .6em; }
.prose blockquote {
	margin: 1.6em 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--accent);
	color: var(--ink-2); font-style: italic;
}
.prose blockquote.pull-quote { font-family: var(--font-display); font-size: 1.3rem; border: 0; text-align: center; padding: 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { color: var(--ink-3); font-size: .85rem; text-align: center; margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose a { color: var(--accent); }
.prose img { border-radius: var(--radius); }
.prose pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: .88rem; }

/* author card */
.author-card {
	display: flex; align-items: center; gap: 14px; border: 1px solid var(--border);
	border-radius: var(--radius); padding: 16px 20px; margin: 36px 0; background: var(--bg-soft);
}
.avatar {
	width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.author-name { margin: 0; font-weight: 600; }
.author-role { margin: 0; color: var(--ink-3); font-size: .85rem; }

/* tags */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0; }
.tags .pill { text-decoration: none; }

/* read next */
.read-next { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 28px; }
.section-title { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 18px; }

/* share */
.share { position: relative; display: inline-flex; margin-left: 6px; }
.share-open {
	border: 1px solid var(--border); background: var(--bg); border-radius: 999px;
	width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; color: var(--ink-2);
}
.share-open:hover { color: var(--accent); border-color: var(--accent); }
.share-menu {
	position: absolute; top: 38px; right: 0; z-index: 20; min-width: 150px;
	background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
	box-shadow: var(--shadow); padding: 6px; display: none; flex-direction: column;
}
.share-menu.open { display: flex; }
.share-menu button {
	border: 0; background: none; text-align: left; padding: 8px 10px; font-size: .88rem;
	border-radius: 6px; cursor: pointer; color: var(--ink-1);
}
.share-menu button:hover { background: var(--bg-soft); color: var(--accent); }
.share-toast {
	position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
	background: var(--ink-1); color: var(--bg); padding: 8px 18px; border-radius: 999px;
	font-size: .85rem; z-index: 50;
}

/* pagination, empty state, message band */
.pagination { display: flex; justify-content: space-between; align-items: center; margin: 40px 0; color: var(--ink-3); font-size: .9rem; }
.pagination a { color: var(--accent); text-decoration: none; }
.empty-state { color: var(--ink-3); text-align: center; padding: 56px 0; }
.message-band { text-align: center; padding: 96px 0; }
.message-band .lead { margin: 16px 0 28px; }

/* pulse deck (F11, spec 11 §2 — pollab pulse.html port on vendored Swiper) */
.lang-center { justify-content: center; }
.pulse-stage { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px 40px; }
.pulse-swiper { width: min(440px, 92vw); height: min(660px, calc(100vh - 220px)); min-height: 420px; }
.pulse-card {
	display: flex; flex-direction: column; height: 100%; overflow: hidden;
	border: 1px solid var(--border); border-radius: var(--radius);
	background: var(--bg); box-shadow: var(--shadow);
}
.pcard-img { width: 100%; height: 45%; object-fit: cover; flex: 0 0 45%; }
.pcard-accent {
	display: flex; align-items: center; justify-content: center; flex: 0 0 45%;
	background: color-mix(in srgb, var(--accent) 88%, black); color: #fff;
}
.pcard-accent span {
	font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
	text-transform: uppercase; letter-spacing: .12em; padding: 0 24px; text-align: center;
}
.pcard-body { padding: 18px 22px 8px; overflow-y: auto; flex: 1 1 auto; }
.pcard-meta { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .82rem; margin: 0 0 8px; }
.pcard-title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.28; margin: 0 0 8px; }
.pcard-summary { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* color-scheme toggle fab (F15 — shared partial themes/_shared/mode-fab.html) */
.mode-toggle {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
	border: 1px solid var(--border); background: var(--bg); color: var(--ink-2);
	box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center;
}
.mode-toggle:hover { color: var(--accent); border-color: var(--accent); }
.mode-toggle .icon { width: 20px; height: 20px; vertical-align: 0; }
.mode-toggle .icon-sun { display: none; }
[data-theme="dark"] .mode-toggle .icon-moon { display: none; }
[data-theme="dark"] .mode-toggle .icon-sun { display: block; }
.pcard-foot { display: flex; align-items: center; padding: 10px 22px 16px; flex: 0 0 auto; }
.pcard-like {
	display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px;
	border: 1px solid var(--border); border-radius: 999px; background: var(--bg);
	color: var(--ink-2); font-size: .88rem; cursor: pointer;
}
.pcard-like:hover { border-color: var(--accent); color: var(--accent); }
.pcard-like.liked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent); }
.pcard-like.liked .icon path { fill: currentColor; }
.pulse-controls { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-3); font-size: .82rem; }
.pulse-btn {
	width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
	background: var(--bg); color: var(--ink-2); font-size: 1rem; cursor: pointer;
}
.pulse-btn:hover { border-color: var(--accent); color: var(--accent); }
.pulse-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) { .pulse-controls { display: none; } .pulse-stage { padding: 12px 0 24px; } }

