/* Colour Variables */
:root {
    --bkg-body:               hsl(54 100% 98%);
    --bkg-docs:               hsl(45 55% 95%);
    --bkg-conditions:         hsl(45 50% 92%);
    --bkg-footer:             hsl(30 20% 29%);

    --bkg-nav-mobile:         hsl(40 30% 10% / 0.8);
    --text-nav-mobile:        hsl(40 35% 85%);

    --text-nav:               hsl(40 35% 45%);
    --text-nav-hover:         hsl(0 0% 0%);

    --text-headers-one:       hsl(40 35% 45%);
    --text-headers-two:       hsl(40 35% 45%);
    --text-headers-three:     hsl(45 50% 90%);

    --text-main:              hsl(0 0% 0%);
    --text-button:            hsl(0 0% 100%);
    --text-link:              hsl(40 40% 35%);
    --text-link-hover:        hsl(0 0% 0%);
    --text-link_footer:       hsl(0 0% 100%);
    --text-link_footer-hover: hsl(45 50% 90%);
    --text-footer:            hsl(45 50% 90%);

    --button-body:            hsl(135 15% 55%);
    --button-body-hover:      hsl(140 18% 38%);

    --detail-one:             hsl(40 40% 80%);
    --detail-two:             hsl(40 40% 75%);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    font: inherit;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-color: var(--bkg-body);
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Base Wrapper, Grid & Utility Classes */
.container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) { 
    .container {
        padding: 0 2.5rem;
    }
}

@media (min-width: 1460px) {
    .container {
        max-width: 78rem;
    }
}

