:root {
    --color-green-400: #66bb6a;
    --color-green-200: #a5d6a7;
    --border-width: 2px;
    --modal-overlay-backdrop-filter: blur(2rem);
}

@media (min-width: 992px) {
    :root {
        --font-size: 17px;
    }
}

[data-theme=light], :root:not([data-theme=dark]) {
    --primary: #766df4;
    --primary-hover: #493ef0;
    --primary-focus: rgba(118, 109, 244, 0.125);
    --background-color: #f9f9fa;
    --modal-overlay-background-color: transparent;
}

html, body {
    height: 100%;
}

/* Typography */

body {
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: serif;
    font-weight: 500;
    line-height: 120%;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.4rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }
}

/* Buttons */

button, 
input[type="submit"], 
input[type="button"], 
input[type="reset"], 
[role="button"] {
    --border-radius: 1.5em;
}

.blank {
    --border-color: transparent !important;
}

.blank:focus,
.blank:hover {
    --border-color: var(--contrast-focus) !important;
}

.blank:active {
    --border-color: var(--contrast) !important;
}

/* Forms */

form .submitted-show {
    display: none;
}

form.submitted .submitted-show {
    display: inline-block !important;
}

form.submitted .submitted-hide {
    display: none !important;
}

form.submitted button[type='submit'] {
    opacity: 1 !important;
    background-color: var(--color-green-400);
    border-color: var(--color-green-400);
    animation-fill-mode: forwards;
    animation-duration: 0.5s;
    animation-name: button-pulse;
}

form.submitted button[type='submit']:focus {
    box-shadow: 0 0 0 .25rem var(--color-green-200);
}

@keyframes button-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Modal */

dialog > article {
    --block-spacing-vertical: calc(var(--spacing) * 1.5);
    animation: none;
    width: 100%;
    max-width: 510px !important;
}

dialog > article form {
    margin: 0;
}

dialog > article form .grid {
    grid-template-columns: repeat(auto-fit, minmax(0%, 1fr)) !important;
}

/* Avatar */

.avatar {
    display: inline-block;
    width: 4rem;
    height: 4rem;
    background-color: var(--color);
    border-radius: 50%;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

@media (min-width: 768px) {
    .avatar {
        width: 5rem;
        height: 5rem;
    }
}

/* Section - Intro */

.section-intro {
    display: flex;
    align-items: center;
    min-height: 100%;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    transition: filter .1s ease-in;
    padding: 1.5rem 1rem;
    margin: 0;
}

@media (min-width: 768px) {
    .section-intro {
        background-image: url("/images/intro-background.jpg");
    }
}

@media (min-width: 1200px) {
    .section-intro {
        background-image: url("/images/intro-background-lg.jpg");
    }
}

.section-intro-body {
    max-width: 400px;
    margin: auto;
}

@media (min-width: 768px) {
    .section-intro-body {
        margin: 0;
        padding-bottom: 7vh;
        max-width: 460px;
    }
}

.section-intro p {
    margin-bottom: 3rem;
}

.section-intro .cameron {
    display: flex;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-intro .cameron {
        margin-bottom: 4rem;
    }
}

.section-intro .cameron .info {
    margin-left: 1.5rem;
    align-self: center;
}

.section-intro .cameron .name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--h1-color);
}

.section-intro button,
.section-intro a[role="button"] {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
    .section-intro button,
    .section-intro a[role="button"] {
        display: inline-block;
        width: auto;
        margin-right: 1rem;
    }
}