/* ========================================
   JANNA NOTES — CUSTOM THEME
======================================== */

/* ========================================
   JANNA DESIGN SYSTEM — TOKENY
   Wspólne dla: hub.janna.pl · portfolio.janna.pl ·
   janna.pl · notes.janna.pl (GravTheme_janna)
   Uwaga: zmiana wartości = synchronizacja w 4 repozytoriach.
======================================== */

:root {
    /* Kolory */
    --janna-bg: #070809;
    --janna-surface: rgba(255, 255, 255, 0.02);
    --janna-surface-alt: #0b0d0f;
    --janna-text: #e8e9e6;
    --janna-text-muted: #70747a;
    --janna-text-dim: #363a3e;
    --janna-accent: #FFC300;
    --janna-border: rgba(255, 255, 255, 0.09);

    /* Typografia */
    --janna-font-body: "Inter", sans-serif;
    --janna-font-mono: "DM Mono", monospace;

    /* Layout */
    --janna-content-width: 1240px;
    --janna-header-height: 96px;
    --janna-header-height-compact: 76px;

    /* Aliasy — istniejące nazwy używane w tym pliku */
    --bg: var(--janna-bg);
    --text: var(--janna-text);
    --muted: var(--janna-text-muted);
    --dim: var(--janna-text-dim);
    --line: var(--janna-border);
    --accent: var(--janna-accent);

    --font-body: var(--janna-font-body);
    --font-mono: var(--janna-font-mono);
    --content-width: var(--janna-content-width);
}


/* ========================================
   RESET
======================================== */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg) !important;
    color: var(--text) !important;

    font-family: var(--font-body) !important;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}


/* ========================================
   BACKGROUND GRID — sygnatura tła ekosystemu
   (identyczna jak na hub/portfolio/janna.pl)
======================================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background-image:
        linear-gradient(
            to right,
            var(--line) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            var(--line) 1px,
            transparent 1px
        );

    background-size: 72px 72px;
    opacity: 0.28;

    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        transparent 82%
    );

    mask-image: linear-gradient(
        to bottom,
        black 0%,
        transparent 82%
    );
}

/* Warstwy treści ponad siatką */

#page-wrapper,
.janna-footer {
    position: relative;
    z-index: 1;
}


/* ========================================
   TYPOGRAPHY
======================================== */

h1,
h2,
h3,
h4,
h5,
h6,
code,
pre,
kbd,
.navbar,
.dropmenu,
#header,
.janna-footer {
    font-family: var(--font-mono);
}


/* ========================================
   LINKS
======================================== */

a {
    color: var(--accent);
    text-decoration: none;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

a:hover {
    color: var(--text);
}


/* ========================================
   HEADER
======================================== */

#header {
    background: var(--bg) !important;
    border-bottom: 1px solid var(--line);
}

#header .container {
    max-width: var(--content-width);
}

#header .navbar {
    min-height: 96px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    width: 100%;
}


/* ========================================
   JANNA BRAND
======================================== */

#header .logo {
    display: flex;
    align-items: center;

    gap: 0;

    margin: 0;
    padding: 0;

    min-width: 0;

    grid-column: 1;
    justify-self: start;
}

#header .janna-brand {
    display: inline-block;

    padding-right: 24px;

    color: var(--text);
    background: transparent;

    text-decoration: none;

    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 500;

    letter-spacing: 0.08em;
    line-height: 1;

    white-space: nowrap;

    transition: color 0.25s ease;
}

#header .janna-brand .janna-dot {
    color: var(--accent);
}

#header .janna-brand .janna-logo-n {
    display: inline-block;

    transition: transform 0.35s ease;
}

#header .janna-brand:hover {
    color: var(--accent);
    background: transparent;
}

#header .janna-brand:hover .janna-dot {
    color: var(--accent);
}

#header .janna-brand:hover .janna-logo-n {
    transform: scaleX(-1);
}


/* ========================================
   JANNA IDENTITY
======================================== */

#header .janna-identity {
    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 5px;

    padding-left: 24px;

    border-left: 1px solid var(--line);

    line-height: 1;
}

#header .janna-name {
    color: var(--text);

    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.12em;

    white-space: nowrap;
}

#header .janna-alias {
    color: var(--muted);

    font-family: var(--font-mono);
    font-size: 9px;

    letter-spacing: 0.08em;

    white-space: nowrap;
}


/* ========================================
   NAVIGATION WRAPPER
======================================== */

