/* -------------------------------------------------------------------------------------------

                             Zynomon Aelius ©️ 2026
                                apache 2.0

                            project : style.css for jekyll theme;
                            version : {Unknown - Not specified};
                            contributor : @zynomon;

-------------------------------------------------------------------------------------------- */

:root {
    --bg: #0d0f12;
    --fg: #fff7f1;
    --accent: #4169e1;
    --accent-bright: #5b7fe6;
    --panel: rgba(0, 0, 0, 0.7);
    --panel-hover: rgba(0, 0, 0, 0.85);
    --glass-border: rgba(43, 0, 211, 0.25);
    --terminal-bg: #0a0e0f;
    --terminal-green: #00ff41;
    --terminal-border: #1a3a3a;
    --fg-primary: var(--fg);
    --fg-secondary: #777777;
    --fg-dim: #676767;
    --accent-primary: var(--accent);
    --glass-bg: var(--panel);
    --glass-hover: rgba(255, 255, 255, 0.15);
    --info: #00bfff;
    --success: var(--terminal-green);
    --warning: #ffa500;
    --error: #ff4444;
    --dl-label: var(--accent-primary);
    --dl-text: var(--fg-primary);

    /* heading and other scalings */
    --step-up-6: 4rem;
    --step-up-5: 3rem;
    --step-up-4: 2.25rem;
    --step-up-3: 1.75rem;
    --step-up-2: 1.4rem;
    --step-up-1: 1.15rem;

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
    --main-inset: 2rem;
    --dl-gap: 0.75rem;

    /* Borders */
    --border-radius-sm: 0.35rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.25rem;

    /* Shadows & Spicy Effects */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.8);
    --glow-sm: 0 0 10px rgba(65, 105, 225, 0.6);
    --glow-md: 0 0 20px rgba(65, 105, 225, 0.6);
}

/* --------------------------------------------------------------------------
     BASE */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    font-family: "Fira Code", "Consolas", monospace;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.7;
    color: var(--fg-primary);
}

input,
textarea {
    caret-color: transparent;
}

/*  --------------------------------------------------------------------------
    TYPOGRAPHY*/

/* Headings - h1 = # , h2 = ##  and so on.. to 6 */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family:
        "OCR A Std", "OCR A", "Nimbus Mono PS", "Nimbus Mono", monospace;
    font-weight: 500;
    line-height: 1.3;
}

h1 {
    font-size: var(--step-up-6);
    margin: 3rem 0 1.5rem 0;
    color: var(--accent-bright);
}

h2 {
    font-size: var(--step-up-5);
    margin: 2.5rem 0 1.25rem 0;
    color: var(--accent-bright);
    line-height: 1.4;
}

h3 {
    font-size: var(--step-up-4);
    margin: 2rem 0 1rem 0;
    color: var(--fg-primary);
    line-height: 1.4;
}

h4 {
    font-size: var(--step-up-3);
    margin: 1.75rem 0 0.875rem 0;
    color: var(--fg-primary);
    line-height: 1.5;
}

h5 {
    font-size: var(--step-up-2);
    margin: 1.5rem 0 0.75rem 0;
    color: var(--fg-primary);
}

h6 {
    font-size: var(--step-up-1);
    margin: 1.25rem 0 0.625rem 0;
    color: var(--fg-primary);
}

/* normal Txt elements */
p {
    margin: 1.25rem 0;
    line-height: 1.8;
    color: var(--fg-primary);
}

a {
    color: var(--accent-bright);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-bright);
    text-shadow: 0 0 8px rgba(65, 105, 225, 0.6);
    border-bottom: 1px solid var(--accent-bright);
}

strong,
b {
    font-weight: 700;
    color: var(--accent-bright);
}

em,
i {
    font-style: italic;
    color: var(--fg-secondary);
}

u {
    text-decoration: underline;
    text-decoration-color: var(--accent-primary);
}

del,
s {
    text-decoration: line-through;
    opacity: 0.6;
    color: var(--fg-dim);
}

