/* ==========================================================
   Humble Bee Games
   Theme
   Shared design tokens, fonts and global defaults.
========================================================== */

/* ---------- Fonts ---------- */

@font-face {
    font-family: "BearDays";
    src: url("../assets/fonts/BearDays.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "BodyFont";
    src: url("../assets/fonts/LouisGeorgeCafe.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* ---------- Theme Variables ---------- */

:root {

    /* Colors */

    --bg: #fef3d5;

    --text: #6d6d6d;
    --textBold: #5e5e5e;
    --muted: #6d6d6d;

    --accent: #e8936d;
    --accent-light: #e84e4e;

    --heading: #face68;

    --projectHeading: #67a2c5;
    --border: #bf9d80;
    --border-light: rgba(130, 133, 114, .25);
    --border-medium: rgba(130, 133, 114, .35);

    --accent-soft: rgba(137, 155, 133, .08);

    /* Typography */

    --font-body: "BodyFont", system-ui, sans-serif;
    --font-heading: "BearDays", system-ui, sans-serif;

    /* Layout */

    --max-width: 1100px;

    --radius: 16px;

    /* Animation */

    --transition-fast: .18s ease;
    --transition-normal: .28s ease;

    /* Accessibility */

    --focus-ring: 0 0 0 3px rgba(137, 155, 133, .35);


    /* Font Sizes */

    --text-xs: 0.8rem;
    --text-sm: 0.9rem;
    --text-md: 1rem;
    --text-lg: 1.2rem;
    --text-xl: 1.4rem;
    --text-xxl: 1.8rem;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

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

    font-family: var(--font-body);
    font-size: var(--text-lg);
    letter-spacing: .025em;
    line-height: 1.6;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;

    font-family: var(--font-heading);
    font-weight: normal;

    color: var(--heading);
}

p {
    margin: 0;
    color: var(--text);
    font-size: var(--text-xl);
}

strong {
    color: var(--textBold);
}

/* ---------- Links ---------- */

a {
    color: var(--accent);
    text-decoration: none;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

a:hover {
    color: var(--accent-light);
}

a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 10px;
}

/* ---------- Images ---------- */

img {
    display: block;
    max-width: 100%;
}

/* ---------- Layout ---------- */

.container {
    width: min(var(--max-width), 92vw);
    margin-inline: auto;
}

section {
    padding: clamp(20px, 3vw, 32px) 0;
}

/* ---------- Common Headings ---------- */

.page-title {
    font-family: var(--font-heading);
    color: var(--projectHeading);

    font-size: clamp(2.5rem, 5vw, 4rem);

    letter-spacing: .08em;
    text-align: center;
}

.section-title {

    font-family: var(--font-heading);

    color: var(--heading);

    font-size: clamp(2rem, 4vw, 3rem);

    letter-spacing: .08em;
}

/* ---------- Utility Classes ---------- */

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

.flex-center {

    display: flex;
    justify-content: center;
    align-items: center;
}

.mt-1 {
    margin-top: .5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: .5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

.hidden {
    display: none !important;
}