/* ============================================
   Logal Theme — Main Stylesheet
   ============================================ */

:root {
	--color-bg:        #09090f;
	--color-surface:   #111118;
	--color-border:    rgba(255, 255, 255, 0.08);
	--color-text:      rgba(255, 255, 255, 0.85);
	--color-muted:     rgba(255, 255, 255, 0.45);
	--color-accent:    #7c3aed;
	--color-accent-hi: #a78bfa;
	--font-sans:       'Inter', system-ui, sans-serif;
	--radius:          8px;
	--max-w:           1100px;
	--header-h:        64px;
}

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

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	line-height: 1.6;
	min-height: 100vh;
}

a {
	color: var(--color-accent-hi);
	text-decoration: none;
}

a:hover {
	color: #fff;
}

/* ── Header ──────────────────────────────── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: rgba(9, 9, 15, 0.85);
	backdrop-filter: blur(20px) saturate(160%);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 24px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-header__logo {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #fff;
	background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	white-space: nowrap;
}

.site-header__nav .nav-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 4px;
}

.site-header__nav .nav-menu a {
	color: var(--color-muted);
	font-size: 0.875rem;
	padding: 6px 12px;
	border-radius: var(--radius);
	transition: color 0.2s, background 0.2s;
}

.site-header__nav .nav-menu a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

/* ── Main & Container ────────────────────── */

.site-main {
	min-height: calc(100vh - var(--header-h) - 80px);
}

.container {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 60px 24px;
}

/* ── Post Cards (index) ──────────────────── */

.post-card {
	padding: 32px 0;
	border-bottom: 1px solid var(--color-border);
}

.post-card:first-child {
	padding-top: 0;
}

.post-card__title {
	font-size: 1.375rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-bottom: 8px;
}

.post-card__title a {
	color: #fff;
}

.post-card__title a:hover {
	color: var(--color-accent-hi);
}

.post-card__meta {
	font-size: 0.8125rem;
	color: var(--color-muted);
	margin-bottom: 12px;
}

.post-card__excerpt p {
	font-size: 0.9375rem;
	color: var(--color-text);
	max-width: 680px;
}

/* ── Single / Page ───────────────────────── */

.entry-content h1,
.entry-content h2,
.entry-content h3 {
	letter-spacing: -0.02em;
	margin: 1.5em 0 0.5em;
}

.entry-content p {
	margin-bottom: 1.2em;
	max-width: 680px;
}

.post-meta {
	font-size: 0.8125rem;
	color: var(--color-muted);
	margin: 8px 0 32px;
}

/* ── Footer ──────────────────────────────── */

.site-footer {
	border-top: 1px solid var(--color-border);
}

.site-footer__inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 24px;
}

.site-footer__copy {
	font-size: 0.8125rem;
	color: var(--color-muted);
}
