/* DEV-BYTE — shared stylesheet for content pages (blog) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:           #0b132b;
    --bg2:          #0f1a38;
    --surface:      #111b38;
    --surface2:     #18224a;
    --border:       rgba(92, 122, 255, 0.14);
    --border-hover: rgba(92, 122, 255, 0.35);
    --text:         #f0f4ff;
    --text-muted:   #7a90c8;
    --text-dim:     #3e5080;
    --red:          #ff4d6d;
    --blue:         #5c7aff;
    --teal:         #00f5d4;
    --gold:         #ffb703;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 68px;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11, 19, 43, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.nav-logo { height: 34px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-contact {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.125rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted) !important;
    font-size: 0.8125rem !important;
}
.nav-contact:hover { border-color: var(--border-hover); color: var(--text) !important; }

main.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1.25rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red); display: inline-block; }

article h1, .page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.meta {
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

article h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

article p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

article strong { color: var(--text); font-weight: 600; }

article ul, article ol {
    margin: 0 0 1.25rem 1.25rem;
    color: var(--text-muted);
}
article li { margin-bottom: 0.5rem; line-height: 1.65; }
article li::marker { color: var(--blue); }

.callout {
    border-left: 2.5px solid var(--blue);
    background: rgba(92,122,255,.06);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.callout strong { color: var(--text); }

.disclaimer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--blue);
    text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* blog index */
.post-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
.post-card {
    display: block;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.post-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem;
}
.post-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; line-height: 1.55; }
.post-card .tag { font-size: 0.7rem; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 0.5rem; display: block; }

footer {
    padding: 2.75rem 2.5rem;
    border-top: 1px solid var(--border);
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-logo { height: 30px; width: auto; }
.footer-copy { font-size: 0.785rem; color: var(--text-dim); }
.footer-nav { list-style: none; display: flex; gap: 1.75rem; }
.footer-nav a { font-size: 0.785rem; color: var(--text-dim); text-decoration: none; }
.footer-nav a:hover { color: var(--text-muted); }

@media (max-width: 640px) {
    nav { padding: 0 1.25rem; }
    .nav-links { gap: 1rem; }
    .nav-links li:not(:last-child) { display: none; }
    main.wrap { padding: 2.5rem 1.25rem 3.5rem; }
    footer { padding: 2rem 1.25rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.875rem; }
}
