/* ========================================
 * VARIABLES                                *
 * ======================================== */
:root {
    --color-background: #222228;
    --color-text: goldenrod;
    --color-primary: #bd3a73;

    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    --font-size-h1: clamp(2.5rem, calc(1.8rem + 3vw), 4.5rem);
    --font-size-h2: clamp(2rem, calc(1.5rem + 2vw), 3.5rem);
    --font-size-h3: clamp(1.5rem, calc(1.2rem + 1vw), 2.25rem);
    --font-size-h4: clamp(1.25rem, calc(1.1rem + 0.5vw), 1.75rem);
    --font-size-h5: clamp(1.125rem, calc(1rem + 0.3vw), 1.375rem);
    --font-size-h6: 1rem;

    --font-size-body: 1rem;
}

/* ========================================
 * RESET & BASE STYLES                      *
 * ======================================== */

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

html {
    scroll-behavior: smooth;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif, Apple Color Emoji, "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

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

    font-size: var(--font-size-body);
    line-height: 1.6;
}

/* ========================================
 * TYPOGRAPHY                               *
 * ======================================== */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    text-wrap: balance;
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

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

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

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

/* ========================================
 * LAYOUT UTILITIES                         *
 * ======================================== */

.container {
    width: min(80%, 1200px);
    margin-inline: auto;
}

.reading-width {
    max-width: 70ch;
}

/* ========================================
 * HEADER & NAVIGATION                      *
 * ======================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;

    border-bottom: 2px dotted;
}

/* ========================================
 * HERO                                     *
 * ======================================== */

.hero {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ========================================
 * CONTENT                                  *
 * ======================================== */

.content {
    padding-block: var(--space-xl);
}

.content .rich-text > * + * {
    margin-block-start: var(--space-md);
}

.content .rich-text > h2,
.content .rich-text > h3 {
    margin-block-start: var(--space-lg);
}

/* ========================================
 * FOOTER                                   *
 * ======================================== */

footer {
    border-top: 2px dotted;
    text-align: center;
}

/* ========================================
 *   TABLET
 *   640px and wider
 * ======================================== */

@media (min-width: 640px) {

}


/* ========================================
 *   DESKTOP
 *   1024px and wider
 * ======================================== */

@media (min-width: 1024px) {
    .hero {
        min-height: 600px;
    }
    .hero-image {
        object-position: center 40%;
    }
}


/* ========================================
 *   LARGE DESKTOP
 *   1440px and wider
 * ======================================== */

@media (min-width: 1440px) {

}


/*.template-homepage main {
    text-align: center;
}*/

.page-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

.page-form :is(textarea, input, select) {
    width: 100%;
    max-width: 500px;
    min-height: 40px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.page-form .helptext {
    font-style: italic;
}