ins {
    text-decoration: none;
    background: rgba(0, 255, 65, 0.2);
    color: var(--success);
    padding: 0.1em 0.3em;
    border-radius: 0.25rem;
}

mark {
    background: rgba(255, 165, 0, 0.3);
    color: var(--warning);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
}

small {
    font-size: 0.875em;
    color: var(--fg-dim);
}

sub {
    vertical-align: sub;
    font-size: 0.75em;
}

sup {
    vertical-align: super;
    font-size: 0.75em;
}

abbr[title] {
    text-decoration: underline dotted;
    text-decoration-color: var(--accent-primary);
    cursor: help;
}

kbd {
    font-family: "Nimbus Mono PS", "Courier New", monospace;
    font-size: 0.9em;
    background: linear-gradient(to bottom, #3a3c40 0%, #2a2c30 100%);
    color: var(--fg-primary);
    padding: 0.25em 0.6em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.35rem;
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.3),
        0 3px 1px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

samp {
    font-family: "Nimbus Mono PS", "Courier New", monospace;
    font-size: 0.9em;
    background: var(--terminal-bg);
    color: var(--terminal-green);
    padding: 0.25em 0.5em;
    border: 1px solid var(--terminal-border);
    border-radius: 0.35rem;
}
/*  --------------------------------------------------------------------------
    CODE & PRE-FORMATTED TEXT */

code {
    background: linear-gradient(to bottom, #2a2c30 0%, #1a1c20 100%);
    color: var(--accent-bright);
    padding: 0.2rem 0.6rem;
    border-radius: 0.4rem;
    border: 1px solid #333;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.4);
    font-size: 0.9em;
    font-family: "Nimbus Mono PS", "Nimbus Mono", monospace;
}

/* Code Block Container */
.code-block-wrapper {
    position: relative;
    margin: 1.5rem 0;
}

.code-block-wrapper pre {
    background: linear-gradient(to bottom, #1e2126 0%, #15171a 100%);
    color: var(--fg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #2a2d35;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.6);
    overflow-x: auto;
    position: relative;
    margin: 0;
}

pre code {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    color: var(--fg);
    display: block;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* syntax highlighter  */

code .c,
code .ch,
code .cm,
code .cp,
code .cpf,
code .c1,
code .cs,
pre .c,
pre .ch,
pre .cm,
pre .cp,
pre .cpf,
pre .c1,
pre .cs {
    color: #6a9955;
    font-style: italic;
}

code .k,
code .kc,
code .kd,
code .kn,
code .kp,
code .kr,
code .kt,
code .na,
code .nb,
code .bp,
code .nc,
code .no,
code .nd,
code .ni,
code .ne,
code .nf,
code .nl,
code .nn,
code .nt,
code .nv,
code .vc,
code .vg,
code .vi,
pre .na,
pre .nb,
pre .bp,
pre .nc,
pre .no,
pre .nd,
pre .ni,
pre .ne,
pre .nf,
pre .nl,
pre .nn,
pre .nt,
pre .nv,
pre .vc,
pre .vg,
pre .k,
pre .kc,
pre .kd,
pre .kn,
pre .kp,
pre .kr,
pre .kt,
pre .vi {
    color: var(--accent-primary);
}

code .s,
code .sa,
code .sb,
code .sc,
code .dl,
code .sd,
code .s2,
code .se,
code .sh,
code .si,
code .sx,
code .sr,
code .s1,
code .ss,
pre .s,
pre .sa,
pre .sb,
pre .sc,
pre .dl,
pre .sd,
pre .s2,
pre .se,
pre .sh,
pre .si,
pre .sx,
pre .sr,
pre .s1,
pre .ss {
    color: var(--terminal-border);
}

code .m,
code .mb,
code .mf,
code .mh,
code .mi,
code .il,
code .mo,
pre .m,
pre .mb,
pre .mf,
pre .mh,
pre .mi,
pre .il,
pre .mo {
    color: var(--info);
}

code .o,
code .ow,
pre .o,
pre .ow {
    color: var(--fg);
    font-weight: 500;
}

code .p,
pre .p {
    color: var(--fg-secondary);
}

/* Terminal-style Code Blocks ( doesn't gonna work now )  - beta
.code-block-wrapper pre.language-bash,
.code-block-wrapper pre.language-shell,
.code-block-wrapper pre.language-terminal,
pre.language-bash,
pre.language-shell,
pre.language-terminal {
    background: var(--terminal-bg);
    border: 2px solid var(--terminal-border);
    border-radius: 0.5rem;
    box-shadow:
        0 0 20px rgba(0, 255, 65, 0.1),
        inset 0 0 40px rgba(0, 255, 65, 0.03),
        0 8px 20px rgba(0, 0, 0, 0.8);
    padding: 1rem 1.5rem;
    padding-top: 3rem;
}

.code-block-wrapper pre.language-bash::before,
.code-block-wrapper pre.language-shell::before,
.code-block-wrapper pre.language-terminal::before,
pre.language-bash::before,
pre.language-shell::before,
pre.language-terminal::before {
    content: "● ● ● term";
    display: block;
    color: #555;
    font-size: 1rem;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    letter-spacing: 0.5rem;
}

.code-block-wrapper pre.language-bash code,
.code-block-wrapper pre.language-shell code,
.code-block-wrapper pre.language-terminal code,
pre.language-bash code,
pre.language-shell code,
pre.language-terminal code {
    color: var(--terminal-green);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    font-family: "Fira Code", "Consolas", monospace;
    font-weight: 500;
    background: transparent;
}

.code-block-wrapper pre.language-bash code::before,
.code-block-wrapper pre.language-shell code::before,
.code-block-wrapper pre.language-terminal code::before,
pre.language-bash code::before,
pre.language-shell code::before,
pre.language-terminal code::before {
    content: "$ ";
    color: var(--terminal-green);
    font-weight: bold;
    opacity: 0.8;
}
*/

/* Copy Button inside code blocks-*/
.copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(65, 105, 225, 0.15);
    border: 1px solid rgba(65, 105, 225, 0.4);
    color: var(--accent-bright);
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-family: "Fira Code", monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    width: 36px;
    height: 36px;
}

.code-block-wrapper:hover .copy-button {
    opacity: 1;
    pointer-events: all;
}

.copy-button:hover {
    background: rgba(65, 105, 225, 0.3);
    border-color: var(--accent-bright);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.copy-button:active {
    transform: scale(0.95);
}

.copy-button.copied {
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--terminal-green);
    color: var(--terminal-green);
}

.copy-button svg {
    width: 18px;
    height: 18px;
}

/* Scrollbar for Code Blocks  not really needed but still..... */
pre::-webkit-scrollbar {
    height: 8px;
}

pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

pre::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

pre::-webkit-scrollbar-thumb:hover {
    background: var(--accent-bright);
}

/*  --------------------------------------------------------------------------
    ul and ol and dl = variants of lists */

ul,
ol {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
    line-height: 1.8;
    list-style-position: outside;
}

li {
    margin: 0.75rem 0;
    padding: 0;
    color: var(--fg-primary);
}

/* Unordered Lists (  ul ) */
ul {
    list-style: none;
}

ul > li {
    position: relative;
    padding-left: 1.25rem;
}

ul > li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 0.15em;
    color: var(--accent-primary);
    font-size: 1.1em;
    line-height: 1;
}

/* Ordered Lists ( ol ) */
ol {
    list-style-type: decimal;
}

ol > li::marker {
    font-family: "OCR A Std", "OCR A", monospace;
    color: var(--accent-bright);
    font-weight: 600;
}

/* Nested Lists why this is not ( nl )  _  :) get it */
ul ul,
ol ol {
    padding-left: 2rem;
}

ol ol {
    list-style-type: lower-alpha;
}

ol ol ol {
    list-style-type: lower-roman;
}

/* Task Lists - part of ul */
ul.task-list,
.task-list {
    list-style: none;
    padding-left: 0;
}

ul.task-list li,
.task-list li {
    position: relative;
    padding-left: 2rem;
}

ul.task-list li::before {
    content: "☐";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--glass-border);
    font-size: 1rem;
}

ul.task-list li:has(input[type="checkbox"]:checked)::before {
    content: "🗹";
    color: var(--accent-primary);
}

/* definition list  ( dl ) */
dl {
    margin: 1.5rem 0;
    padding: 0;
}

dt {
    display: inline;
    font-family: "OCR A Std", "OCR A", monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dl-label);
    background: none;
    padding: 0;
    margin: 0;
}

dt::after {
    content: " : ";
    opacity: 0.65;
}

dt:first-child {
    margin-top: 0;
}

dd {
    display: inline;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dl-text);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

dd::after {
    content: "";
    display: block;
    margin-bottom: 0.6rem;
}

/*  --------------------------------------------------------------------------
    Tables */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

thead {
    background: linear-gradient(
        135deg,
        rgba(65, 105, 225, 0.4) 0%,
        rgba(65, 105, 225, 0.25) 50%,
        rgba(65, 105, 225, 0.15) 100%
    );
    backdrop-filter: blur(10px);
}

th {
    font-family: "OCR A Std", "OCR A", monospace;
    padding: 1.25rem 1.75rem;
    text-align: left;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    background: rgba(65, 105, 225, 0.15);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.4);
}