#header .desktop-menu {
    display: contents;
}

#header .dropmenu {
    display: contents;

    margin: 0;
    padding: 0;
}


/* ========================================
   MAIN NAVIGATION
======================================== */

#header .main-nav {
    display: contents;
}


/* ========================================
   NOTES MODULE NAVIGATION
======================================== */

#header .notes-nav {
    grid-column: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin: 0;
}


/* ========================================
   NOTES MODULE BUTTONS
======================================== */

#header .notes-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 26px;

    padding: 0 10px;

    border: 1px solid var(--line);

    color: var(--muted);
    background: transparent;

    text-decoration: none;

    font-family: var(--font-mono);
    font-size: 8px;

    letter-spacing: 0.08em;
    line-height: 1;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

#header .notes-nav a:hover {
    color: var(--accent);

    border-color: var(--accent);

    background: rgba(255, 195, 0, 0.04);
}


/* ========================================
   SITE NAVIGATION
======================================== */

#header .site-nav {
    grid-column: 3;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 24px;

    margin: 0;

    justify-self: end;
}


/* ========================================
   SITE NAVIGATION LINKS
======================================== */

#header .site-nav a,
#header .site-nav .active,
#header .site-nav .unpublished {
    color: var(--muted);

    text-decoration: none;

    font-family: var(--font-mono);
    font-size: 9px;

    letter-spacing: 0.1em;
    line-height: 1;

    white-space: nowrap;

    transition: color 0.2s ease;
}

#header .site-nav a:hover {
    color: var(--accent);
}


/* ========================================
   ACTIVE SITE
======================================== */

#header .site-nav .active {
    color: var(--text);
}

#header .site-nav .active::before {
    content: "";

    display: inline-block;

    width: 5px;
    height: 5px;

    margin-right: 8px;

    border-radius: 50%;

    background: var(--accent);

    vertical-align: middle;
}


/* ========================================
   UNPUBLISHED
======================================== */

#header .site-nav .unpublished {
    color: var(--muted);

    font-size: 8px;

    letter-spacing: 0.07em;

    line-height: 1;
}


/* ========================================
   QUARK NAVIGATION RESET
======================================== */

#header .dropmenu ul {
    margin: 0;
    padding: 0;
}

#header .dropmenu ul li {
    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
}


/* ========================================
   BODY
======================================== */

#body-wrapper {
    background: transparent !important;
}

#body-wrapper .container {
    max-width: var(--content-width);
}

#body-wrapper p,
#body-wrapper li {
    color: var(--text);
}

#body-wrapper .content {
    padding-top: 50px;
    padding-bottom: 70px;
}


/* ========================================
   HEADINGS
======================================== */

#body-wrapper h1,
#body-wrapper h2,
#body-wrapper h3,
#body-wrapper h4,
#body-wrapper h5,
#body-wrapper h6 {
    color: var(--text);

    font-family: var(--font-mono);
    font-weight: 500;

    letter-spacing: -0.03em;
}

#body-wrapper h1 {
    font-size: clamp(42px, 7vw, 90px);
    line-height: 0.95;
}

#body-wrapper h2 {
    margin-top: 50px;

    font-size: 30px;
}

#body-wrapper h3 {
    font-size: 20px;
}


/* ========================================
   CODE
======================================== */

pre,
code {
    font-family: var(--font-mono);
}

pre {
    background: #0b0d0f !important;

    border: 1px solid var(--line);
    border-radius: 0;
}

code {
    color: var(--accent);
}


/* ========================================
   TABLES
======================================== */

table {
    background: transparent;
    color: var(--text);
}

table th,
table td {
    border-color: var(--line) !important;
}


/* ========================================
   BLOCKQUOTE
======================================== */

blockquote {
    border-left: 2px solid var(--accent);
    color: var(--muted);
}


/* ========================================
   JANNA FOOTER
======================================== */

.janna-footer {
    min-height: 82px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    color: var(--muted);

    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.06em;
}

.janna-footer-inner {
    width: min(var(--content-width), calc(100% - 64px));
    min-height: 82px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}


/* ----------------------------------------
   FOOTER LINKS
---------------------------------------- */

.janna-footer-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.janna-footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.06em;
    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.janna-footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* ----------------------------------------
   FOOTER IDENTITY
---------------------------------------- */

.janna-footer-identity {
    min-height: 42px;
    display: flex;
    align-items: stretch;
    margin-left: auto;
}


