/* static/style/style.css */

/* =========================
   CSS Variables / Theme
   ========================= */
:root {
    --bg: #000000ff;
    --fg: #FCE1FEff;

    --purple: #CD23FEff;
    --magenta: #E8A0FEff;
    --green: #46E93Cff;
}

/* =========================
   Fonts
   ========================= */
@font-face {
    font-family: 'JetBrainsMonoNF';
    src: url('/style/JetBrainsMono/JetBrainsMonoNerdFont-Regular.ttf') format('truetype');
}

/* =========================
   Base / Reset-ish Styles
   ========================= */
html {
    font-size: clamp(16px, 4vw, 18px);
}

body {
    margin: 0;
    padding: 0;

    font-family: 'JetBrainsMonoNF', monospace;
    line-height: 1.6;

    background-color: var(--bg);
    color: var(--fg);
}

/* =========================
   Page Layout (no HTML changes required)
   ========================= */
body {
    margin: 0;
    padding: 1.5em 1em;

    /* Center a single vertical content column */
    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: 'JetBrainsMonoNF', monospace;
    line-height: 1.6;

    background-color: var(--bg);
    color: var(--fg);
}

/* Constrain readable width while keeping one column */
body>* {
    width: 100%;
    max-width: 70ch;
}

/* =========================
   Typography
   ========================= */
h1,
h2 {
    text-align: center;
}

h1 {
    color: var(--purple);
}

h2,
h3,
h4,
h5,
h6 {
    color: var(--green);
}

/* =========================
   Links
   ========================= */
a {
    display: inline-block;
    padding: 0.25em 0;

    color: var(--magenta);
    text-decoration: underline dotted;
}

a:hover {
    text-decoration: underline;
}

/* =========================
   Lists
   ========================= */
ul {
    padding-left: 1.25em;
}

li {
    margin-bottom: 0.75em;
}

/* =========================
   Forms & Inputs
   ========================= */
form {
    padding: 1em;
    text-align: center;
    font-weight: bold;

    background-color: var(--bg);
    border-radius: 8px;
}

button,
input,
select {
    font-family: inherit;

    padding: 0.5em;
    margin: 0.5em 0;

    background-color: var(--bg);
    color: var(--fg);

    border: 1px solid var(--green);
    border-radius: 4px;
}

button {
    cursor: pointer;
}

/* =========================
   Code Blocks
   ========================= */
pre {
    padding: 1em;
    overflow-x: auto;

    background-color: var(--bg);
    border-radius: 8px;
}

/* =========================
   Media / Images
   ========================= */
.banner {
    display: block;
    width: 100%;
    height: auto;
    margin: 1.5em auto;

    border-radius: 8px;
}

/* Limit banner size on larger screens */
@media (min-width: 768px) {
    .banner {
        max-width: 80ch;
    }
}

/* =========================
   Responsive Adjustments
   ========================= */
@media (max-width: 600px) {
    body {
        margin: 1em auto;
    }

    h1 {
        font-size: 1.75em;
    }

    h3 {
        margin-top: 1.5em;
    }
}
