.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(4.5rem, 10vw, 6.25rem);
    padding: 0.5rem clamp(0.35rem, 1.5vw, 1.5rem);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    color: black;
    z-index: 1000;
    flex-wrap: nowrap;
    gap: 0.5rem;
    font-size: clamp(0.75rem, 2.5vw, 2rem);
    line-height: 1.25;
    font-family: "Courier New", monospace;
    border-bottom: 5px solid teal;
    font-weight: bold;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(1rem, 4vw, 3rem);
    min-height: clamp(0.5rem, 2vw, 2rem);
    padding: 0.65rem 1rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: black;
    z-index: 1000;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: clamp(0.25rem, 1vw, 0.75rem);
    line-height: 1;
    font-family: "Courier New", monospace;
    border-top: 5px solid teal;
}

.fixed-footer p {
    margin: 0;
    line-height: 1;
    font-size: clamp(0.65rem, 1vw, 0.85rem);
}

.header-title {
    min-width: 0;
    flex: 0 1 auto;
    overflow-wrap: anywhere;
    font-size: clamp(0.75rem, 2.5vw, 1.75rem);
    font-weight: bold;
    color: black;
}

.header-links {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    gap: clamp(0.15rem, 0.8vw, 0.5rem);
    overflow-x: auto;
}

.button {
    flex: 0 0 clamp(3.75rem, 5vw, 5rem);
    background-color: teal;
    color: white;
    padding: clamp(0.1rem, 1vw, 0.4rem) clamp(0.15rem, 0.75vw, 0.5rem);
    font-size: clamp(0.6rem, 2vw, 1rem);
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    border-radius: 2px;
    border: 2px solid black;
}

.button1 {
    background-color: teal;
    color: white;
    padding: clamp(0.3rem, 2vw, 0.7rem) clamp(0.5rem, 4vw, 1.5rem);
    min-width: clamp(10rem, 16vw, 14rem);
    min-height: clamp(3.5rem, 5vw, 4.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: bold;
    border-radius: 3px;
    border: 2px solid black;
    width: fit-content;
    margin: 2rem auto;
}

body {
    background-color: lightblue;
    font-family: "Georgia", "Courier New", monospace;
    padding-bottom: 6rem;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-top: 0;
    text-align: center;
    padding-top: 7rem;
}

h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-top: 0;
    text-align: center;
    padding-bottom: 0.5rem;
}

p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 2;
}

a {
    text-decoration: none;
}

hr,
#project-page hr {
    width: 90%;
    margin: 2.5rem auto;
    height : 4px;
    background-color: teal;
    border: none;
}

.featured-carousel {
    --project-card-gap: clamp(1rem, 2vw, 1.5rem);
    width: min(calc(100% - 2rem), 72rem);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    align-items: center;
    gap: 0.5rem;
}

