/* =========================================================
   GOKSTAD ARTICLE LIBRARY
   /articles/css/style.css

   Expected files:

   /articles/
       index.html
       css/
           style.css
           gokstad-library.png
   ========================================================= */


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

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

html {
    background: #100d09;
}

body {
    min-height: 100vh;

    color: #17130f;
    font-family: Georgia, "Times New Roman", serif;

    /*
       The generated artwork is the ENTIRE page background.

       Left half  = Viking / study
       Right half = parchment article area
    */
    background-image: url("gokstad-library.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* =========================================================
   TOP-LEFT NAVIGATION
   ========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 1000;

    padding: 26px;
}


.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 6px;

    width: 52px;
    height: 52px;

    padding: 12px;

    background: rgba(15, 12, 8, 0.78);

    border: 1px solid rgba(224, 190, 124, 0.55);
    border-radius: 4px;

    text-decoration: none;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

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


.hamburger:hover {
    background: rgba(35, 27, 18, 0.95);

    border-color: #d0aa67;

    transform: translateY(-1px);
}


.hamburger span {
    display: block;

    width: 100%;
    height: 2px;

    background: #e0c58e;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.articles-page {
    position: relative;

    display: block;

    width: 100%;
    min-height: 100vh;
}


/*
   This section existed when the page used a two-column layout.

   The Viking/library is now already contained inside the
   full-page background image, so this element must NOT take
   up any space.
*/

.library-visual {
    display: none;
}


.visual-shade {
    display: none;
}


/* =========================================================
   ARTICLE LIBRARY
   ========================================================= */

/*
   The generated background is roughly:

   LEFT 50%  = Viking / library
   RIGHT 50% = parchment

   Therefore the article section begins halfway across
   the viewport.

   IMPORTANT:
   This section deliberately has NO background.
   The parchment visible behind it is part of the image.
*/

.article-library {
    position: relative;

    width: 50%;
    min-height: 100vh;

    margin-left: 50%;

    display: flex;
    align-items: center;

    padding: 60px 4%;

    background: transparent;
}


/*
   Disable the old artificial paper texture.
*/

.article-library::before {
    display: none;
    content: none;
}


/* =========================================================
   INNER ARTICLE CONTAINER
   ========================================================= */

.library-inner {
    position: relative;

    width: 100%;
    max-width: 760px;

    margin: auto;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.library-heading {
    margin-bottom: 42px;

    text-align: center;
}


.eyebrow {
    margin: 0 0 10px;

    color: #71532f;

    font-size: 0.75rem;
    font-weight: bold;

    letter-spacing: 0.28em;

    text-transform: uppercase;
}


.library-heading h1 {
    margin: 0;

    color: #15120e;

    font-size: clamp(2.7rem, 4.5vw, 5rem);
    font-weight: 500;

    line-height: 0.95;

    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25);
}


.tagline {
    margin: 18px 0;

    color: #59452e;

    font-size: 0.8rem;
    font-weight: bold;

    line-height: 1.5;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


.tagline span {
    padding: 0 7px;

    color: #9a713c;
}


/* =========================================================
   DECORATIVE HEADING RULE
   ========================================================= */

.heading-rule {
    display: grid;

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

    align-items: center;

    gap: 18px;

    width: 100%;
    max-width: 520px;

    margin: 24px auto 0;
}


.heading-rule span {
    display: block;

    height: 1px;

    background: rgba(117, 81, 35, 0.65);
}


.rune {
    color: #765123;

    font-size: 1.6rem;

    line-height: 1;
}


/* =========================================================
   ARTICLE LIST
   ========================================================= */

.article-list {
    display: flex;
    flex-direction: column;

    gap: 12px;

    width: 100%;
}


/* =========================================================
   ARTICLE CARD
   ========================================================= */

.article-card {
    margin: 0;

    border: 1px solid rgba(100, 70, 37, 0.28);

    background: rgba(255, 247, 225, 0.38);

    box-shadow:
        0 4px 14px rgba(55, 35, 16, 0.06);

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


.article-card:hover {
    transform: translateX(-5px);

    background: rgba(255, 250, 235, 0.70);

    border-color: rgba(100, 70, 37, 0.65);

    box-shadow:
        0 7px 18px rgba(55, 35, 16, 0.12);
}


.article-card a {
    display: grid;

    grid-template-columns: 54px 1fr 30px;

    gap: 20px;

    align-items: center;

    width: 100%;
    min-height: 112px;

    padding: 18px 22px;

    color: inherit;

    text-decoration: none;
}


/* =========================================================
   ARTICLE NUMBER
   ========================================================= */

.article-number {
    color: #8a6638;

    font-size: 1rem;
    font-weight: bold;

    letter-spacing: 0.10em;
}


/* =========================================================
   ARTICLE TITLE / DESCRIPTION
   ========================================================= */

.article-copy {
    min-width: 0;
}


.article-copy h2 {
    margin: 0 0 7px;

    color: #17120d;

    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    font-weight: bold;

    line-height: 1.1;
}


.article-copy p {
    margin: 0;

    max-width: 570px;

    color: #514432;

    font-size: 1rem;

    line-height: 1.45;
}


/* =========================================================
   ARTICLE ARROW
   ========================================================= */

.article-arrow {
    color: #73522e;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.4rem;

    line-height: 1;

    text-align: center;

    transition: transform 0.2s ease;
}


.article-card:hover .article-arrow {
    transform: translateX(5px);
}


/* =========================================================
   LIBRARY FOOTER
   ========================================================= */

.library-footer {
    margin-top: 34px;

    text-align: center;

    color: #715d43;

    font-size: 0.85rem;

    letter-spacing: 0.06em;
}


.library-footer p {
    margin: 0;
}


/* =========================================================
   LARGE / ULTRAWIDE SCREENS
   ========================================================= */

@media (min-width: 1700px) {

    .article-library {
        padding-left: 5%;
        padding-right: 5%;
    }

    .library-inner {
        max-width: 820px;
    }

}


/* =========================================================
   TABLETS / SMALL LAPTOPS
   ========================================================= */

@media (max-width: 1050px) {

    body {
        /*
           Keep the Viking visible while allowing more room
           for the article area.
        */
        background-position: 43% center;
    }

    .article-library {
        width: 55%;

        margin-left: 45%;

        padding:
            70px
            4%;
    }

    .library-heading h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

    .article-card a {
        grid-template-columns: 45px 1fr 25px;

        gap: 14px;
    }

}


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

@media (max-width: 760px) {

    body {
        /*
           On phones the image becomes a fixed atmospheric
           background rather than maintaining the desktop
           50/50 composition.
        */

        background-position: 38% center;
        background-size: cover;
        background-attachment: fixed;
    }


    /*
       Add a translucent parchment layer behind the content
       on mobile because the desktop parchment area cannot
       remain perfectly aligned on a narrow portrait screen.
    */

    .article-library {
        width: 100%;
        min-height: 100vh;

        margin-left: 0;

        padding:
            110px
            22px
            65px;

        background:
            linear-gradient(
                rgba(230, 207, 162, 0.88),
                rgba(218, 188, 135, 0.92)
            );
    }


    .library-inner {
        max-width: 650px;
    }


    .site-header {
        padding: 16px;
    }


    .hamburger {
        width: 46px;
        height: 46px;

        padding: 10px;
    }


    .library-heading {
        margin-bottom: 30px;
    }


    .library-heading h1 {
        font-size: 2.8rem;

        line-height: 1;
    }


    .eyebrow {
        font-size: 0.68rem;

        letter-spacing: 0.22em;
    }


    .tagline {
        font-size: 0.72rem;

        line-height: 1.8;

        letter-spacing: 0.10em;
    }


    .heading-rule {
        gap: 12px;

        margin-top: 18px;
    }


    .article-card a {
        grid-template-columns: 40px 1fr 20px;

        gap: 12px;

        min-height: 100px;

        padding: 16px;
    }


    .article-copy h2 {
        font-size: 1.25rem;
    }


    .article-copy p {
        font-size: 0.92rem;
    }


    .article-arrow {
        font-size: 2rem;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 430px) {

    .article-library {
        padding:
            95px
            15px
            50px;
    }


    .library-heading h1 {
        font-size: 2.35rem;
    }


    .tagline span {
        padding: 0 3px;
    }


    /*
       Remove numbers on very narrow screens so article
       titles retain enough horizontal room.
    */

    .article-number {
        display: none;
    }


    .article-card a {
        grid-template-columns: 1fr 20px;

        gap: 10px;

        padding: 15px;
    }


    .article-copy h2 {
        font-size: 1.15rem;
    }


    .article-copy p {
        font-size: 0.88rem;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.hamburger:focus-visible,
.article-card a:focus-visible {
    outline: 3px solid #8c642f;
    outline-offset: 3px;
}


/*
   Respect users who request reduced motion.
*/

@media (prefers-reduced-motion: reduce) {

    .hamburger,
    .article-card,
    .article-arrow {
        transition: none;
    }

}


/* =========================================================
   UPCOMING ARTICLES
   ========================================================= */

   .article-card-inner {
    display: grid;

    grid-template-columns: 54px 1fr 30px;

    gap: 20px;

    align-items: center;

    width: 100%;
    min-height: 112px;

    padding: 18px 22px;
}


.article-card.upcoming {
    background: rgba(225, 205, 166, 0.28);

    border-style: dashed;

    opacity: 0.72;

    cursor: default;
}


.article-card.upcoming:hover {
    transform: none;

    background: rgba(225, 205, 166, 0.28);

    border-color: rgba(100, 70, 37, 0.28);

    box-shadow:
        0 4px 14px rgba(55, 35, 16, 0.06);
}


.article-status {
    display: inline-block;

    margin-bottom: 5px;

    color: #805b2d;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.60rem;
    font-weight: bold;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


@media (max-width: 760px) {

    .article-card-inner {
        grid-template-columns: 40px 1fr;

        gap: 12px;

        min-height: 100px;

        padding: 16px;
    }

}


@media (max-width: 430px) {

    .article-card-inner {
        grid-template-columns: 1fr;

        padding: 15px;
    }

}



/* =========================================================
   ARTICLE SECTION DIVIDER
   ========================================================= */

   .article-section-label {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    gap: 14px;

    margin: 10px 0 2px;
}


.article-section-label span {
    height: 1px;

    background: rgba(117, 81, 35, 0.35);
}


.article-section-label p {
    margin: 0;

    color: #79572f;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.63rem;
    font-weight: bold;

    letter-spacing: 0.20em;

    text-transform: uppercase;
}