:root {
    /* Colours — Nordic fireplace: darker, woody, stone, furs (higher contrast)
        				   - dark background and panel, bright ember accent, pale warm text */
    --bg: #0f0d0c;
    /* deep charcoal — hearth night */
    --panel: #2a221f;
    /* warm dark wood / stone */
    --accent: #e85a2b;
    /* ember orange for headings/borders */
    --text: #f5eee9;
    /* warm off-white for strong contrast */
    --muted: #c9a897;
    /* tan / fur-like muted tone */
    --border: #3d2f2b;
    /* dark stone border */
    --hdr-gradient: linear-gradient(15deg in oklab,
            #0f0d0c,
            30%,
            oklch(20% 0.04 43));
    --sdr-gradient: linear-gradient(15deg, #0f0d0c, 30%, #250f07);

    --c1: #3d2f2b;
    --c2: #393d2b;
    --c3: #2b393d;
    --c4: #2f2b3d;
    --nav-bg: rgba(232, 90, 43, 0.1);
    --nav-bg-active: rgba(232, 90, 43, 0.2);
    --nav-text: #e85a2b;
    --nav-text-visited: #c9a897;

    background: var(--hdr-gradient);
    /* Layout */
    --max-width: 820px;
    --radius: 4px;
    --gap: 18px;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
}

/* Basic reset */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--mono);
    background: var(--hdr-gradient);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Main card / terminal shell */
.terminal {
    width: 100%;
    max-width: var(--max-width);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: calc(var(--gap) * 0.9);
    box-shadow: 0 8px 18px rgba(232, 90, 43, 0.06), inset 0 1px 0 rgba(255, 245, 240, 0.03);
}

header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-title {
    font-size: 1.35rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin: 0;
}

.site-sub {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
}

nav {
    margin-left: auto;
    font-size: 0.92rem;
}

nav a {
    color: var(--accent);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 3px;
}

nav a:hover {
    background: var(--nav-bg);
}

nav a:active {
    background: var(--nav-bg-active);
}

nav a:visited {
    color: var(--nav-text-visited);
}

main {
    padding: 6px 2px 0 2px;
}

h1 {
    font-size: 1.05rem;
    margin: 0 0 10px 0;
    color: var(--accent);
}

p {
    margin: 0 0 12px 0;
    color: var(--muted);
}

.info {
    background: linear-gradient(180deg, rgba(232, 90, 43, 0.05), transparent);
    border: 1px solid rgba(232, 90, 43, 0.06);
    padding: 12px;
    border-radius: 3px;
    color: var(--text);
}

.info a {
    color: var(--accent);
    text-decoration: underline;
}

.info a:hover {
    text-decoration: none;
}

.info a:visited {
    color: var(--nav-text-visited);
}

.info a:active {
    color: var(--accent);
}

.contact-footer {
    margin-top: 20px;
    padding: 12px;
    border: 1px solid rgba(232, 90, 43, 0.06);
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(232, 90, 43, 0.05), transparent);
}

.contact-footer p {
    margin: 0;
    color: var(--muted);
}

.contact-footer h1 {
    margin: 0 0 8px 0;
}

.contact-footer a {
    color: var(--accent);
    text-decoration: underline;
}

.contact-footer a:hover {
    text-decoration: none;
}

.contact-footer a:visited {
    color: var(--nav-text-visited);
}

.contact-footer a:active {
    color: var(--accent);
}


footer {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

/* Small responsive tweak */
@media (max-width:520px) {
    .site-title {
        font-size: 1.15rem;
    }

    body {
        padding: 20px;
    }
}