/* =========================================
   PERSONAL PORTFOLIO
   Editorial / Earthy Design
   ========================================= */


/* -----------------------------------------
   RESET
   ----------------------------------------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #a69a8e;
    color: #292a1d;
    line-height: 1.6;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
}


/* -----------------------------------------
   COLOR PALETTE
   ----------------------------------------- */

:root {
    --olive: #292d1b;
    --olive-light: #3c4227;
    --brown: #5b351d;
    --brown-light: #754a2c;
    --cream: #e6dfd2;
    --beige: #d8d0c3;
    --taupe: #a69a8e;
    --white: #f4f0e8;
    --text: #292a1d;
    --gold: #b9a36a;
}


/* -----------------------------------------
   HEADER
   ----------------------------------------- */

header {
    background: var(--olive);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar {
    width: min(94%, 1400px);
    min-height: 88px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* -----------------------------------------
   LOGO
   ----------------------------------------- */

.logo {
    width: 54px;
    height: 54px;

    border-radius: 50%;

    background: var(--cream);
    color: var(--olive);

    display: grid;
    place-items: center;

    text-decoration: none;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: bold;

    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    background: var(--white);
}


/* -----------------------------------------
   NAVIGATION
   ----------------------------------------- */

.nav-links {
    display: flex;
    align-items: center;

    gap: 34px;

    list-style: none;
}

.nav-links a {
    color: var(--cream);

    text-decoration: none;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;

    transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--gold);
}


/* -----------------------------------------
   MOBILE MENU
   ----------------------------------------- */

.menu-toggle {
    display: none;

    background: none;
    border: none;

    color: var(--cream);

    font-size: 30px;

    cursor: pointer;
}


/* -----------------------------------------
   HERO
   ----------------------------------------- */

.hero {
    width: min(94%, 1400px);

    min-height: 680px;

    margin: 28px auto 0;

    padding: 55px;

    background: var(--olive);

    color: var(--cream);

    display: grid;
    grid-template-columns: 1.5fr 0.7fr;

    gap: 50px;

    align-items: center;

    position: relative;

    overflow: hidden;
}


/* Hero Text */

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(5rem, 11vw, 10rem);

    font-weight: normal;

    line-height: 0.82;

    letter-spacing: -7px;

    margin: 25px 0;
}

.hero h1 span {
    display: block;

    color: var(--cream);
}

.hero h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 22px;

    font-weight: normal;

    margin-bottom: 18px;

    color: var(--beige);
}

.hero-content > p:not(.eyebrow) {
    max-width: 650px;

    color: #cfc8ba;

    font-size: 15px;

    margin-bottom: 30px;
}


/* -----------------------------------------
   SMALL SECTION LABEL
   ----------------------------------------- */

.eyebrow {
    color: var(--gold);

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 3px;

    text-transform: uppercase;
}


/* -----------------------------------------
   HERO IMAGE
   ----------------------------------------- */

.hero-media {
    text-align: center;
}

.hero-media img {
    width: min(100%, 480px);

    display: block;

    margin: auto;

    border-radius: 0;

    filter: saturate(0.8);
}


/* -----------------------------------------
   BUTTON
   ----------------------------------------- */

.button {
    display: inline-block;

    background: var(--cream);
    color: var(--olive);

    border: 1px solid var(--cream);

    padding: 13px 25px;

    text-decoration: none;

    font-family: Georgia, "Times New Roman", serif;

    font-weight: bold;

    font-size: 14px;

    transition: 0.3s ease;
}

.button:hover,
.button:focus {
    background: transparent;

    color: var(--cream);
}


/* -----------------------------------------
   GENERAL SECTION
   ----------------------------------------- */

.section {
    width: min(94%, 1400px);

    margin: 22px auto 0;

    padding: 70px 55px;

    background: var(--cream);
}


/* -----------------------------------------
   SECTION HEADING
   ----------------------------------------- */

.section-heading {
    max-width: 850px;

    margin: 0 auto 50px;

    text-align: left;
}

.section-heading h1,
.section-heading h2 {
    color: var(--olive);

    font-family: Georgia, "Times New Roman", serif;

    font-weight: normal;

    font-size: clamp(3.5rem, 8vw, 7rem);

    line-height: 0.9;

    letter-spacing: -4px;

    margin: 15px 0 25px;
}

