:root {
    --turquoise: #40e0d0;
    --slate: #2f4858;
    --plum: #8f2d56;
    --yellow: #ff9f1c;
    --blush: #ffccff;
    --ink: #0c090d;
    --text: #33393d;
    --tint: #eefaf8;
    --nav-h: 3.5rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    margin: 0;
    font-family: 'Glegoo', Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: #fff;
}

h1, h2, h3 {
    font-family: 'Raleway', sans-serif;
    line-height: 1.15;
    margin: 0 0 1rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--slate);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--plum);
    margin-bottom: .5rem;
}

p {
    margin: 0 0 1rem;
}

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

a:hover {
    text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: var(--slate) url('https://assets.fakecomputermusic.com/carryonyoga/img/hero.8dfdba1e00.jpg') center 30% / cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 9, 13, .65) 0%, rgba(12, 9, 13, .15) 45%, rgba(12, 9, 13, 0) 70%);
}

.hero__text {
    position: relative;
    z-index: 1;
    padding: 0 1rem 4rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}

.hero p {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.15rem, 3vw, 2rem);
    margin: .25rem 0 1.75rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}

.button {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink);
    background: var(--turquoise);
    padding: .8rem 1.6rem;
    border-radius: 999px;
    transition: background .2s, transform .2s;
}

.button:hover {
    background: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background: var(--slate);
    font-family: 'Raleway', sans-serif;
}

.nav a {
    color: #fff;
}

.nav a:hover {
    color: var(--blush);
    text-decoration: none;
}

.nav__brand {
    font-weight: 800;
    font-size: 1.15rem;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.nav li a {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .95rem;
}

.nav__toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background: #fff;
    border-radius: 2px;
}

@media (max-width: 640px) {
    .nav__toggle {
        display: block;
    }

    .nav ul {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--slate);
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease-in-out;
    }

    .nav ul.is-open {
        max-height: 16rem;
    }

    .nav li a {
        display: block;
        padding: .85rem 1rem;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }
}

/* ---------- Sections ---------- */

.section {
    padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.section--tint {
    background: var(--tint);
}

.section--dark {
    background: var(--slate);
    color: #fff;
    text-align: center;
}

.section--dark h2 {
    color: var(--turquoise);
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.wrap.narrow {
    max-width: 720px;
}

.lead {
    font-size: 1.25rem;
    color: var(--slate);
}

.section--dark .lead {
    color: #fff;
}

/* Sessions */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: #fff;
    padding: 1.75rem;
    border-radius: 8px;
    border-top: 4px solid var(--yellow);
    box-shadow: 0 4px 18px rgba(47, 72, 88, .08);
}

.card p {
    margin: 0;
}

/* Approach */

.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 2rem 0 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -.2rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    background: var(--plum);
}

.steps p {
    margin: 0;
}

/* Contact */

.contact__email {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    color: #fff;
    border-bottom: 2px solid var(--turquoise);
    margin: .5rem 0 2rem;
    word-break: break-word;
}

.contact__email:hover {
    color: var(--blush);
    text-decoration: none;
}

.social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social a {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    transition: background .2s, transform .2s;
}

.social a:hover {
    background: var(--turquoise);
    transform: translateY(-2px);
}

.social img {
    width: 30px;
    height: auto;
}

/* Footer */

.footer {
    text-align: center;
    padding: 1.5rem 1rem;
    font-family: 'Raleway', sans-serif;
    font-size: .9rem;
    color: rgba(255, 255, 255, .7);
    background: #243a47;
}

.footer p {
    margin: 0;
}

/* Meet Kristina */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.split__img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(47, 72, 88, .18);
}

@media (max-width: 800px) {
    .split {
        grid-template-columns: 1fr;
    }
}

.intro {
    max-width: 40rem;
}

/* Parallax photo bands */

.band {
    position: relative;
    height: clamp(260px, 55vh, 520px);
    display: grid;
    place-items: center;
    background: var(--slate) center / cover no-repeat;
}

.band::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 9, 13, .25);
}

@media (hover: hover) and (pointer: fine) {
    .band {
        background-attachment: fixed;
    }
}

.band--strength { background-image: url('https://assets.fakecomputermusic.com/carryonyoga/img/band-strength.9296bfeac7.jpg'); background-position: center 60%; }
.band--recovery { background-image: url('https://assets.fakecomputermusic.com/carryonyoga/img/band-recovery.3326fb3834.jpg'); background-position: center 35%; }
.band--form     { background-image: url('https://assets.fakecomputermusic.com/carryonyoga/img/band-form.033dadf995.jpg');     background-position: center 55%; }

.band__word {
    position: relative;
    z-index: 1;
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 9vw, 6rem);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}

/* Ways to practice */

.formats__title {
    margin-top: 3rem;
    color: var(--slate);
}

.formats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .75rem 1.5rem;
}

.formats li {
    padding-left: 1rem;
    border-left: 3px solid var(--turquoise);
}

.formats strong {
    display: block;
    font-family: 'Raleway', sans-serif;
    color: var(--plum);
}

/* Postures gallery */

.gallery {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

@media (max-width: 640px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: .5rem;
    }
}

.gallery button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--tint);
    border-radius: 6px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 1;
}

.gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery button:hover img,
.gallery button:focus-visible img {
    transform: scale(1.05);
}

.gallery button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

/* Lightbox */

.lightbox {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: 94vw;
    max-height: 92vh;
    overflow: visible;
}

.lightbox::backdrop {
    background: rgba(12, 9, 13, .88);
}

.lightbox img {
    display: block;
    max-width: 94vw;
    max-height: 92vh;
    border-radius: 6px;
}

.lightbox__close {
    position: absolute;
    top: -.5rem;
    right: -.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
