

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Special+Elite&display=swap');


/* -------------------------
   GENERAL
------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(85, 85, 85, 0.12),
            transparent 35%
        ),
        linear-gradient(
            rgba(10, 10, 10, 0.92),
            rgba(5, 5, 5, 0.98)
        ),
        #080808;

    color: #c5c0b9;

    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    line-height: 1.6;

    overflow-x: hidden;
}


/* subtle grain across the entire page */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: 9999;

    opacity: 0.035;

    background-image:
        repeating-radial-gradient(
            circle at 0 0,
            #ffffff 0,
            #ffffff 1px,
            transparent 1px,
            transparent 4px
        );
}


/* -------------------------
   LINKS
------------------------- */

a {
    color: #aaa39c;
    text-decoration: none;

    transition:
        color 0.3s ease,
        text-shadow 0.3s ease;
}

a:hover {
    color: #eeeeee;

    text-shadow:
        0 0 5px rgba(220, 220, 220, 0.35);
}


/* -------------------------
   RAIN OVERLAY
------------------------- */

.rain {
    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: 50;

    opacity: 0.10;

    background-image:
        repeating-linear-gradient(
            105deg,
            transparent 0px,
            transparent 45px,
            rgba(190, 190, 190, 0.18) 46px,
            transparent 47px
        );

    animation: rainMove 1.8s linear infinite;
}

@keyframes rainMove {

    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 120px;
    }
}


/* -------------------------
   MAIN WEBSITE CONTAINER
------------------------- */

.wrapper {

    width: min(1000px, 92%);

    margin: 45px auto;

    background:
        rgba(12, 12, 12, 0.96);

    border:
        1px solid #343434;

    box-shadow:
        0 0 45px rgba(0, 0, 0, 0.9),
        inset 0 0 60px rgba(255, 255, 255, 0.015);
}


/* -------------------------
   HEADER
------------------------- */

header {

    position: relative;

    min-height: 350px;

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

    padding: 60px 25px;

    text-align: center;

    overflow: hidden;

    border-bottom:
        1px solid #343434;

    background:
        linear-gradient(
            rgba(8, 8, 8, 0.45),
            rgba(8, 8, 8, 0.94)
        ),
        radial-gradient(
            circle,
            #292929,
            #080808 72%
        );
}


/* vertical line behind title */

header::after {

    content: "";

    position: absolute;

    width: 1px;
    height: 100%;

    top: 0;
    left: 50%;

    background:
        linear-gradient(
            transparent,
            #555,
            transparent
        );

    opacity: 0.2;
}


.header-content {

    position: relative;

    z-index: 2;

    max-width: 800px;
}


/* tiny uppercase heading */

.small-title {

    font-family:
        "Special Elite",
        monospace;

    font-size: 12px;

    letter-spacing: 5px;

    text-transform: uppercase;

    color: #777;
}


/* giant title */

h1 {

    margin:
        18px 0;

    color: #d4cec6;

    font-size:
        clamp(45px, 8vw, 82px);

    font-weight: 400;

    line-height: 0.9;

    text-shadow:
        0 3px 15px #000;
}


/* subtitle */

.subtitle {

    color: #85807b;

    font-size: 20px;

    font-style: italic;
}


/* -------------------------
   NAVIGATION
------------------------- */

nav {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 4px;

    padding: 12px;

    background: #101010;

    border-bottom:
        1px solid #303030;
}

nav a {

    padding:
        8px 18px;

    color: #777;

    font-family:
        "Special Elite",
        monospace;

    font-size: 11px;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition:
        0.3s ease;
}

nav a:hover {

    background: #242424;

    color: #ddd;

    text-shadow: none;
}


/* -------------------------
   CONTENT
------------------------- */

.content {

    padding: 35px;
}


.section {

    margin-bottom: 45px;
}


.section-title {

    margin-bottom: 25px;

    padding-bottom: 10px;

    color: #8e8983;

    border-bottom:
        1px solid #333;

    font-family:
        "Special Elite",
        monospace;

    font-size: 13px;

    letter-spacing: 4px;

    text-transform: uppercase;
}


/* -------------------------
   BOXES
------------------------- */

.box {

    padding: 25px;

    background:
        rgba(25, 25, 25, 0.55);

    border:
        1px solid #303030;

    box-shadow:
        inset 0 0 25px rgba(255, 255, 255, 0.01);
}


.box p {

    line-height: 1.75;
}


/* -------------------------
   DROP CAP
------------------------- */

.dropcap:first-letter {

    float: left;

    padding-right: 8px;

    color: #aaa39b;

    font-size: 48px;

    line-height: 35px;
}


/* -------------------------
   IMAGE / PHOTO AREAS
------------------------- */

.photo {

    position: relative;

    min-height: 250px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.7)
        ),
        radial-gradient(
            circle,
            #454545,
            #151515 65%
        );

    filter: grayscale(1);
}


/* placeholder text */

.photo::before {

    content:
        "there used to be someone here";

    color: #777;

    font-family:
        "Special Elite",
        monospace;

    font-size: 11px;

    letter-spacing: 2px;

    text-align: center;
}


/* photograph border */

.photo::after {

    content: "";

    position: absolute;

    inset: 15px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    pointer-events: none;
}


