/* Yer a Wizard theme */
:root {
    --ink: #16130f;
    --ink-2: #2a241d;
    --paper: #f6f0e3;
    --surface: #fffdf8;
    --text: #221d17;
    --muted: #6f655a;
    --line: #e2d8c4;
    --burgundy: #7b1e2c;
    --gold: #d9a521;
    --serif: var(--gh-font-heading, "Playfair Display", Georgia, "Times New Roman", serif);
    --sans: var(--gh-font-body, "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
    --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #f6efe0; }
.site-header-inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    min-height: 78px;
}
.site-logo { justify-self: center; display: block; color: inherit; text-decoration: none; }
.site-logo img { max-height: 52px; width: auto; }
.logo-svg { height: 52px; width: auto; display: block; }
.logo-word { font-family: var(--serif); font-weight: 800; font-size: 31px; fill: #f6efe0; letter-spacing: 1px; }
.logo-sub { font-family: var(--sans); font-weight: 700; font-size: 13px; fill: var(--gold); letter-spacing: 1.5px; }
.hat-cone { fill: var(--gold); }
.hat-band { fill: var(--burgundy); }
.hat-brim { fill: #b8861a; }
.hat-star { fill: #fbf6ea; }
.owl-body { fill: var(--gold); }
.owl-face { fill: #f1d27e; }
.owl-chest { fill: none; stroke: #8a6410; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.owl-talon { stroke: #8a6410; stroke-width: 1.8; stroke-linecap: round; }
.owl-eye { fill: #f6efe0; }
.owl-pupil { fill: var(--ink); }
.owl-beak { fill: var(--burgundy); }
.owl-letter { fill: #f6efe0; stroke: #8a6410; stroke-width: 1.4; stroke-linejoin: round; }
.owl-flap { fill: none; stroke: #8a6410; stroke-width: 1.4; stroke-linejoin: round; }

.menu-toggle, .search-toggle {
    background: none; border: 0; color: inherit; cursor: pointer;
    width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
}
.menu-toggle { visibility: hidden; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.search-toggle { justify-self: end; }

.site-nav {
    background: var(--surface);
    border-bottom: 3px double var(--gold);
    color: var(--ink);
}
.site-nav .nav {
    list-style: none; margin: 0; padding: 0;
    display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px;
}
.site-nav .nav a {
    display: block; padding: 13px 0;
    font-size: 13.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
    text-decoration: none;
}
.site-nav .nav a:hover, .site-nav .nav-current a { color: var(--burgundy); }

@media (max-width: 760px) {
    .site-header-inner { min-height: 64px; }
    .logo-svg { height: 42px; }
    .menu-toggle { visibility: visible; }
    .site-nav { display: none; }
    .site-nav.is-open { display: block; }
    .site-nav .nav { flex-direction: column; align-items: flex-start; gap: 0; }
    .site-nav .nav li { width: 100%; border-bottom: 1px solid var(--line); }
    .site-nav .nav li:last-child { border-bottom: 0; }
}

/* ---------- Layout ---------- */
.site-main { padding-top: 32px; padding-bottom: 56px; }

.section-label {
    display: flex; align-items: center; gap: 16px;
    margin: 44px 0 22px;
    font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--burgundy);
}
.section-label::before, .section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
@media (max-width: 999px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 599px) { .grid { grid-template-columns: 1fr; gap: 18px; } }

.card { background: var(--ink); border-radius: 4px; overflow: hidden; box-shadow: 0 1px 2px rgba(22,19,15,.08), 0 6px 18px rgba(22,19,15,.08); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: #fff; }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-link:hover .card-img img { transform: scale(1.04); }
.card-img-empty { width: 100%; height: 100%; display: grid; place-items: center; }
.card-img-empty .owl-mark { width: 30%; opacity: .5; }
.card-bar { flex: 1; padding: 15px 18px 19px; border-top: 3px solid var(--gold); }
.card-tag {
    display: block; margin-bottom: 6px;
    font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold);
}
.card-title {
    margin: 0;
    font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.28; color: #fbf6ea;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-link:hover .card-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* Lead section on the homepage */
.lead { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; }
.lead-side { display: grid; grid-template-rows: 1fr 1fr; gap: 26px; }
.lead-side .card-img { aspect-ratio: 16 / 9; }
.lead-side .card-title { font-size: 19px; -webkit-line-clamp: 2; }
.card-large .card-link { position: relative; }
.card-large .card-img { aspect-ratio: auto; height: 100%; min-height: 460px; }
.card-large .card-bar {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(22,19,15,.97) 55%, rgba(22,19,15,.0));
    border-top: 0; padding: 70px 30px 28px;
}
.card-large .card-tag { font-size: 13px; }
.card-large .card-title { font-size: 34px; line-height: 1.15; -webkit-line-clamp: 4; }
@media (max-width: 899px) {
    .lead { grid-template-columns: 1fr; gap: 20px; }
    .lead-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 20px; }
    .card-large .card-img { min-height: 0; aspect-ratio: 4 / 3; }
    .card-large .card-title { font-size: 27px; }
}
@media (max-width: 599px) {
    .lead-side { grid-template-columns: 1fr; }
    .card-large .card-bar { padding: 50px 18px 18px; }
    .card-large .card-title { font-size: 23px; }
}

/* ---------- Archive headers ---------- */
.archive-header { text-align: center; max-width: 760px; margin: 10px auto 36px; }
.archive-kicker { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--burgundy); }
.archive-title { font-family: var(--serif); font-size: 46px; line-height: 1.1; margin: 6px 0 10px; }
.archive-desc { color: var(--muted); font-size: 19px; margin: 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; font-weight: 700; }
.pagination a {
    background: var(--ink); color: #fbf6ea; text-decoration: none;
    padding: 12px 22px; border-radius: 3px; border-bottom: 3px solid var(--gold);
}
.pagination a:hover { background: var(--burgundy); }
.pagination .page-number { color: var(--muted); font-size: 15px; }

/* ---------- Post ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
@media (max-width: 1099px) {
    .post-layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar { display: none; }
}
.post { max-width: 760px; width: 100%; }
.post-header { margin-bottom: 26px; }
.post-tag {
    display: inline-block; margin-bottom: 12px;
    font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--burgundy); text-decoration: none; border-bottom: 2px solid var(--gold);
}
.post-title { font-family: var(--serif); font-weight: 800; font-size: 44px; line-height: 1.12; margin: 0 0 14px; }
.post-dek { font-size: 21px; line-height: 1.45; color: var(--muted); margin: 0 0 16px; }
.post-meta { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.post-meta a { text-decoration: none; font-weight: 600; color: var(--text); }
.post-image { margin: 0 0 30px; }
.post-image img { width: 100%; border-radius: 4px; }
.post-image figcaption, .post-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
@media (max-width: 599px) {
    .post-title { font-size: 32px; }
    .post-dek { font-size: 19px; }
    .site-main { padding-top: 22px; }
}

/* Article body */
.post-content { font-size: 19.5px; line-height: 1.72; }
.post-content > * { margin: 0 0 1.25em; }
.post-content h2, .post-content h3, .post-content h4 { font-family: var(--serif); line-height: 1.2; margin: 1.6em 0 .6em; }
.post-content h2 { font-size: 31px; }
.post-content h3 { font-size: 25px; }
.post-content h4 { font-size: 21px; }
.post-content a { color: var(--burgundy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-content a:hover { color: var(--ink); }
.post-content ul, .post-content ol { padding-left: 1.3em; }
.post-content li { margin-bottom: .45em; }
.post-content blockquote {
    margin: 1.6em 0; padding: 4px 0 4px 24px;
    border-left: 4px solid var(--gold);
    font-family: var(--serif); font-size: 24px; line-height: 1.45; font-style: italic;
}
.post-content hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.post-content img { border-radius: 4px; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 17px; }
.post-content th, .post-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.post-content th { background: var(--surface); }
.kg-width-wide { position: relative; width: 100%; }
.kg-width-full { position: relative; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.post-layout .kg-width-full { width: 100%; left: auto; right: auto; margin-left: 0; margin-right: 0; }
.kg-card { margin-bottom: 1.5em; }
.kg-callout-card { border-radius: 4px; }

/* Share */
.post-share {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
    font-weight: 700; font-size: 15px;
}
.post-share span { margin-right: 6px; color: var(--muted); font-weight: 600; }
.post-share a { text-decoration: none; color: #fff; padding: 8px 16px; border-radius: 3px; }
.share-fb { background: #1877f2; }
.share-x { background: #111; }
.share-pin { background: #c8232c; }

/* Sidebar */
.sidebar { position: relative; height: 100%; }
.sidebar-block { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 18px 18px 8px; }
.sidebar-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--burgundy); }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { border-top: 1px solid var(--line); }
.mini-list li:first-child { border-top: 0; }
.mini-list a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 11px 0; text-decoration: none; }
.mini-list img { width: 72px; height: 72px; object-fit: cover; border-radius: 3px; }
.mini-list span { font-family: var(--serif); font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.mini-list a:hover span { color: var(--burgundy); }
.sidebar-sticky { position: sticky; top: 20px; min-height: 600px; margin-top: 24px; }

.more { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc5b3; padding: 46px 0 34px; text-align: center; border-top: 4px solid var(--gold); }
.footer-logo { display: inline-block; text-decoration: none; }
.footer-logo .logo-svg, .footer-logo img { height: 46px; width: auto; }
.footer-desc { max-width: 560px; margin: 14px auto 0; font-size: 16px; }
.footer-nav .nav { list-style: none; padding: 0; margin: 20px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: #f6efe0; text-decoration: none; font-size: 14px; font-weight: 600; }
.footer-nav a:hover { color: var(--gold); }
.footer-disclaimer { max-width: 620px; margin: 22px auto 0; font-size: 13px; line-height: 1.5; color: #9d9381; }
.footer-copy { margin: 8px 0 0; font-size: 13px; color: #9d9381; }

/* ---------- Error ---------- */
.error-page { text-align: center; padding-top: 70px; padding-bottom: 90px; }
.error-page .owl-mark { width: 90px; margin: 0 auto; }

