/* Fonts */

@font-face {
    font-family: 'Knewave';
    src: url('../fonts/Knewave-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Varela Round';
    src: url('../fonts/VarelaRound-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/******************/

h1,
h2,
h3 {
    font-family: 'Varela Round', sans-serif;
}

h1 {
    margin-top: 1rem;
    font-size: 3rem;
    color: #15661C;
}

h2 {
    margin-top: 1rem;
    font-size: 2rem;
}

h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    line-height: 1.6;
    margin: 0;
    color: #222;
    background: #fcfcfc;
    font-family: 'Nunito', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 800px) {
    main {
        padding: 1rem;
    }
}

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

.offset-title {
    margin: 0 0 1rem 0;
    line-height: 1;
}

.offset-title span {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.offset-title span::before {
    content: "";
    position: absolute;
    left: -0.1em;
    right: -0.1em;
    bottom: 0.05em;
    height: 0.45em;
    background: var(--underline-color, #F6B2FB);
    border-radius: 6px;
    transform: translate(-10px, 6px);
    z-index: -1;
}

.theme-projects {
    --underline-color: #F6B2FB;
}

.theme-work {
    --underline-color: rgba(46, 2, 165, 0.4);
}

.theme-subtitle {
    --underline-color: rgba(248, 220, 0, 0.7);
}

.right-align {
    text-align: right;
}

@media (max-width: 800px) {
    .right-align {
        text-align: left;
    }
}

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

.hero-wrap {
    max-width: 624px;
    /* 600 + 24 offset to account for offset box */
    margin: auto;
}

.hero {
    position: relative;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(21, 102, 28, 0.5);
    padding: 2rem;
    max-width: 500px;
    margin: 0rem auto 3rem;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(-24px, 24px);
    background: #15661C;
    border-radius: 8px;
    z-index: -1;
}

@media (max-width: 800px) {
    .hero-wrap {
        max-width: calc(100% - 2rem);
    }

    .hero {
        padding: 1.5rem;
    }

    .hero::before {
        transform: translate(-12px, 12px);
    }
}

.tagline {
    color: #15661C;
    font-family: 'Knewave', cursive;
    font-size: 2rem;
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
}

.site-header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
}

.nav {
    max-width: 1100px;
    margin: auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    color: #15661C;
    margin: 0;
}

.logo span::before {
    transform: translate(-3px, 3px);
}

.nav-links a {
    position: relative;
    margin-left: 1rem;
    text-decoration: none;
    color: #15661C;
}

.nav-links a:hover {
    text-decoration: none;
}

.nav-links a:not([aria-current="page"]):hover::after,
.nav-links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.25em;
    height: 0.2em;
    background: rgba(248, 220, 0, .7);
    border-radius: 8px;
}

.nav-links a[aria-current="page"] {
    pointer-events: none;
    cursor: default;
}

.home {
    max-width: 900px;
}

.paths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

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

.path-card {
    display: block;
    padding: 2rem 2.5rem;
    text-decoration: none;
    color: inherit;
    background: white;
    border: 1px solid rgba(246, 178, 251, 0.4);
    border-radius: 8px;
    box-shadow: -3px 3px 0 #F6B2FB;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.path-card:last-child {
    border: 1px solid rgba(46, 2, 165, 0.2);
    box-shadow: -3px 3px 0 #2E02A5;
}

.path-card:hover {
    transform: translate(0px, -4px);
}

.path-card h2 {
    font-size: 1.5rem;
}

.path-card p {
    margin-bottom: 0;
}

.section-nav {
    margin-bottom: 2rem;
}

.section-nav a {
    margin-right: 1rem;
}

section {
    margin-bottom: 3rem;
}

.portfolio-card {
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.35);
}

.portfolio-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1.25rem;
}

.portfolio-card-media.no-border {
    border: none;
}

.portfolio-card p {
    margin: 0 0 1rem 0;
    /* max-width: 42ch; */
}

.footer {
    text-align: center;
    padding: 2rem;
    color: #666;
}


.portfolio-intro {
    max-width: 800px;
    margin: 2rem auto 5rem;
    text-align: center;
    padding-inline: 1rem;
}

.portfolio-intro h1 {
    margin: 0 0 0.75rem 0;
}