.section-heading p:not(.eyebrow) {
    max-width: 650px;

    color: #5a554d;

    font-size: 15px;
}


/* -----------------------------------------
   IMAGE GRID
   ----------------------------------------- */

.image-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


/* -----------------------------------------
   CARDS
   ----------------------------------------- */

.card {
    background: var(--beige);

    border: none;

    border-radius: 0;

    box-shadow: none;

    overflow: hidden;

    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;

    height: 320px;

    object-fit: cover;

    display: block;

    filter: saturate(0.8);
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    color: var(--olive);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 26px;

    font-weight: normal;

    margin-bottom: 10px;
}

.card-body p {
    color: #5b574f;

    font-size: 14px;
}


/* -----------------------------------------
   FEATURE GRID
   ----------------------------------------- */

.feature-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.feature {
    background: var(--beige);

    border: none;

    border-radius: 0;

    box-shadow: none;

    padding: 35px;
}

.feature h2 {
    color: var(--olive);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 30px;

    font-weight: normal;

    margin-bottom: 15px;
}

.feature p {
    color: #5b574f;

    font-size: 14px;
}


/* -----------------------------------------
   AUDIO
   ----------------------------------------- */

.media-card {
    max-width: 900px;

    margin: auto;

    padding: 35px;

    background: var(--olive);

    border: none;

    border-radius: 0;

    box-shadow: none;
}

.media-card audio {
    width: 100%;
}

audio {
    width: 100%;
}

.transcript {
    margin-top: 20px;

    padding: 20px;

    background: var(--beige);

    color: var(--text);

    border-radius: 0;
}

.media-card .transcript {
    background: var(--cream);
}


/* -----------------------------------------
   VIDEO
   ----------------------------------------- */

.video-container {
    max-width: 1000px;

    margin: auto;

    background: var(--olive);

    border-radius: 0;

    overflow: hidden;
}

.video-container video {
    width: 100%;

    display: block;
}


/* -----------------------------------------
   ABOUT
   ----------------------------------------- */

.about-grid {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 45px;

    align-items: start;
}

.about-grid > img {
    width: 100%;

    max-width: 550px;

    margin: auto;

    filter: saturate(0.75);
}

.about-grid h2 {
    color: var(--olive);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 38px;

    font-weight: normal;

    margin: 0 0 12px;
}

.about-grid p {
    color: #5b574f;

    margin-bottom: 30px;

    max-width: 650px;
}


/* -----------------------------------------
   TABLE
   ----------------------------------------- */

.table-wrap {
    width: 100%;

    overflow-x: auto;

    margin-top: 20px;
}

table {
    width: 100%;

    border-collapse: collapse;

    background: var(--beige);

    color: var(--text);
}

th,
td {
    padding: 16px;

    border: 1px solid #bcb3a5;

    text-align: left;

    font-size: 14px;
}

th {
    background: var(--olive);

    color: var(--cream);

    font-family: Georgia, "Times New Roman", serif;

    font-weight: normal;

    font-size: 16px;
}


/* -----------------------------------------
   MEDIA GALLERY
   ----------------------------------------- */

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.media-item {
    background: var(--beige);

    border: none;

    border-radius: 0;

    box-shadow: none;

    overflow: hidden;
}

.media-item > img,
.media-item > video {
    width: 100%;

    height: 300px;

    object-fit: cover;

    display: block;

    filter: saturate(0.8);
}

.media-item > audio {
    width: calc(100% - 40px);

    margin: 25px 20px 0;
}

.media-item-body {
    padding: 25px;
}


/* -----------------------------------------
   MEDIA TAG
   ----------------------------------------- */

