@import url('./colors.css');

html,
body {
    width: 100%;
    max-width: 100%;
}

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

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0px;
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    --section-space-y: 2rem;
    --section-space-y-mobile: 1.25rem;
    --hover-duration: 220ms;
    --hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hover-lift-card: -6px;
    --hover-lift-button: -3px;
    --content-max-wide: 1200px;
    --content-max-reading: 980px;
    --content-max-narrow: 760px;
}

.page-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
    width: 100%;
}

.content-width-wide {
    width: 100%;
    max-width: var(--content-max-wide);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.content-width-reading {
    width: 100%;
    max-width: var(--content-max-reading);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.content-width-narrow {
    width: 100%;
    max-width: var(--content-max-narrow);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

@media (max-width: 768px) {

    .content-width-wide,
    .content-width-reading,
    .content-width-narrow {
        padding-inline: 1rem;
    }
}

@media (max-width: 480px) {

    .content-width-wide,
    .content-width-reading,
    .content-width-narrow {
        padding-inline: 0.75rem;
    }
}

.section-header {
    width: 100%;
    margin-inline: auto;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.section-header__eyebrow {
    margin: 0;
    color: var(--acc);
    font-family: var(--font-family);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.section-header__title {
    margin: 0;
    color: var(--fg);
    font-family: var(--font-family);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.section-header__subtitle {
    margin: 0 auto;
    max-width: 70ch;
    color: var(--fg);
    opacity: 0.9;
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
}

.section-meta {
    width: 100%;
    margin: 0 auto 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.section-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--acc-card);
    background: var(--readability);
    color: var(--fg);
    font-family: var(--font-family);
    font-size: 0.82rem;
    line-height: 1;
}

.section-meta__item i {
    color: var(--acc);
    font-size: 0.85rem;
}

.section-meta--on-media .section-meta__item {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.accent-callout {
    border-left: 4px solid var(--acc);
    border-radius: 0.85rem;
    background: var(--readability);
    padding: 1rem 1.15rem;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.site-page-meta {
    padding-block: 0.9rem;
}

.site-section-divider,
.home-section-divider {
    position: relative;
}

.site-section-divider::before,
.home-section-divider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--content-max-wide), calc(100% - 3rem));
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--acc-card) 22%,
            var(--acc) 50%,
            var(--acc-card) 78%,
            transparent 100%);
    opacity: 0.55;
    z-index: 3;
    pointer-events: none;
}

.page-content> :is(section.page-section,
    section.page-section-pattern,
    section.page-section-scrollable,
    section.featured-interests,
    section.about-section,
    section.cta-section,
    section.filter-bar,
    section.gallery-section,
    section.project-collab-wrap,
    section.project-cards-wrap,
    .load-more-container,
    div.page-section,
    section.site-page-meta,
    section.success-wrapper,
    .tbd-container) {
    position: relative;
    width: 100%;
}

@media (max-width: 480px) {
    .page-content {
        width: 100vw;
        overflow-x: hidden;
    }

    .page-content> :is(section.page-section,
        section.page-section-pattern,
        section.page-section-scrollable,
        section.featured-interests,
        section.about-section,
        section.cta-section,
        section.filter-bar,
        section.gallery-section,
        section.project-collab-wrap,
        section.project-cards-wrap,
        .load-more-container,
        div.page-section,
        section.site-page-meta,
        section.success-wrapper,
        .tbd-container) {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.page-content> :is(section.page-section,
    section.page-section-pattern,
    section.page-section-scrollable,
    section.featured-interests,
    section.about-section,
    section.cta-section,
    section.filter-bar,
    section.gallery-section,
    section.project-collab-wrap,
    section.project-cards-wrap,
    .load-more-container,
    div.page-section,
    section.site-page-meta,
    section.success-wrapper,
    .tbd-container)+ :is(section.page-section,
    section.page-section-pattern,
    section.page-section-scrollable,
    section.featured-interests,
    section.about-section,
    section.cta-section,
    section.filter-bar,
    section.gallery-section,
    section.project-collab-wrap,
    section.project-cards-wrap,
    .load-more-container,
    div.page-section,
    section.site-page-meta,
    section.success-wrapper,
    .tbd-container)::before,
.page-content>a+ :is(section.page-section,
    section.page-section-pattern,
    section.page-section-scrollable,
    section.featured-interests,
    section.about-section,
    section.cta-section,
    section.filter-bar,
    section.gallery-section,
    section.project-collab-wrap,
    section.project-cards-wrap,
    .load-more-container,
    div.page-section,
    section.site-page-meta,
    section.success-wrapper,
    .tbd-container)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--content-max-wide), calc(100% - 3rem));
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--acc-card) 22%,
            var(--acc) 50%,
            var(--acc-card) 78%,
            transparent 100%);
    opacity: 0.55;
    pointer-events: none;
}

