@font-face {
    font-family: InterDisplay;
    src: url(../fonts/InterDisplay-Regular.otf);
    font-weight: 400;
}

@font-face {
    font-family: InterDisplay;
    src: url(../fonts/InterDisplay-SemiBold.otf);
    font-weight: 600;
}

@font-face {
    font-family: InterDisplay;
    src: url(../fonts/InterDisplay-Bold.otf);
    font-weight: 700;
}

:root {
    --navy: #142f3f;
    --white: #fff;
    --soft: #dbe3e8;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--navy);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--navy);
    color: var(--white);
    font-family: InterDisplay, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
}

main {
    width: min(1180px, calc(100% - 48px));
    margin: auto;
}


/* =========================================================
   HOMEPAGE HEADER
   ========================================================= */

.hero-title,
.page-title {
    text-align: center;
    padding: 55px 0 42px;
}

.hero-title p,
.page-title p {
    margin: 0;
    font-size: clamp(18px, 2vw, 26px);
}

h1 {
    font-size: clamp(44px, 6vw, 78px);
    line-height: 1.02;
    margin: 10px 0;
}

.hero-title .dates {
    font-size: clamp(24px, 3vw, 38px);
    letter-spacing: .04em;
}


/* =========================
   HOMEPAGE TRIBUTE
   ========================= */

.tribute {
    display: grid;
    grid-template-columns: minmax(300px, 430px) minmax(360px, 470px);
    justify-content: center;
    align-items: start;
    gap: 70px;
    max-width: 1020px;
    margin: 0 auto;
}

/* Dave portrait — 4:5, lowered to align with tribute text */
.tribute > img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 28%;
    margin-top: 48px;
}

.tribute-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.18;
    min-height: 500px;
    padding-top: 48px;
}

.tribute-copy p {
    margin: 0;
}

/* =========================
   HOMEPAGE LOGOS
   ========================= */

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 34px;
    margin: 48px auto 20px;
}

.logos img {
    object-fit: contain;
}

/* Secure Source — intentionally larger */
.logos img:first-child {
    width: 205px;
    height: 90px;
}

/* Marine Corps */
.logos img:last-child {
    width: 82px;
    height: 82px;
}


/* =========================================================
   LOGOS
   ========================================================= */

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 52px auto 20px;
}

.logos img {
    width: 150px;
    height: 80px;
    object-fit: contain;
}


/* =========================================================
   NAVIGATION / FOOTER
   ========================================================= */

.site-nav {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 52px);
    flex-wrap: wrap;
    width: min(1000px, calc(100% - 40px));
    margin: 52px auto 0;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
}

.site-nav a:hover,
.site-nav a:focus {
    text-decoration: underline;
}

footer {
    text-align: center;
    font-size: 12px;
    opacity: .55;
    padding: 0 20px 32px;
}


/* =========================================================
   INNER PAGE TITLES
   ========================================================= */

.page-title h1 {
    font-size: clamp(48px, 6vw, 80px);
}

.page-title .intro {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 22px;
}

.page-title .intro span {
    font-size: 14px;
    opacity: .75;
}

/* =========================================================
   PHOTO GALLERY
   ========================================================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.photo {
    padding: 0;
    border: 0;
    background: none;
    cursor: default;
    overflow: hidden;
    border-radius: 18px;
    min-height: 240px;
}

.photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.photo:hover img {
    transform: scale(1.025);
}

.photo:nth-child(1),
.photo:nth-child(2),
.photo:nth-child(3) {
    grid-column: span 4;
}

.photo:nth-child(4),
.photo:nth-child(6) {
    grid-column: span 3;
}

.photo:nth-child(5) {
    grid-column: span 6;
}

.photo:nth-child(7),
.photo:nth-child(8),
.photo:nth-child(9) {
    grid-column: span 4;
}

.photo:nth-child(10) {
    grid-column: span 4;
}

.photo:nth-child(11) {
    grid-column: span 8;
}


/* =========================================================
   COMING SOON / BOOK PAGE
   ========================================================= */

