
/* =========================================================
MOSSYNEWT
old web / personal site
woodland + moss edition
========================================================= */


/* =========================================================
CUSTOM FONTS
========================================================= */

@font-face {
    font-family: "Rainy Hearts";
    src: url("../fonts/rainyheartspfmagicfont.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: "MossyNewt";
    src: url("../fonts/adeliamossynewt.ttf") format("truetype");
    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;
}


/* =========================================================
COLOURS
========================================================= */

:root {

    --forest: #263326;
    --deep-forest: #111a12;

    --moss: #61704c;
    --moss-light: #849968;
    --leaf: #b1bd8b;

    --cream: #e8e1c9;
    --paper: #d9d2b9;

    --brown: #66513b;

    --gold: #c5a45d;
    --rust: #9a6947;

}


/* =========================================================
TEXT SELECTION
woodland / moss edition
========================================================= */

::selection {
    background: var(--moss);
    color: var(--cream);
}

::-moz-selection {
    background: var(--moss);
    color: var(--cream);
}


/* =========================================================
BASIC 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: 25px 12px;

    background-color: var(--deep-forest);

    color: var(--cream);

    font-family:
        "Rainy Hearts",
        Verdana,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;
}


/* Grass texture over the green background */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: 0;

    background:
        url("../images/grass.png")
        repeat;

    opacity: .30;

    pointer-events: none;
}


/* =========================================================
SITE WRAPPER
========================================================= */

.site {
    position: relative;
    z-index: 1;

    width: 900px;
    max-width: 100%;
    margin: 0 auto;
}


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

a {
    color: var(--leaf);

    font-family:
        "Alagard",
        Verdana,
        Arial,
        Helvetica,
        sans-serif;
}

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

a:visited {
    color: var(--moss-light);
}


/* =========================================================
IMAGES
========================================================= */

img {
    max-width: 100%;
    height: auto;
}


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

.site-header {
    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;

    text-align: center;
}


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

.site-banner {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 0 auto;
    padding: 0;

    border: 0;
}


.site-bar {
    position: relative;

    margin: 18px 0 26px;
    padding: 13px 30px;

    color: var(--paper);

    text-align: center;

    font-family:
        Alagard,
        "Times New Roman",
        serif;

    font-size: 12px;
    font-style: italic;
    line-height: 1.6;

    border-top:
        1px solid rgba(197,164,93,.55);

    border-bottom:
        1px solid rgba(97,112,76,.65);
}


/* Small ornamental marks */

.site-bar::before,
.site-bar::after {
    position: absolute;

    color: var(--gold);

    font-family:
        "Go Around the Books",
        "Times New Roman",
        serif;

    font-size: 16px;
    font-style: normal;

    line-height: 1;
}

.site-bar::before {
    content: "o";

    left: 16px;
    top: 50%;

    transform: translateY(-50%);
}

.site-bar::after {
    content: "o";

    right: 16px;
    top: 50%;

    transform: translateY(-50%);
}


/* Quotation itself */

.site-bar span {
    display: inline-block;

    max-width: 680px;

    color: var(--moss-light);

    text-shadow:
        1px 1px 0 rgba(17,26,18,.35);

    letter-spacing: .1px;
}


/* =========================================================
SITE BAR — MOBILE
========================================================= */

@media (max-width: 700px) {

    .site-bar {
        margin: 14px 0 20px;
        padding: 11px 25px;

        font-size: 10px;
        line-height: 1.5;
    }

    .site-bar::before {
        left: 5px;
    }

    .site-bar::after {
        right: 5px;
    }

}


@media (max-width: 400px) {

    .site-bar {
        margin: 12px 0 18px;
        padding: 10px 22px;

        font-size: 9px;
    }

    .site-bar::before,
    .site-bar::after {
        font-size: 9px;
    }

}


/* =========================================================
HOME BANNER LINK
========================================================= */

.home-banner {
    display: block;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;

    text-decoration: none;
}

.home-banner:hover {
    color: inherit;
}


/* =========================================================
INTERNAL PAGE LAYOUT
========================================================= */

.page-layout {
    display: grid;

    grid-template-columns:
        640px
        190px;

    gap: 18px;

    align-items: start;

    width: 848px;
    max-width: 100%;
    margin: 0 auto;
}


