/* =========================================================
   Café Modern Theme
   Main: Brown
   Surfaces: Warm Cream (orangish)
   Accents: Mint Green + Raspberry Red
   ========================================================= */

:root {
    /* Core palette */
    --bg: #20140f;
    /* deep coffee */
    --panel: #fff2df;
    /* warm cream w/ orange */
    --panel-2: #ffe6c8;
    /* slightly deeper cream */
    --text: #2a1b14;
    /* espresso text */
    --muted: rgba(42, 27, 20, .70);
    --line: rgba(42, 27, 20, .14);

    --brown: #7a4a2b;
    /* main brown */
    --brown-2: #5b341f;
    /* darker brown */
    --cream: #fff2df;
    /* warm cream */
    --mint: #47c2a3;
    /* mint accent */
    --rasp: #d94862;
    /* raspberry accent */

    /* UI */
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 14px 38px rgba(0, 0, 0, .22);
    --shadow-soft: 0 10px 24px rgba(0, 0, 0, .14);
    --max: 1100px;

    --topbar-h: 68px;
    --side-w: 260px;
}

/* Reset-ish */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background:
        radial-gradient(900px 600px at 20% 0%, rgba(255, 230, 200, .18), transparent 55%),
        radial-gradient(900px 600px at 80% 25%, rgba(71, 194, 163, .12), transparent 58%),
        radial-gradient(900px 600px at 55% 90%, rgba(217, 72, 98, .10), transparent 55%),
        var(--bg);
    line-height: 1.55;
}

a {
    color: var(--brown-2);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* =========================================================
   TOP NAV
   ========================================================= */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-h);
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom,
            rgba(32, 20, 15, .78),
            rgba(32, 20, 15, .58));
    border-bottom: 1px solid rgba(255, 242, 223, .16);
}

.nav-inner {
    height: 100%;
    max-width: calc(var(--max) + var(--side-w));
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 242, 223, .95), rgba(255, 230, 200, .80));
    box-shadow:
        0 0 0 3px rgba(122, 74, 43, .25),
        0 10px 24px rgba(0, 0, 0, .25);
}

.brand-text h1 {
    margin: 0;
    color: var(--panel);
    font-size: 14px;
    letter-spacing: .3px;
}

.brand-text p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 242, 223, .75);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--panel);
    font-size: 13px;
    font-weight: 650;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 242, 223, .16);
    background: rgba(255, 242, 223, .06);
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.nav-links a:hover {
    text-decoration: none;
    background: rgba(255, 242, 223, .12);
    border-color: rgba(255, 242, 223, .28);
    transform: translateY(-1px);
}

/* Optional “active” for js */
.nav-links a.active {
    background: rgba(71, 194, 163, .22);
    border-color: rgba(71, 194, 163, .45);
}

/* =========================================================
   LAYOUT
   ========================================================= */
.layout {
    max-width: calc(var(--max) + var(--side-w));
    margin: 0 auto;
    padding: 22px 18px 64px;
    display: grid;
    grid-template-columns: var(--side-w) 1fr;
    gap: 22px;
}

/* =========================================================
   SIDE MENU
   ========================================================= */
.side-menu {
    position: relative;
}

.side-menu nav {
    position: sticky;
    top: calc(var(--topbar-h) + 18px);
    border-radius: var(--radius);
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 242, 223, .92), rgba(255, 230, 200, .86));
    border: 1px solid rgba(42, 27, 20, .14);
    box-shadow: var(--shadow);
}

.side-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    color: var(--brown-2);
    border: 1px solid transparent;
    background: rgba(122, 74, 43, .06);
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.side-menu a:hover {
    text-decoration: none;
    background: rgba(122, 74, 43, .10);
    border-color: rgba(122, 74, 43, .20);
    transform: translateY(-1px);
}

