/* Reset: https://piccalil.li/blog/a-more-modern-css-reset/ */
/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
    margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
    letter-spacing: 0.075rem;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
    line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}

/* Base variables */

:root {
    --main-bgc: #dedbd2;
    --main-c: #2b3233;
    --footer-c: #b0c4b1;
    --body-ff: "Lexend", sans-serif;
    --gallery-spacer: 1.5rem;
}

body {
    background: var(--main-bgc);
    color: var(--main-c);
    font-family: var(--body-ff);
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
}

h1, h2, h3, h4 {
    font-weight: 600;
    margin-block-start: 0;
}

.container {
    max-width: 1320px;
    width: 100%;
    margin-inline: auto;
    padding: 3rem 1.5rem;
    text-align: center;
}

h1 {
    margin-bottom: 3rem;
}

.gallery {
    columns: 1;
    gap: var(--gallery-spacer);
    padding-top: var(--gallery-spacer);
    margin-bottom: 3rem;
}

@media (min-width: 32rem) {
    .gallery { columns: 2; }
}

@media (min-width: 50rem) {
    .gallery { columns: 3; }
}

.gallery img {
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: var(--gallery-spacer);
}

.wave {
    display: block;
    margin-bottom: -0.25rem;
}

.footer {
    background: var(--main-c);
    color: var(--footer-c);
}

.profile {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    width: 100%;
    margin-inline: auto;
    padding: 0 1rem 4rem;
}

.profile-image {
    margin-bottom: 3rem;
}

.profile-image img {
    max-width: 100%;
    border-radius: 50%;
    border: 3px dashed var(--footer-c);
    margin-inline: auto;
}

.profile-content {
    text-align: start;
}

@media (min-width: 48rem) {
    .profile {
        flex-direction: row;
    }

    .profile-image {
        flex-shrink: 0;
    }

    .profile-image img {
        width: 100%;
        margin-inline: 0;
    }

    .profile-content {
        flex-grow: 1;
        margin-left: 3rem;
        text-align: start;
    }
}

.icon-links {
    display: flex;
    gap: var(--gallery-spacer);
    margin-top: 2rem;
}

.icon-links > a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-underline-offset: 0.25em;
    text-decoration: dashed;
    backface-visibility: hidden;
    margin-top: 1rem;
}

.icon-links svg {
    flex-shrink: 0;
    width: 1.5em;
    height: 1.5em;
    fill: currentColor;
    vertical-align: -0.125em;
}

@media (max-width: 25rem) {
    .icon-links {
        display: block;
    }

    .icon-links > a {
        display: flex;
    }
}