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

:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --max-width: 1100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; border-radius: 6px; }

/* Navigation */
header {
    background: var(--primary);
    color: #fff;
}

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

.site-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

nav a {
    color: rgba(255,255,255,0.85);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
}

nav a:hover, nav a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
}

nav ul ul {
    display: none;
    position: absolute;
    background: var(--primary);
    padding: 8px 0;
    border-radius: 4px;
    min-width: 180px;
    z-index: 100;
}

nav li { position: relative; }
nav li:hover > ul { display: block; }
nav ul ul a { display: block; border-radius: 0; }

/* Main wrapper */
.page-wrapper {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 24px;
}

/* Two-column layouts */
.two-col {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

.two-col.left {
    grid-template-columns: 280px 1fr;
}

/* Typography */
h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 16px; color: var(--text-muted); }
h3 { font-size: 1.1rem; font-weight: 600; margin: 20px 0 8px; }
p  { margin-bottom: 14px; }
ul, ol { margin: 0 0 14px 20px; }
blockquote { border-left: 4px solid var(--primary-light); padding: 8px 16px; color: var(--text-muted); margin-bottom: 14px; }

/* Sidebar */
.sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-header {
    background: var(--primary);
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
}

.sidebar-body { padding: 18px; }
.sidebar-body img { width: 100%; margin-bottom: 12px; }

/* Homepage hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 24px;
    text-align: center;
}

.hero h1 { color: #fff; font-size: 2.8rem; margin-bottom: 12px; }
.hero h2 { color: rgba(255,255,255,0.8); font-size: 1.3rem; font-weight: 400; margin-bottom: 0; }

.hero-content {
    max-width: var(--max-width);
    margin: auto;
}

/* Contact */
.contact-form label { display: block; font-weight: 500; margin-bottom: 5px; margin-top: 14px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.contact-form button:hover { background: var(--primary-light); }

/* Footer */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 20px 24px;
    margin-top: 60px;
    font-size: 14px;
}

/* Preview banner */
.preview-banner {
    background: #f59e0b;
    color: #1e293b;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .two-col, .two-col.left { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    nav ul { gap: 0; }
}


.facebook  { background:#4167B2; }
.twitter   { background:#7ABDF2; }
.instagram { background:#FF0076; }
.linkedin  { background:#0B65C2; }
.mastodon  { background:#6364FF; }
.blog      { background:#F47C01; }
.youtube   { background:#FF0000; }

.social       { text-decoration:none; padding:0.6em 1em; color:#FFFFFF; font-size:0.8em; }
.social:hover { filter: brightness(90%); text-decoration:underline; }
.social.bw { background: #333333; }
.social.small {  }