/* =========================================================
MAIN CONTENT
640 × 640 desktop target
Floral pixel border
========================================================= */

.page-content {
    position: relative;

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

    height: 640px;
    max-height: 640px;

    min-width: 0;

    overflow-y: auto;

    padding: 20px 22px 24px;

    background:
        linear-gradient(
            to bottom,
            rgba(232,225,201,.98),
            rgba(217,210,185,.98)
        );

    background-clip: padding-box;

    color: var(--forest);

    border:
        25px solid transparent;

    border-image:
        url("../images/floral.png")
        25
        round;

    box-shadow:
        0 2px 8px rgba(0,0,0,.18);
}


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

.breadcrumb {
    margin: 0 0 8px;

    color: var(--moss);

    font-size: 9px;
    line-height: 1.4;

    text-transform: uppercase;
    letter-spacing: .4px;
}

.breadcrumb a {
    color: var(--moss);

    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--rust);
    text-decoration: underline;
}


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

.page-content h1 {
    margin: 0 0 18px;
    padding-bottom: 8px;

    color: var(--forest);

    border-bottom:
        1px dotted var(--moss);

    font-family:
        "MossyNewt",
        serif;

    font-size: 28px;
    font-weight: normal;
    font-style: normal;

    line-height: 1.2;

    text-shadow:
        1px 1px 0 var(--paper),
        2px 2px 0 rgba(97,112,76,.18);
}

.page-content h1::before {
    content: "l";

    color: var(--moss);

    font-family:
        "Go Around the Books";

    font-weight: normal;
    font-style: normal;
    font-size: 26px;
}

.page-content h2 {
    margin: 24px 0 8px;
    padding-bottom: 4px;

    color: var(--moss);

    border-bottom:
        1px dotted var(--moss-light);

    font-family:
        "MossyNewt",
        serif;

    font-size: 21px;
    font-weight: normal;
    font-style: normal;
}


/* =========================================================
PARAGRAPHS
========================================================= */

.page-content p {
    margin: 0 0 13px;
}


/* =========================================================
LISTS
========================================================= */

.page-content ul {
    margin: 8px 0 16px;
    padding-left: 22px;

    list-style: none;
}

.page-content li {
    position: relative;

    margin-bottom: 7px;
    padding-left: 3px;
}

.page-content li::before {
    content: "4";

    position: absolute;
    left: -22px;
    top: .15em;

    color: var(--moss);

    font-family: "Go Around the Books";
    font-size: 1em;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
}

.page-content ul.colour-list {
    padding-left: 0;
}

.page-content ul.colour-list li::before {
    content: none;
}


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

.page-content a {
    color: var(--brown);

    font-weight: bold;

    text-decoration: underline dotted;
    text-decoration-color: var(--moss-light);
}

.page-content a:hover {
    color: var(--rust);

    text-decoration-style: solid;
}


/* =========================================================
LITTLE PAGE NOTE
========================================================= */

.page-note {
    margin-top: 25px;
    padding: 10px 12px;

    color: var(--moss);

    border-top:
        1px dashed var(--moss);

    border-bottom:
        1px dashed var(--moss);

    text-align: center;

    font-family:
        Alagard,
        "Times New Roman",
        serif;

    font-size: 11px;
    font-style: italic;
}

.page-note span {
    margin: 0 7px;
    color: var(--gold);
}


/* =========================================================
CONTENT DIVIDER
little old-web woodland flourish
========================================================= */

.page-content::after {
    content: "";

    display: block;

    width: 150px;
    max-width: 100%;
    height: 25px;

    margin: 18px auto 2px;

    background:
        url("../images/divider33.gif")
        no-repeat
        center;

    background-size:
        contain;
}


/* =========================================================
SIDEBAR
========================================================= */

.site-sidebar {
    min-width: 0;
}


.sidebar-box {
    margin: 0 0 14px;
    padding: 13px;

    background:
        rgba(232,225,201,.97);

    background-clip: padding-box;

    border:
        10px solid transparent;

    border-image:
        url("../images/VINESBORDER.png")
        10
        round;

    box-shadow:
        0 2px 7px rgba(0,0,0,.16);
}


/* =========================================================
SIDEBAR HEADING
========================================================= */