th:last-child {
    border-right: none;
}

td {
    padding: 1.25rem 1.75rem;
    color: var(--fg-primary);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
}

td:last-child {
    border-right: none;
}

tbody tr {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

tbody tr:hover {
    background: rgba(65, 105, 225, 0.15);
    border-color: rgba(65, 105, 225, 0.3);
}

/*  Aligning */
th[align="center"],
td[align="center"] {
    text-align: center;
}

th[align="right"],
td[align="right"] {
    text-align: right;
}

/*  --------------------------------------------------------------------------
    BLOCKQUOTES & ALERTS */

blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #b0b5c0;
    font-style: italic;
    background: rgba(65, 105, 225, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

blockquote.note {
    border-left-color: var(--info);
    background: rgba(0, 191, 255, 0.08);
}

blockquote.tip {
    border-left-color: var(--success);
    background: rgba(0, 255, 65, 0.08);
}

blockquote.warning {
    border-left-color: var(--warning);
    background: rgba(255, 165, 0, 0.08);
}

blockquote.danger {
    border-left-color: var(--error);
    background: rgba(255, 68, 68, 0.08);
}

/* Alert Blocks ---------- */
.alert {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.alert-info {
    border-left-color: var(--info);
    background: rgba(0, 191, 255, 0.1);
    color: var(--fg-primary);
}

.alert-success {
    border-left-color: var(--success);
    background: rgba(0, 255, 65, 0.1);
    color: var(--fg-primary);
}

/*  --------------------------------------------------------------------------
    img and figures */

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    margin: 2rem auto;
    display: block;
    transition:
        transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.4s ease,
        filter 0.4s ease;
    will-change: transform, box-shadow, filter;
}

img[width],
img[height] {
    display: inline-block;
    margin: 0.5rem;
}

img:hover {
    transform: scale(1.05) rotate(0.5deg);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.85),
        0 0 12px rgba(65, 105, 225, 0.5);
    filter: brightness(1.1) saturate(1.2);
    animation: floatPulse 3s ease-in-out infinite;
}

@keyframes floatPulse {
    0%,
    100% {
        transform: scale(1.05) rotate(0.5deg) translateY(0);
    }
    50% {
        transform: scale(1.06) rotate(-0.5deg) translateY(-6px);
    }
}

figure {
    margin: 2rem 0;
    text-align: center;
}

figure img {
    margin: 0 auto 0.75rem;
}

figcaption {
    font-style: italic;
    color: var(--fg-dim);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

/*  --------------------------------------------------------------------------
     Horizontal rule -  hr ( a straight line in the text ) */

hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--fg), var(--fg), transparent);
    margin: 3rem 0;
    opacity: 0.6;
}

