/* --------------------------------
   Colour palette
-------------------------------- */

:root {
    --cream: #FFEBDC;
    --sand: #FFCB88;
    --orange: #D57F3E;
    --amber: #F1AD5A;
    --burnt-orange: #A04612;
    --brown: #463D32;
    --blue-grey: #698284;

    --page-width: 1000px;
}


/* --------------------------------
   Base
-------------------------------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 32px 20px;

    background: var(--cream);
    color: var(--brown);

    font-family: "ABeeZee", "system-ui", sans-serif;
    line-height: 1.6;
}

.profile {
    width: 100%;
    max-width: var(--page-width);
    margin-inline: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-heading {
    font-family: "Baumans", display;
    font-weight: 400;
}


/* --------------------------------
   Header
-------------------------------- */

.header {
    margin-bottom: 20px;
}

.identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.identity-title h1 {
    margin: 0;

    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1.1;
}

.tagline {
    display: block;
    margin-top: 5px;

    color: var(--burnt-orange);

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fox-decoration {
    display: grid;
    place-items: center;
    font-size: 60px;

    width: 60px;
    height: 70px;

    transform: rotate(8deg);
}


/* --------------------------------
   Sun divider
-------------------------------- */

.sun-divider {
    display: flex;
    align-items: center;
    gap: 16px;

    margin: 22px 0;
}

.sun-divider::before,
.sun-divider::after {
    content: "";
    flex: 1;

    height: 1px;
    background: var(--sand);
}

.sun-divider svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: var(--orange);
    stroke-width: 2;
    stroke-linecap: round;
}


/* --------------------------------
   Main profile
-------------------------------- */

.intro {
    display: grid;
    /* grid-template-columns: 1.1fr 0.9fr; */
    grid-template-columns: 0.7fr 1fr;
    gap: 36px;

    align-items: center;
}

.hero-image {
    aspect-ratio: 1/1;
    max-height: 390px;
}

.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    overflow: hidden;

    background: var(--sand);
    border: 1px solid rgb(70 61 50 / 8%);
    border-radius: 12px;

    color: var(--burnt-orange);

    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.image-container small {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: normal;
}

.image-container img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* --------------------------------
   Profile tags
-------------------------------- */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 20px;
}

.tags span {
    padding: 4px 12px;

    background: var(--sand);
    border-radius: 100px;

    font-size: 0.75rem;
    font-weight: 600;
}

.tags span img {
    display: inline-block;
    height: 1rem;
    line-height: 1;
    vertical-align: middle;
    top: -0.1em;
    position: relative;
}


/* --------------------------------
   Biography and details
-------------------------------- */

.bio h2 {
    margin: 0 0 16px;

    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.bio p {
    max-width: 42ch;
    margin: 0 0 22px;

    font-size: 0.95rem;
    line-height: 1.8;
}

.details {
    /* display: grid;
    grid-template-columns: 0.3fr 0.3fr 0.3fr; */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    gap: 32px;

    margin: 0;
    padding-top: 18px;

    border-top: 1px solid var(--sand);
}

.details dt {
    margin-bottom: 3px;

    color: var(--burnt-orange);

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.details dd {
    margin: 0;
    font-size: 0.85rem;
}


/* --------------------------------
   Gallery
-------------------------------- */

.gallery-section {
    margin-top: 8px;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0;

    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.section-heading span {
    color: var(--burnt-orange);

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}


/* --------------------------------
   Social links
-------------------------------- */

.socials {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.socials-label {
    color: var(--burnt-orange);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.socials nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

a {
    color: var(--brown);

    font-size: 0.85rem;
    text-decoration: none;

    transition: color 150ms ease;
}

a:hover {
    color: var(--burnt-orange);
}


/* --------------------------------
   Responsive
-------------------------------- */

@media (max-width: 640px) {
    body {
        padding: 24px 18px;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-image {
        /* aspect-ratio: 4 / 3; */
        max-height: none;
    }

    .bio p {
        max-width: none;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .socials {
        flex-direction: column;
        gap: 12px;
    }
}


/* --------------------------------
   Reduced motion
-------------------------------- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}