.sidebar-box h2 {
    margin: 0 0 10px;
    padding-bottom: 7px;

    color: var(--forest);

    border-bottom:
        1px dotted var(--moss);

    font-family:
        MossyNewt,
        "Times New Roman",
        serif;

    font-size: 14px;
    font-weight: normal;

    text-align: center;
    letter-spacing: .2px;
}

.sidebar-box h2::before {
    content: "t ";

    color: var(--moss);

    font-family:
        "Go Around the Books";

    font-weight: normal;
    font-style: normal;
}


/* =========================================================
SIDEBAR NAVIGATION
========================================================= */

.sidebar-box nav {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.sidebar-box nav a {
    display: flex;
    align-items: center;

    gap: 7px;

    padding: 6px 7px;

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

    border-left:
        2px solid transparent;

    border-radius: 4px;

    font-size: 14px;
    line-height: 1.3;

    text-decoration: none;

    transition:
        background .15s ease,
        color .15s ease,
        padding-left .15s ease,
        border-color .15s ease;
}

.sidebar-box nav a span {
    width: 13px;

    color: var(--moss);

    text-align: center;
}

.sidebar-box nav a:hover {
    padding-left: 10px;

    color: var(--forest);

    background:
        rgba(177,189,139,.35);

    border-left-color:
        var(--moss);
}

.sidebar-box nav a:hover span {
    color: var(--rust);
}


/* =========================================================
CURRENT PAGE
========================================================= */

.sidebar-box nav a.current {
    color: var(--forest);

    background:
        rgba(177,189,139,.45);

    font-weight: bold;
}

.sidebar-box nav a.current span {
    color: var(--rust);
}


/* =========================================================
LITTLE SIDEBAR BOX
========================================================= */

.sidebar-little {
    color: var(--brown);

    font-size: 10px;
    line-height: 1.5;
}

.sidebar-little h2 {
    margin-bottom: 8px;
}

.sidebar-little p {
    margin: 0 0 3px;

    color: var(--moss);

    font-size: 9px;
}

.sidebar-little strong {
    color: var(--forest);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 12px;
}


/* =========================================================
SIDEBAR DIVIDER
Only the final sidebar panel gets the ornament.
========================================================= */

.sidebar-box:last-child::after {
    content: "";

    display: block;

    width: 150px;
    max-width: 100%;
    height: 25px;

    margin: 12px auto 0;

    background:
        url("../images/divider33.gif")
        no-repeat
        center;

    background-size:
        contain;
}


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

.site-footer {
    margin-top: 16px;
    padding: 9px 5px 4px;

    color: var(--moss-light);

    border-top:
        1px dotted var(--moss);

    text-align: center;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 10px;
}

.site-footer span {
    margin: 0 6px;
    color: var(--gold);
}

.site-footer a {
    color: var(--moss-light);

    text-decoration: none;
}

.site-footer a:hover {
    color: var(--gold);
    text-decoration: underline;
}


/* =========================================================
INTERNAL PAGE MOBILE
========================================================= */

@media (max-width: 867px) {

    .page-layout {
        grid-template-columns: 1fr;
        gap: 14px;

        width: 100%;
        max-width: 640px;
    }

    .site-sidebar {
        order: -1;
    }

    .sidebar-box {
        margin-bottom: 10px;
    }

    .sidebar-box nav {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 2px 4px;
    }

    .sidebar-box nav a {
        padding: 6px;
    }

    .sidebar-box nav a:hover {
        padding-left: 8px;
    }

    .page-content {
        width: 100%;
        max-width: 640px;

        height: 640px;
        max-height: 640px;

        padding: 17px 16px 20px;
    }

}


/* =========================================================
VERY SMALL SCREENS
========================================================= */

@media (max-width: 400px) {

    .page-content {
        width: 100%;
        max-width: 100%;

        height: 640px;
        max-height: 640px;

        padding: 15px 13px 18px;
    }

    .page-content h1 {
        font-size: 19px;
    }

    .page-content h2 {
        font-size: 14px;
    }

    .sidebar-box nav {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
REDUCE MOTION
========================================================= */

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

    html {
        scroll-behavior: auto;
    }

}


/* =========================================================
COLOUR LIST MOBILE
========================================================= */

@media (max-width: 500px) {

    .colour-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }

}


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

@media (max-width: 700px) {

    body {
        padding: 12px 7px;
    }

    .site {
        width: 100%;
    }

    .site-bar {
        margin-top: 12px;
        margin-bottom: 18px;

        font-size: 10px;
    }

}


/* =========================================================
VERY SMALL SCREENS
========================================================= */

@media (max-width: 400px) {

    body {
        padding: 8px 5px;
    }

    .site-bar {
        font-size: 9px;
        line-height: 1.5;
    }

}


/* =========================================================
CUSTOM SCROLLBAR
woodland / moss edition
========================================================= */

/* Firefox */

html {
    scrollbar-width: thin;

    scrollbar-color:
        var(--moss)
        var(--deep-forest);
}


/* Chromium / WebKit browsers */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--deep-forest);
}