.portfolio-intro-text {
    margin: 0 0 1.5rem 0;
    font-size: 1.125rem;
}

.portfolio-jump-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.portfolio-jump-nav a {
    text-decoration: none;
    color: inherit;
    padding: 0.3rem 0.7rem;
    /* background: rgba(17, 82, 22, 0.02); */
    border: 1px solid rgba(21, 102, 28, 0.2);
    border-radius: 8px;
    box-shadow: -2px 2px 0 #15661C;
    /* box-shadow: -3px 3px 0 #F6B2FB; */
    /* background: rgba(246, 178, 251, 0.03); */
    background: white;
    /* border: 1px solid rgba(246, 178, 251, 0.4); */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* follow same structure as offset-title theme-work to get other colours*/

.portfolio-jump-nav a:hover {
    transform: translate(0px, -2px);
}

.portfolio-section {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding-inline: 1rem;
    display: grid;
    grid-template-columns: minmax(240px, 0.35fr) minmax(0, 0.65fr);
    column-gap: 3rem;
    /* align-items: center; */
}

.portfolio-section.reverse {
    grid-template-columns: minmax(0, 0.65fr) minmax(240px, 0.35fr);
}

.portfolio-section.reverse .portfolio-copy {
    order: 2;
}

.portfolio-section.reverse .portfolio-showcase {
    order: 1;
}

.portfolio-copy p {
    margin: 0 0 1rem 0;
    max-width: 34ch;
}

.portfolio-copy,
.portfolio-showcase {
    min-width: 0;
}

@media (max-width: 800px) {

    .portfolio-section,
    .portfolio-section.reverse {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-copy,
    .portfolio-section.reverse .portfolio-copy {
        order: 1;
    }

    .portfolio-showcase,
    .portfolio-section.reverse .portfolio-showcase {
        order: 2;
    }

    .portfolio-copy p {
        max-width: none;
    }
}

.section-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    padding-bottom: 0.2rem;
    transition: transform 0.2s ease;
}

.section-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0.22em;
    background: rgba(248, 220, 0, 1);
    border-radius: 8px;
    transform: translateY(0);
    transition: height 0.2s ease;
}

.section-link:hover {
    transform: translateX(2px);
}

.section-link:hover::after {
    height: 0.32em;
}

/* .portfolio-showcase img,
.portfolio-showcase video,
.portfolio-showcase iframe {
    display: block;
    width: 100%;
    border-radius: 8px;
} */

.video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: grid;
    gap: 1 rem;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    border-radius: 8px;
}

.case-study-scroll {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.section-divider {
    /* width: 300px; */
    height: 3px;
    margin: 5rem auto;
    /* position: relative; */
    /* background: #15661C; */
    /* border-radius: 8px; */
}

@media (max-width: 800px) {
    .section-divider {
        height: 3px;
        margin: 1rem auto;
    }
}


.showcase-grid {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.showcase-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, .1);
}

.grid-2x3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 400px) {
    .grid-2x3 {
        grid-template-columns: 1fr;
    }
}




.case-study-cta {
    margin: 5rem auto 2rem;
    max-width: 560px;
    border-radius: 8px;
    border: 1px solid rgba(46, 2, 165, 0.2);
}

.case-study-cta-inner {
    position: relative;
    /* max-width: 520px; */
    padding: 2rem;
    border-radius: 8px;
    background: white;
}

.case-study-cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(-8px, 8px);
    background: rgba(46, 2, 165, 0.8);
    border-radius: 8px;
    z-index: -1;
}

/* 
.theme-projects .case-study-cta-inner::before {
    background: rgba(246, 178, 251, 0.35);
}

.theme-work .case-study-cta-inner::before {
    background: rgba(46, 2, 165, 0.14);
} */

.case-study-cta h2 {
    margin: 0 0 1rem 0;
}

.case-study-cta p {
    margin: 0 0 1.25rem 0;
}

@media (max-width: 800px) {
    .case-study-cta-inner {
        padding: 1.5rem;
    }

    .case-study-cta-inner::before {
        transform: translate(-8px, 8px);
    }
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    position: relative;
    padding-left: 1.2rem;
}

li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -0.05rem;
}