.short-page {
    min-height: 62vh;
}

.coming {
    text-align: center;
    max-width: 780px;
    margin: 45px auto 110px;
}

.coming h2 {
    font-size: clamp(32px, 5vw, 58px);
    margin: 0 0 55px;
}

.coming p {
    font-size: clamp(18px, 2.3vw, 28px);
    line-height: 1.45;
}


/* =========================================================
   LEAVE A MEMORY
   ========================================================= */

.memory-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    max-width: 760px;
    margin: 0 auto;
}

.memory-form {
    display: grid;
    gap: 20px;
    width: 100%;
    background: rgba(255, 255, 255, .055);
    padding: 30px;
    border-radius: 16px;
}

.memory-form label {
    display: grid;
    gap: 8px;
    font-size: 16px;
}

.memory-form input,
.memory-form textarea {
    width: 100%;
    font: inherit;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 8px;
    padding: 13px;
    background: #fff;
    color: #142f3f;
}

.memory-form textarea {
    resize: vertical;
}

.memory-form small {
    font-weight: 400;
    opacity: .7;
}

.submit {
    justify-self: center;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #142f3f;
    padding: 13px 22px;
    font: inherit;
    cursor: pointer;
}

.notice {
    margin: 0;
}

.hp {
    position: absolute;
    left: -9999px;
}

.approved {
    width: 100%;
    text-align: center;
}

.approved h2 {
    margin-top: 0;
}

.memory-card {
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding: 24px 0;
}

.memory-card img {
    max-width: 220px;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.memory-card blockquote {
    font-weight: 400;
    line-height: 1.55;
    margin: 15px 0;
}

.muted {
    opacity: .65;
    font-weight: 400;
}

.memory-success {
    width: 100%;
    max-width: 700px;
    margin: 20px auto 30px;
    padding: 45px 35px;
    text-align: center;
    background: rgba(255, 255, 255, .055);
    border-radius: 16px;
}

.memory-success h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3vw, 34px);
}

.memory-success p {
    margin: 0 0 28px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.memory-again {
    display: inline-block;
    color: #142f3f;
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 760px) {

    main {
        width: min(calc(100% - 30px), 620px);
    }

    .hero-title,
    .page-title {
        padding: 38px 0 30px;
    }

    .tribute {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 520px;
    }

    /*
       Keep the portrait treatment on mobile, but prevent
       the photograph from becoming excessively large.
    */
    .tribute-photo,
    .tribute > img {
        width: min(100%, 420px);
        margin: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        object-position: center 28%;
    }

    .tribute-copy {
        font-size: 18px;
    }

    .logos {
        margin-top: 34px;
    }

    .logos img {
        width: 120px;
    }

    .site-nav {
        gap: 12px 22px;
        margin-top: 38px;
    }

    .site-nav a {
        font-size: 15px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .photo,
    .photo:nth-child(n) {
        grid-column: span 1;
        min-height: 180px;
        border-radius: 12px;
    }

    .photo:nth-child(5),
    .photo:nth-child(11) {
        grid-column: span 2;
        min-height: 230px;
    }

    .memory-layout {
        width: 100%;
        gap: 44px;
    }

    .coming {
        margin-top: 20px;
    }

    .coming h2 {
        margin-bottom: 35px;
    }
    
    /* Homepage mobile layout */
.tribute {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    max-width: 100%;
}

.tribute > img {
    width: 88%;
    max-width: 430px;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 28%;
    margin: 0 auto;
}

.tribute-copy {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 18px;
    line-height: 1.25;
}

.tribute-copy p {
    margin: 0 0 30px;
}

.tribute-copy p:last-child {
    margin-bottom: 0;
}

.logos {
    margin-top: 44px;
}
    
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 460px) {

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

    .photo,
    .photo:nth-child(n) {
        grid-column: span 1;
        min-height: 260px;
    }

    .logos {
        gap: 10px;
    }

    .logos img {
        width: 105px;
    }

    .site-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .tribute-copy br {
        display: none;
    }
}