/* =========================================================
   7 Points Singleton
   Complete replacement stylesheet
   ========================================================= */

:root {
    --page-background: #d8d2c9;

    --brown-black: #1d1514;
    --deep-brown: #2a1e1c;
    --dark-brown: #382724;
    --medium-brown: #50372f;
    --copper: #7b4d3e;

    --gold: #d8b15a;
    --gold-light: #efd58f;
    --parchment: #d8c3a0;
    --ivory: #f1e8dc;

    --paper: #f8f5f0;
    --paper-alt: #eee7dc;

    --text: #292321;
    --muted-text: #665b55;

    --border: #c9bba8;
    --border-dark: #9d8974;

    --link: #914825;
    --link-hover: #b9612b;
    --link-visited: #70413a;

    --content-width: 1160px;
    --sidebar-width: 290px;
}


/* =========================================================
   Base
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;

    background:
        radial-gradient(
            circle at top,
            rgba(255, 255, 255, 0.58),
            transparent 650px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(40, 28, 25, 0.014) 0,
            rgba(40, 28, 25, 0.014) 1px,
            transparent 1px,
            transparent 4px
        ),
        var(--page-background);

    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        Times,
        serif;

    font-size: 18px;
    line-height: 1.62;

    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

iframe,
video,
embed,
object {
    max-width: 100%;
}

.clear {
    display: none;
}

.grid_16 {
    float: none;
    width: 100%;
}

.container_16 {
    width: min(calc(100% - 32px), var(--content-width));
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   Typography
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: var(--deep-brown);

    font-family:
        Georgia,
        "Times New Roman",
        Times,
        serif;

    font-weight: 700;
    line-height: 1.2;
}

h1 {
    margin-bottom: 20px;

    font-size: clamp(2rem, 3.4vw, 2.65rem);
    letter-spacing: -0.025em;
}

h2 {
    margin: 40px 0 14px;
    padding-bottom: 7px;

    border-bottom: 2px solid var(--gold);

    font-size: clamp(1.55rem, 2.6vw, 1.95rem);
    letter-spacing: -0.015em;
}

h3 {
    margin: 30px 0 8px;
    font-size: 1.4rem;
}

h4 {
    margin: 26px 0 8px;
    font-size: 1.2rem;
}

p {
    margin: 0 0 18px;
}

ul,
ol {
    margin: 13px 0 24px;
    padding-left: 30px;
}

li {
    margin-bottom: 8px;
}

strong,
b {
    color: #241b19;
}

small {
    font-size: 0.85rem;
}

hr {
    height: 0;
    margin: 36px 0;

    border: 0;
    border-top: 1px solid var(--border);
}


/* =========================================================
   Links
   ========================================================= */

a {
    color: var(--link);

    text-decoration: underline;
    text-decoration-color: rgba(145, 72, 37, 0.42);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    transition:
        color 0.15s ease,
        text-decoration-color 0.15s ease;
}

a:visited {
    color: var(--link-visited);
}

a:hover,
a:focus {
    color: var(--link-hover);
    text-decoration-color: currentColor;
}

a:focus-visible {
    outline: 3px solid rgba(216, 177, 90, 0.65);
    outline-offset: 3px;
}


/* =========================================================
   Header wrapper
   ========================================================= */

#head_wrap {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 12px auto 0;
    padding: 0;

    overflow: hidden;

    border: 1px solid #160f0e;
    border-radius: 8px;

    background: var(--brown-black);

    box-shadow:
        0 9px 26px rgba(36, 25, 22, 0.21),
        0 2px 6px rgba(36, 25, 22, 0.25);
}


/* =========================================================
   Site title
   ========================================================= */

#header {
    position: relative;

    width: 100%;
    padding: 13px 24px 12px;

    border: 0;

    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(139, 79, 58, 0.2),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #211817 0%,
            #3b2926 55%,
            #261b19 100%
        );
}

#logo {
    margin: 0;
    padding: 0;
}

#logo h3 {
    margin: 0;
    padding: 0;
}