hr.bold {
    border: none;
    height: 4px;
    background: linear-gradient(
        to right,
        var(--fg),
        var(--fg),
        var(--fg),
        var(--fg),
        var(--glass-border),
        var(--glass-border),
        transparent
    );
    margin: 3rem 0;
    opacity: 0.6;
}

hr.thin {
    border: none;
    height: 2px;
    background: linear-gradient(
        to right,
        var(--glass-border),
        transparent,
        var(--glass-border)
    );
    margin: 3rem 0;
    opacity: 0.6;
}

/*  --------------------------------------------------------------------------
    Details and summary */

details {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

summary {
    font-family: "OCR A Std", monospace;
    font-weight: bold;
    color: var(--accent-bright);
    cursor: pointer;
    user-select: none;
    padding: 0.75rem;
    margin: -0.75rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

summary:hover {
    background: var(--glass-hover);
}

summary::marker {
    color: var(--accent-primary);
}

details[open] > summary {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

/*  --------------------------------------------------------------------------
    .footnotes*/

.footnotes {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--glass-border);
    font-size: 0.9rem;
}

.footnotes::before {
    content: "Footnotes";
    display: block;
    font-family: "OCR A Std", "OCR A", "Courier New", monospace;
    font-weight: bold;
    color: var(--accent-bright);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footnotes ol {
    padding-left: 2rem;
}

.footnotes li {
    color: var(--fg-secondary);
}

sup a.footnote {
    color: var(--accent-primary);
    text-decoration: none;
    padding: 0.1em 0.3em;
    border-radius: 0.25rem;
    background: rgba(65, 105, 225, 0.2);
}

sup a.footnote:hover {
    background: rgba(65, 105, 225, 0.3);
}

/*  --------------------------------------------------------------------------
    Main website components ( not text formatting )*/

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    user-select: none;
}

header .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 1.5rem) var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2vw, 1rem);
}