.page-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    justify-items: center;
    width: 100%;
    gap: 1.5rem;
    margin-inline: 0;
    margin-block: 0;
    padding-inline: 1.5rem;
    padding-block: var(--section-space-y);
    height: min-content;
}

.page-section h1 {
    margin-top: 1.5rem;
    margin-bottom: 0;
    text-align: center;
    color: var(--fg);
    font-family: var(--font-family);
    margin-inline: 3rem;
    max-width: 1000px;
    text-wrap: inherit;
}

.page-section-pattern {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    justify-items: center;
    flex-grow: 1;
    width: 100%;
    gap: 1.5rem;
    margin-inline: 0;
    margin-block: 0;
    padding-inline: 1.5rem;
    padding-block: var(--section-space-y);
    height: min-content;

    background: var(--pattern-background);
    background-size: var(--pattern-size);
}

.page-section-pattern h1 {
    margin-top: 1.5rem;
    margin-bottom: 0;
    text-align: center;
    color: var(--fg);
    font-family: var(--font-family);
    margin-inline: 3rem;
    max-width: 1000px;
    text-wrap: inherit;
}

.page-section-scrollable {
    margin-inline: 0;
    margin-block: 0;
    padding-inline: 1.5rem;
    padding-block: var(--section-space-y);
    height: 60vh;
    width: 100%;
    display: inline;
    justify-content: center;
    align-items: center;
    justify-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid transparent;
}

.page-section-scrollable h1 {
    margin-top: 1.5rem;
    margin-bottom: 0;
    text-align: center;
    color: var(--fg);
    font-family: var(--font-family);
    margin-inline: 3rem;
    max-width: 1000px;
    text-wrap: inherit;
}

.page-section-scrollable::-webkit-scrollbar {
    display: none;
}

.default-button {
    background: var(--acc);
    color: var(--fg-dark);
    border: none;
    border-radius: 8px;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-family);
    cursor: pointer;
    align-self: center;
    transition: transform var(--hover-duration) var(--hover-ease), filter var(--hover-duration) var(--hover-ease);
    margin: 1.5rem;
    text-decoration: none;
    display: inline-block;
}

.redirect-button {
    background: var(--acc);
    color: var(--fg-dark);
    border: none;
    border-radius: 8px;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-family);
    cursor: pointer;
    align-self: center;
    transition: transform var(--hover-duration) var(--hover-ease), filter var(--hover-duration) var(--hover-ease);
    margin: 1.5rem;
    text-decoration: none;
    display: inline-block;
}

.default-button:hover,
.redirect-button:hover {
    filter: brightness(0.94);
    transform: translateY(var(--hover-lift-button));
}

@media (max-width: 900px) {

    .section-header {
        margin-bottom: 1.5rem;
        gap: 0.45rem;
    }

    .section-header__eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    .section-meta {
        margin-bottom: 1.4rem;
        gap: 0.5rem;
    }

    .section-meta__item {
        font-size: 0.78rem;
        padding: 0.38rem 0.7rem;
    }

    .accent-callout {
        padding: 0.9rem 0.95rem;
    }

    .site-section-divider::before,
    .home-section-divider::before,
    .page-content> :is(section.page-section,
        section.page-section-pattern,
        section.page-section-scrollable,
        section.featured-interests,
        section.about-section,
        section.cta-section,
        section.filter-bar,
        section.gallery-section,
        section.project-collab-wrap,
        section.project-cards-wrap,
        .load-more-container,
        div.page-section,
        section.site-page-meta,
        section.success-wrapper,
        .tbd-container)+ :is(section.page-section,
        section.page-section-pattern,
        section.page-section-scrollable,
        section.featured-interests,
        section.about-section,
        section.cta-section,
        section.filter-bar,
        section.gallery-section,
        section.project-collab-wrap,
        section.project-cards-wrap,
        .load-more-container,
        div.page-section,
        section.site-page-meta,
        section.success-wrapper,
        .tbd-container)::before,
    .page-content>a+ :is(section.page-section,
        section.page-section-pattern,
        section.page-section-scrollable,
        section.featured-interests,
        section.about-section,
        section.cta-section,
        section.filter-bar,
        section.gallery-section,
        section.project-collab-wrap,
        section.project-cards-wrap,
        .load-more-container,
        div.page-section,
        section.site-page-meta,
        section.success-wrapper,
        .tbd-container)::before {
        width: calc(100% - 2rem);
    }

    .page-section,
    .page-section-pattern {
        flex-direction: column;
        gap: 1rem;
        padding-inline: 1rem;
        padding-block: var(--section-space-y-mobile);
    }

    .page-section h1,
    .page-section-pattern h1,
    .page-section-scrollable h1 {
        margin-inline: 0;
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-section-scrollable {
        height: auto;
        max-height: none;
        padding-inline: 1rem;
        padding-block: var(--section-space-y-mobile);
    }

    .default-button,
    .redirect-button {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}