.row {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

@media (min-width: 640px) { 
    .row {
        flex-direction: row; 
    }
}

.col {
    width: 100%;
}

@media (min-width: 640px) {
    .col {
        flex: 1;
        flex-basis: 33.33%;
    }
}

.hide-for-mobile {
    display: none;
}

@media (min-width: 640px) { 
    .hide-for-mobile {
        display: block; 
    }
}

/* Base Typography */
p, a, li {
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

h1, h2 {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

/* Header Styles */
header {
    position: relative;
    width: 100%;
    height: 4.5rem;
}

@media (min-width: 640px) {
    header {
        height: 2rem;
    }
}

.logo img {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    width: 3.25rem;
    height: 3.25rem;
}

@media (min-width: 640px) {
    .logo img {
        width: 4rem;
        height: 4rem;
    }
}

/* Navigation Styles: Mobile */
.is-locked {
    overflow: hidden;
    touch-action: none;
}

.navigation--mobile {
    display: block;
    position: relative;
    z-index: 100;
}

@media (min-width: 640px) {
    .navigation--mobile {
        display: none;
        visibility: hidden;
    }
}

.navigation--mobile__button {
    all: unset;
    position: absolute;
    z-index: 101;
    top: 1rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
    background: url(../gfx/button_menu.svg) no-repeat center / cover;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.navigation--mobile__list {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--bkg-nav-mobile);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.navigation--mobile__list.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.navigation--mobile__list a {
    display: block;
    font-family: "Playfair Display", serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--text-nav-mobile);
    text-decoration: none;
}

/* Navigation Styles: Desktop */
.navigation--main {
    display: none;
}

@media (min-width: 640px) {
    .navigation--main {
        display: block;
        top: 1.25rem;
        right: 1.25rem;
        position: absolute;
    }
}

.navigation--main ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.navigation--main a {
    display: block;
    position: relative;
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--text-nav);
    text-decoration: none;
    margin-left: 0.75rem;
    transition: color 0.3s ease;
}

.navigation--main a:hover,
.navigation--main a:active,
.navigation--main a:focus-visible {
    color: var(--text-nav-hover);
}

.navigation--main a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.375rem;
    width: 100%;
    height: 0.125rem;
    background-color: var(--text-nav);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navigation--main a:hover::after {
    transform: scaleX(1);
}

@media (min-width: 960px) {
    .navigation--main a {
        font-size: 1.375rem;
        margin-left: 2rem;
    }
}

@media (min-width: 1460px) { 
    .navigation--main a {
        font-size: 1.5rem;
    }
}

/* Hero Section Styles */
.container--hero {
    height: 15rem;
    margin-bottom: 2rem;
}

@media (min-width: 480px) {
    .container--hero {
        height: auto;
        max-width: 60rem;
        margin: 0 auto;
        padding-bottom: 1rem;
        background: none;
    }
}

@media (min-width: 1460px) {
    .container--hero {
        max-width: 84rem;
        padding-bottom: 3rem;
    }
}

.container--hero .illustration {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 480px) {
    .container--hero .illustration {
        max-width: 100%;
        height: auto;
        object-fit: fill;
    }
}

/* Intro Section Styles */
.section--intro {
    padding-bottom: 1rem;
}

@media (min-width: 640px) {
    .section--intro {
        padding-bottom: 4rem;
    }
}

.section--intro h1 {
    color: var(--text-headers-one);
    font-size: 1.75rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .section--intro h1 {
        font-size: 3em;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1460px) {
    .section--intro h1 {
        font-size: 4em;
        margin-bottom: 2.25rem;
    }
}

.section--intro h2 {
    color: var(--text-headers-two);
    font-size: 1.125rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .section--intro h2 {
        font-size: 1.25rem;
        margin-bottom: 4rem;
    }
}

@media (min-width: 1460px) {
    .section--intro h2 {
        font-size: 1.5rem;
        margin-bottom: 4rem;
    }
}

.section--intro__text {
    column-count: 1;
}

@media (min-width: 640px) {
    .section--intro__text {
        column-count: 2;
        column-gap: 4rem;
    }
}

.section--intro__text .no-break {
    break-inside: avoid;   
}

.section--intro__text p {
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .section--intro__text p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1460px) {
    .section--intro__text p {
        font-size: 1.375rem;
        margin-bottom: 2rem;
    }
}

.section--intro__text h3 {
    font-family: "EB Garamond", serif;
    font-size: 1.25rem;
    font-weight: 600;
    font-style: normal;
    margin-bottom: 0.375rem;
}

@media (min-width: 640px) {
    .section--intro__text h3 {
        font-size: 1.25rem;
    }
}

@media (min-width: 1460px) {
    .section--intro__text h3 {
        font-size: 1.375rem;
    }
}

/* Docs, Conditions & Footer Section Styles */
.section {
    padding: 2.5rem 0 2rem 0;
}

@media (min-width: 640px) { 
    .section { padding: 4rem 0 3rem 0; }
}

.section--docs {
    background-color: var(--bkg-docs);
}

.section--conditions {
    background-color: var(--bkg-conditions);
}

.section--footer {
    padding: 2.5rem 0 8rem 0;
    background-color: var(--bkg-footer);
}

@media (min-width: 640px) { 
    .section--footer { padding: 4rem 0 8rem 0; }
}

.section h2 {
    color: var(--text-headers-two);
    font-size: 1.25rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
    .section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}

.section--footer h2 {
    color: var(--text-headers-three);
}

.section h3 {
    font-family: "EB Garamond", serif;
    font-size: 1.125rem;
    font-weight: 600;
    font-style: normal;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section h3 {
        font-size: 1.25rem;
        margin-bottom: 1.75rem;
    }
}

@media (min-width: 1460px) {
    .section h3 {
        font-size: 1.375rem;
    }
}

.section p {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1460px) {
    .section p {
        font-size: 1.375rem;
    }
}

.section--footer p {
    color: var(--text-footer);
}

ul.section__list {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

@media (min-width: 640px) { 
    ul.section__list { margin: 0 0 3rem 0; }
}

ul.section__list li {
    position: relative; 
    padding: 0.5rem 0 0.5rem 1.75rem;
    border-bottom: 1px dotted var(--detail-two);
    font-size: 1.125em;
    line-height: 1.2;
}

ul.section__list li::before {
    position: absolute;
    top: 1rem;
    left: 0;
    content: '';
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background-color: var(--detail-one);
}

@media (min-width: 640px) {
    ul.section__list li {
        font-size: 1.25rem;
    }
}

@media (min-width: 1460px) {
    ul.section__list li {
        font-size: 1.375rem;
    }
    ul.section__list li::before {
        top: 50%;
        transform: translateY(-50%);
    }
}

.link {
    font-weight: 550;
    color: var(--text-link);
    text-decoration: none;
    transition: color 0.25s ease;
}

.link:hover, 
.link:active, 
.link:focus-visible {
    color: var(--text-link-hover);
}

.section--footer .link {
    color: var(--text-link_footer);
}

.section--footer .link:hover, 
.section--footer .link:active, 
.section--footer .link:focus-visible {
    color: var(--text-link_footer-hover);
}

.button {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-button);
    text-decoration: none;
    text-align: center;
    padding: 1rem;
    margin: 2rem 0 1rem 0;
    border-radius: 0.125rem;
    background-color: var(--button-body);
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in;
}

.button:hover, 
.button:active, 
.button:focus-visible {
    background-color: var(--button-body-hover);
}

@media (min-width: 640px) {
    .button {
        display: inline-block;
        padding: 1rem 2.5rem;
        margin: 0 0 2rem 0;
    }
}