header h1 {
    font-family: "OCR A Std", "OCR A", "Nimbus Mono PS", monospace;
    font-size: clamp(1.25rem, 4vw, 1.8rem);
    font-weight: bold;
    color: var(--accent-bright);
    text-shadow: var(--glow-sm);
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

header nav {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    flex-wrap: wrap;
    align-items: center;
}

header nav a {
    padding: clamp(0.5rem, 1.5vw, 0.6rem) clamp(0.8rem, 2.5vw, 1.2rem);
    background: rgba(65, 105, 225, 0.15);
    border: 1px solid rgba(65, 105, 225, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--fg-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    white-space: nowrap;
}

header nav a:hover {
    background: rgba(65, 105, 225, 0.3);
    border-color: var(--accent-bright);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
}

header nav a:active {
    transform: translateY(0);
}

/* Main Container */
main {
    flex: 1;
    background: var(--panel);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    max-width: calc(var(--container-max-width) - (var(--main-inset) * 2));
    width: calc(100% - (var(--main-inset) * 2));
    margin: clamp(1rem, 2vw, 2rem) auto;
    padding: clamp(1.5rem, 3vw, 2.5rem) var(--container-padding);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow:
        var(--shadow-xl),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

footer {
    padding: clamp(1rem, 3vw, 1.5rem) max(1rem, var(--container-padding));

    background: var(--panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-top: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    box-shadow: var(--fg-dim);

    position: relative;
    z-index: 100;
    margin-top: auto;
    user-select: none;
    padding-inline: clamp(0.75rem, 2vw, 1.5rem);
}

footer .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 1.5rem) var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2vw, 1rem);
}

.footer-title {
    color: var(--accent-bright);
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    flex-shrink: 0;
}

.footer-subtitle {
    font-family: italic;
    color: var(--fg-secondary);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.5rem, 2vw, 1rem);
    align-items: center;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 1.5vw, 0.6rem) clamp(0.8rem, 2.5vw, 1.2rem);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(65, 105, 225, 0.3);
    transition: all 0.3s ease;
    background: rgba(65, 105, 225, 0.15);
    min-height: 32px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-bright);
    text-shadow: var(--glow-sm);
}

