@font-face {
    font-family: Cormorant;
    src: url("assets/cormorant-normal.ttf")
}

@font-face {
    font-family: Cormorant;
    font-style: italic;
    src: url("assets/cormorant-italic.ttf")
}

:root {
    --linen: #eee6d6;
    --ink: #392f27;
    --moss: #414633;
    --edge: clamp(23px, 6vw, 100px);
    --serif: Cormorant, Georgia, serif;
    color: var(--ink);
    background: var(--linen);
    font: 16px/1.5 Arial, sans-serif;
    scroll-behavior: smooth
}

* {
    box-sizing: border-box
}

body, figure, h1, h2, p {
    margin: 0
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: .35em
}

a:hover {
    text-decoration: underline
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px
}

::selection {
    background: #cab999;
    color: #251e19
}

header, footer {
    padding: 0 var(--edge);
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #cbbfae
}

.brand {
    font: 32px/1 var(--serif);
    letter-spacing: -.04em;
    text-decoration: none
}

nav {
    display: flex;
    gap: clamp(18px, 3vw, 48px)
}

nav a, footer > a:last-child, .closing a, .down {
    font-size: .85rem;
    text-decoration: none
}

.cover {
    padding: clamp(28px, 4vw, 68px) var(--edge) clamp(48px, 6vw, 95px);
    display: grid;
    grid-template-columns: .89fr 1.11fr;
    align-items: center;
    gap: 4vw
}

.cover-copy {
    padding: 10px 0 22px
}

h1, h2 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .9;
    text-wrap: balance
}

h1 {
    font-size: clamp(5rem, 9.9vw, 11.5rem)
}

h1 i {
    white-space: nowrap
}

.cover-copy p, .forest-copy p, .evening-copy p {
    font: clamp(1.22rem, 1.65vw, 1.7rem)/1.4 var(--serif);
    max-width: 29ch;
    margin-top: 1.8rem
}

.down {
    display: inline-flex;
    gap: .85rem;
    align-items: center;
    margin-top: clamp(2rem, 5vw, 5rem)
}

.down span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid #978976
}

.crop {
    overflow: hidden;
    position: relative
}

/* Keep the botanical margins behind the photographs and all interactive content. */
main > section {
    position: relative;
    isolation: isolate;
}

.autumn-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.crop img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.cover-photo .crop {
    height: clamp(380px, 65svh, 760px);
    border-radius: 48% 48% 0 0 / 33% 33% 0 0
}

.cover-photo img {
    object-position: 50% 42%
}

figcaption {
    font: italic 1.05rem/1.4 var(--serif);
    display: flex;
    justify-content: space-between;
    margin-top: 9px
}

.forest, .evening {
    padding: clamp(3.5rem, 8vw, 9rem) var(--edge);
    display: grid;
    grid-template-columns:1fr 1fr;
    align-items: center;
    gap: clamp(40px, 8vw, 140px)
}

.forest {
    background: var(--moss);
    color: #f3e9d8
}

.forest figure {
    width: 84%;
    margin: auto
}

.forest .crop {
    aspect-ratio: 4/5
}

h2 {
    font-size: clamp(4rem, 6.7vw, 8rem)
}

.evening {
    background: #dfcdb9;
    color: #402d22
}

.evening figure {
    width: 82%;
    justify-self: start
}

.evening .crop {
    aspect-ratio: 3/4
}

.evening-copy {
    justify-self: center
}

.closing {
    text-align: center;
    padding: 65px var(--edge) 90px
}

.closing-flower {
    width: clamp(200px, 20vw, 260px);
    aspect-ratio: 4/5;
    margin: 0 auto 18px
}

.closing-flower img, .closing-flower svg, .closing-flower canvas {
    display: block;
    width: 100%;
    height: auto
}

.closing a {
    display: inline-block;
    margin-top: 32px;
    text-decoration: underline
}

footer {
    border-top: 1px solid #cbbfae;
    border-bottom: 0
}

@media (max-width: 740px) {
    header, footer {
        min-height: 62px
    }

    .brand {
        font-size: 26px
    }

    nav a {
        font-size: .78rem
    }

    .cover {
        grid-template-columns:1fr;
        gap: 22px;
        padding-top: 34px
    }

    h1 {
        font-size: clamp(64px, 15vw, 104px)
    }

    h1 br {
        display: none
    }

    h1 i:before {
        content: " "
    }

    .cover-copy {
        padding: 0
    }

    .cover-copy p {
        margin-top: 16px
    }

    .down {
        margin-top: 18px
    }

    .cover-photo .crop {
        height: clamp(300px, 48svh, 480px)
    }

    .forest, .evening {
        grid-template-columns:1fr;
        gap: 25px
    }

    .forest-copy {
        grid-row: 1
    }

    .forest figure, .evening figure {
        width: 100%;
        max-width: 460px
    }

    .evening-copy, .evening figure {
        justify-self: stretch
    }

    .forest figure {
        margin: 0
    }

    .forest .crop, .evening .crop {
        aspect-ratio: 1.08
    }

    .forest-copy p, .evening-copy p {
        margin-top: 18px
    }

    .cover, .forest, .evening {
        padding-bottom: 80px;
    }
}

@media (max-width: 370px) {
    header .brand {
        font-size: 23px
    }

    nav {
        gap: 12px
    }

    h1 {
        font-size: 16vw
    }

    h2 {
        font-size: 17vw
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        scroll-behavior: auto
    }
}
