* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f3f1eb;
    color: #171717;
    font-family: Georgia, "Times New Roman", serif;
    min-height: 100vh;
}

/* HEADER */

header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #171717;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #171717;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 0.15em;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 1;
}

/* MAIN */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* HOMEPAGE */

.hero {
    padding: 80px 0 140px;
}

h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12vw;
    letter-spacing: -0.08em;
    line-height: 0.8;
    margin: 0 0 40px 0;
    font-weight: 700;
}

.eyebrow {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    opacity: 0.5;
    margin-bottom: 25px;
}

.intro {
    font-size: 28px;
    max-width: 600px;
    line-height: 1.3;
}

/* SUBMISSION */

.submit-section {
    padding: 100px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.section-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
}

.submit-section h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 5vw, 60px);
    font-weight: normal;
    line-height: 1.15;
    max-width: 800px;
    margin: 50px 0 20px;
}

.instruction {
    opacity: 0.55;
    margin-bottom: 40px;
}

textarea {
    width: 100%;
    min-height: 220px;
    resize: vertical;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: transparent;
    color: #171717;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.5;
    outline: none;
}

textarea:focus {
    border-color: #171717;
}

.submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

#character-count {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    opacity: 0.45;
}

#submit-button {
    border: none;
    background: #171717;
    color: #f3f1eb;
    padding: 14px 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    cursor: pointer;
}

#submit-button:hover {
    opacity: 0.75;
}

#message {
    font-size: 14px;
    margin-top: 20px;
}

/* HOMEPAGE SECTIONS */

.placeholder-section {
    padding: 100px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.placeholder-section h2 {
    font-size: clamp(30px, 5vw, 60px);
    font-weight: normal;
    line-height: 1.15;
    max-width: 700px;
}

/* ARCHIVE LINK */

.archive-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.archive-link:hover {
    opacity: 0.55;
}

.archive-link h2 {
    margin-bottom: 25px;
}

.archive-arrow {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
}

/* ARCHIVE PAGE */

.archive {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 30px 120px;
}

.archive-intro {
    max-width: 700px;
    margin-bottom: 100px;
}

.archive-intro h1 {
    font-size: clamp(60px, 10vw, 130px);
    line-height: 0.85;
    font-weight: 400;
    letter-spacing: -0.06em;
    margin: 0 0 35px;
}

.archive-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 430px;
    opacity: 0.65;
}

/* MEMORY CARDS */

.memory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.memory-card {
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 35px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.memory-card:hover {
    transform: translateY(-5px);
}

.memory-question {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.45;
    line-height: 1.5;
}

.memory-text {
    font-family: Georgia, serif;
    font-size: 24px;
    line-height: 1.45;
    margin-top: auto;
    margin-bottom: 30px;
}

.anonymous {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    opacity: 0.45;
}

/* ARCHIVE FOOTER */

.archive-footer {
    text-align: center;
    margin-top: 130px;
    padding-top: 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.archive-footer p {
    opacity: 0.5;
    margin-bottom: 20px;
}

.archive-footer a {
    color: inherit;
    text-decoration: none;
    letter-spacing: 0.15em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
}

.archive-footer a:hover {
    opacity: 0.5;
}

/* FOOTER */

footer {
    margin-top: 100px;
    padding: 40px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
    text-align: center;
}

/* MOBILE */

@media (max-width: 700px) {

    header {
        padding: 25px 20px;
    }

    nav {
        gap: 15px;
    }

    main {
        padding: 60px 20px;
    }

    .hero {
        padding: 60px 0 100px;
    }

    .submit-section,
    .placeholder-section {
        padding: 80px 0;
    }

    .archive {
        padding: 60px 20px 80px;
    }

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

    .archive-intro {
        margin-bottom: 60px;
    }

    .memory-card {
        min-height: 260px;
    }

    .submit-row {
        align-items: flex-start;
        gap: 20px;
        flex-direction: column;
    }

    #submit-button {
        width: 100%;
    }
}