#logo h3 a {
    display: inline-block;

    color: var(--ivory);

    font-family:
        Georgia,
        "Times New Roman",
        Times,
        serif;

    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;

    text-decoration: none;

    text-shadow:
        0 2px 0 #111,
        0 4px 2px rgba(0, 0, 0, 0.62),
        0 6px 11px rgba(0, 0, 0, 0.45);
}

#logo h3 a:visited {
    color: var(--ivory);
}

#logo h3 a:hover {
    color: #fff8ec;
}

.r-description {
    margin: 0;
    padding: 0;
}

.r-description h4 {
    margin: 7px 0 0;
    padding: 0;

    color: var(--parchment);

    font-family:
        Georgia,
        "Times New Roman",
        Times,
        serif;

    font-size: clamp(1rem, 1.8vw, 1.28rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.22;

    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.55);
}


/* =========================================================
   Header image
   ========================================================= */

#header-img {
    width: 100%;
    max-width: none;
    height: 220px;
    margin: 0;
    padding: 0;

    overflow: hidden;

    border-top: 1px solid rgba(222, 185, 119, 0.26);
    border-bottom: 1px solid #110c0b;

    background: var(--brown-black);
}

#header-img img {
    display: block;

    width: 100% !important;
    max-width: none !important;
    height: 100% !important;

    margin: 0;
    padding: 0;

    border: 0;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   Navigation
   ========================================================= */

.site-navigation {
    position: relative;

    width: 100%;

    border-top: 1px solid rgba(238, 213, 143, 0.14);

    background:
        linear-gradient(
            to bottom,
            #342522 0%,
            #211817 100%
        );
}

.navigation-inner {
    width: 100%;
}

.main-navigation {
    display: block;
    width: 100%;
}

.main-navigation ul,
.main-navigation #nav {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;

    width: 100%;
    margin: 0;
    padding: 0;

    list-style: none;
}

.main-navigation li {
    display: block;
    float: none;

    margin: 0;
    padding: 0;

    list-style: none;
}