::-webkit-scrollbar-thumb {
    background: var(--moss);

    border:
        2px solid var(--deep-forest);

    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--moss-light);
}

::-webkit-scrollbar-thumb:active {
    background: var(--gold);
}


/* Scrollbar corner */

::-webkit-scrollbar-corner {
    background: var(--deep-forest);
}


/* =========================================================
CONTENT PANEL SCROLLBAR
slightly softer paper / woodland variation
========================================================= */

.page-content {
    scrollbar-width: thin;

    scrollbar-color:
        var(--moss)
        var(--paper);
}

.page-content::-webkit-scrollbar {
    width: 9px;
}

.page-content::-webkit-scrollbar-track {
    background: var(--paper);

    border-radius: 8px;
}

.page-content::-webkit-scrollbar-thumb {
    background: var(--moss);

    border:
        2px solid var(--paper);

    border-radius: 8px;
}

.page-content::-webkit-scrollbar-thumb:hover {
    background: var(--moss-light);
}

.page-content::-webkit-scrollbar-thumb:active {
    background: var(--rust);
}


/* =========================================================
INTERNAL PAGE REFINEMENTS — MOBILE
========================================================= */

@media (max-width: 400px) {

    .page-content::after,
    .sidebar-box:last-child::after {
        max-width: 100%;

        background-size:
            contain;
    }

}


/* =========================================================
CENTRED CONTENT IMAGES
========================================================= */

.favourite-image {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 10px auto;
}


/* =========================================================
MUSIC / FROM THE GRAMOPHONE
========================================================= */

.music-title {
    margin-bottom: 4px;

    color: var(--forest);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;
    font-style: italic;

    text-align: center;
}

.music-intro {
    margin-bottom: 8px;

    color: var(--moss);

    font-size: 9px;
    line-height: 1.4;

    text-align: center;
}

.music-song {
    margin-bottom: 8px;
    padding: 5px 6px;

    background:
        rgba(177, 189, 139, .10);

    border-top:
        1px dotted var(--moss-light);

    border-bottom:
        1px dotted var(--moss-light);

    text-align: center;

    line-height: 1.3;
}

.music-song strong {
    display: block;

    color: var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 10px;
}

.music-song span {
    display: block;

    margin-top: 2px;

    color: var(--moss);

    font-size: 8px;
}

.mini-player {
    display: flex;
    align-items: center;

    gap: 7px;

    width: 100%;
    box-sizing: border-box;

    padding: 6px;

    background:
        rgba(177, 189, 139, .13);

    border:
        1px solid rgba(97, 112, 76, .35);

    border-radius: 4px;
}

.music-play {
    flex: 0 0 25px;

    width: 25px;
    height: 25px;

    padding: 0;

    color: var(--cream);
    background: var(--moss);

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

    border-radius: 50%;

    font-size: 9px;
    line-height: 23px;

    text-align: center;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.music-play:hover {
    color: var(--cream);
    background: var(--forest);

    transform: scale(1.05);
}

.music-play:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 2px var(--cream),
        0 0 0 4px var(--gold);
}

.music-details {
    flex: 1 1 auto;

    min-width: 0;
}

.music-progress {
    width: 100%;
    height: 5px;

    overflow: hidden;

    background:
        rgba(97, 112, 76, .20);

    border-radius: 3px;

    cursor: pointer;
}

.music-progress-bar {
    width: 0;
    height: 100%;

    background: var(--gold);

    border-radius: 3px;

    transition:
        width .05s linear;
}

.music-time {
    display: flex;
    justify-content: space-between;

    margin-top: 3px;

    color: var(--moss);

    font-size: 7px;
    line-height: 1;
}

.music-audio {
    display: none;
}