/* ----------------------------------------
   FOOTER NAME
---------------------------------------- */

.janna-footer-name {
    min-height: 42px;
    padding-right: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.janna-footer-name-main {
    color: var(--text);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.janna-footer-name-alias {
    color: var(--dim);
    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.2;
}


/* ========================================
   FOOTER BRAND
======================================== */

.janna-footer-brand {
    min-height: 42px;
    padding-left: 24px;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--line);
}

.janna-footer-brand-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.janna-footer-brand-year {
    color: var(--muted);
    transition: color 0.2s ease;
}

.janna-footer-brand-main {
    margin-left: 8px;
    color: var(--text);
    transition: color 0.2s ease;
}

.janna-footer-brand-main .brand-dot {
    color: var(--accent);
    transition: color 0.25s ease;
}

.janna-footer-brand-main .brand-n {
    display: inline-block;
    transition: transform 0.35s ease;
}

.janna-footer-brand-link:hover,
.janna-footer-brand-link:hover .janna-footer-brand-year,
.janna-footer-brand-link:hover .janna-footer-brand-main {
    color: var(--accent);
    text-decoration: none;
}

.janna-footer-brand-link:hover .brand-dot {
    color: var(--accent);
}

.janna-footer-brand-link:hover .brand-n {
    transform: scaleX(-1);
}


/* ========================================
   BUTTONS
======================================== */

.btn {
    border-radius: 0;

    font-family: var(--font-mono);
}

.btn:hover,
.btn:focus {
    color: var(--bg);

    background: var(--accent);

    border-color: var(--accent);
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 800px) {

    #header .navbar {
        min-height: 76px;

        grid-template-columns: 1fr auto 1fr;
    }

    #header .logo {
        gap: 0;
    }

    #header .janna-brand {
        font-size: 14px;
        padding-right: 18px;
    }

    #header .janna-identity {
        padding-left: 18px;
    }

    #header .janna-name {
        font-size: 8px;
    }

    #header .janna-alias {
        font-size: 8px;
    }

    #header .notes-nav {
        gap: 4px;
    }

    #header .notes-nav a {
        min-height: 24px;

        padding: 0 8px;

        font-size: 8px;
    }

    #header .site-nav {
        gap: 16px;
    }

    #header .site-nav a,
    #header .site-nav .active {
        font-size: 9px;
    }

    #body-wrapper .content {
        padding-top: 35px;
        padding-bottom: 50px;
    }

    .janna-footer-inner {
        width: calc(100% - 40px);

        min-height: 82px;

        grid-template-columns: 1fr auto;

        gap: 18px;
    }

    .janna-footer-links {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .janna-footer-identity {
        grid-column: 2;
        grid-row: 1;
    }
}


@media (max-width: 600px) {

    #body-wrapper h1 {
        font-size: clamp(38px, 14vw, 68px);
    }

    .janna-footer {
        padding: 25px 0;
    }

    .janna-footer-inner {
        width: calc(100% - 28px);

        display: flex;
        flex-wrap: wrap;

        align-items: center;

        gap: 0;
    }

    .janna-footer-identity {
        margin-left: auto;
    }

    .janna-footer-links {
        width: 100%;

        margin-top: 20px;

        gap: 20px;

        flex-wrap: wrap;

        order: 2;
    }
}


@media (max-width: 450px) {

    #header .navbar {
        grid-template-columns: 1fr;
    }

    #header .logo {
        gap: 0;
    }

    #header .janna-brand {
        font-size: 13px;
        padding-right: 14px;
    }

    #header .janna-identity {
        padding-left: 14px;
    }

    #header .janna-name {
        font-size: 7px;
        letter-spacing: 0.06em;
    }

    #header .janna-alias {
        font-size: 7px;
        letter-spacing: 0.05em;
    }

    #header .notes-nav {
        position: static;

        grid-column: 1;

        justify-content: flex-start;

        width: 100%;

        overflow-x: auto;

        scrollbar-width: none;
    }

    #header .notes-nav::-webkit-scrollbar {
        display: none;
    }

    #header .site-nav {
        grid-column: 1;

        justify-self: start;

        gap: 13px;

        overflow-x: auto;

        scrollbar-width: none;
    }

    #header .site-nav::-webkit-scrollbar {
        display: none;
    }

    .janna-footer {
        padding: 25px 0;
    }

    .janna-footer-inner {
        display: flex;
        flex-direction: column;

        align-items: stretch;

        gap: 20px;
    }

    .janna-footer-identity {
        width: 100%;

        margin-left: 0;

        justify-content: flex-end;
    }

    .janna-footer-links {
        width: 100%;

        gap: 20px;

        flex-wrap: wrap;

        order: 2;
    }

    .janna-footer-name {
        padding-right: 16px;
    }

    .janna-footer-brand {
        padding-left: 16px;
    }

    .janna-footer-name-main {
        font-size: 9px;
    }

    .janna-footer-brand-link {
        font-size: 9px;
    }

    .janna-footer-name-alias {
        font-size: 8px;
    }
}