.footer-links a:hover {
    background: rgba(65, 105, 225, 0.3);
    border-color: var(--accent-bright);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
}

.footer-links a:active {
    transform: translateY(0);
}

.footer-links img {
    height: clamp(18px, 3vw, 20px);
    width: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    display: inline-block;
    transition: filter 0.2s ease;
}

.footer-links a:hover img {
    filter: brightness(1.1) drop-shadow(0 0 4px rgba(65, 105, 225, 0.4));
}

/*  --------------------------------------------------------------------------
    centering a div failed so..  */

/* Text Align */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Margin rules */
.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 1rem !important;
}

.mt-2 {
    margin-top: 2rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

/* Visibility */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Animation */
@keyframes aero-pulse {
    0%,
    100% {
        box-shadow: var(--shadow-lg);
    }
    50% {
        box-shadow: var(--shadow-lg), var(--glow-md);
    }
}

.aero-pulse {
    animation: aero-pulse 3s ease-in-out infinite;
}

/*  --------------------------------------------------------------------------
    Docs*/

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.docs-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-items: start;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--fg-primary);
}

.docs-card:hover {
    background: var(--glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--glow-md);
}

.docs-card .card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.docs-card .card-title {
    font-family: "OCR A Std", monospace;
    font-weight: 600;
    font-size: var(--step-up-1);
    margin-bottom: 0.75rem;
    color: var(--accent-bright);
}

.docs-card .card-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--fg-secondary);
}

.docs-card code {
    background: rgba(65, 105, 225, 0.2);
    color: var(--accent-bright);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--accent-primary);
    font-size: 0.9rem;
    border-radius: var(--border-radius-sm);
}

/*  --------------------------------------------------------------------------
    Printing*/
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    html,
    body {
        overflow: visible !important;
        height: auto;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        display: block;
    }

    header,
    footer,
    main {
        position: static;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        background: white;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    header {
        border-bottom: 1px solid #ccc;
        margin-bottom: 1cm;
    }

    header .container,
    footer .footer-container {
        max-width: 100%;
        padding: 0;
    }

    main {
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }

    pre,
    code {
        border: 1px solid #ddd;
        background: #f5f5f5 !important;
        color: black !important;
        page-break-inside: avoid;
    }

    .copy-button,
    .footer-links,
    .docs-grid,
    .docs-card,
    .aero-pulse,
    details > summary::after {
        display: none !important;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        transform: none !important;
        animation: none !important;
    }

    figure {
        page-break-inside: avoid;
    }

    h1:has(img) {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--fg-primary);
        font-family:
            "Courier New", "Courier", "Lucida Console", "OCR A Std", monospace;
        font-weight: 700;
        letter-spacing: 0.05em;
    }

    h1 img {
        width: 48px;
        height: 48px;
        border: none;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        vertical-align: middle;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        font-size: 18pt;
    }

    h3 {
        font-size: 14pt;
    }

    ul,
    ol {
        page-break-inside: avoid;
    }

    table {
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }

    thead {
        display: table-header-group;
    }

    tr {
        page-break-inside: avoid;
    }

    blockquote {
        border-left: 2px solid #ccc;
        padding-left: 0.5in;
    }

    @page {
        margin: 2cm;
    }

    @page :first {
        margin-top: 3cm;
    }
}

@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }

    header .container,
    main {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }

    header .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    main {
        width: min(92%, 1200px);
        padding: clamp(1.25rem, 3.5vw, 2rem);
    }
}

