/* zorkman.css */

@font-face {
    font-family: "Atkinson Hyperlegible Next";
    src: url("fonts/AtkinsonHyperlegibleNext-VariableFont_wght.ttf") format("truetype");
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: "Atkinson Hyperlegible Mono";
    src: url("fonts/AtkinsonHyperlegibleMono-VariableFont_wght.ttf") format("truetype");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    /* base palette (will be overridden by theme classes) */
    --bg: #0b0c10;
    --fg: #f5f5f5;
    --section: darkblue;    
    --card-bg: #11131a;
    --border-subtle: rgba(255,255,255,0.12);
    --code-bg: rgba(255,255,255,0.04);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    --link: #7fd0ff;
    --pre-border: #000000;
}

/* Light theme overrides */
:root.theme-light {
    --bg: #f5f5f8;
    --fg: #141414;
    --section: darkblue;    
    --card-bg: #ffffff;
    --border-subtle: rgba(0,0,0,0.12);
    --code-bg: #ebebf0;
    --shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
    --link: #005fcc;
    --pre-border: darkblue;
}

/* Dark theme overrides */
:root.theme-dark {
    --bg: #0b0c10;
    --fg: #f5f5f5;
    --section: rgba(255,255,0,0.85);
    --card-bg: #11131a;
    --border-subtle: rgba(255,255,255,0.12);
    --code-bg: rgba(255,255,255,0.1);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    --link: #7fd0ff;
    --pre-border: yellow;
}

body {
    margin: 0;
    font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, Arial, sans-serif;
    background: var(--bg);
    color: var(--fg);
    transition: background 0.25s ease, color 0.25s ease;
}

.page {
    max-width: min(1100px, 90%);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

header img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.75rem;
}

header .title {
    font-size: 2.4rem;
    letter-spacing: 0.2em;
    margin: 0 0 0.4rem;
    text-transform: uppercase;
}

header .subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    opacity: 0.7;
    margin-bottom: 0.4rem;
}

header .byline {
    font-size: 1.05rem;
    opacity: 1;
}

main {
    line-height: 1.7;
    font-size: 1.4rem;
}

main p {
    margin: 0 0 1rem;
}

main h2 {
    margin: 2.25rem 0 0.75rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.20em;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: .35rem;
    color: var(--section);
}

main h3 {
    margin: 1.8rem 0 0.5rem;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

code {
    font-family: "Atkinson Hyperlegible Mono", SFMono-Regular, Monaco, Consolas, monospace;
    font-size: 1.3rem;
    font-weight: 500;
}

pre {
    white-space: pre-wrap;
    background: var(--code-bg);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.95rem;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--pre-border);
}

ul {
    margin: 0 0 1.2rem 0.5rem;
    padding-left: 0.1rem;
    list-style: none; 
}
ul li::before { 
    content: "- ";
}

em {
    font-style: italic;
}
strong {
    font-weight: 600;
}

footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 1.2rem;
    text-align: center;
    opacity: 0.9;
}

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

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 100;
}

.theme-toggle button {
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    background: var(--card-bg);
    color: var(--fg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: background 0.2s ease, transform 0.1s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-toggle button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.22);
    border-color: var(--link);
}

.theme-toggle button span.icon {
    font-size: 1rem;
}

/* end: zorkman.css */