/* ========================================
   QUARK MOBILE MENU
======================================== */

.mobile-menu {
    z-index: 1001;
}

.mobile-container {
    z-index: 1000;
}

/* ----------------------------------------
   MOBILE HEADER
---------------------------------------- */

.mobile-logo {
    display: block;
    width: 100%;
}

.mobile-identity {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    width: 100%;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* ----------------------------------------
   MOBILE LOGO
---------------------------------------- */

.mobile-logo .janna-brand {
    display: inline-block;
    color: var(--text);
    background: transparent;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
}

.mobile-logo .janna-brand .janna-dot {
    color: var(--accent);
}

.mobile-logo .janna-brand .janna-logo-n {
    display: inline-block;

    transition: transform 0.35s ease;
}

.mobile-logo .janna-brand:hover .janna-logo-n {
    transform: scaleX(-1);
}

/* ----------------------------------------
   MOBILE IDENTITY
---------------------------------------- */

.mobile-identity .janna-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    line-height: 1;
}

.mobile-identity .janna-name {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.mobile-identity .janna-alias {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* ----------------------------------------
   MOBILE NAV
---------------------------------------- */

.overlay-menu .main-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 34px;
}

/* ----------------------------------------
   NOTES
---------------------------------------- */

.overlay-menu .notes-nav {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    gap: 0;
    margin: 0;
}

.overlay-menu .notes-nav a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 16px 0;

    border-bottom: 1px solid var(--line);

    color: var(--text);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;

    text-align: center;
}

.overlay-menu .notes-nav a:first-child {
    border-top: 1px solid var(--line);
}

.overlay-menu .notes-nav a:hover {
    color: var(--accent);
}

/* ----------------------------------------
   ECOSYSTEM
---------------------------------------- */

.overlay-menu .site-nav {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    gap: 0;
    margin: 0;
}

.overlay-menu .site-nav a,
.overlay-menu .site-nav .active,
.overlay-menu .site-nav .unpublished {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;

    text-align: center;
}

.overlay-menu .site-nav a:hover {
    color: var(--accent);
}

.overlay-menu .site-nav .active {
    color: var(--text);
}

.overlay-menu .site-nav .active::before {
    content: "";

    display: inline-block;

    width: 5px;
    height: 5px;

    margin-right: 9px;

    border-radius: 50%;

    background: var(--accent);

    flex: 0 0 5px;
}

.overlay-menu .site-nav .unpublished {
    color: var(--dim);
}

/* ----------------------------------------
   SMALL SCREENS
---------------------------------------- */

@media (max-width: 450px) {

    .mobile-identity {
        gap: 14px;
    }

    .mobile-logo .janna-brand {
        font-size: 16px;
    }

    .mobile-identity .janna-name {
        font-size: 8px;
    }

    .mobile-identity .janna-alias {
        font-size: 8px;
    }

    .overlay-menu .main-nav {
        gap: 28px;
    }

    .overlay-menu .notes-nav a {
        padding: 14px 0;
        font-size: 10px;
    }

    .overlay-menu .site-nav a,
    .overlay-menu .site-nav .active,
    .overlay-menu .site-nav .unpublished {
        min-height: 34px;
        font-size: 8px;
    }
}

/* ========================================
   HEADER — DISABLE SHRINK ON SCROLL
   Wysokość spójna z ekosystemem:
   96px desktop / 76px mobile (jak hub/portfolio/janna.pl)
======================================== */

#header,
#header.scrolled,
#header.header-scrolled {
    min-height: 76px !important;
    height: 96px !important;
}

#header .navbar,
#header.scrolled .navbar,
#header.header-scrolled .navbar {
    min-height: 76px !important;
    height: 96px !important;
}

