@font-face {
    font-family: "Homemade Apple";
    src: url("../fonts/HomemadeApple.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


html {
    font-size: 65%;
    background-color: #fff7fa;
    scrollbar-gutter: stable;
}

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

::selection {
    background-color: #ead1dc;
    color: #741b47;
}

body {
    width: 92%;
    max-width: 110rem;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 0 2rem;

    background-color: #fff7fa;

    font-size: 1.6rem;
    line-height: 1.6;
    color: #000;
}

.handwritten {
    font-family: "Homemade Apple", cursive;
    font-weight: 400;
}

.pink-light {
    color: #ead1dc;
}

.pink-dark {
    color: #741b47;
}



header {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin: 4.2rem 0;
    padding-bottom: 1.2rem;

    border-bottom: 0.2rem solid #741b47;
}



.logo {
    margin: 1rem auto 3rem;
    text-align: center;
}

.logo a {
    font-size: 2.4rem;
    font-variant: small-caps;
    font-weight: bold;

    color: #741b47;
    text-decoration: none;
}

.logo a:hover,
.logo a:focus {
    color: #741b47;
    text-decoration: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.2rem;

    margin: 0 auto 1.8rem;
    text-align: center;
    font-variant: small-caps;
}

nav a {
    display: inline-block;
    padding-bottom: 0.3rem;

    font-size: 1.8rem;
    font-weight: bold;

    color: #4d3f44;
    text-decoration: none;
}

nav a:hover,
nav a:focus {
    color: #741b47;
    text-decoration: none;
}
nav a.active {
    color: #741b47;
    border-bottom: 0.2rem solid #741b47;
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 2rem;
}

main a {
    color: #741b47;
}

main a:hover,
main a:focus {
    color: #ead1dc;
}

.content-section {
    margin-top: 4rem;
}

.content-section h2 {
    margin-bottom: 1.5rem;
}

.content-section p {
    margin-bottom: 1.5rem;
}

.two-columns {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.two-columns > .left {
    flex: 3;
    min-width: 0;
}

.two-columns > .right {
    flex: 2;
    min-width: 0;
}

.two-columns > .right img {
    display: block;
    width: 100%;
    height: auto;
}

.two-columns > .portrait,
.two-columns > .compact-media{
    flex: 0 0 24rem;
    width: 24rem;
    max-width: 100%;
}

.media-figure{
    margin: 0;
}

.media-figure img{
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.media-figure figcaption{
    margin-top: 0.8rem;

    font-size: 1.3rem;
    color: #555;
    text-align: center;
}

.media-figure--narrow {
    width: 32rem;
    max-width: 100%;
    margin: 2rem auto 0;
}

.photo-slideshow {
    width: 100%;
    margin: 0;
}

.photo-slideshow:focus-visible {
    outline: 0.2rem solid #741b47;
    outline-offset: 0.4rem;
    border-radius: 0.4rem;
}

.photo-stage {
    position: relative;
}

.photo-slide {
    margin: 0;
}

.photo-slide[hidden] {
    display: none;
}

.photo-slide img {
    display: block;
    width: 100%;
    height: auto;
}

.photo-slide figcaption {
    margin-top: 0.8rem;

    font-size: 1.3rem;
    color: #555;
    text-align: center;
}

.photo-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;

    margin-top: 0.6rem;
}

.photo-dot {
    position: relative;

    width: 2rem;
    height: 2rem;
    padding: 0;

    border: 0;
    background-color: transparent;

    cursor: pointer;
}

.photo-dot::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 0.7rem;
    height: 0.7rem;

    transform: translate(-50%, -50%);

    border-radius: 50%;
    background-color: #d8bcc6;
}

.photo-dot:hover::before,
.photo-dot:focus-visible::before {
    background-color: #a8647d;
}

.photo-dot[aria-current="true"]::before {
    width: 0.9rem;
    height: 0.9rem;

    background-color: #741b47;
}

.photo-dot:focus-visible {
    outline: 0.2rem solid #741b47;
    outline-offset: 0.1rem;
    border-radius: 50%;
}

article .header {
    font-size: 1.4rem;
    font-style: italic;
    color: #555;
}

footer {
    margin-top: 3rem;
    padding: 1.2rem 0;

    border-top: 0.2rem solid #741b47;

    font-size: 1.2rem;
    color: #555;
    text-align: center;
}

@media (max-width: 319px) {
    nav {
        display: block;
    }

    nav a {
        display: block;
        margin: 0.8rem 0;
        line-height: 1.6;
    }

    nav a.active {
        border-bottom: none;
        text-decoration: underline;
        text-decoration-thickness: 0.2rem;
        text-underline-offset: 0.5rem;
    }
}

@media (max-width: 639px) {
    .two-columns {
        flex-direction: column;
        gap: 2rem;
    }

    .two-columns > .left,
    .two-columns > .right {
        flex: none;
        width: 100%;
    }

    .two-columns > .portrait,
    .two-columns > .compact-media {
        width: 22rem;
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (min-width: 640px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

        margin: 0 0 3rem;
        padding: 1.2rem 0;
    }

    .logo {
        margin: 0;
        text-align: left;
    }

    .logo a {
        font-size: 2rem;
    }

    nav {
        justify-content: flex-end;

        margin: 0;
        text-align: right;
    }

    footer {
        text-align: right;
    }
}