/* ==========================================================================
   Offset theme — 1:1 port of marvinthiel.com
   ========================================================================== */

:root {
    --offset-border: 20px;
}

/* Override newstalgia body — full-viewport flex column with gradient background */
body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    border-left: var(--offset-border) solid var(--bg);
    border-right: var(--offset-border) solid var(--bg);
    display: flex;
    flex-direction: column;
    background-image: var(--offset-bg, none), linear-gradient(to top right,
        #b8bbc0 0%,
        #bfc4ca 20%,
        #97a0af 45%,
        #515b72 70%,
        #1f2f55 100%
    );
    background-size: cover, cover;
    background-position: center, center;
    justify-content: space-between;
    align-items: center;
}


/* Top and bottom bars */
aside.offset-bar {
    width: 100%;
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    font-style: italic;
    font-size: 0.8rem;
    padding: 0 0.5rem;
    position: relative;
    z-index: 1;
}

aside.offset-bar a {
    color: var(--fg);
    text-decoration: none;
}

aside.offset-bar a:hover {
    text-decoration: underline;
}

/* Identity card (fixed, top-right) */
.identity-card {
    position: fixed;
    top: var(--offset-border);
    right: var(--offset-border);
    padding: 24px 20px 32px 40px;
    background-color: var(--bg);
    text-align: right;
    z-index: 2;
}

.identity-card .name {
    font-size: 5.5rem;
    font-style: italic;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.identity-card .meta {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.6;
    text-transform: uppercase;
}

/* Main content box */
main.offset-main {
    height: 768px;
    width: 1024px;
    background-color: var(--bg);
    box-shadow: 10px 10px 0px var(--fg);
    border: 2px solid var(--fg);
    position: relative;
    z-index: 1;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Page navigation inside main */
main.offset-main > nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3em;
    width: 100%;
    padding: 2em;
    flex-wrap: wrap;
    margin: 0;
}

main.offset-main > nav ul li {
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
}

main.offset-main > nav ul li a {
    color: var(--fg);
    text-decoration: none;
}

main.offset-main > nav ul li.active a,
main.offset-main > nav ul li a:hover {
    text-decoration: underline;
    text-decoration-color: var(--fg);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Paperboat admin bar — sticky inside the main box */
.paperboat-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--bg);
    border-bottom: 1px solid var(--fg-border);
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
}

/* Content area inside the main box — use newstalgia .content for typography */
main.offset-main .content {
    padding-top: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ≤1724px: hide identity card */
@media (max-width: 1724px) {
    .identity-card {
        visibility: hidden;
    }
}

/* Mobile footer section — hidden on desktop */
.offset-mobile-footer {
    display: none;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--fg-border);
    margin-top: 2rem;
}

.offset-mobile-footer .name {
    font-size: 3rem;
    font-style: italic;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.offset-mobile-footer .meta {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.6;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ≤1064px: collapse to full-screen, hide bars */
@media (max-width: 1064px) {
    body {
        padding: 5vw;
        justify-content: center;
        border-left-color: transparent;
        border-right-color: transparent;
    }


    aside.offset-bar {
        display: none;
    }

    main.offset-main {
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    main.offset-main > nav ul li {
        font-size: 0.8rem;
    }

    .offset-mobile-footer {
        display: block;
    }
}
