/* ===========================================
   BASE STYLES
   CSS Variables, Fonts, Typography, Resets
   =========================================== */

:root {
    /* Light theme palette */
    --bg: #eef1f6;
    /* page background */
    --panel: #ffffff;
    /* cards/panels/buttons */
    --text: #414143;
    /* primary text */
    --muted: #6b7280;
    /* secondary text */
    --accent: #2e4dd4;
    /* primary action */
    --border: #dddddd;
    /* subtle borders */
}

/* DM Mono - local font files */
@font-face {
    font-family: 'DM Mono';
    src: url('../assets/DM_Mono/DMMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Mono';
    src: url('../assets/DM_Mono/DMMono-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Mono';
    src: url('../assets/DM_Mono/DMMono-Medium.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Global resets */
* {
    box-sizing: border-box;
}

/* Global button rounding */
button {
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
}

/* Ensure form controls inherit the global font (DM Mono) */
button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

html,
body {
    height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.45 'DM Mono', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Typography */
p {
    font-size: 14px;
}

.left p {
    font-size: 14px;
    line-height: 1.7;
}

header h1 {
    margin: 0 0 6px;
    font-size: 20px;
}

h3 {
    font-size: 14px;
    text-transform: none;
}

header p,
.note {
    color: var(--muted);
    margin: 4px 0 0;
}

/* Links */
a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    color: #e6623c;
}

/* Copyright notice */
.copyright {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    padding: 0px 0;
    margin: -25px 0 0 0;
    opacity: 0.5;
}