.side-menu a.nav-heading-link {
    background: rgb(66, 42, 31);
    color: var(--cream);
    border: 1px solid rgba(255, 242, 223, .35);
    text-decoration: none;
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    text-align: center;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.side-menu a.nav-heading-link:hover {
    background: rgba(32, 20, 15, .99);
    color: var(--cream);
}

/* =========================================================
   MAIN SECTIONS
   ========================================================= */
main {
    min-width: 0;
}

section {
    border-radius: var(--radius);
    border: 1px solid rgba(255, 242, 223, .20);
    background: linear-gradient(180deg, rgba(255, 242, 223, .96), rgba(255, 230, 200, .90));
    box-shadow: var(--shadow-soft);
    padding: 18px;
    margin-bottom: 18px;
}

section header {
    margin-bottom: 10px;
}

section h2 {
    margin: 0 0 6px;
    font-size: 20px;
    letter-spacing: .2px;
    color: var(--brown-2);
}

section p {
    margin: 0;
    color: rgba(42, 27, 20, .75);
}

/* =========================================================
   PROJECT CARDS
   ========================================================= */
.project {
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(42, 27, 20, .14);
    background: rgba(255, 255, 255, .35);
}

.project h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--brown-2);
}

.project p {
    margin: 0 0 10px;
    font-size: 13px;
    color: rgba(42, 27, 20, .72);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(122, 74, 43, .18);
    background: rgba(122, 74, 43, .08);
    color: var(--brown-2);
}

/* Status chips */
.status {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(42, 27, 20, .14);
    background: rgba(42, 27, 20, .06);
    color: rgba(20, 42, 34, 0.85);
}

.status.working {
    border-color: rgba(71, 194, 163, .45);
    background: rgba(71, 194, 163, .18);
    color: #116a56;
}

.status.complete {
    border-color: rgba(122, 74, 43, .35);
    background: rgba(122, 74, 43, .10);
    color: var(--brown-2);
}

.status.hold {
    border-color: rgba(217, 72, 98, .40);
    background: rgba(217, 72, 98, .14);
    color: #7c1d2f;
}

/* Progress */
.progress {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(42, 27, 20, .75);
}

/* If you later swap to a real bar:
   <div class="progressbar"><span style="width:45%"></span></div>
*/
.progressbar {
    margin-top: 6px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(42, 27, 20, .14);
    background: rgba(42, 27, 20, .08);
    overflow: hidden;
}

.progressbar span {
    display: block;
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, rgba(161, 20, 39, 0.85), rgba(71, 194, 163, .70));
}

/* =========================================================
   LISTS (Newly Added / Affiliations)
   ========================================================= */
.new-list,
.affiliations {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.new-list li,
.affiliations li {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(42, 27, 20, .14);
    background: rgba(255, 255, 255, .35);
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.new-list strong,
.affiliations strong {
    color: var(--brown-2);
}

.new-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Character thumbnail */
.new-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(42, 27, 20, .18);
    background: rgba(122, 74, 43, .08);
}

/* Text block */
.new-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Keep strong styling even with a link */
.new-text strong a {
    color: inherit;
    /* keeps strong color */
    font-weight: inherit;
    /* keeps strong weight */
    text-decoration: none;
}

.new-text strong a:hover {
    text-decoration: underline;
}

/* =========================================================
   FAQ
   ========================================================= */
details {
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(42, 27, 20, .14);
    background: rgba(255, 255, 255, .35);
}

summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--brown-2);
}

details p {
    margin-top: 8px;
}

/* =========================================================
   ACCESSIBILITY / SELECTION
   ========================================================= */
:focus-visible {
    outline: 3px solid rgba(71, 194, 163, .55);
    outline-offset: 2px;
    border-radius: 10px;
}