@media (max-width: 800px) {

    #header,
    #header.scrolled,
    #header.header-scrolled {
        min-height: 56px !important;
        height: 76px !important;
    }

    #header .navbar,
    #header.scrolled .navbar,
    #header.header-scrolled .navbar {
        min-height: 56px !important;
        height: 76px !important;
    }
}

/* ========================================
   MOBILE HAMBURGER
======================================== */

.mobile-menu .button_container span,
.mobile-menu .button_container span::before,
.mobile-menu .button_container span::after {
    background: var(--accent) !important;
}

/* ========================================
   CODE BLOCKS
======================================== */

pre {
    position: relative;
    margin: 28px 0;
    padding: 20px 22px;
    overflow-x: auto;

    background: #0b0d0f !important;
    color: var(--text) !important;

    border: 1px solid var(--line) !important;
    border-radius: 0 !important;

    font-family: var(--font-mono) !important;
    font-size: 13px;
    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
}

pre code {
    display: block;
    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    color: var(--text) !important;

    border: 0 !important;

    font-family: var(--font-mono) !important;
    font-size: inherit;
    line-height: inherit;

    white-space: pre;
}

/* ----------------------------------------
   INLINE CODE
---------------------------------------- */

:not(pre) > code {
    padding: 2px 6px;

    background: #0b0d0f !important;
    color: var(--accent) !important;

    border: 1px solid var(--line);
    border-radius: 0;

    font-family: var(--font-mono) !important;
    font-size: 0.9em;
}

/* ========================================
   MARK / HIGHLIGHT
======================================== */

mark {
    padding: 1px 5px;

    background: rgba(255, 195, 0, 0.10) !important;
    color: var(--accent) !important;

    border: 1px solid rgba(255, 195, 0, 0.25);
    border-radius: 2px;

    font-family: var(--font-mono);
    font-size: 0.92em;
}


/* ========================================
   SHORTCODE — EXTERNAL RESOURCE / RELATED
======================================== */

.janna-embed,
.janna-related {
    display: block;
    position: relative;
    margin: 32px 0;
    padding: 14px 42px 14px 20px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.018);
    text-decoration: none;
}

/* ========================================
   EXTERNAL RESOURCE
======================================== */

.janna-embed {
    border-left: 2px solid rgba(127, 157, 181, 0.65);
}

.janna-embed:hover {
    border-left-color: #7f9db5;
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
}

.janna-embed__meta,
.janna-related__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.janna-embed__meta {
    color: #7f9db5;
}

.janna-embed__separator,
.janna-related__separator {
    opacity: 0.45;
}

.janna-embed__title,
.janna-related__title {
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.janna-embed:hover .janna-embed__title {
    color: #7f9db5;
}

.janna-embed__description {
    max-width: 900px;
    margin-top: 5px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.6;
}

.janna-embed__url,
.janna-related__url {
    margin-top: 8px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}


/* ========================================
   EXTERNAL RESOURCE — ARROW
======================================== */

.janna-embed::after {
    content: '↗';
    position: absolute;
    top: 14px;
    right: 18px;
    color: #7f9db5;
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1;
}


/* ========================================
   RELATED
======================================== */

.janna-related {
    border-left: 2px solid rgba(255, 195, 0, 0.65);
}

.janna-related:hover {
    border-left-color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
}

.janna-related__meta {
    color: var(--accent);
}

.janna-related__url {
    color: var(--dim);
}

.janna-related:hover .janna-related__title {
    color: var(--accent);
}


/* ========================================
   RELATED — ARROW
======================================== */

.janna-related::after {
    content: '→';
    position: absolute;
    top: 14px;
    right: 18px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1;
}


/* ========================================
   SHORTCODE — NOTICES
======================================== */

.sc-notice {
    margin: 28px 0;
    border: 1px solid;
}

.sc-notice > div {
    position: relative;
    padding: 48px 20px 18px 54px !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--text) !important;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.7;
}


/* ========================================
   NOTICE — LABEL
======================================== */

.sc-notice > div:first-child:after {
    position: absolute;
    top: 18px;
    left: 54px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}


/* ========================================
   NOTICE — ICON
======================================== */

.sc-notice > div:before {
    position: absolute;
    top: 17px;
    left: 20px;
    width: 20px;
    height: 20px;
    border: 1px solid;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 19px;
    text-align: center;
}


/* ========================================
   INFO
======================================== */

