
:root {
    --bg: #050811;
    --panel: rgba(7, 11, 22, 0.78);
    --panel-deep: rgba(5, 8, 18, 0.88);
    --line: rgba(186, 118, 255, 0.24);
    --line-soft: rgba(255, 255, 255, 0.1);
    --text: #f5f0ff;
    --muted: #b9afc9;
    --purple: #b967ff;
    --purple-2: #d38aff;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 12%, rgba(144, 54, 232, .24), transparent 25rem),
        linear-gradient(180deg, #050811 0%, #03050c 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.shell {
    width: min(1500px, calc(100% - 48px));
    margin-inline: auto;
}

.site-frame {
    min-height: 100vh;
    overflow-x: hidden;
}

.announcement-bar {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 18px;
    font-size: 14px;
    letter-spacing: .03em;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 5, 12, .66);
    backdrop-filter: blur(14px);
}

.announcement-bar span:first-child,
.announcement-joke { color: var(--purple-2); }

.site-header {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    z-index: 20;
}

.nav-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 26px;
    align-items: center;
    padding: 26px 0 18px;
}

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

.brand-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    border-radius: 999px;
    filter: drop-shadow(0 0 22px rgba(185, 103, 255, .42));
}

.brand-text {
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 850;
    letter-spacing: -.055em;
    text-shadow: 0 3px 18px rgba(0,0,0,.72);
}

.brand-text span { color: var(--purple); }

.site-nav {
    justify-self: center;
    padding: 14px 34px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(8, 10, 22, .58);
    box-shadow: 0 14px 44px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(18px);
}

.site-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2vw, 36px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    color: #f7efff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav .nav-current a {
    color: var(--purple-2);
}

.search-button {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    color: var(--text);
    background: rgba(8, 10, 22, .58);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 44px rgba(0,0,0,.36);
    cursor: pointer;
}

.search-button svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-header {
    position: relative;
    min-height: clamp(430px, 42vw, 570px);
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(180deg, rgba(4,7,15,.12) 0%, rgba(4,7,15,.20) 48%, rgba(4,7,15,.88) 100%),
        linear-gradient(90deg, rgba(4,7,15,.06) 0%, rgba(4,7,15,.02) 48%, rgba(4,7,15,.15) 100%),
        url("../images/piratemoo-header-bg.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-top: clamp(150px, 15vw, 185px);
}

.hero-copy {
    max-width: 380px;
    text-shadow: 0 3px 22px rgba(0,0,0,.78);
}

.quote-image {
    display: block;
    width: 44px;
    height: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 14px rgba(185,103,255,.45));
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(18px, 1.65vw, 26px);
    line-height: 1.38;
    letter-spacing: -.018em;
    font-weight: 500;
}

.hero-copy h1 span { color: var(--purple-2); }

.hero-rule {
    width: 150px;
    height: 2px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--purple), transparent);
    box-shadow: 0 0 20px rgba(185,103,255,.55);
}

.home-layout {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.23fr .95fr .9fr;
    gap: 20px;
    margin-top: -34px;
    padding-bottom: 34px;
}

.panel-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(10,14,28,.78), rgba(5,8,18,.88));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.featured-card {
    min-height: 430px;
    position: relative;
}

.featured-link {
    display: block;
    min-height: 430px;
    height: 100%;
    position: relative;
    isolation: isolate;
}

.featured-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(6,9,20,.94) 0%, rgba(6,9,20,.78) 45%, rgba(6,9,20,.26) 100%);
}

.featured-content {
    max-width: 480px;
    padding: 28px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid rgba(185,103,255,.55);
    color: var(--purple-2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .04em;
    background: rgba(30,11,54,.45);
}

.featured-card h2 {
    margin: 18px 0 14px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.featured-card p {
    margin: 0 0 24px;
    color: #d6cddd;
    font-size: 16px;
    line-height: 1.65;
}

.read-more {
    display: inline-flex;
    margin-top: 30px;
    padding: 13px 20px;
    color: var(--purple-2);
    border: 1px solid rgba(185,103,255,.32);
    border-radius: 10px;
    background: rgba(10,8,25,.42);
    font-weight: 750;
}

.middle-column,
.notes-column {
    padding: 26px;
}

.post-row {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.post-row:last-of-type,
.note-row:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
}

.row-image,
.row-image.placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1.75;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.09);
    background:
        radial-gradient(circle at 50% 35%, rgba(185,103,255,.32), transparent 28%),
        rgba(255,255,255,.04);
}

