:root {
    --ink: #13111a;
    --muted: #686474;
    --paper: #f7f4ed;
    --surface: #ffffff;
    --line: #ded9ce;
    --violet: #5e3d85;
    --violet-deep: #291b3b;
    --violet-soft: #eee8f4;
    --gold: #c49a4a;
    --gold-soft: #f3e5c8;
    --night: #17111f;
    --success: #2c7a59;
    --danger: #a63d40;
    --shadow: 0 18px 55px rgba(28, 19, 39, .10);
    --radius: 18px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
    margin: 0 0 .7em;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.025em;
}
h1 { font-size: clamp(2.8rem, 7vw, 6.3rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
p { margin: 0 0 1.2em; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; left: 20px; top: -80px; z-index: 9999;
    padding: 10px 18px; background: var(--surface); border-radius: 8px;
}
.skip-link:focus { top: 20px; }
.eyebrow {
    margin: 0 0 18px;
    color: var(--violet);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 11px 22px; border: 1px solid transparent;
    border-radius: 999px; font-weight: 750; transition: .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--violet); box-shadow: 0 10px 25px rgba(94, 61, 133, .23); }
.button-primary:hover { background: #4a2f6c; }
.button-secondary { color: var(--violet); background: var(--surface); border-color: var(--line); }
.button-ghost { color: var(--ink); border-color: rgba(19, 17, 26, .25); }
.button-light { color: var(--night); background: var(--gold-soft); }
.button-small { min-height: 38px; padding: 7px 14px; font-size: .86rem; }
.text-link, .card-link {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--violet); font-weight: 750;
}
.text-link span, .card-link span { transition: transform .2s ease; }
.text-link:hover span, .card-link:hover span { transform: translateX(4px); }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: .88rem; font-weight: 700; }

/* Public header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid rgba(222, 217, 206, .7);
    background: rgba(247, 244, 237, .92);
    backdrop-filter: blur(16px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--gold); border-radius: 50%;
    color: var(--gold); font-size: 1.7rem; line-height: 1;
}
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 500; letter-spacing: .01em; }
.brand small { display: block; max-width: 270px; color: var(--muted); font-size: .66rem; letter-spacing: .04em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a { position: relative; font-size: .82rem; font-weight: 720; }
.site-nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -7px;
    height: 1px; background: var(--violet); transition: right .2s ease;
}
.site-nav a:hover::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

/* Hero */
.hero {
    position: relative; min-height: min(790px, calc(100vh - 84px));
    display: grid; align-items: center; overflow: hidden;
    background:
        radial-gradient(circle at 78% 38%, rgba(196, 154, 74, .18), transparent 18%),
        radial-gradient(circle at 80% 44%, rgba(94, 61, 133, .13), transparent 38%),
        var(--paper);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 8vw; align-items: center; padding-block: 90px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 800px; }
