/* ARKBEL Blog — shared styles
 * Matches the visual language of arkbel.com (dark theme, gold accents).
 */

:root {
    --bg-primary: #0C0C0E;
    --bg-secondary: #141418;
    --bg-elevated: #1A1A1F;
    --bg-hover: #222228;

    --text-primary: #F5F5F3;
    --text-secondary: #A0A0A0;
    --text-muted: #6B6B6B;

    --accent: #D4A254;
    --accent-light: #E8C078;
    --accent-dark: #B8862E;
    --accent-glow: rgba(212, 162, 84, 0.15);

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --font-display: 'Syne', sans-serif;
    --font-body: 'Instrument Sans', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease-out); }
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; display: block; }

/* --- Nav --- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(12, 12, 14, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: none;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 0.2s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

@media (min-width: 900px) {
    .nav-links { display: flex; }
}

/* --- Mobile menu button & drawer --- */

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 0 10px;
    transition: border-color 0.2s var(--ease-out);
}

.mobile-menu-btn:hover { border-color: var(--accent); }

.mobile-menu-btn span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: background 0.2s var(--ease-out);
}

@media (min-width: 900px) {
    .mobile-menu-btn { display: none; }
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg-primary);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
}

.mobile-menu.open { display: flex; }

.mobile-menu-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s var(--ease-out);
}

.mobile-menu-close:hover { border-color: var(--accent); }

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
}

.mobile-menu li a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    transition: color 0.2s var(--ease-out);
}

.mobile-menu li a:hover { color: var(--accent); }

/* --- Layout --- */

main {
    padding-top: 72px;
    min-height: 100vh;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Blog listing (index) --- */

.blog-hero {
    padding: var(--space-2xl) 0 var(--space-xl);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.blog-hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.blog-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.blog-hero p {
    max-width: 580px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

.pillar {
    padding: var(--space-2xl) 0 var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.pillar:last-child { border-bottom: none; }

.pillar-header {
    margin-bottom: var(--space-lg);
}

.pillar-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.pillar h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.post-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

@media (min-width: 700px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}

.post-card {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: var(--space-md);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-out);
}

.post-card:hover {
    border-color: var(--accent);
    background: var(--bg-elevated);
    transform: translateY(-2px);
    color: inherit;
}

.post-card-date {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.post-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.post-card p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.5;
}

.pillar-empty {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

/* --- Post detail --- */

.post-header {
    padding: var(--space-2xl) 0 var(--space-xl);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.post-pillar {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.post-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 820px;
    margin: 0 auto var(--space-md);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.post-meta .author {
    color: var(--text-secondary);
}

.post-body {
    padding: var(--space-xl) 0 var(--space-2xl);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-primary);
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body pre,
.post-body figure {
    margin-bottom: var(--space-md);
}

.post-body h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.post-body h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.post-body ul,
.post-body ol {
    padding-left: var(--space-md);
}

.post-body li {
    margin-bottom: var(--space-xs);
}

.post-body blockquote {
    padding: var(--space-md) var(--space-md);
    border-left: 3px solid var(--accent);
    background: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-body code {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 0.9em;
    color: var(--accent-light);
}

.post-body pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: var(--space-md);
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 0.875em;
}

.post-body pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-primary);
}

.post-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.post-body a:not(.btn) {
    color: var(--accent);
    border-bottom: 1px solid var(--accent-glow);
}

.post-body a:not(.btn):hover {
    border-bottom-color: var(--accent);
}

.post-cta {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
}

.post-cta h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.post-cta p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 0.925rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.925rem;
    border-radius: 8px;
    transition: all 0.2s var(--ease-out);
    border: 1px solid var(--accent);
}

.btn:hover {
    background: var(--accent-light);
    color: var(--bg-primary);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px -10px var(--accent);
}

/* --- Footer --- */

footer {
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--border);
    margin-top: var(--space-2xl);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    text-align: center;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.825rem;
    letter-spacing: 0.02em;
}

.footer-copyright a {
    color: var(--text-secondary);
}