.row-content h2,
.note-row h2 {
    margin: 3px 0 11px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 650;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
}

.note-row {
    display: grid;
    grid-template-columns: 1fr 84px;
    gap: 16px;
    align-items: center;
    padding-bottom: 11px;
    margin-bottom: 11px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.note-row h2 {
    font-size: 16px;
    margin-bottom: 4px;
}

.note-author {
    color: var(--muted);
    font-size: 13px;
}

.note-image,
.note-image.placeholder {
    display: block;
    width: 84px;
    height: 48px;
    object-fit: cover;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.1);
    background:
        radial-gradient(circle at 50% 35%, rgba(185,103,255,.32), transparent 28%),
        rgba(255,255,255,.04);
}

.view-link {
    display: block;
    width: fit-content;
    margin: 12px auto 0;
    color: var(--purple-2);
    font-size: 18px;
    font-weight: 650;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 22px;
    align-items: center;
    padding: 38px 0 30px;
    position: relative;
    z-index: 4;
}

.footer-brand {
    display: grid;
    gap: 6px;
}

.footer-brand strong {
    color: var(--purple);
    font-size: 23px;
}

.footer-brand span,
.footer-links a {
    color: var(--muted);
    font-size: 13px;
}

.footer-terminal {
    min-width: 420px;
    padding: 17px 28px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(9,11,20,.76);
    color: #cfc8da;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    box-shadow: 0 18px 60px rgba(0,0,0,.4);
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.content-shell {
    width: min(980px, calc(100% - 48px));
    margin-inline: auto;
}

.single-shell {
    padding: 130px 0 80px;
}

.single-post {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(7,11,22,.82);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.single-header {
    padding: 42px 42px 22px;
}

.single-header h1 {
    margin: 18px 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.single-feature-image {
    width: 100%;
    border-radius: 18px;
    margin-top: 28px;
}

.single-content {
    padding: 0 42px 52px;
    color: #eee8f7;
    font-size: 18px;
    line-height: 1.8;
}

.kg-width-wide {
    width: min(1100px, calc(100vw - 48px));
    max-width: 1100px;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full img,
.kg-width-wide img {
    width: 100%;
    height: auto;
}

.kg-canvas > * {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.kg-canvas > .kg-width-wide,
.kg-canvas > .kg-width-full {
    max-width: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 40px;
    color: var(--purple-2);
}

@media (max-width: 1180px) {
    .site-header {
        position: relative;
        top: auto;
        background: rgba(3,5,12,.68);
        backdrop-filter: blur(14px);
    }

    .nav-shell {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        order: 3;
        grid-column: 1 / -1;
        justify-self: stretch;
        overflow-x: auto;
    }

    .site-nav ul {
        justify-content: flex-start;
    }

    .hero-header {
        min-height: 430px;
    }

    .hero-inner {
        padding-top: 92px;
    }

    .hero-copy {
        max-width: 300px;
    }

    .home-layout {
        grid-template-columns: 1fr;
        margin-top: -26px;
    }

    .featured-card,
    .featured-link {
        min-height: 390px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-terminal {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .shell,
    .content-shell {
        width: min(100% - 28px, 1500px);
    }

    .announcement-bar {
        font-size: 12px;
        flex-wrap: wrap;
    }

    .brand {
        min-width: 0;
    }

    .brand-logo {
        width: 58px;
        height: 58px;
    }

    .brand-text {
        font-size: 30px;
    }

    .search-button {
        width: 56px;
        height: 56px;
    }

    .site-nav {
        padding: 12px 16px;
    }

    .site-nav a {
        font-size: 13px;
    }

    .hero-header {
        min-height: 390px;
    }

    .hero-art {
        background-size: auto 100%;
        background-position: 58% top;
    }

    .hero-inner {
        padding-top: 88px;
    }

    .quote-image {
        width: 32px;
        margin-bottom: 7px;
    }

    .hero-copy {
        max-width: 245px;
    }

    .hero-copy h1 {
        font-size: 14px;
        line-height: 1.35;
    }

    .hero-rule {
        width: 120px;
    }

    .home-layout {
        margin-top: -18px;
    }

    .post-row {
        grid-template-columns: 1fr;
    }

    .note-row {
        grid-template-columns: 1fr 72px;
    }

    .note-image,
    .note-image.placeholder {
        width: 72px;
    }

    .single-header,
    .single-content {
        padding-left: 24px;
        padding-right: 24px;
    }
}
