/* ==========================================================================
   Norsk i Thailand — Ghost theme
   Palette and layout sampled from norskithailand.info
   ========================================================================== */

:root {
    --color-primary: #861142;
    --color-accent: #5ea500;
    --color-topbar: #1e2838;
    --color-bg: #f3f4f6;
    --color-surface: #ffffff;
    --color-border: #e5e7eb;
    --color-heading: #0b0b0e;
    --color-text: #374053;
    --color-text-muted: #62758f;
    --color-footer-text: #98a0af;
    --radius: 6px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    font-size: 16px;
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top strip */
.topbar {
    height: 6px;
    background: var(--color-topbar);
}

/* Header */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 19px;
    color: var(--color-heading);
}

.site-logo img { height: 28px; width: auto; }
.site-logo-mark { color: var(--color-primary); }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
}

.site-nav a:hover { color: var(--color-primary); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: #6f0e36; }

.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #4f8f00; }

.btn-ghost {
    background: rgba(134, 17, 66, 0.06);
    color: var(--color-primary);
}
.btn-ghost:hover { background: rgba(134, 17, 66, 0.12); }

.btn-block { width: 100%; }

/* Layout columns */
.page-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    padding: 40px 24px 80px;
}

.page-columns-top {
    padding-top: 56px;
}

.section-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 20px;
}

/* Post list / cards */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.post-card-image {
    flex: 0 0 96px;
    width: 96px;
    height: 72px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-border);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-heading);
}

.post-card-title a:hover { color: var(--color-primary); }

.post-card-meta {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.see-all-link {
    display: inline-block;
    margin-top: 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
}

.see-all-link:hover { text-decoration: underline; }

/* Sidebar / ad placeholders */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ad-slot {
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot-tall { min-height: 600px; }

.ad-slot-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Post full */
.post-full-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-heading);
    margin: 32px 0 8px;
}

.post-full-meta {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 24px;
}

.post-full-meta-reading { float: right; }

.post-full-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 24px;
}

.post-full-excerpt {
    font-size: 18px;
    font-style: italic;
    color: #4b5568;
    border-left: 3px solid var(--color-primary);
    padding-left: 16px;
    margin-bottom: 28px;
}

.post-full-content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
}

.post-full-content h2,
.post-full-content h3 {
    color: var(--color-heading);
}

.post-full-content a { color: var(--color-primary); text-decoration: underline; }

.post-full-content img { border-radius: 8px; margin: 24px 0; }

/* Koenig editor width classes */
.post-full-content .kg-width-wide {
    width: 100%;
    max-width: calc(100% + 160px);
    margin-left: -80px;
    margin-right: -80px;
}

.post-full-content .kg-width-full {
    width: 100vw;
    max-width: 1200px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

@media (max-width: 1300px) {
    .post-full-content .kg-width-wide,
    .post-full-content .kg-width-full {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.post-full-tags {
    margin-top: 32px;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Footer */
.site-footer {
    background: var(--color-topbar);
    padding: 48px 0 0;
    font-size: 15px;
    color: var(--color-footer-text);
}

.site-footer-inner {
    display: flex;
    gap: 64px;
    padding-bottom: 32px;
}

.footer-nav-col-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 14px;
}

.footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav a {
    display: block;
    margin-bottom: 10px;
    color: var(--color-footer-text);
}

.footer-nav a:hover { color: #ffffff; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p { margin: 0; color: var(--color-footer-text); }

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
}

.footer-social a { color: var(--color-footer-text); }
.footer-social a:hover { color: #ffffff; }

/* Responsive */
@media (max-width: 800px) {
    .page-columns { grid-template-columns: 1fr; }
    .site-footer-inner { flex-direction: column; gap: 32px; }
    .site-nav { display: none; }
}