.project-carousel-track {
    min-width: 0;
    display: flex;
    gap: var(--project-card-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.project-carousel-track::-webkit-scrollbar {
    display: none;
}

.project-carousel-track[data-card-count="1"] .project-card {
    flex-basis: 100%;
}

.project-carousel-track[data-card-count="2"] .project-card {
    flex-basis: calc((100% - var(--project-card-gap)) / 2);
}

.carousel-empty {
    flex: 0 0 100%;
    margin: 0;
    padding: 1rem;
    text-align: center;
}

.carousel-control {
    width: 2.75rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 0;
    border: 2px solid teal;
    border-radius: 2px;
    background: white;
    color: teal;
    font: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

.carousel-control:hover:not(:disabled) {
    background: teal;
    color: white;
}

.carousel-control:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.project-card {
    flex: 0 0 calc((100% - var(--project-card-gap) - var(--project-card-gap)) / 3);
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    scroll-snap-align: start;
}

@media (max-width: 900px) {
    .project-card {
        flex-basis: calc((100% - var(--project-card-gap)) / 2);
    }
}

@media (max-width: 600px) {
    .project-card,
    .project-carousel-track[data-card-count="2"] .project-card {
        flex-basis: 100%;
    }
}

.all-projects-page {
    padding-bottom: 2rem;
}

.all-projects-grid {
    width: min(calc(100% - 2rem), 72rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    align-items: stretch;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

#project-image {
    display: block;
    width: min(90%, 48rem);
    aspect-ratio: 16 / 12;
    object-fit: cover;
    margin: 1rem auto;
    border-radius: 8px;
    border: 4px solid teal;
}

.project-detail-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.project-detail-meta p {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.3;
}

.project-list-detail {
    margin-block: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 2;
}

.project-detail-list {
    margin: 0.35rem 0 0;
    padding-left: 1.5rem;
    line-height: inherit;
}

.project-detail-list li + li {
    margin-top: 0.2rem;
}

.project-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(0.875rem, 2.5vw, 1.25rem);
}

.project-info h3 {
    margin: 0 0 0.5rem;
    min-height: 2.4em;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.project-categories,
.project-description {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.project-categories {
    display: -webkit-box;
    min-height: 3em;
    margin: 0 0 0.5rem;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.project-description {
    display: -webkit-box;
    min-height: 4.5em;
    margin: 0;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.project-meta {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    min-height: 1.5em;
    margin-top: auto;
    text-align: center;
    line-height: 1.5;
    overflow-wrap: anywhere;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
}

.project-description {
    color: #555;
}

.project-link {
    display: inline-block;
    min-height: 1.5em;
    margin-top: 0.5rem;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.5;
    color: teal;
}

.project-link:visited {
    color: teal;
}

#project-log {
    margin-block: 1em;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 2;
    white-space: pre-wrap;
}

.project-log-media {
    margin: 1rem 0;
}

.project-log-media img,
.project-log-media video {
    display: block;
    width: min(100%, 48rem);
    max-height: 65vh;
    height: auto;
    object-fit: contain;
    margin-inline: auto;
}

.project-log-media iframe {
    display: block;
    width: min(100%, 48rem);
    aspect-ratio: 16 / 9;
    border: 0;
    margin-inline: auto;
}

.project-year {
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    color: #888;
}

.about-page {
    width: min(calc(100% - 2rem), 68rem);
    margin: 0 auto;
    padding: 7rem 0 2rem;
}

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(13rem, 0.8fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
}

.about-page h1 {
    padding-top: 0;
    margin: 0 0 1rem;
    text-align: left;
}

.about-page h2 {
    margin: 0 0 1rem;
    text-align: left;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.about-page p {
    margin: 0 0 1rem;
}

.about-kicker {
    margin-bottom: 0.5rem !important;
    color: #006b68;
    font-family: "Courier New", monospace;
    font-size: 0.95rem !important;
    font-weight: bold;
    line-height: 1.4 !important;
    text-transform: uppercase;
}

.about-lede {
    font-size: clamp(1.2rem, 2.5vw, 1.65rem) !important;
    line-height: 1.55 !important;
}

.about-portrait {
    margin: 0;
}

.about-portrait-frame {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    border: 4px solid teal;
    box-sizing: border-box;
    background-color: #d7e8e7;
    object-fit: cover;
}

.about-portrait figcaption {
    margin-top: 0.5rem;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    font-weight: bold;
}

.about-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.65rem 1rem;
    border: 2px solid black;
    border-radius: 2px;
    background-color: teal;
    color: white;
    font-weight: bold;
}

.about-section {
    margin-top: clamp(3rem, 7vw, 5rem);
    padding-top: 1.5rem;
    border-top: 4px solid teal;
}

.about-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.about-focus-grid h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.about-focus-grid p {
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 650px) {
    .about-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .about-portrait {
        width: min(100%, 22rem);
        margin-inline: auto;
    }

    .about-focus-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem;
    }
}