.tag {
    display: inline-block;

    background: var(--olive);

    color: var(--cream);

    padding: 6px 12px;

    border-radius: 0;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

.media-item-body p {
    color: var(--text);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 18px;

    word-break: break-word;
}


/* -----------------------------------------
   DELETE BUTTON
   ----------------------------------------- */

.danger-button {
    margin-top: 15px;

    padding: 9px 15px;

    border: 1px solid #6d251b;

    border-radius: 0;

    background: #6d251b;

    color: white;

    cursor: pointer;

    font-size: 12px;
}

.danger-button:hover {
    background: transparent;

    color: #6d251b;
}


/* -----------------------------------------
   UPLOAD
   ----------------------------------------- */

.upload-card {
    max-width: 750px;

    margin: auto;

    padding: 40px;

    background: var(--olive);

    color: var(--cream);

    border: none;

    border-radius: 0;

    box-shadow: none;
}

.upload-card form {
    display: grid;

    gap: 12px;
}

.upload-card label {
    color: var(--cream);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 17px;
}

.upload-card input,
.upload-card select {
    width: 100%;

    padding: 13px;

    border: 1px solid #777764;

    border-radius: 0;

    background: var(--cream);

    color: var(--text);

    outline: none;
}

.upload-card input:focus,
.upload-card select:focus {
    border-color: var(--gold);
}

.upload-card .button {
    margin-top: 10px;

    width: fit-content;
}

.form-help {
    color: #cfc8ba;

    font-size: 13px;
}


/* -----------------------------------------
   ALERT
   ----------------------------------------- */

.alert {
    margin-bottom: 20px;

    padding: 14px;

    border: 1px solid #777764;

    background: var(--cream);

    color: var(--text);
}


/* -----------------------------------------
   EMPTY STATE
   ----------------------------------------- */

.empty-state {
    grid-column: 1 / -1;

    padding: 70px;

    text-align: center;

    background: var(--beige);

    border: none;

    border-radius: 0;

    box-shadow: none;
}

.empty-state h2 {
    color: var(--olive);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 40px;

    font-weight: normal;

    margin-bottom: 20px;
}


/* -----------------------------------------
   FOOTER
   ----------------------------------------- */

footer {
    width: min(94%, 1400px);

    margin: 22px auto 0;

    padding: 35px 20px;

    background: var(--olive);

    color: var(--cream);

    text-align: center;
}

footer p {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 14px;

    letter-spacing: 1px;
}


/* -----------------------------------------
   TABLET
   ----------------------------------------- */

@media (max-width: 1000px) {

    .hero {
        grid-template-columns: 1fr;

        padding: 50px 40px;

        text-align: left;
    }

    .hero-media {
        text-align: left;
    }

    .hero-media img {
        margin: 0;

        width: min(100%, 420px);
    }

    .image-grid,
    .feature-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-grid > img {
        margin: 0;
    }
}


/* -----------------------------------------
   MOBILE
   ----------------------------------------- */

@media (max-width: 700px) {

    .navbar {
        min-height: 72px;

        flex-wrap: wrap;

        padding: 10px 0;
    }


    /* Mobile Menu Button */

    .menu-toggle {
        display: block;
    }


    /* Mobile Navigation */

    .nav-links {
        display: none;

        width: 100%;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        padding: 10px 0 15px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;

        width: 100%;

        padding: 12px 0;

        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }


    /* Hero */

    .hero {
        width: 94%;

        min-height: auto;

        margin-top: 15px;

        padding: 40px 25px;
    }

    .hero h1 {
        font-size: clamp(4rem, 18vw, 6rem);

        letter-spacing: -4px;
    }

    .hero h2 {
        font-size: 18px;
    }


    /* Sections */

    .section {
        width: 94%;

        padding: 50px 25px;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h1,
    .section-heading h2 {
        font-size: clamp(3rem, 14vw, 5rem);

        letter-spacing: -3px;
    }


    /* One Column */

    .image-grid,
    .feature-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }


    /* Cards */

    .card img {
        height: 280px;
    }

    .media-item > img,
    .media-item > video {
        height: 280px;
    }


    /* About */

    .about-grid h2 {
        font-size: 32px;
    }


    /* Upload */

    .upload-card {
        padding: 25px;
    }


    /* Footer */

    footer {
        width: 94%;

        padding: 30px 15px;
    }
}


/* -----------------------------------------
   SMALL PHONES
   ----------------------------------------- */

@media (max-width: 450px) {

    .hero {
        padding: 35px 20px;
    }

    .hero h1 {
        font-size: 3.8rem;
    }

    .section {
        padding: 40px 20px;
    }

    .section-heading h1,
    .section-heading h2 {
        font-size: 3.2rem;
    }

    .card-body,
    .feature,
    .media-item-body {
        padding: 20px;
    }

    .empty-state {
        padding: 40px 20px;
    }

}