::selection {
    background: rgba(71, 194, 163, .25);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
    :root {
        --side-w: 1fr;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .side-menu nav {
        position: static;
    }

    .brand {
        min-width: unset;
    }
}

/* =========================================================
   PROJECTS WITH COVER IMAGES
   ========================================================= */

.project {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: stretch;
}

/* Cover image container */
.project-cover {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(42, 27, 20, .18);
    background: linear-gradient(135deg,
            rgba(122, 74, 43, .20),
            rgba(71, 194, 163, .18));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

/* Image itself */
.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

/* Subtle hover polish */
.project:hover .project-cover img {
    transform: scale(1.04);
}

/* Project text area */
.project-content {
    display: flex;
    flex-direction: column;
}

/* Keep meta + progress pushed downward */
.project-meta {
    margin-top: auto;
}

/* =========================================================
   RESPONSIVE: stack image on top
   ========================================================= */
@media (max-width: 700px) {
    .project {
        grid-template-columns: 1fr;
    }

    .project-cover {
        aspect-ratio: 16 / 9;
    }
}

/* =========================================================
   MAIN VAULT HUB (Root Index)
   ========================================================= */

.vault-hub-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.vault-hub-card {
    position: relative;
    min-height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(42, 27, 20, .14);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

.vault-hub-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    transition: transform .25s ease;
}

.vault-hub-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg,
            rgba(32, 20, 15, .05),
            rgba(32, 20, 15, .82));
    opacity: 0;
    transition: opacity .18s ease;
}

.vault-hub-text {
    padding: 14px;
    color: var(--cream);
}

.vault-hub-text h3 {
    margin: 0 0 4px;
    color: var(--cream);
}

.vault-hub-text p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 242, 223, .88);
}

/* Hover */
.vault-hub-card:hover img {
    transform: scale(1.10);
}

.vault-hub-card:hover .vault-hub-overlay {
    opacity: 1;
}

.vault-hub-card:hover {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 980px) {
    .vault-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .vault-hub-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   GLOBAL BUTTON (used by forms, links, CTAs)
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 16px;
    border-radius: 999px;

    background: var(--brown);
    color: var(--cream);

    border: 1px solid rgba(255, 242, 223, .35);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;

    cursor: pointer;
    text-decoration: none;
}

.button:hover {
    background: var(--brown-2);
    text-decoration: none;
}

.button:active {
    transform: translateY(1px);
}

/* =========================================================
   Ask Form
   ========================================================= */

.ask-form {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.ask-form label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: rgba(42, 27, 20, .85);
    font-weight: 700;
}

.ask-form input,
.ask-form select,
.ask-form textarea {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(42, 27, 20, .18);
    background: rgba(255, 255, 255, .55);
    color: var(--text);
    font: inherit;
}

.ask-form textarea {
    resize: vertical;
    min-height: 140px;
}

.ask-form input:focus-visible,
.ask-form select:focus-visible,
.ask-form textarea:focus-visible {
    outline: 3px solid rgba(71, 194, 163, .45);
    outline-offset: 2px;
}

/* =========================================================
   Global Notice Strip (Under Review / WIP / Archived)
   ========================================================= */

.notice-strip {
    margin: 14px 0;
    padding: 10px 14px;

    border-radius: 16px;
    border: 1px solid rgba(42, 27, 20, .14);

    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;

    box-shadow: var(--shadow-soft);
    background: rgba(255, 255, 255, .45);
    color: var(--text);
}

.notice-strip strong {
    font-weight: 900;
    letter-spacing: .04em;
}

/* Default “Under Review” look (raspberry accent) */
.notice-review {
    border-color: rgba(217, 72, 98, .45);
    background: linear-gradient(90deg, rgba(217, 72, 98, .18), rgba(255, 255, 255, .45));
}

.notice-review strong {
    color: var(--rasp);
}

/* Optional other states you can reuse */
.notice-wip {
    border-color: rgba(71, 194, 163, .45);
    background: linear-gradient(90deg, rgba(71, 194, 163, .18), rgba(255, 255, 255, .45));
}

.notice-wip strong {
    color: var(--mint);
}

.notice-archived {
    border-color: rgba(42, 27, 20, .20);
    background: linear-gradient(90deg, rgba(42, 27, 20, .10), rgba(255, 255, 255, .45));
}

.notice-archived strong {
    color: var(--brown-2);
}

/* =========================================================
   Colors
   ========================================================= */
.rasp {
    color: var(--rasp);
}

.brown {
    color: var(--brown);
}

.text {
    color: var(--text);
}

.mint {
    color: var(--mint);
}

.cream {
    color: var(--cream);
}