@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;1,400&family=Montserrat:wght@600&display=swap');
* {
    box-sizing: border-box;
}

:root {
    --text-color: hsla(0, 0%, 10%, 0.7);
    --accent-color: hsl(175, 54%, 46%);
    --dark-background: hsl(0, 0%, 12%);
    --footer-text-color: hsl(60, 6%, 45%);
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "EB Garamond", Georgia, serif;
}

/* Header */

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;

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

    padding: 18px 28px;

    color: white;
    font-weight: bold;
    letter-spacing: 1px;
	
	font-family: "Montserrat", Arial, sans-serif;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: white;
    text-decoration: none;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

.site-nav .contact-button {
    border: 2px solid white;
    border-radius: 999px;
    padding: 10px 18px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .contact-button:hover {
    background-color: white;
    color: hsl(0, 0%, 12%);
}

/* Hero */

.hero {
    min-height: 520px;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.42),
            rgba(0, 0, 0, 0.42)
        ),
        url("images/newport.webp");

    background-size: cover;
    background-position: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
}

.hero h1 {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.5;
    margin: 0 20px 18px;
}

.hero p {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.5;
    margin: 0 0 28px;
}

.hero a {
    display: inline-block;

    padding: 13px 25px;
    border-radius: 25px;

    background: hsl(175, 54%, 46%);
    color: white;

    font-family: "Montserrat", Arial, sans-serif;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Intro section */

.intro {
    padding: 80px 24px 90px;
    text-align: center;
}

.intro h2 {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 24px;
}

.intro p {
    max-width: 680px;
    margin: 0 auto;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.intro-links {
    margin-top: 20px;
    font-family: "Proxima Nova", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

.intro-links a {
    color: #222;
    text-decoration: none;
}

.intro-links a:hover {
    color: hsl(175, 54%, 46%);
}

.intro-links span {
    margin: 0 12px;
}

/* Homepage cards */

.home-cards {
    max-width: 1100px;
    margin: 80px auto 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.home-card {
    text-align: center;
}

.home-card img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.home-card h2 {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin: 24px 0 14px;
}

.home-card p {
    max-width: none;
    margin: 0 0 18px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.home-card a {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: hsl(175, 54%, 46%);
}

.home-card img.contact-image {
    object-fit: cover;
    object-position: center 25%;
}

.home-card h2 a {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    color: #222;
}

.home-card h2 a:hover {
    color: hsl(175, 54%, 46%);
}


/* Footer */

.site-footer {
    background: hsl(0, 0%, 12%);
    color: hsl(60, 6%, 45%);
    text-align: center;
    padding: 55px 20px;
}

.site-footer p {
    margin: 0;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
}

/* Mobile navigation */

@media (max-width: 700px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

	.site-nav {
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 10px 18px;
		padding-left: 10px;
	}
}

/* Interior page header */

.page-header {
    min-height: 220px;
    background: hsl(0, 0%, 12%);

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

    padding: 80px 24px 30px;
    text-align: center;
    color: white;
}

.page-header h1 {
    margin: 0;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
}

.contact-header {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.35)
        ),
        url("images/contact-waves.webp");

    background-size: cover;
    background-position: center;
}

/* Contact page */

.contact-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px 100px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.contact-photo img {
    display: block;
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.contact-info {
    text-align: center;
}

.contact-info h2 {
    margin: 0 0 24px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
}

.contact-info > p {
    margin: 0 auto 45px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    justify-content: center;
}

.contact-details p {
    margin: 0;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
}

.contact-details strong {
    font-weight: 400;
    font-size: 24px;
}

.contact-details a {
    color: hsl(175, 54%, 46%);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    color: hsl(175, 54%, 46%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.7;
}

.contact-info > .social-title {
    margin: 28px 0 12px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
}

.social-title strong {
    font-weight: 400;
    font-size: 24px;
}


/* About page */

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px 100px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-photo img {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-info {
    text-align: left;
}

.about-info h2 {
    margin: 0 0 24px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
}

.about-info p {
    margin: 0 0 20px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

/* About services */

.about-services {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;

    border-top: 1px solid #ddd;
}

.about-services h2 {
    margin: 0 0 40px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
}

.services-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.services-columns ul {
    margin: 0;
    padding-left: 24px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    line-height: 2;
}


/* About donation */

.about-donate {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 100px;

    border-top: 1px solid #ddd;
}

.about-donate p {
    margin: 0 0 32px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
}

.donate-button {
    display: inline-block;

    padding: 12px 28px;
    border-radius: 999px;

    background: hsl(175, 54%, 46%);
    color: white;

    font-family: "Proxima Nova", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;

    transition: opacity 0.2s ease;
}

.donate-button:hover {
    opacity: 0.75;
}

/* Tutorials page */

.tutorials-intro {
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 24px 80px;
    text-align: center;
}

.tutorials-intro p {
    margin: 0 auto 28px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
}

.tutorials-intro form {
    margin-top: 30px;
}


/* Tutorial list */

.tutorial-list {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

.tutorial-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;

    padding: 70px 0;
    border-top: 1px solid #ddd;
}

.tutorial-info {
    text-align: center;
}

.tutorial-info h2 {
    margin: 0 0 20px;

    font-family: "Proxima Nova", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tutorial-info p {
    margin: 0 0 32px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
}

.tutorial-image img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
}


/* Tutorial download buttons */

.tutorial-buttons {
    display: flex;
    justify-content: center;
    gap: 88px;
}

.tutorial-buttons a {
    display: inline-block;
    min-width: 120px;
    padding: 22px 36px;

    background: hsl(0, 0%, 15%);
    color: white;

    font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 60;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;

    transition: background-color 0.2s ease;
}

.tutorial-buttons a:hover {
    background: hsl(175, 54%, 46%);
}

/* ==================================================
   Gallery
   ================================================== */

.gallery-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 24px 110px;

    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 55px;
}


/* Gallery sidebar */

.gallery-sidebar {
    align-self: start;
    text-align: left;
}

.gallery-sidebar-title {
    display: block;
    margin-bottom: 12px;
    text-align: left;

    color: hsl(175, 54%, 46%);
    font-family: "EB Garamond", Georgia, serif;
    font-size: 24px;
    text-decoration: none;
}

.gallery-sidebar p {
    margin: 0 0 8px;
    text-align: left;

    font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.gallery-sidebar nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.gallery-sidebar nav a {
    text-align: left;

    color: hsl(60, 6%, 45%);
    font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;

    transition: color 0.2s ease;
}

.gallery-sidebar nav a:hover {
    color: hsl(175, 54%, 46%);
}

/* Gallery intro */

.gallery-intro {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

.gallery-intro h1 {
    margin: 0 0 20px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
}

.gallery-intro p {
    margin: 0;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
}


/* Carousel */

.gallery-carousel {
    width: 100%;
    overflow: hidden;
    margin-bottom: 90px;
}

.carousel-track {
    display: flex;
    width: max-content;

    animation: gallery-scroll 28s linear infinite;
}

.carousel-track img {
    width: 260px;
    height: 180px;

    object-fit: cover;
    flex-shrink: 0;
}

.gallery-carousel:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes gallery-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* Category rows */

.gallery-category {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 45px;
    align-items: center;

    padding: 70px 0;
    border-top: 1px solid #ddd;
}

.gallery-category-reverse .gallery-category-image {
    order: 2;
}

.gallery-category-reverse .gallery-category-info {
    order: 1;
}

.gallery-category-image img {
    display: block;

    width: 100%;
    max-height: 390px;

    object-fit: cover;
}

.gallery-category-info h2 {
    margin: 0 0 20px;

    color: hsl(175, 54%, 40%);

    font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-category-info p {
    margin: 0 0 18px;

    font-family: "Adobe Garamond Pro", "EB Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.6;
}

.gallery-category-info a {
    color: hsl(175, 54%, 40%);

    font-family: "EB Garamond", Georgia, serif;
    font-size: 17px;
    text-decoration: none;

    transition: opacity 0.2s ease;
}

.gallery-category-info a:hover {
    opacity: 0.65;
}

.gallery-category-info h2 a {
    color: inherit;
    text-decoration: none;
}

.gallery-category-info h2 a:hover {
    opacity: 0.65;
}

/* Gallery page header */

.gallery-page {
    padding-top: 72px;
}

body:has(.gallery-page) .site-header {
    background: hsl(0, 0%, 12%);
}

/* Clickable gallery category titles */

.gallery-category-info h2 a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.gallery-category-info h2 a:hover {
    opacity: 0.65;
}


/* Clickable gallery category images */

.gallery-category-image a {
    display: block;
}

.gallery-category-image a img {
    transition: opacity 0.2s ease;
}

.gallery-category-image a:hover img {
    opacity: 0.85;
}

/* ========================================
   CIRCUITS GALLERY
   ======================================== */

.circuits-page {
    width: 100%;
}


/* Intro */

.circuits-intro {
    margin-bottom: 90px;
    text-align: center;
}

.circuits-intro h1 {
    margin: 0 0 22px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
}

.circuits-intro p {
    margin: 0 auto 22px;
    max-width: 700px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
}

.circuits-intro a {
    color: hsl(175, 54%, 46%);
    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    text-decoration: none;
}


/* Project rows */

.circuit-project {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 45px;

    align-items: start;

    margin-bottom: 110px;
}


/* Project media */

.circuit-project-media {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.circuit-project-media img {
    display: block;

    width: 100%;
    max-width: 360px;
    max-height: 360px;

    object-fit: contain;
}

.circuit-project-media iframe {
    display: block;

    width: 360px;
    height: 203px;

    border: 0;
}


/* Project text */

.circuit-project-info h2 {
    margin: 0 0 18px;

    font-family: "proxima-nova",
                 "Helvetica Neue",
                 Helvetica,
                 Arial,
                 sans-serif;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.circuit-project-info p {
    margin: 0 0 35px;

    max-width: 440px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
}


/* Learn More button */

.circuit-learn-more {
    display: inline-block;
    float: right;

    padding: 17px 32px;

    color: white;
    background: hsl(0, 0%, 15%);

    font-family: "proxima-nova",
                 "Helvetica Neue",
                 Helvetica,
                 Arial,
                 sans-serif;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;

    transition: opacity 0.2s ease;
}

.circuit-learn-more:hover {
    opacity: 0.8;
}


/* Responsive */

@media (max-width: 850px) {

    .circuit-project {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .circuit-project-media img,
    .circuit-project-media iframe {
        max-width: 100%;
    }

    .circuit-project-media iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .circuit-project-info p {
        max-width: none;
    }

    .circuit-learn-more {
        float: none;
    }

}

/* ========================================
   UNDER CONSTRUCTION PAGE
   ======================================== */

.construction-page {
    position: relative;

    min-height: 520px;

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

    padding: 80px 30px;

    background-image: url("images/under-construction.webp");
    background-size: cover;
    background-position: center;

    text-align: center;
    color: white;
}


/* Dark overlay over background image */

.construction-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.48);
}


/* Content sits above overlay */

.construction-content {
    position: relative;
    z-index: 1;

    max-width: 900px;
}


.construction-content h1 {
    margin: 0 0 20px;

    font-family: "proxima-nova",
                 "Helvetica Neue",
                 Helvetica,
                 Arial,
                 sans-serif;

    font-size: 52px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}


.construction-content p {
    margin: 0 0 30px;

    font-family: "EB Garamond", Georgia, serif;
    font-size: 20px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.5;
}


.construction-button {
    display: inline-block;

    padding: 14px 28px;

    border-radius: 30px;

    background: hsl(175, 54%, 46%);
    color: white;

    font-family: "proxima-nova",
                 "Helvetica Neue",
                 Helvetica,
                 Arial,
                 sans-serif;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.construction-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


/* Mobile */

@media (max-width: 600px) {

    .construction-page {
        min-height: 450px;
        padding: 60px 20px;
    }

    .construction-content h1 {
        font-size: 36px;
    }

    .construction-content p {
        font-size: 18px;
    }

}