/* -------------------------
   MEMORIAL SECTION
------------------------- */

.memorial {

    padding:
        45px 20px;

    text-align: center;

    background:
        radial-gradient(
            circle,
            #1c1c1c,
            #0d0d0d
        );

    border-top:
        1px solid #292929;

    border-bottom:
        1px solid #292929;
}


.memorial .symbol {

    margin-bottom: 15px;

    color: #666;

    font-size: 25px;
}


.memorial h2 {

    margin: 10px;

    color: #bcb6ae;

    font-size: 32px;

    font-weight: 400;
}


.memorial p {

    color: #74706c;

    font-style: italic;
}


/* -------------------------
   MEMORY / NOTE CARDS
------------------------- */

.notes {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}


.note {

    min-height: 150px;

    padding: 20px;

    background: #181818;

    border:
        1px solid #292929;

    transform:
        rotate(-1deg);

    transition:
        0.3s ease;
}


.note:nth-child(2) {

    transform:
        rotate(1deg);
}


.note:nth-child(3) {

    transform:
        rotate(-2deg);
}


.note:hover {

    transform:
        rotate(0deg)
        translateY(-5px);

    border-color: #444;
}


.note span {

    display: block;

    margin-bottom: 12px;

    color: #666;

    font-family:
        "Special Elite",
        monospace;

    font-size: 10px;
}


.note p {

    color: #a19b94;

    font-style: italic;
}


/* -------------------------
   QUOTES
------------------------- */

.quote {

    margin:
        30px 0;

    padding:
        15px 25px;

    color: #888;

    border-left:
        2px solid #555;

    font-size: 21px;

    font-style: italic;
}


/* -------------------------
   LISTS
------------------------- */

ul {

    padding-left: 25px;

    color: #999;
}


li {

    margin:
        6px 0;
}


li::marker {

    color: #555;
}


/* -------------------------
   LINK GRID
------------------------- */

.links {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;
}


.links a {

    display: block;

    padding: 15px;

    background: #121212;

    border:
        1px solid #292929;

    transition:
        0.3s ease;
}


.links a:hover {

    padding-left: 22px;

    background: #1e1e1e;

    border-color: #444;
}


.links small {

    display: block;

    margin-top: 4px;

    color: #555;

    font-size: 12px;
}


/* -------------------------
   FOOTER
------------------------- */

footer {

    padding: 30px;

    color: #4f4f4f;

    text-align: center;

    font-family:
        "Special Elite",
        monospace;

    font-size: 10px;

    letter-spacing: 2px;

    border-top:
        1px solid #292929;
}


.footer-eye {

    margin-top: 12px;

    color: #666;

    font-size: 15px;

    opacity: 0.4;
}


/* -------------------------
   SUBTLE FLICKER
------------------------- */

.flicker {

    animation:
        subtleFlicker 5s infinite;
}


@keyframes subtleFlicker {

    0%,
    18%,
    20%,
    63%,
    65%,
    100% {
        opacity: 1;
    }

    19%,
    64% {
        opacity: 0.75;
    }
}


/* -------------------------
   OLD PHOTOGRAPH EFFECT
------------------------- */

.old-photo {

    filter:
        grayscale(100%)
        contrast(85%)
        brightness(75%);

    opacity: 0.82;

    border:
        8px solid #1b1b1b;

    box-shadow:
        0 0 0 1px #444,
        0 10px 30px rgba(0,0,0,0.7);
}


/* -------------------------
   HANDWRITTEN TEXT
------------------------- */

.handwritten {

    color: #99928b;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 21px;

    font-style: italic;

    transform:
        rotate(-1deg);
}


/* -------------------------
   SEPARATORS
------------------------- */

.divider {

    width: 70%;

    height: 1px;

    margin:
        35px auto;

    background:
        linear-gradient(
            90deg,
            transparent,
            #444,
            transparent
        );
}


/* -------------------------
   MOBILE
------------------------- */

@media (max-width: 700px) {

    body {
        font-size: 16px;
    }


    .wrapper {

        width: 96%;

        margin:
            15px auto;
    }


    .content {

        padding: 20px;
    }


    header {

        min-height: 300px;

        padding:
            45px 20px;
    }


    h1 {

        font-size:
            clamp(45px, 15vw, 70px);
    }


    .subtitle {

        font-size: 17px;
    }


    nav {

        gap: 2px;
    }


    nav a {

        padding:
            8px 10px;

        font-size: 10px;
    }


    .intro,
    .notes,
    .links {

        grid-template-columns: 1fr;
    }


    .note:nth-child(n) {

        transform:
            rotate(-0.5deg);
    }


    .photo {

        min-height: 200px;
    }


    .memorial h2 {

        font-size: 27px;
    }


    .quote {

        padding-left: 18px;

        font-size: 19px;
    }
}


/* -------------------------
   VERY SMALL PHONES
------------------------- */

@media (max-width: 400px) {

    .wrapper {

        width: 98%;
    }


    .content {

        padding: 15px;
    }


    header {

        min-height: 260px;
    }


    nav a {

        font-size: 9px;

        letter-spacing: 1px;

        padding:
            7px 8px;
    }


    .section-title {

        font-size: 11px;

        letter-spacing: 3px;
    }
}