.hero-lead { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.hero-symbol { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.symbol-ring { position: absolute; border: 1px solid rgba(94, 61, 133, .33); border-radius: 50%; }
.ring-one { inset: 4%; }
.ring-two { inset: 21%; border-color: rgba(196, 154, 74, .65); transform: rotate(45deg); border-radius: 22%; }
.symbol-ring::before, .symbol-ring::after {
    content: ""; position: absolute; inset: 13%; border: inherit; border-radius: inherit; transform: rotate(45deg);
}
.symbol-core {
    display: grid; place-items: center; width: 31%; aspect-ratio: 1;
    color: var(--gold); border: 1px solid var(--gold); border-radius: 50%;
    font-size: clamp(3rem, 7vw, 6rem);
}
.hero-orbit { position: absolute; border: 1px solid rgba(94, 61, 133, .09); border-radius: 50%; }
.hero-orbit-one { width: 700px; height: 700px; left: -480px; bottom: -400px; }
.hero-orbit-two { width: 480px; height: 480px; right: -260px; top: -210px; }

.section { padding-block: clamp(72px, 10vw, 130px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 45px; }
.section-heading h2 { margin-bottom: 0; max-width: 700px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
    overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); box-shadow: 0 1px 0 rgba(0,0,0,.02);
    transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card-image { display: block; aspect-ratio: 1.32; overflow: hidden; background: var(--violet-soft); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(94,61,133,.35); font-size: 4rem; }
.post-card-body { padding: 25px; }
.post-card-body h2, .post-card-body h3 { margin: 8px 0 12px; font-size: 1.5rem; }
.post-card-body p { color: var(--muted); font-size: .92rem; }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.post-meta span { color: var(--violet); font-weight: 800; }
.card-link { margin-top: 10px; font-size: .85rem; }
.section-dark { color: #f8f2ff; background: var(--night); }
.section-dark .eyebrow { color: #d7b96f; }
.feature-strip { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; align-items: center; }
.feature-strip p:not(.eyebrow) { max-width: 520px; color: #c5bdcb; }
.feature-image { display: block; aspect-ratio: 1.55; overflow: hidden; border-radius: 120px 18px 120px 18px; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-symbol { display: grid; place-items: center; aspect-ratio: 1.55; color: #d7b96f; font-size: 9rem; border: 1px solid rgba(215,185,111,.4); border-radius: 120px 18px; }
.manifesto { max-width: 920px; text-align: center; }
.manifesto blockquote { margin: 0 auto 34px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.2; }

/* Internal public pages */
.page-hero {
    padding-block: clamp(85px, 12vw, 170px);
    color: #f8f3ff;
    background:
        linear-gradient(115deg, rgba(23,17,31,.98), rgba(55,31,73,.91)),
        radial-gradient(circle at 80% 30%, #7956a3, transparent 34%);
}
.page-hero.compact { padding-block: clamp(70px, 9vw, 115px); }
.page-hero h1 { max-width: 900px; }
.page-hero p:not(.eyebrow) { max-width: 720px; color: #c9c0d0; font-size: 1.15rem; }
.page-hero .eyebrow { color: #d7b96f; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 7vw; align-items: center; }
.page-hero-grid img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 140px 18px 140px 18px; }
.archive-section { padding-top: 55px; }
.filter-bar {
    display: grid; grid-template-columns: minmax(240px, 1fr) minmax(210px, .5fr) auto auto;
    gap: 12px; align-items: end; padding: 17px; border: 1px solid var(--line);
    border-radius: 16px; background: var(--surface);
}
input, textarea, select {
    width: 100%; border: 1px solid var(--line); border-radius: 10px;
    padding: 11px 13px; color: var(--ink); background: var(--surface); outline: 0;
}
input:focus, textarea:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(94,61,133,.1); }
textarea { resize: vertical; }
.results-line { display: flex; justify-content: space-between; gap: 20px; margin: 35px 0 22px; color: var(--muted); }
.results-line p { margin: 0; font-weight: 750; color: var(--ink); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 45px; }
.pagination a { display: grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; }
.pagination a[aria-current="page"] { color: white; background: var(--violet); border-color: var(--violet); }
.empty-state { padding: 70px 25px; text-align: center; }
.empty-state > span { display: block; color: var(--gold); font-size: 5rem; }
.full-message { min-height: 70vh; display: grid; place-items: center; }
.full-message .empty-state { max-width: 820px; }
.full-message .hero-actions { justify-content: center; }

/* Article */
.article-header { padding: 95px 0 60px; }
.article-header-inner { max-width: 980px; }
.article-header h1 { max-width: 940px; font-size: clamp(2.8rem, 6vw, 5.5rem); }
.category-pill { display: inline-flex; margin-bottom: 20px; padding: 7px 13px; color: var(--violet); background: var(--violet-soft); border-radius: 999px; font-size: .75rem; font-weight: 800; }
.article-deck { max-width: 790px; color: var(--muted); font-size: 1.2rem; }
.article-byline { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; color: var(--muted); font-size: .82rem; }
.article-byline span + span::before, .article-byline time::before { content: "◇"; margin-right: 24px; color: var(--gold); }
.article-cover { overflow: hidden; max-height: 710px; border-radius: 24px; background: var(--violet-soft); }
.article-cover img { width: 100%; height: 100%; max-height: 710px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 230px; justify-content: center; gap: 90px; padding-block: 75px 120px; }
.prose { font-family: Georgia, "Times New Roman", serif; font-size: 1.14rem; line-height: 1.84; }
.prose h2, .prose h3, .prose h4 { margin: 2em 0 .75em; }
.prose h2 { font-size: 2.35rem; }
.prose h3 { font-size: 1.75rem; }
.prose p { margin: 0 0 1.45em; }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--gold); color: #463b4f; font-size: 1.35rem; font-style: italic; }
.prose ul, .prose ol { margin-bottom: 1.5em; }
.prose img { width: auto; max-height: 760px; margin: 2.3em auto; border-radius: 12px; }
.prose figure { margin: 2.3em 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption { margin-top: 10px; color: var(--muted); font-family: Inter, sans-serif; font-size: .78rem; text-align: center; }
.video-embed, .prose .embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 2.5em; overflow: hidden; border-radius: 14px; background: #000; }
.video-embed iframe, .prose .embed iframe { width: 100%; height: 100%; border: 0; }
.article-aside { position: relative; }
.aside-card { position: sticky; top: 110px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.aside-card + .aside-card { position: static; margin-top: 16px; }
.copy-link { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list a { padding: 5px 9px; color: var(--muted); background: var(--paper); border-radius: 7px; font-size: .72rem; }
.related-section { border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-grid a { display: flex; flex-direction: column; min-height: 210px; padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.related-grid span { color: var(--violet); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.related-grid strong { margin: 13px 0 auto; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.related-grid em { margin-top: 20px; color: var(--muted); font-size: .8rem; font-style: normal; }

/* Galleries */
.gallery-count { display: inline-block; margin-top: 10px; color: #d7b96f; font-size: .82rem; }
.gallery-section { padding-top: 45px; }
.masonry-gallery { columns: 3 300px; column-gap: 18px; }
.gallery-item {
    position: relative; width: 100%; margin: 0 0 18px; padding: 0;
    overflow: hidden; break-inside: avoid; border: 0; border-radius: 12px; background: #e7e0eb;
}
.gallery-item img { width: 100%; height: auto; transition: transform .35s ease, filter .35s ease; }
.gallery-item:hover img { transform: scale(1.025); filter: brightness(.78); }
.gallery-item > span {
    position: absolute; inset: auto 15px 14px; color: white; font-weight: 700;
    text-align: left; opacity: 0; transform: translateY(7px); transition: .25s ease;
}
.gallery-item:hover > span { opacity: 1; transform: none; }
.lightbox {
    width: 100vw; max-width: none; height: 100vh; max-height: none; padding: 30px;
    border: 0; color: white; background: rgba(10, 8, 13, .96);
}
.lightbox::backdrop { background: rgba(0,0,0,.82); }
.lightbox[open] { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; }
.lightbox figure { max-width: min(1200px, 82vw); max-height: 90vh; margin: auto; }
.lightbox img { max-height: 82vh; margin: auto; }
.lightbox figcaption { margin-top: 12px; color: #d1c9d6; text-align: center; }
.lightbox-close, .lightbox-nav { border: 0; color: white; background: transparent; font-size: 2rem; }
.lightbox-close { position: fixed; right: 26px; top: 18px; z-index: 2; font-size: 2.5rem; }
.gallery-index-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.gallery-index-card { overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.gallery-index-card img { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.gallery-index-card div { padding: 28px; }
.gallery-index-card span { color: var(--violet); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.gallery-index-card h2 { margin-top: 10px; font-size: 2rem; }
.gallery-index-card p { color: var(--muted); }

/* Contact and footer */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; }
.contact-copy { padding-top: 25px; }
.contact-form { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
label { display: grid; gap: 7px; margin-bottom: 17px; color: #3a3540; font-size: .84rem; font-weight: 720; }
.honeypot { position: absolute; left: -10000px; }
.site-footer { padding-top: 75px; color: #d4ccd9; background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 60px; padding-bottom: 65px; }
.brand-footer { color: white; }
.footer-grid p { max-width: 480px; margin-top: 20px; color: #9f95a7; }
.footer-grid nav, .social-links { display: grid; align-content: start; gap: 12px; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #807585; font-size: .74rem; }
.flash-stack { position: relative; z-index: 60; }
.flash { margin-top: 14px; padding: 12px 16px; border: 1px solid; border-radius: 9px; font-size: .88rem; }
.flash-success { color: #205f43; border-color: #a8d7bf; background: #e9f7ef; }
.flash-error { color: #8d3034; border-color: #e7b9bb; background: #fff0f0; }

/* Admin foundations */
.admin-body { min-height: 100vh; background: #f2f0eb; font-size: 14px; }
.admin-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
    position: sticky; top: 0; z-index: 80; display: flex; flex-direction: column;
    height: 100vh; padding: 28px 20px; color: #d9d0e0; background: var(--night);
}
.admin-brand { display: flex; align-items: center; gap: 13px; color: white; }
.admin-brand > span { display: grid; place-items: center; width: 40px; height: 40px; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; font-size: 1.5rem; }
.admin-brand strong { font-family: Georgia, serif; font-size: 1rem; line-height: 1.1; font-weight: 500; }
.admin-sidebar nav { display: grid; gap: 5px; margin-top: 55px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: #a99eb1; font-weight: 650; }
.admin-sidebar nav a > span { width: 20px; color: #7d6d87; text-align: center; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: white; background: rgba(255,255,255,.08); }
.admin-sidebar nav a.active > span { color: var(--gold); }
.admin-sidebar-footer { display: grid; gap: 8px; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-footer a, .admin-sidebar-footer button { width: 100%; padding: 7px 9px; border: 0; color: #9b91a2; background: transparent; text-align: left; font-size: .78rem; }
.admin-main { min-width: 0; }
.admin-topbar {
    position: sticky; top: 0; z-index: 45; display: flex; align-items: center;
    min-height: 78px; padding: 12px clamp(22px, 4vw, 55px); border-bottom: 1px solid #e2ded6;
    background: rgba(247,246,242,.94); backdrop-filter: blur(12px);
}
.admin-topbar > div:first-of-type { display: grid; }
.admin-page-label { color: var(--muted); font-size: .66rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.admin-topbar > div strong { font-family: Georgia, serif; font-size: 1.17rem; font-weight: 500; }
.admin-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.admin-user > span { display: grid; place-items: center; width: 38px; height: 38px; color: white; background: var(--violet); border-radius: 50%; font-weight: 800; }
.admin-user div { display: grid; line-height: 1.3; }
.admin-user small { color: var(--muted); text-transform: capitalize; }
.admin-menu-button { display: none; margin-right: 15px; border: 0; background: transparent; font-size: 1.4rem; }
.admin-content { padding: 42px clamp(22px, 4vw, 55px) 80px; }
.admin-flash { margin: 0 clamp(22px, 4vw, 55px); }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.admin-heading-spaced { margin-top: 42px; }
.admin-heading .eyebrow { margin-bottom: 8px; }
.admin-heading h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.admin-heading p:last-child { margin: 7px 0 0; color: var(--muted); }
.admin-panel { border: 1px solid #dedad2; border-radius: 14px; background: var(--surface); box-shadow: 0 2px 12px rgba(30,23,37,.035); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 25px; }
.stat-card { display: grid; padding: 23px; border: 1px solid #dedad2; border-radius: 14px; background: var(--surface); }
.stat-card > span { color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.stat-card strong { margin: 12px 0 3px; font-family: Georgia, serif; font-size: 2.8rem; font-weight: 500; line-height: 1; }
.stat-card small { color: var(--muted); }
.stat-card-accent { color: white; background: var(--violet-deep); }
.stat-card-accent span, .stat-card-accent small { color: #c9bed1; }
.admin-grid-two { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-heading > div > span { color: var(--violet); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.panel-heading h2 { margin: 4px 0 0; font-family: Inter, sans-serif; font-size: 1.15rem; font-weight: 800; letter-spacing: 0; }
.panel-heading > a { color: var(--violet); font-size: .78rem; font-weight: 750; }
.admin-grid-two > .admin-panel { padding: 24px; }
.admin-list { display: grid; }
.admin-list-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 13px; align-items: center; padding: 12px 0; border-top: 1px solid #ece9e3; }
.admin-list-thumb { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; color: var(--violet); background: var(--violet-soft); border-radius: 9px; }
.admin-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-list-item div:nth-child(2) { display: grid; min-width: 0; }
.admin-list-item div:nth-child(2) strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-list-item small { color: var(--muted); }
.status { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 999px; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.status-published, .status-answered { color: #236143; background: #e1f3e8; }
.status-draft, .status-new { color: #855f17; background: #f8edcf; }
.status-archived, .status-spam { color: #746c78; background: #eeeaf0; }
.status-read { color: #3a5f86; background: #e4eef8; }
.quick-actions { display: grid; align-content: start; }
.quick-actions > a { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid #ece9e3; }
.quick-actions > a > span { display: grid; place-items: center; width: 36px; height: 36px; color: var(--violet); background: var(--violet-soft); border-radius: 9px; }
.quick-actions > a div { display: grid; }
.quick-actions small { color: var(--muted); }
.quick-actions em { color: var(--violet); font-style: normal; }
.empty-mini { padding: 30px; color: var(--muted); text-align: center; }

/* Admin lists/forms */
.admin-filter { display: grid; grid-template-columns: 1fr 220px auto; gap: 10px; margin-bottom: 16px; }
.table-panel { overflow: hidden; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 14px 18px; color: var(--muted); background: #faf9f6; font-size: .67rem; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.admin-table td { padding: 16px 18px; border-top: 1px solid #ece9e3; vertical-align: middle; }
.admin-table td > small { display: block; max-width: 370px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.table-title { font-weight: 780; }
.actions-cell { width: 100px; text-align: right !important; white-space: nowrap; }
.actions-cell form { display: inline; }
.icon-action { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.icon-action.danger { color: var(--danger); }
.editor-heading { align-items: center; }
.editor-heading .back-link { margin-bottom: 8px; }
.editor-form { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.editor-main, .editor-sidebar { display: grid; gap: 16px; }
.editor-sidebar { position: sticky; top: 95px; }
.form-section { padding: 24px; }
.form-section h2 { font-family: Inter, sans-serif; font-size: 1.1rem; font-weight: 800; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.field-label { display: block; margin-bottom: 8px; }
.title-input { padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-family: Georgia, serif; font-size: 2.1rem; }
.title-input:focus { box-shadow: none; border-color: var(--violet); }
.slug-field { display: flex; align-items: center; margin-top: 8px; padding: 7px 11px; border-radius: 8px; background: #f6f4f0; color: var(--muted); }
.slug-field input { padding: 0; border: 0; background: transparent; box-shadow: none; font-size: .78rem; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: #f8f7f4; }
.editor-toolbar button { min-width: 34px; min-height: 32px; padding: 4px 8px; border: 1px solid #e1ddd5; border-radius: 6px; background: white; font-size: .76rem; }
.rich-editor { min-height: 480px; padding: 30px; border: 1px solid var(--line); background: white; outline: 0; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.75; }
.rich-editor:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(94,61,133,.08); }
.rich-editor img { max-width: 100%; }
.editor-source { display: none; }
.field-help { margin: 9px 0 0; color: var(--muted); font-size: .75rem; }
.seo-panel summary { cursor: pointer; font-weight: 800; }
.seo-panel[open] summary { margin-bottom: 20px; }
.checkbox-field { display: flex; grid-template-columns: auto 1fr; align-items: center; }
.checkbox-field input { width: auto; }
.publish-box .button { width: 100%; margin-top: 8px; }
.media-preview { display: grid; place-items: center; min-height: 150px; overflow: hidden; margin-bottom: 10px; color: var(--muted); background: #f0edf2; border-radius: 10px; }
.media-preview img { width: 100%; height: 180px; object-fit: cover; }
.settings-form { display: grid; gap: 18px; max-width: 1000px; }
.settings-form > .button { width: fit-content; }
.profile-form { max-width: 650px; }
.profile-form small { color: var(--muted); font-weight: 400; }

/* Admin media/gallery */
.upload-panel { margin-bottom: 25px; padding: 24px; }
.upload-panel form { display: grid; grid-template-columns: minmax(260px, 1fr) 1fr 1.2fr auto; gap: 14px; align-items: end; }
.upload-panel label { margin: 0; }
.file-drop { min-height: 105px; place-items: center; align-content: center; border: 1px dashed #b8adbf; border-radius: 12px; background: var(--violet-soft); text-align: center; cursor: pointer; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop > span { color: var(--violet); font-size: 1.5rem; }
.file-drop strong, .file-drop small { display: block; }
.file-drop small { color: var(--muted); font-weight: 400; }
.media-admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.media-admin-card { position: relative; overflow: hidden; border: 1px solid #dedad2; border-radius: 14px; background: white; }
.media-admin-preview { position: relative; aspect-ratio: 1.35; background: #eee9f1; }
.media-admin-preview img, .media-admin-preview video { width: 100%; height: 100%; object-fit: cover; }
.media-admin-preview > span { position: absolute; right: 8px; bottom: 8px; padding: 3px 6px; color: white; background: rgba(0,0,0,.6); border-radius: 5px; font-size: .62rem; }
.media-meta-form { padding: 16px; }
.media-meta-form label { margin-bottom: 10px; font-size: .72rem; }
.media-meta-form input, .media-meta-form textarea { padding: 8px 10px; font-size: .78rem; }
.copy-url { display: flex; margin-bottom: 12px; }
.copy-url input { border-radius: 8px 0 0 8px; }
.copy-url button { border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; background: #f5f3ef; font-size: .72rem; }
.media-delete { position: absolute; top: 8px; left: 8px; }
.media-delete button, .category-delete button { padding: 4px 8px; border: 0; color: white; background: rgba(143,38,42,.85); border-radius: 6px; font-size: .68rem; }
.gallery-admin-list { display: grid; gap: 14px; }
.gallery-admin-card { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; padding: 14px; border: 1px solid #dedad2; border-radius: 14px; background: white; }
.gallery-admin-cover { display: grid; place-items: center; height: 100px; overflow: hidden; color: var(--violet); background: var(--violet-soft); border-radius: 10px; font-size: 2.5rem; }
.gallery-admin-cover img { width: 100%; height: 100%; object-fit: cover; }
.gallery-admin-card h2 { margin: 7px 0; font-family: Inter, sans-serif; font-size: 1.15rem; font-weight: 800; }
.gallery-admin-card p { margin: 0; color: var(--muted); font-size: .78rem; }
.gallery-admin-actions { display: flex; align-items: center; gap: 8px; }
.gallery-editor-form { display: grid; gap: 18px; }
.selected-media-list { display: flex; gap: 9px; min-height: 72px; margin-bottom: 20px; padding: 10px; overflow-x: auto; border: 1px dashed #bcb4c1; border-radius: 10px; background: #f8f6f9; }
.selected-media-item { position: relative; flex: 0 0 74px; cursor: grab; }
.selected-media-item.dragging { opacity: .4; }
.selected-media-item img { width: 74px; height: 58px; object-fit: cover; border-radius: 7px; }
.selected-media-item strong { display: none; }
.selected-media-item button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border: 0; color: white; background: var(--danger); border-radius: 50%; }
.drag-handle { position: absolute; left: 2px; top: 2px; color: white; text-shadow: 0 1px 3px black; }
.gallery-media-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.gallery-picker-item { position: relative; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: #eee; aspect-ratio: 1; }
.gallery-picker-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-picker-item > span { position: absolute; inset: auto 0 0; padding: 14px 5px 5px; overflow: hidden; color: white; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.gallery-picker-item > em { position: absolute; right: 5px; top: 5px; display: none; width: 22px; height: 22px; color: white; background: var(--violet); border-radius: 50%; font-style: normal; }
.gallery-picker-item.selected { border-color: var(--violet); }
.gallery-picker-item.selected > em { display: grid; place-items: center; }
.category-list { display: grid; gap: 14px; margin-top: 18px; }
.category-list > section { position: relative; padding: 20px; }
.category-delete { position: absolute; right: 18px; top: 18px; }
.form-actions { display: flex; align-items: center; gap: 16px; }
.form-actions span { color: var(--muted); font-size: .75rem; }
.message-list { display: grid; gap: 14px; }
.message-card { padding: 22px; }
.message-card.unread { border-left: 4px solid var(--gold); }
.message-card header { display: flex; justify-content: space-between; gap: 20px; }
.message-card header > div { display: flex; gap: 10px; align-items: center; }
.message-card header a, .message-card time { color: var(--muted); font-size: .75rem; }
.message-card h2 { margin: 20px 0 8px; font-family: Inter, sans-serif; font-size: 1rem; font-weight: 800; }
.message-card > p { white-space: normal; }
.message-card form { display: flex; align-items: center; gap: 10px; }
.message-card form select { max-width: 180px; }

/* Admin login */
.admin-guest { min-height: 100vh; color: var(--ink); background: var(--paper); }
.login-shell { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 100vh; }
.login-visual {
    display: flex; flex-direction: column; justify-content: space-between; padding: clamp(35px, 6vw, 80px);
    color: white; background:
        radial-gradient(circle at 70% 25%, rgba(196,154,74,.23), transparent 23%),
        linear-gradient(145deg, #17111f, #382448);
}
.login-visual > div { max-width: 620px; }
.login-visual h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
.login-visual p:not(.eyebrow) { color: #c3b9c9; font-size: 1.15rem; }
.login-visual .eyebrow { color: #d7b96f; }
.login-visual > small { color: #83768c; }
.login-panel { display: grid; place-items: center; padding: 35px; }
.login-form { width: min(100%, 440px); padding: 40px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.login-form h2 { font-size: 2.4rem; }
.login-form > p:not(.eyebrow) { color: var(--muted); }
.login-form .button { width: 100%; margin-top: 8px; }
.login-form > a { display: block; margin-top: 20px; color: var(--muted); font-size: .78rem; text-align: center; }

@media (max-width: 1050px) {
    .site-nav { gap: 16px; }
    .brand small { display: none; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: minmax(0, 760px); }
    .article-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .aside-card, .aside-card + .aside-card { position: static; margin: 0; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; left: -260px; width: 245px; transition: left .22s ease; }
    .admin-sidebar.open { left: 0; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
    .admin-menu-button { display: block; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .upload-panel form { grid-template-columns: 1fr 1fr; }
    .file-drop { grid-row: span 2; }
    .media-admin-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-media-picker { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 760px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .header-inner { min-height: 70px; }
    .menu-toggle { display: block; }
    .site-nav {
        position: absolute; left: 14px; right: 14px; top: 64px; display: none;
        align-items: stretch; padding: 18px; border: 1px solid var(--line);
        border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
    }
    .site-nav.open { display: grid; }
    .site-nav a { padding: 8px; }
    .hero { min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; padding-block: 75px; }
    .hero-symbol { width: min(80vw, 380px); margin: auto; grid-row: 1; }
    .section-heading { align-items: start; flex-direction: column; }
    .post-grid { grid-template-columns: 1fr; }
    .feature-strip { grid-template-columns: 1fr; }
    .feature-image { grid-row: 1; }
    .filter-bar { grid-template-columns: 1fr; }
    .page-hero-grid { grid-template-columns: 1fr; }
    .article-header { padding-top: 65px; }
    .article-layout { padding-block: 50px 80px; }
    .article-aside { grid-template-columns: 1fr; }
    .article-byline span + span::before, .article-byline time::before { content: none; }
    .related-grid { grid-template-columns: 1fr; }
    .gallery-index-grid { grid-template-columns: 1fr; }
    .lightbox[open] { grid-template-columns: 42px 1fr 42px; padding: 15px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .admin-topbar { padding-inline: 16px; }
    .admin-user div { display: none; }
    .admin-content { padding: 28px 15px 60px; }
    .admin-flash { margin-inline: 15px; }
    .admin-heading { align-items: start; flex-direction: column; }
    .stat-grid, .admin-grid-two, .editor-form { grid-template-columns: 1fr; }
    .editor-sidebar { position: static; grid-row: 1; }
    .admin-filter { grid-template-columns: 1fr; }
    .upload-panel form { grid-template-columns: 1fr; }
    .media-admin-grid { grid-template-columns: 1fr; }
    .gallery-admin-card { grid-template-columns: 90px 1fr; }
    .gallery-admin-actions { grid-column: 1 / -1; }
    .gallery-media-picker { grid-template-columns: repeat(3, 1fr); }
    .message-card header, .message-card header > div { align-items: start; flex-direction: column; }
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { min-height: 370px; padding: 32px; }
    .login-visual h1 { font-size: 3.1rem; }
    .login-visual > small { display: none; }
    .login-panel { padding: 22px; }
    .login-form { padding: 28px; }
}
