/* =========================================================
   MOSSYNEWT SPLASH PAGE
   woodland / old-web entrance
   ========================================================= */


/* =========================================================
   COLOURS
   ========================================================= */

:root {

    --forest: #263326;
    --deep-forest: #111a12;

    --moss: #61704c;
    --moss-light: #849968;
    --leaf: #b1bd8b;

    --cream: #e8e1c9;
    --paper: #d9d2b9;

    --brown: #66513b;

    --gold: #c5a45d;
    --rust: #9a6947;

}


/* =========================================================
   CUSTOM FONTS
   ========================================================= */

@font-face {
    font-family: "Seedling Shed";
    src: url("../fonts/Socakeseedlingshed.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Go Around the Books";
    src: url("../fonts/goaroundthebooksdecorative.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Calamint Grove";
    src: url("../fonts/Holiday_Homecalamint.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "MossyNewt";
    src: url("../fonts/adeliamossynewt.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Alagard";
    src: url("../fonts/alagardcalamintmaintext.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Ornaments Cute";
    src: url("../fonts/OrnamentsCute.otf") format("opentype");
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;

    cursor:
        url("../images/nat803.cur") 0 0,
        auto;
}


/* Clickable elements */

a,
a *,
button,
button *,
summary,
[role="button"],
[role="button"] *,
input[type="submit"],
input[type="button"] {

    cursor:
        url("../images/nat801.cur") 0 0,
        pointer;
}


html {
    scroll-behavior: smooth;
}


/* =========================================================
   BODY
   ========================================================= */

body {

    position: relative;

    margin: 0;
    padding: 30px 15px;

    background-color: var(--deep-forest);

    color: var(--cream);

    font-family:
        "Alagard",
        Verdana,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;
}


/* Grass texture */

body::before {

    content: "";

    position: fixed;
    inset: 0;

    z-index: 0;

    background:
        url("../images/grass.png")
        repeat;

    opacity: .30;

    pointer-events: none;
}


/* =========================================================
   SPLASH WRAPPER
   ========================================================= */

.splash-site {

    position: relative;
    z-index: 1;

    width: 760px;
    max-width: 100%;

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.splash-header {

    margin: 0;
    padding: 0;

    text-align: center;
}


/* Banner */

.site-banner {

    display: block;

    max-width: 100%;
    height: auto;

    margin: 0 auto;
    padding: 0;
}


/* Remove default link appearance */

.home-banner {

    display: block;

    margin: 0;
    padding: 0;

    color: inherit;

    background: transparent;

    border: 0;

    text-decoration: none;
}

.home-banner:hover {

    color: inherit;
}


/* =========================================================
   QUOTE BAR
   ========================================================= */

.site-bar {

    position: relative;

    margin: 18px auto 28px;

    padding: 12px 30px 13px;

    max-width: 650px;

    color: var(--paper);

    text-align: center;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;
    font-style: italic;

    line-height: 1.5;
}


/* Top and bottom dotted rules */

.site-bar::before,
.site-bar::after {

    content: "";

    display: block;

    height: 1px;

    background:
        repeating-linear-gradient(
            to right,
            var(--moss) 0,
            var(--moss) 2px,
            transparent 2px,
            transparent 5px
        );
}


/* Position rules */

.site-bar::before {

    margin-bottom: 10px;
}

.site-bar::after {

    margin-top: 10px;
}


/* Quote */

.quote-text {

    color: var(--leaf);
}


/* Decorative quotation marks */

.quote-mark {

    color: var(--gold);

    font-size: 20px;
    font-style: normal;

    vertical-align: -2px;
}


/* Author */

.quote-author {

    display: block;

    margin-top: 4px;

    color: var(--moss-light);

    font-size: 16px;
    font-style: normal;

    letter-spacing: .2px;
}


/* =========================================================
   PORTAL AREA
   ========================================================= */

.portal-area {

    position: relative;

    margin: 0 auto;

    padding: 8px 0 18px;
}


/* Small introductory line */

.portal-intro {

    margin-bottom: 20px;

    color: var(--moss-light);

    text-align: center;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;
    font-style: italic;
}

.portal-intro span {

    margin: 0 8px;

    color: var(--gold);

    font-size: 16px;
}


/* =========================================================
   PORTAL LIST
   ========================================================= */

.portal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 18px;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
}


/* =========================================================
   PORTAL ITEM
   ========================================================= */

.portal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    text-align: center;
}

/* MossyNewt gets the full width of the second row */
.portal-item:first-child {
    grid-column: 1 / -1;
}

.portal-item:first-child .portal {
    width: min(100%, 500px);
}


/* =========================================================
   PORTAL LINK
   ========================================================= */

.portal {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 130px;
    padding: 14px 10px 11px;
    color: var(--leaf);
    background:
        rgba(17, 26, 18, .28);
    border:
        1px solid rgba(132, 153, 104, .28);
    border-radius: 4px;
    text-decoration: none;
    overflow: hidden;
    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


/* Sliding moss panel */

.portal::before {

    content: "";

    position: absolute;

    inset: 0;

    z-index: 0;

    background:
        linear-gradient(
            135deg,
            rgba(97,112,76,.92),
            rgba(83,107,67,.92)
        );

    transform:
        scaleY(0);

    transform-origin:
        bottom;

    transition:
        transform .3s ease;
}


/* Portal hover */

.portal:hover {

    color: var(--cream);

    border-color: var(--gold);

    background:
        rgba(97,112,76,.18);

    transform:
        translateY(-3px);

    box-shadow:
        0 5px 14px rgba(0,0,0,.28);
}


.portal:hover::before {

    transform:
        scaleY(1);
}


/* =========================================================
   PORTAL TITLE
   ========================================================= */

.portal-title {

    position: relative;
    z-index: 1;

    display: block;

    color: var(--cream);

    font-size: 32px;
    font-style: normal;
    font-weight: normal;

    line-height: 1.1;

    text-shadow:
        0 2px 0 var(--rust),
        2px 0 0 var(--rust),
        0 -1px 0 var(--gold),
        -1px 0 0 var(--rust),
        2px 2px 0 var(--forest),
        3px 3px 0 var(--deep-forest);

    transition:
        color .2s ease,
        text-shadow .2s ease;
}


/* Seedling Shed */

.portal-seedling .portal-title {

    font-family:
        "Seedling Shed",
        serif;
}


/* Calamint Grove */

.portal-calamint .portal-title {

    font-family:
        "Calamint Grove",
        serif;
}


.portal-mossynewt .portal-title {
    font-family:
        "MossyNewt",
        serif;
    display: block;
    padding: 0 10px;
    white-space: nowrap;
}


/* MossyNewt spacing */

.portal-mossynewt .portal-arrow {

    margin-top: 25px;
}

.portal-mossynewt {
    padding-left: 15px;
    padding-right: 15px;
}


/* =========================================================
   LITTLE FLOURISH
   ========================================================= */

.portal-arrow {

    position: relative;
    z-index: 1;

    display: block;

    margin-top: 7px;

    color: var(--gold);

    font-family:
        "Go Around the Books";

    font-size: 18px;

    line-height: 1;

    transition:
        color .2s ease,
        transform .2s ease;
}


.portal:hover .portal-title {

    color: var(--cream);

text-shadow:
    0 2px 0 var(--forest),
    2px 0 0 var(--forest),
    0 -1px 0 var(--forest),
    -1px 0 0 var(--forest),
    2px 2px 0 var(--deep-forest),
    3px 3px 0 var(--deep-forest);
}


.portal:hover .portal-arrow {

    color: var(--cream);

    transform:
        translateY(-1px);
}


/* Keyboard focus */

.portal:focus {

    outline: none;
}

.portal:focus-visible {

    outline: none;

    box-shadow:
        0 0 0 2px var(--deep-forest),
        0 0 0 4px var(--gold);
}


/* =========================================================
   PORTAL DESCRIPTION
   ========================================================= */

.portal-description {

    margin: 7px 0 0;

    color: var(--moss-light);

    font-size: 16px;

    line-height: 1.4;

    text-align: center;

    text-transform: uppercase;

    letter-spacing: .7px;
}


/* =========================================================
   SPLASH NOTE
   ========================================================= */

.splash-note {

    width: 620px;
    max-width: 100%;

    margin: 25px auto 0;
    padding: 11px 16px;

    color: var(--moss-light);

    background:
        rgba(17,26,18,.22);

    border-top:
        1px dotted rgba(132,153,104,.45);

    border-bottom:
        1px dotted rgba(132,153,104,.45);

    text-align: center;

    font-size: 16px;
    line-height: 1.5;
}


.splash-note p {

    margin: 0;
}

.splash-note p + p {

    margin-top: 4px;
}


/* =========================================================
   CREDITS
   ========================================================= */

.splash-credits {

    width: 620px;
    max-width: 100%;

    margin: 25px auto 0;
    padding: 14px 18px 16px;

    color: var(--paper);

    background:
        rgba(232,225,201,.06);

    border:
        1px solid rgba(132,153,104,.20);

    border-radius: 4px;
}


/* Credits heading */

.splash-credits h2 {

    margin: 0 0 10px;

    color: var(--leaf);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;
    font-style: italic;
    font-weight: normal;

    text-align: center;
}


.splash-credits h2 span {

    margin: 0 7px;

    color: var(--gold);

    font-size: 16px;
}


/* Credits list */

.splash-credits ul {

    margin: 0;
    padding: 0;

    list-style: none;
}


.splash-credits li {

    margin: 0;
    padding: 4px 0 4px 15px;

    color: var(--moss-light);

    font-size: 16px;
    line-height: 1.45;

    position: relative;
}


/* Little marker */
.splash-credits h2 span {
    font-family: "Go Around the Books";
    margin: 0 7px;
    color: var(--gold);
    font-size: 18px;
}

.splash-credits li::before {

    content: "D";

    position: absolute;

    left: 0;
    top: 5px;

    color: var(--gold);

    font-family:
        "Ornaments Cute";

    font-size: 16px;

    line-height: 1;
}


.splash-credits strong {

    color: var(--paper);

    font-weight: normal;
}


/* Credit links */

.splash-credits a {

    color: var(--leaf);

    text-decoration: underline dotted;

    text-decoration-color:
        var(--moss);
}


.splash-credits a:hover {

    color: var(--gold);

    text-decoration-style: solid;
}


/* =========================================================
   FOOTER
   ========================================================= */

.splash-footer {

    margin-top: 25px;

    padding: 7px 5px 3px;

    color: var(--moss-light);

    border-top:
        1px dotted var(--moss);

    text-align: center;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;
    font-style: italic;
}


.splash-footer span {

    margin: 0 7px;

    color: var(--gold);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    body {
        padding: 18px 8px;
    }


    .splash-site {
        width: 100%;
    }


    .site-bar {

        margin-top: 14px;
        margin-bottom: 22px;

        padding-left: 15px;
        padding-right: 15px;

        font-size: 16px;
    }


    .portal-list {

        gap: 15px 10px;
    }


    .portal-item {

        flex-basis: 180px;

        min-width: 160px;
    }


    .portal {

        min-height: 95px;
    }


    .portal-title {

        font-size: 27px;
    }


    .splash-note,
    .splash-credits {

        width: 100%;
    }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 480px) {

    body {
        padding: 12px 6px;
    }


    .site-bar {

        margin-bottom: 18px;

        padding:
            9px 8px 10px;

        font-size: 16px;
    }


    .portal-list {

        flex-direction: column;

        align-items: center;

        gap: 12px;
    }


    .portal-item {

        width: 100%;
        max-width: 330px;

        min-width: 0;
    }


    .portal {

        min-height: 88px;

        padding:
            12px 8px 10px;
    }


    .portal-title {

        font-size: 29px;
    }


    .splash-note {

        margin-top: 20px;

        padding:
            9px 10px;
    }


    .splash-credits {

        margin-top: 20px;

        padding:
            12px 12px 14px;
    }


    .splash-credits li {

        padding-left: 13px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    .portal,
    .portal::before,
    .portal-title,
    .portal-arrow {

        transition: none;
    }

}