.sc-notice.info {
    border-color: rgba(127, 157, 181, 0.20);
    border-left: 2px solid #7f9db5;
    background: rgba(127, 157, 181, 0.035);
}

.sc-notice.info > div:before {
    content: 'i';
    color: #7f9db5;
    border-color: rgba(127, 157, 181, 0.45);
}

.sc-notice.info > div:first-child:after {
    content: 'INFO';
    color: #7f9db5;
}


/* ========================================
   TIP
======================================== */

.sc-notice.tip {
    border-color: rgba(255, 195, 0, 0.20);
    border-left: 2px solid var(--accent);
    background: rgba(255, 195, 0, 0.035);
}

.sc-notice.tip > div:before {
    content: '→';
    color: var(--accent);
    border-color: rgba(255, 195, 0, 0.45);
}

.sc-notice.tip > div:first-child:after {
    content: 'TIP';
    color: var(--accent);
}


/* ========================================
   NOTE
======================================== */

.sc-notice.note {
    border-color: rgba(255, 255, 255, 0.10);
    border-left: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.025);
}

.sc-notice.note > div:before {
    content: '·';
    color: var(--muted);
    border-color: rgba(255, 255, 255, 0.25);
}

.sc-notice.note > div:first-child:after {
    content: 'NOTE';
    color: var(--muted);
}


/* ========================================
   WARNING
======================================== */

.sc-notice.warning {
    border-color: rgba(255, 195, 0, 0.20);
    border-left: 2px solid var(--accent);
    background: rgba(255, 195, 0, 0.035);
}

.sc-notice.warning > div:before {
    content: '!';
    color: var(--accent);
    border-color: rgba(255, 195, 0, 0.45);
}

.sc-notice.warning > div:first-child:after {
    content: 'WARNING';
    color: var(--accent);
}


/* ========================================
   DANGER
======================================== */

.sc-notice.danger {
    border-color: rgba(190, 80, 80, 0.20);
    border-left: 2px solid #b85c5c;
    background: rgba(190, 80, 80, 0.035);
}

.sc-notice.danger > div:before {
    content: '×';
    color: #b85c5c;
    border-color: rgba(190, 80, 80, 0.45);
}

.sc-notice.danger > div:first-child:after {
    content: 'DANGER';
    color: #b85c5c;
}


/* ========================================
   SUCCESS
======================================== */

.sc-notice.success {
    border-color: rgba(120, 160, 125, 0.20);
    border-left: 2px solid #789f7d;
    background: rgba(120, 160, 125, 0.035);
}

.sc-notice.success > div:before {
    content: '✓';
    color: #789f7d;
    border-color: rgba(120, 160, 125, 0.45);
}

.sc-notice.success > div:first-child:after {
    content: 'SUCCESS';
    color: #789f7d;
}


/* ========================================
   NOTICE — LINKS
======================================== */

.sc-notice a {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
}

.sc-notice a:hover {
    color: var(--accent);
}

/* ========================================
   BREADCRUMB
======================================== */

.janna-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 28px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.janna-breadcrumb a {
    color: var(--dim);
    text-decoration: none;
}

.janna-breadcrumb a:hover {
    color: var(--accent);
    text-decoration: none;
}

.janna-breadcrumb span {
    color: var(--dim);
    opacity: 0.5;
}


/* ========================================
   NOTE HEADER
======================================== */

.janna-excerpt {
   /* max-width: 820px; */
    margin: 18px 0 26px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
}


/* ========================================
   NOTE METADATA
======================================== */

.janna-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 24px 0 10px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    line-height: 1.5;
    text-transform: uppercase;
}

.janna-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.janna-byline span:nth-child(2),
.janna-byline span:nth-child(4) {
    opacity: 0.45;
}


/* ========================================
   NOTE TAGS
======================================== */

.janna-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 42px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.janna-tags > span:first-child {
    margin-right: 7px;
    color: var(--muted);
    font-weight: 500;
}

.janna-tags > span:not(:first-child) {
    color: var(--dim);
}

.janna-tags > span:not(:first-child):hover {
    color: var(--accent);
}


/* ========================================
   NOTE ARTICLE
======================================== */

/*.janna-article {
    max-width: 920px;
} */

.janna-article p,
.janna-article li {
    color: var(--text);
}

.janna-article p {
    margin-top: 0;
    margin-bottom: 1.4em;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
}

.janna-article ul,
.janna-article ol {
    margin-top: 0;
    margin-bottom: 1.5em;
    padding-left: 1.6em;
}

