:root {
    --body-bg: white;
    --body-primary: #303030;
    --body-secondary: #3f3f3f;
    --root-padding: 0rem;
    font-family: "Inter", sans-serif;
}

header {
    color: var(--body-bg);
    gap: 0.25rem;
    display: flex;
    align-items: flex-start;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    overflow-y: hidden;
}

header,
footer {
    width: calc(100% - 0.5rem);
    padding: 0.25rem;
    margin: 0;
}

header>* {
    background: var(--body-secondary);
    border-radius: 0.5rem;
    padding: 0.2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    display: grid;
    place-items: center;
    height: calc(100% - 0.5rem);
}

header a {
    text-decoration: none;
    color: inherit;
    width: 2rem;
}

header h1>a {
    width: unset;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body {
    background-color: var(--body-bg);
    max-width: 70ch;
    width: 100%;
    min-height: max(100vh, 100%);
    padding: 0;
    margin: 0 auto;
    color: var(--body-primary);
    border-radius: 0;
    line-height: 1.6;
    display: flex;
    align-items: center;
    flex-direction: column;
}

body>*:not(header):not(footer) {
    max-width: 60ch;
}

html {
    background-color: #ffcac6;
    width: calc(100% - var(--root-padding)*2);
    min-height: calc(100% - var(--root-padding)*2);
    margin: 0;
    padding: var(--root-padding);
}

h1 {
    font-size: inherit;
    margin: 0;
}

img {
    object-position: center;
    object-fit: contain;
    max-height: 100%;
    max-width: 100%;
}

.img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.invert {
    background-color: var(--body-secondary);
    color: var(--body-bg);
}

.small {
    font-size: 0.8rem;
    color: var(--body-secondary);
}

.btn {
    border-radius: 0.25rem;
    display: grid;
    place-items: center;
    border: 2px solid var(--body-secondary);
    padding: 0.4rem;
    padding-left: 2rem;
    padding-right: 2rem;
    text-decoration: none;
}

.cta-links {
    display: flex;
    justify-content: center;
}

h2,
h3 {
    font-size: 1.6rem;
}

summary {
    padding: 0.5rem;
    width: 100%;
    transform: translateX(-0.5rem);
}

summary.invert {
    background-color: #ffcac6;
    color: var(--body-secondary);
}

details {
    border: 2px solid var(--body-secondary);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin: 0.5rem;
    width: calc(100% - 4rem);
    border-radius: 0.25rem;
}

a {
    color: inherit;
}

footer ul {
    padding-inline-start: 0;
    display: flex;
    list-style-type: none;
    gap: 0.5rem;
    margin: 0;
}

.footer-socials .btn {
    border: none;
    font-size: 2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    margin-top: auto;
}

input,
label {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem;
}

input {
    border: 2px solid var(--body-secondary);
    border-radius: 0.25rem;
    background-color: transparent;
    min-width: 12ch;
}

button {
    border: 2px solid var(--body-secondary);
    border-radius: 0.25rem;
}

input[type=submit],
button {
    cursor: pointer;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 0.25rem;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 80%;
}

.form-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submit-group {
    justify-content: flex-end;
    margin-top: 1rem;
}

.h-captcha {
    margin: 0.5rem;
}

.cookie-notice {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    text-align: center;
}

section {
    width: 100%;
}

@media (max-aspect-ratio: 1/1) {
    :root {
        --root-padding: 0;
    }

    body {
        max-width: 100vw;
    }

    details {
        max-width: 100%;
        width: calc(100% - 2rem);
    }

    h1 {
        font-size: 1.6rem;
    }

    h1,
    h2,
    h3 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    header>* {
        min-height: 3rem;
    }

    footer ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-bottom: 0.25rem;
    }

    html {
        min-height: 100%;
        display: block;
    }
}