.main-navigation li a {
    display: flex;
    align-items: center;

    height: 100%;
    padding: 12px 18px;

    border-right: 1px solid rgba(216, 195, 160, 0.13);

    color: var(--ivory);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.015em;

    text-decoration: none;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.main-navigation li a:visited {
    color: var(--ivory);
}

.main-navigation li a:hover,
.main-navigation li a:focus {
    background: var(--medium-brown);
    color: #fff;
}

.main-navigation li#active a,
.main-navigation li.active a,
.main-navigation li.current a,
.main-navigation li.current-page a {
    background:
        linear-gradient(
            to bottom,
            var(--gold-light),
            var(--gold)
        );

    color: var(--brown-black);
    text-shadow: 0 1px rgba(255, 255, 255, 0.35);
}


/* =========================================================
   Mobile menu controls
   ========================================================= */

.mobile-menu-toggle {
    position: absolute;

    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;

    overflow: hidden;

    opacity: 0;
    pointer-events: none;
}

.mobile-menu-button {
    display: none;
}


/* =========================================================
   Main layout
   ========================================================= */

.main_wrap {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        var(--sidebar-width);

    align-items: start;
    gap: 22px;

    width: min(calc(100% - 32px), var(--content-width));
    max-width: none;
    min-width: 0;

    margin: 15px auto 0;
    padding: 0;

    background: transparent;
}

#content_left_wrapper,
#content_right_wrapper {
    float: none;

    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.content_left,
.content_right {
    float: none;

    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}


/* =========================================================
   Content boxes
   ========================================================= */

.box {
    margin: 0 0 20px;
    padding: clamp(22px, 3.5vw, 37px);

    border: 1px solid var(--border);
    border-radius: 7px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.9),
            rgba(248, 245, 240, 0.98)
        );

    box-shadow:
        0 5px 18px rgba(55, 40, 35, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.block,
.article,
.first_main_article {
    min-width: 0;
}

.article.first_main_article > :first-child {
    margin-top: 0;
}

.article.first_main_article > :last-child {
    margin-bottom: 0;
}


/* =========================================================
   Content images
   ========================================================= */

.content_left img {
    display: block;
    float: none !important;

    max-width: 100%;
    height: auto;

    margin: 24px auto !important;
    padding: 6px !important;

    border: 1px solid var(--border-dark);
    border-radius: 2px;

    background: #fffaf3;

    box-shadow:
        0 9px 21px rgba(47, 34, 30, 0.18);
}

.content_left a img {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.content_left a:hover img {
    transform: translateY(-1px);

    box-shadow:
        0 12px 26px rgba(47, 34, 30, 0.23);
}


/* =========================================================
   Blockquotes and code
   ========================================================= */

blockquote {
    margin: 25px 0;
    padding: 14px 19px;

    border-left: 5px solid var(--gold);

    background: #eee5d7;
    color: #4f443e;

    font-style: italic;
}

pre,
code {
    font-family:
        Consolas,
        Monaco,
        "Courier New",
        monospace;
}

code {
    padding: 2px 5px;

    border-radius: 3px;

    background: #e9e1d6;

    font-size: 0.9em;
}

pre {
    max-width: 100%;
    margin: 21px 0;
    padding: 16px;

    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: 5px;

    background: #251c1a;
    color: #f4eadb;

    font-size: 14px;
    line-height: 1.5;
}

pre code {
    padding: 0;

    background: transparent;
    color: inherit;
}


/* =========================================================
   Tables
   ========================================================= */

table {
    width: 100%;
    margin: 23px 0;

    border-collapse: collapse;
    border-spacing: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.9rem;
}

th,
td {
    padding: 10px 12px;

    border: 1px solid var(--border);

    text-align: left;
    vertical-align: top;
}

th {
    background: var(--deep-brown);
    color: var(--ivory);

    font-weight: 700;
}

tbody tr:nth-child(even) {
    background: rgba(229, 220, 207, 0.48);
}


/* =========================================================
   Sidebar
   ========================================================= */

.content_right .box {
    position: sticky;
    top: 14px;

    padding: 16px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 15px;
    line-height: 1.5;
}

.content_right p {
    margin-bottom: 14px;
}

.content_right ul,
.content_right ol {
    margin: 8px 0 21px;
    padding-left: 24px;
}

.content_right li {
    margin-bottom: 9px;
}

.box.widget.widget_text h4 {
    margin: 28px -16px 12px;
    padding: 10px 15px;

    border: 0;
    border-left: 5px solid var(--gold);
    border-radius: 0;

    background:
        linear-gradient(
            to right,
            var(--deep-brown),
            var(--dark-brown)
        );

    color: var(--ivory);

    font-family:
        Georgia,
        "Times New Roman",
        Times,
        serif;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.box.widget.widget_text h4:first-child {
    margin-top: -16px;

    border-radius: 6px 6px 0 0;
}

.content_right iframe {
    display: block;

    width: 100% !important;
    max-width: 100%;
}


/* =========================================================
   Footer
   ========================================================= */

#footer_wrap {
    width: min(calc(100% - 32px), var(--content-width));
    max-width: none;
    min-width: 0;

    margin: 18px auto 0;
    padding: 0;
}

#footer {
    width: 100%;
    padding: 22px 18px;

    border-top: 3px solid var(--gold);
    border-radius: 7px 7px 0 0;

    background:
        radial-gradient(
            circle at center top,
            rgba(121, 75, 61, 0.2),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #2b201e,
            #17100f
        );

    color: #cdbfae;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    text-align: center;
}

#footer a,
#footer a:visited {
    color: var(--parchment);
}

#footer a:hover {
    color: #fff;
}


/* =========================================================
   Smaller desktop
   ========================================================= */

@media screen and (max-width: 1050px) {

    :root {
        --sidebar-width: 270px;
    }

    .main-navigation li a {
        padding-right: 14px;
        padding-left: 14px;
    }

}


