/* NCC theme — academic, whitespace-heavy, gold accents */
:root {
    --bg: #fafaf8;
    --surface: #ffffff;
    --ink: #1c1c1c;
    --muted: #6b6b6b;
    --accent: #b07d2e;      /* warm gold, from the old site eyebrows */
    --line: #e6e3dd;
    --serif: "Source Serif 4", Georgia, serif;
    --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
    --maxw: 1080px;
}
* { box-sizing: border-box; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 17px; line-height: 1.7;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { padding: 28px 24px 0; text-align: center; }
.site-title {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(1.5rem, 3.2vw, 2.2rem); text-decoration: none;
}
.site-logo img { max-height: 64px; }
.site-tagline { color: var(--muted); font-size: 0.95rem; margin: 6px 0 18px; }
.site-nav { border-top: 1px solid transparent; }
.site-nav ul {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 4px; list-style: none; margin: 0; padding: 0;
}
.site-nav li a {
    display: block; padding: 14px 16px; font-size: 0.95rem;
    text-decoration: none; color: var(--ink);
    border-bottom: 2px solid transparent;
}
.site-nav li a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav li.nav-current a { color: var(--accent); border-bottom-color: var(--accent); }
/* dropdown */
.site-nav .has-sub { position: relative; }
.site-nav .sub {
    display: none; position: absolute; left: 0; top: 100%; z-index: 20;
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08); min-width: 220px; flex-direction: column;
    padding: 6px; text-align: left;
}
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: flex; }
.site-nav .sub li a { padding: 9px 14px; border-bottom: none; border-radius: 6px; }
.site-nav .sub li a:hover { background: var(--bg); }
@media (max-width: 720px) {
    .site-nav ul { flex-direction: column; align-items: center; }
    .site-nav .sub { position: static; box-shadow: none; border: none; display: flex; }
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: 72px 0 48px; }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); margin: 8px 0 12px; }
.hero-desc { color: var(--muted); max-width: 640px; margin: 0 auto; }
.eyebrow {
    display: inline-block; color: var(--accent); text-transform: uppercase;
    letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600;
}

/* ---------- cards ---------- */
.page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 64px; }
.page-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    padding: 22px 20px; text-decoration: none; transition: box-shadow .15s, transform .15s;
}
.page-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.07); transform: translateY(-2px); }
.page-card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.15rem; }
.page-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 16px 0 72px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.post-card h3 { margin: 0; font-family: var(--serif); font-size: 1.1rem; }
.post-card h3 a { text-decoration: none; }
.post-card .post-meta { color: var(--muted); font-size: 0.82rem; margin: 6px 0; }
.post-card .post-excerpt { font-size: 0.92rem; color: #3d3d3d; }
.post-card > h3, .post-card > .post-meta, .post-card > .post-excerpt { margin-left: 18px; margin-right: 18px; }
.post-card > h3 { margin-top: 16px; }
.post-card > .post-excerpt { margin-bottom: 20px; }

/* ---------- single post/page ---------- */
.post-single { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
/* Ghost editor width classes (required by gscan GS050-CSS-KGWW/KGWF) */
.kg-width-wide { max-width: 980px; margin-left: auto; margin-right: auto; }
.kg-width-full { max-width: 1200px; margin-left: auto; margin-right: auto; }
.kg-width-wide img, .kg-width-full img { width: 100%; }
.kg-width-wide figure, .kg-width-full figure { margin-left: 0; margin-right: 0; }
@media (min-width: 1240px) {
    .kg-width-wide { max-width: 980px; margin-left: calc(380px - 490px); }
    .kg-width-full { max-width: 1200px; margin-left: calc(380px - 600px); }
}
.post-header h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0 0; }
.post-image { margin: 32px 0; }
.post-content h2 { font-family: var(--serif); margin-top: 2em; }
.post-content h3 { font-family: var(--serif); }
.post-content blockquote { border-left: 3px solid var(--accent); margin-left: 0; padding-left: 1.2em; color: var(--muted); font-style: italic; }
.post-content img { border-radius: 8px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding: 40px 24px; font-size: 0.9rem; color: var(--muted); }
.footer-title { color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.footer-copy { align-self: end; text-align: right; }
@media (max-width: 640px) { .footer-copy { text-align: left; } }

/* hide member portal UI (belt & braces with code injection) */
.gh-subscribe, .gh-signin, [data-portal] { display: none !important; }
