@font-face {
    font-family: "Patrick Hand SC";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/themes/twocolumn/fonts/patrick-hand-sc-latin-400-normal.woff2") format("woff2");
}

:root {
    --bg: #1d1714;
    --text: #e2d3c0;
    --muted: #a99788;
    --accent: #d8b17d;
    --accent-soft: #9b7855;
    --link: #8cb09d;
    --border: #4d4137;
    --side-width: 275px;
}

@font-face {
    font-family: "WebPlusHP";
    src: url(WebPlus_HP_150_re.woff);
    font-weight: normal;
    font-style: normal;
}

html {
    background: linear-gradient(180deg, #1d1714 0%, #171310 100%);
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Libre Baskerville", Georgia, serif !important;
    font-size: 18px;
    line-height: 1.7;
}

.site-shell,
.site-grid,
.sidebar,
.sidebar-section,
.sidebar h2,
.nav-list a,
.links-list a,
.content-column,
.site-header,
.site-blurb,
.page-header,
.page-title,
.page-body,
.page-body p,
.page-body li,
.page-body a,
.recent-posts,
.footer {
    font-family: "Libre Baskerville", Georgia, serif !important;
}

a:link,
a:visited {
    color: var(--link);
}

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

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

pre,
code {
    font-family: "Courier New", Courier, monospace;
}

.logo,
.page-body pre,
.page-body code {
    font-family: "Courier New", Courier, monospace !important;
}

.site-shell {
    max-width: 1220px;
    margin: 0 auto;
    padding: 1rem 1.25rem 1.5rem;
}

.site-grid {
    display: grid;
    grid-template-columns: var(--side-width) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
}

.sidebar {
    position: sticky;
    top: 1rem;
    min-height: calc(100vh - 2rem);
    padding: 0 1.25rem 0 1rem;
    background: #221b17;
    border-right: 1px solid var(--border);
}

.sidebar-section {
    padding: 0 0 1.4rem;
    margin: 0 0 1.4rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar h2 {
    margin: 0 0 0.8rem;
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-list,
.links-list,
.recent-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.nav-list a {
    display: inline-block;
    color: var(--text);
    text-decoration: none;
    font-size: 1.12rem;
}

.nav-list a:hover,
.links-list li a:hover {
    color: var(--accent);
}

.links-list li {
    line-height: 1.35;
}

.links-list li a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.02rem;
}

.content-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    min-height: calc(100vh - 2rem);
}

.site-header {
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    margin: 0 0 0.65rem;
    color: var(--accent);
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(0.56rem, 1.05vw, 0.9rem);
    line-height: 0.96;
    font-weight: 700;
    letter-spacing: 0;
    white-space: pre;
    max-width: 100%;
    width: fit-content;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.site-blurb {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.page-header {
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.page-title {
    margin: 0;
    color: var(--accent);
    font-size: clamp(1.65rem, 2.4vw, 2.35rem);
    line-height: 1.15;
}

.page-menu {
    margin-top: 0.5rem;
}

.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
    color: var(--accent);
    line-height: 1.2;
}

.page-body blockquote {
    margin: 1rem 0;
    padding: 0.15rem 0 0.15rem 1rem;
    border-left: 3px solid var(--accent-soft);
    color: var(--muted);
}

.page-body ul,
.page-body ol {
    padding-left: 1.4rem;
}

.page-body li {
    margin: 0.25rem 0;
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
}

.page-body th,
.page-body td {
    border: 1px solid var(--border);
    padding: 0.45rem 0.55rem;
}

.page-body hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0;
}

.recent-posts {
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.recent-posts h2 {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.recent-post-list li {
    line-height: 1.4;
}

.footer {
    margin-top: auto;
    padding: 1rem 0 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.footer a {
    color: var(--link);
}

@media (max-width: 920px) {
    .site-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        padding-right: 0;
        border-right: 0;
    }

    .site-brand::before {
        height: 3.2rem;
    }
}