/* =========================================================
   Tablet
   ========================================================= */

@media screen and (max-width: 900px) {

    .main_wrap {
        grid-template-columns: 1fr;
    }

    #content_right_wrapper {
        width: 100%;
    }

    .content_right .box {
        position: static;
    }

    .main-navigation ul,
    .main-navigation #nav {
        justify-content: center;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media screen and (max-width: 700px) {

    body {
        margin: 0;
        padding: 0;

        font-size: 17px;
        line-height: 1.58;
    }

    .container_16 {
        width: 100%;
    }


    /* Compact mobile header */

    #head_wrap {
        width: 100%;
        margin: 0;

        border-right: 0;
        border-left: 0;
        border-radius: 0;

        box-shadow:
            0 6px 18px rgba(36, 25, 22, 0.21);
    }

    #header {
        padding: 11px 60px 10px 14px;
    }

    #logo h3 a {
        font-size: clamp(1.85rem, 8vw, 2.55rem);
        line-height: 1;
    }

    .r-description h4 {
        margin-top: 5px;

        font-size: 0.96rem;
        line-height: 1.18;
    }

    #header-img {
        height: 155px;
    }

    #header-img img {
        height: 100% !important;

        object-fit: cover;
        object-position: center;
    }


    /* Mobile menu button */

    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        min-height: 46px;
        padding: 0 16px;

        border: 0;

        background:
            linear-gradient(
                to bottom,
                #3b2a27 0%,
                #221817 100%
            );

        color: var(--ivory);

        font-family:
            Georgia,
            "Times New Roman",
            Times,
            serif;

        font-size: 17px;
        font-weight: 700;
        line-height: 1;

        cursor: pointer;
        user-select: none;
    }

    .mobile-menu-button:hover {
        background:
            linear-gradient(
                to bottom,
                #49342f 0%,
                #291d1b 100%
            );
    }

    .mobile-menu-label {
        order: 1;
    }


    /* Hamburger */

    .mobile-menu-icon {
        position: relative;
        order: 2;

        display: block;

        width: 26px;
        height: 19px;

        border-top: 3px solid var(--gold);
        border-bottom: 3px solid var(--gold);
    }

    .mobile-menu-icon::before {
        position: absolute;
        top: 5px;
        left: 0;

        width: 26px;
        height: 3px;

        background: var(--gold);

        content: "";
    }


    /* Collapsed navigation */

    .main-navigation {
        display: grid;
        grid-template-rows: 0fr;

        width: 100%;

        overflow: hidden;

        transition: grid-template-rows 0.22s ease;
    }

    .navigation-inner {
        min-height: 0;
        overflow: hidden;
    }

    .mobile-menu-toggle:checked ~ .main-navigation {
        grid-template-rows: 1fr;
    }

    .main-navigation ul,
    .main-navigation #nav {
        display: block;

        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;

        overflow: hidden;
    }

    .main-navigation li {
        display: block;

        width: 100%;
        margin: 0;

        border-top: 1px solid rgba(216, 195, 160, 0.15);
    }

    .main-navigation li a {
        display: block;

        width: 100%;
        padding: 12px 16px;

        border-right: 0;

        color: var(--ivory);

        font-size: 15px;
        line-height: 1.3;
    }

    .main-navigation li a:visited {
        color: var(--ivory);
    }

    .main-navigation li a:hover,
    .main-navigation li a:focus {
        background: var(--medium-brown);
        color: #fff;
    }

    .main-navigation li#active a,
    .main-navigation li.active a,
    .main-navigation li.current a,
    .main-navigation li.current-page a {
        padding-left: 12px;

        border-left: 4px solid var(--gold-light);

        background:
            linear-gradient(
                to right,
                #65463d,
                #4a332e
            );

        color: #fff;
        text-shadow: none;
    }


    /* Hamburger becomes X */

    .mobile-menu-toggle:checked
        + .mobile-menu-button
        .mobile-menu-icon {
        border-color: transparent;
    }

    .mobile-menu-toggle:checked
        + .mobile-menu-button
        .mobile-menu-icon::before,
    .mobile-menu-toggle:checked
        + .mobile-menu-button
        .mobile-menu-icon::after {
        position: absolute;
        top: 7px;
        left: 0;

        width: 26px;
        height: 3px;

        background: var(--gold);

        content: "";
    }

    .mobile-menu-toggle:checked
        + .mobile-menu-button
        .mobile-menu-icon::before {
        transform: rotate(45deg);
    }

    .mobile-menu-toggle:checked
        + .mobile-menu-button
        .mobile-menu-icon::after {
        transform: rotate(-45deg);
    }

    .mobile-menu-toggle:focus-visible
        + .mobile-menu-button {
        outline: 3px solid var(--gold-light);
        outline-offset: -3px;
    }


    /* Main content */

    .main_wrap {
        display: block;

        width: calc(100% - 16px);
        margin: 8px auto 0;
    }

    #content_left_wrapper,
    #content_right_wrapper {
        width: 100%;
    }

    .box {
        margin-bottom: 10px;
        padding: 20px 16px;

        border-radius: 6px;
    }

    .content_left img {
        margin: 20px auto !important;
        padding: 4px !important;

        box-shadow:
            0 7px 17px rgba(47, 34, 30, 0.16);
    }


    /* Sidebar */

    .content_right .box {
        padding: 16px;
    }

    .box.widget.widget_text h4 {
        margin-right: -16px;
        margin-left: -16px;
        padding-left: 16px;
    }

    .box.widget.widget_text h4:first-child {
        margin-top: -16px;
    }


    /* Footer */

    #footer_wrap {
        width: calc(100% - 16px);
        margin-top: 10px;
    }

}


