/* ==========================================================
   HerGame Phoenix
   Base Styles
   File: base.css
   ========================================================== */

/* ==========================================================
   Body
   ========================================================== */

body {
    background-color: var(--color-background);
    color: var(--color-text);

    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);

    overflow-x: hidden;
}

/* ==========================================================
   Typography
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: var(--lh-heading);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--fs-4xl);
}

h2 {
    font-size: var(--fs-3xl);
}

h3 {
    font-size: var(--fs-2xl);
}

h4 {
    font-size: var(--fs-xl);
}

h5 {
    font-size: var(--fs-lg);
}

h6 {
    font-size: var(--fs-md);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-light);
}

strong {
    font-weight: var(--fw-semibold);
}

small {
    font-size: var(--fs-sm);
}

/* ==========================================================
   Links
   ========================================================== */

a {
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

/* ==========================================================
   Images
   ========================================================== */

img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================
   Buttons
   ========================================================== */

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.9rem 1.8rem;

    border: none;
    border-radius: var(--radius-pill);

    background: var(--color-primary);
    color: #ffffff;

    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);

    cursor: pointer;

    transition:
        background-color var(--transition-normal),
        transform var(--transition-fast),
        box-shadow var(--transition-normal);
}

button:hover,
.btn:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button:active,
.btn:active {
    transform: translateY(0);
}

button:focus-visible,
.btn:focus-visible,
a:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 3px;
}

/* ==========================================================
   Sections
   ========================================================== */

section {
    padding: var(--space-10) 0;
}

/* ==========================================================
   Utility Classes
   ========================================================== */

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

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

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

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

/* ==========================================================
   Selection
   ========================================================== */

::selection {
    background: var(--color-primary);
    color: #ffffff;
}