:root {
    --ink: #392f2a;
    --accent: #855d49;
    --paper: #fcfaf7;
    --tint: #eee5dc;
    --line: #ded1c5
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.65 system-ui, sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select {
    font: inherit
}

button,
a,
summary {
    cursor: pointer
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #aa7454;
    outline-offset: 3px
}

[hidden] {
    display: none !important
}

.wrap {
    width: min(1120px, 90%);
    margin: auto
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fcfaf7f5;
    border-bottom: 1px solid var(--line)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.2;
    font-family: Georgia, serif;
    font-size: 19px
}

.brand b {
    font-size: 29px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    padding: 10px;
    color: var(--accent)
}

small {
    display: block;
    font: 12px/1.5 system-ui, sans-serif;
    letter-spacing: 1px
}

.brand small {
    margin-top: 5px
}

#links {
    display: flex;
    gap: 21px;
    font-size: 14px
}

#menu {
    display: none
}

.btn,
.outline {
    display: inline-block;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    background: var(--accent);
    color: white;
    text-align: center
}

.outline {
    background: transparent;
    color: var(--accent)
}

.btn:hover,
.outline:hover {
    filter: brightness(.92)
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 65px;
    align-items: center;
    min-height: 590px;
    padding: 55px 0
}

.hero p {
    font-size: 19px;
    max-width: 530px;
    margin-bottom: 30px
}

h1,
h2,
h3 {
    font-family: Georgia, serif;
    line-height: 1.15;
    font-weight: 500;
    margin: 12px 0
}

h1 {
    font-size: clamp(44px, 6vw, 78px);
    letter-spacing: -2px
}

h1 em {
    color: var(--accent);
    display: block;
    font-weight: 400
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -1px
}

h3 {
    font-size: 25px
}

label {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700
}

.portrait {
    position: relative;
    background: var(--tint);
    border-radius: 160px 160px 24px 24px;
    overflow: hidden;
    padding: 15px
}

.portrait img {
    width: 100%;
    display: block;
    border-radius: 150px 150px 18px 18px
}

.photo-tag {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: var(--paper);
    padding: 14px 22px;
    border-radius: 8px;
    font-family: Georgia, serif;
    font-size: 21px
}

.strip,
.tint {
    background: var(--tint)
}

.strip {
    padding: 25px 0
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.section {
    padding: 76px 0
}

.section>p {
    max-width: 720px
}

.section .cards {
    margin-top: 28px
}

article {
    padding: 28px;
    background: #fffdf9;
    border: 1px solid var(--line);
    border-radius: 16px
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center
}

.tabs {
    display: grid;
    gap: 12px
}

.tabs button {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 10px;
    text-align: left;
    padding: 17px;
    color: var(--ink)
}

.tabs button.active {
    background: var(--accent);
    color: white
}

.horizontal {
    display: flex;
    margin: 25px 0;
    flex-wrap: wrap
}

.bodymap {
    width: 220px;
    position: relative;
    margin: auto
}

.bodymap svg {
    width: 100%;
    display: block
}

.bodymap button {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 2px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: white;
    line-height: 1
}

.about img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    margin: auto
}

input,
select {
    display: block;
    width: 100%;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    margin: 18px 0
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap
}

details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 12px 0;
    padding: 16px 20px
}

summary {
    font-weight: 600
}

footer {
    background: #392f2a;
    color: #fff;
    padding: 45px 0 80px
}

.floating {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: #216b4b;
    color: white;
    padding: 13px 20px;
    border-radius: 30px;
    z-index: 9;
    box-shadow: 0 4px 20px #0002
}

@media(max-width:850px) {
    #menu {
        display: block;
        background: none;
        border: 0;
        font-size: 24px
    }

    #links {
        display: none;
        position: absolute;
        top: 84px;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 20px;
        flex-direction: column
    }

    #links.open {
        display: flex
    }

    .hero,
    .split {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .hero {
        padding: 40px 0
    }

    .portrait {
        max-width: 420px;
        margin: auto
    }

    .cards {
        grid-template-columns: 1fr
    }

    .section {
        padding: 48px 0
    }

    .nav {
        gap: 8px
    }

    .nav>.btn {
        padding: 8px 12px
    }

    .brand {
        font-size: 15px
    }

    .brand b {
        font-size: 20px
    }

    .hero .outline {
        margin-top: 10px
    }
}