@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Playfair+Display:wght@500;600&display=swap');

:root {
    --background: #f7f3eb;
    --text: #40352b;
    --muted: #75675a;
    --accent: #76563f;
    --line: #d8cfc2;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--background);
    color: var(--text);

    font-family: "DM Sans", sans-serif;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}


/* ==============================
   Main layout
   ============================== */

main {
    width: min(100% - 40px, 900px);
    margin: 0 auto;
    padding: 100px 0 45px;
}


/* ==============================
   Header
   ============================== */

header {
    width: 100%;
    text-align: center;
    margin-bottom: 70px;
}

.eyebrow {
    margin: 0 0 18px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 0;

    color: var(--text);

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(48px, 7vw, 78px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
}


/* ==============================
   Biography
   ============================== */

.bio {
    width: min(100%, 620px);
    margin: 0 auto;
}

.bio p {
    margin: 0 0 30px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.8;

    text-align: justify;
    text-justify: inter-word;
}

.bio p:first-child {
    color: var(--text);

    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    line-height: 1.65;
}


/* ==============================
   Footer
   ============================== */

footer {
    width: min(100%, 620px);
    margin: 75px auto 0;
    padding-top: 20px;

    border-top: 1px solid var(--line);

    display: flex;
    justify-content: space-between;

    color: var(--muted);

    font-size: 12px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
/* 
/* 
/* ==============================
   Decorative graphics
   ============================== */
/* 
.decoration {
    position: fixed;
    z-index: -1;

    width: 150px;
    height: 150px;

    border: 1px solid var(--line);
    border-radius: 50%;

    opacity: 0.55;

    pointer-events: none;
}

.decoration::before {
    content: "";

    position: absolute;

    inset: 25px;

    border: 1px solid var(--line);
    border-radius: 50%;
}

.decoration::after {
    content: "";

    position: absolute;

    top: 50%;
    left: -20px;

    width: calc(100% + 40px);
    height: 1px;

    background: var(--line);
}

.decoration-left {
    left: max(25px, calc(50% - 600px));
    top: 28%;
}

.decoration-right {
    right: max(25px, calc(50% - 600px));
    bottom: 20%;

    transform: rotate(45deg);
} */ 


/* ==============================
   Mobile
   ============================== */

@media (max-width: 700px) {

    main {
        width: min(100% - 32px, 900px);
        padding-top: 65px;
    }

    header {
        margin-bottom: 50px;
    }

    h1 {
        font-size: clamp(42px, 13vw, 65px);
    }

    .bio {
        width: 100%;
    }

    .bio p {
        font-size: 15px;
        text-align: left;
    }

    .bio p:first-child {
        font-size: 19px;
    }

    footer {
        flex-direction: column;
        gap: 8px;
    }

    .decoration {
        opacity: 0.3;
    }

    .decoration-left {
        left: -90px;
    }

    .decoration-right {
        right: -90px;
    }
}