@media (max-width: 1023px) {
    header {
        padding: 1rem clamp(1rem, 3vw, 1.5rem);
    }

    header h1 {
        font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    }

    header nav {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    header nav a {
        flex: 1 1 auto;
        text-align: center;
        min-width: 80px;
        padding: 0.5rem 0.75rem;
    }

    main {
        width: min(90%, 100%);
        margin: 1.5rem auto;
        padding: 1.5rem;
    }

    footer .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem 1.25rem;
    }

    .footer-left {
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    :root {
        --container-padding: clamp(0.75rem, 3vw, 1rem);
        --main-inset: clamp(1rem, 3vw, 1.5rem);
    }

    header,
    main,
    footer,
    .docs-card {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    header {
        padding: 0.875rem 1rem;
        border-radius: 0 0 0.5rem 0.5rem;
    }

    header .container {
        gap: 0.75rem;
    }

    header h1 {
        font-size: 1.25rem;
    }

    header nav a {
        font-size: 0.85rem;
        padding: 0.45rem 0.65rem;
    }

    main {
        width: calc(100% - 2rem);
        margin: 1rem;
        padding: 1.25rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    table {
        font-size: 0.85rem;
    }

    th,
    td {
        padding: 1rem 1rem;
    }

    dt {
        font-size: 0.9rem;
    }

    dd {
        font-size: 1rem;
    }

    footer .footer-container {
        padding: 1.25rem 1rem;
        gap: 1.25rem;
    }

    .footer-title {
        font-size: 1.4rem;
    }

    .footer-subtitle {
        font-size: 0.9rem;
    }

    .footer-links img {
        height: 18px;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    pre {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .copy-button {
        opacity: 1;
        pointer-events: all;
        width: 32px;
        height: 32px;
    }

    ul,
    ol {
        padding-left: 1.5rem;
    }

    blockquote {
        padding: 1rem;
    }

    img {
        margin: 1.5rem auto;
    }

    @media (hover: none) {
        img:hover {
            transform: none;
            animation: none;
        }

        .copy-button {
            opacity: 1;
        }

        header nav a:hover,
        .footer-links a:hover {
            transform: none;
        }
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    header {
        padding: 0.75rem 0.75rem;
    }

    header .container {
        gap: 0.5rem;
    }

    header h1 {
        font-size: 1.1rem;
        gap: 0.35rem;
    }

    header nav {
        gap: 0.35rem;
    }

    header nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
        min-width: 70px;
        min-height: 44px;
    }

    main {
        width: calc(100% - 1rem);
        margin: 0.75rem 0.5rem;
        padding: 1rem;
        border-radius: 0.75rem;
    }

    h1::before,
    h2::before,
    h3::before {
        display: none;
    }

    footer .footer-container {
        padding: 0.875rem 0.75rem;
        gap: 0.875rem;
        font-size: 0.8rem;
    }

    .footer-left {
        gap: 0.4rem;
    }

    .footer-title {
        font-size: 1.15rem;
        letter-spacing: 0.08em;
    }

    .footer-subtitle {
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 0.5rem;
        width: 100%;
    }

    .footer-links a {
        flex: 1 1 auto;
        min-width: 70px;
        padding: 0.35rem 0.4rem;
        min-height: 44px;
    }

    .footer-links img {
        height: 16px;
    }

    img {
        margin: 1rem auto;
        border-radius: 0.5rem;
    }
}

@media (max-width: 359px) {
    html {
        font-size: 12px;
    }

    header h1 {
        font-size: 1rem;
    }

    header nav a {
        font-size: 0.75rem;
        padding: 0.35rem 0.4rem;
        min-width: 60px;
    }

    main {
        width: calc(100% - 0.5rem);
        margin: 0.5rem 0.25rem;
        padding: 0.875rem;
    }

    footer .footer-container {
        padding: 0.75rem 0.5rem;
        gap: 0.75rem;
    }

    .footer-title {
        font-size: 1rem;
        letter-spacing: 0.06em;
    }

    .footer-subtitle {
        font-size: 0.75rem;
    }

    .footer-links {
        gap: 0.4rem;
    }

    .footer-links a {
        min-width: 60px;
        padding: 0.3rem 0.35rem;
    }

    .footer-links img {
        height: 15px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    header {
        padding: 0.75rem 1rem;
    }

    header h1 {
        font-size: 1.1rem;
    }

    main {
        margin: 0.75rem auto;
        padding: 1rem;
    }

    footer .footer-container {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .footer-subtitle {
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    img:hover {
        animation: none;
        transform: none;
    }

    .aero-pulse {
        animation: none;
    }
}