.janna-article li {
    margin-bottom: 0.45em;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
}

.janna-article h2,
.janna-article h3,
.janna-article h4 {
    color: var(--text);
    font-family: var(--font-mono);
    font-weight: 500;
}

.janna-article h2 {
    margin-top: 64px;
    margin-bottom: 22px;
    font-size: 30px;
    line-height: 1.15;
}

.janna-article h3 {
    margin-top: 48px;
    margin-bottom: 18px;
    font-size: 20px;
    line-height: 1.25;
}

.janna-article h4 {
    margin-top: 36px;
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.3;
}

.janna-article a {
    color: var(--accent);
    text-decoration: none;
}

.janna-article a:hover {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* ========================================
   NOTE ARTICLE — MEDIA
======================================== */

.janna-article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 32px 0;
}

.janna-article figure {
    margin: 36px 0;
}

.janna-article figcaption {
    margin-top: 10px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.5;
}


/* ========================================
   NOTE ARTICLE — CODE
======================================== */

.janna-article pre {
    margin: 28px 0;
}

.janna-article blockquote {
    margin: 32px 0;
    padding: 4px 0 4px 22px;
    border-left: 2px solid var(--accent);
    color: var(--muted);
}


/* ========================================
   NOTE ARTICLE — TABLES
======================================== */

.janna-article table {
    width: 100%;
    margin: 32px 0;
    background: transparent;
}

.janna-article th,
.janna-article td {
    padding: 10px 12px;
    border-color: var(--line) !important;
    font-size: 13px;
    line-height: 1.5;
}

.janna-article th {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.janna-article td {
    font-family: var(--font-body);
}


/* ========================================
   NOTE ARTICLE — HORIZONTAL RULE
======================================== */

.janna-article hr {
    margin: 48px 0;
    border: 0;
    border-top: 1px solid var(--line);
}


/* ========================================
   NOTE — MOBILE
======================================== */

@media (max-width: 600px) {

    .janna-excerpt {
        margin-top: 14px;
        margin-bottom: 22px;
        font-size: 14px;
        line-height: 1.65;
    }

    .janna-meta,
    .janna-byline,
    .janna-tags {
        font-size: 8px;
    }

    .janna-tags {
        margin-bottom: 34px;
    }

    .janna-article {
        max-width: none;
    }

    .janna-article p,
    .janna-article li {
        font-size: 14px;
        line-height: 1.75;
    }

    .janna-article h2 {
        margin-top: 48px;
        font-size: 26px;
    }

    .janna-article h3 {
        margin-top: 38px;
        font-size: 18px;
    }

    .janna-article h4 {
        margin-top: 30px;
        font-size: 15px;
    }

    .janna-article table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ========================================
   NOTE STATUS
======================================== */

.janna-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.janna-status__value {
    padding: 2px 6px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.3;
}

/* ----------------------------------------
   STATUS — DRAFT
---------------------------------------- */

.janna-status--draft {
    color: var(--muted);
    border-color: rgba(255, 255, 255, 0.14);
}

/* ----------------------------------------
   STATUS — PUBLISHED
---------------------------------------- */

.janna-status--published {
    color: var(--accent);
    border-color: rgba(255, 195, 0, 0.35);
}

/* ----------------------------------------
   STATUS — ARCHIVED
---------------------------------------- */

.janna-status--archived {
    color: var(--dim);
    border-color: var(--line);
}

/* ========================================
   NOTE EXCERPT / SUMMARY
======================================== */

.janna-excerpt {
    max-width: 900px;
    margin: 28px 0 18px;

    color: var(--muted);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.janna-excerpt::before {
    content: "ABOUT";
    display: block;
    margin-bottom: 8px;

    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.12em;
}


/* ========================================
   DETAILS / SUMMARY (expandable)
======================================== */

.janna-article details {
    margin: 28px 0;
    border: 1px solid var(--line);
}

.janna-article summary {
    padding: 14px 20px;
    cursor: pointer;

    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    list-style: none;
}

.janna-article summary::-webkit-details-marker {
    display: none;
}

.janna-article summary::before {
    content: "+";
    display: inline-block;
    width: 1.2em;

    color: var(--accent);
}

.janna-article details[open] summary::before {
    content: "\2212";
}

.janna-article details > *:not(summary) {
    padding: 0 20px;
}

.janna-article details > :last-child {
    margin-bottom: 18px;
}