/* =========================================================
   Small mobile
   ========================================================= */

@media screen and (max-width: 450px) {

    body {
        font-size: 16px;
        line-height: 1.56;
    }

    #header {
        padding: 9px 54px 8px 12px;
    }

    #logo h3 a {
        font-size: 1.75rem;
        line-height: 1.05;
    }

    .r-description h4 {
        margin-top: 4px;

        font-size: 0.87rem;
        line-height: 1.16;
    }

    #header-img {
        height: 125px;
    }

    .mobile-menu-button {
        min-height: 43px;
        padding-right: 14px;
        padding-left: 14px;

        font-size: 16px;
    }

    .main-navigation li a {
        padding: 11px 14px;
        font-size: 15px;
    }

    h1 {
        margin-bottom: 17px;

        font-size: 1.78rem;
        line-height: 1.15;
    }

    h2 {
        margin-top: 32px;
        font-size: 1.42rem;
    }

    h3 {
        font-size: 1.23rem;
    }

    ul,
    ol {
        padding-left: 23px;
    }

    .main_wrap,
    #footer_wrap {
        width: calc(100% - 10px);
    }

    .box {
        padding: 17px 13px;
    }

    .content_right .box {
        padding: 14px 13px;
    }

    .box.widget.widget_text h4 {
        margin-right: -13px;
        margin-left: -13px;
        padding-left: 13px;
    }

    .box.widget.widget_text h4:first-child {
        margin-top: -14px;
    }

    blockquote {
        margin-right: 0;
        margin-left: 0;
        padding: 13px 14px;
    }

}


/* =========================================================
   Very small mobile
   ========================================================= */

@media screen and (max-width: 340px) {

    #header {
        padding-right: 50px;
        padding-left: 10px;
    }

    #logo h3 a {
        font-size: 1.58rem;
    }

    .r-description h4 {
        font-size: 0.82rem;
    }

    #header-img {
        height: 110px;
    }

    .mobile-menu-icon,
    .mobile-menu-icon::before,
    .mobile-menu-toggle:checked
        + .mobile-menu-button
        .mobile-menu-icon::before,
    .mobile-menu-toggle:checked
        + .mobile-menu-button
        .mobile-menu-icon::after {
        width: 24px;
    }

}