* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #faf7f2;
    background-image: radial-gradient(circle at 10% 20%, rgba(230, 210, 190, 0.08) 0%, rgba(250, 247, 242, 0) 80%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2c2418;
    line-height: 1.7;
    padding-bottom: 4rem;
}

.page-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    background: #fefcf8;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.03), 0 0 0 1px rgba(200, 180, 150, 0.2);
}

@media (min-width: 768px) {
    .page-wrapper {
        padding: 4rem 3rem 2rem;
    }
}

.meta-date {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b7a07e;
    font-weight: 400;
    border-top: 1px solid #ede6dc;
    padding-top: 2rem;
}

.meta-date span {
    background: #fefcf8;
    padding: 0 1rem;
}

.title-section {
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #3a2c1c;
    margin-bottom: 0.75rem;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #aa8e6e;
    font-weight: 400;
}

.essay {
    font-size: 1.05rem;
    font-weight: 400;
    color: #5e4b34;
    line-height: 2.0;
}

.essay p {
    margin-bottom: 1rem;
    text-indent: 2em;
}

.essay p:first-of-type {
    text-indent: 0;
}

.essay .first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 3.6rem;
    font-weight: 500;
    float: left;
    line-height: 0.85;
    margin-right: 0.55rem;
    margin-top: 0.1rem;
    color: #c2a071;
}

.year-marker {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: #c2a071;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
    border-left: 3px solid #e2d4c4;
    padding-left: 1rem;
}

.heart-line {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #8f6e48;
    text-align: center;
    margin: 2rem 0;
    padding: 0.5rem 0;
    border-top: 1px dashed #ede0d2;
    border-bottom: 1px dashed #ede0d2;
}

.signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: right;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: #b49b78;
    border-top: 1px solid #ede6dc;
}

.divider {
    text-align: center;
    margin: 2rem 0;
    color: #ddd0c0;
    font-size: 0.7rem;
    letter-spacing: 4px;
}

.message-board {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e8dfd3;
}

.board-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 1rem;
}

.board-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: #5e4b34;
    letter-spacing: -0.2px;
}

.board-header h2:before {
    content: "✎ ";
    font-size: 1.4rem;
    opacity: 0.7;
}

.message-count {
    font-size: 0.8rem;
    color: #b7a07e;
    background: #f5efe8;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
}

.message-form {
    background: #fefaf5;
    border: 1px solid #e8dfd3;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #8f7658;
    margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2d5c8;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: white;
    transition: all 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #c2a071;
    box-shadow: 0 0 0 3px rgba(194, 160, 113, 0.1);
}

.form-row textarea {
    resize: vertical;
    min-height: 100px;
}

.secret-hint {
    font-size: 0.7rem;
    color: #c1ab93;
    margin-top: 0.3rem;
    text-align: right;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.btn {
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary {
    background: #dcc9b0;
    color: #3a2c1c;
}

.btn-primary:hover {
    background: #cdb696;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f0e9e1;
    color: #7f6950;
}

.btn-secondary:hover {
    background: #e5dbd0;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.message-card {
    background: white;
    border: 1px solid #ede3d8;
    border-radius: 24px;
    padding: 1.2rem 1.5rem;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.message-card:hover {
    border-color: #dccbb8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.message-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.message-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: #8f6e48;
    letter-spacing: -0.2px;
}

.message-author:before {
    content: "💬 ";
    font-size: 0.8rem;
    opacity: 0.7;
}

.message-date {
    font-size: 0.7rem;
    color: #c1ab93;
    font-family: monospace;
}

.message-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #3d3225;
    white-space: pre-wrap;
    word-break: break-word;
}

.empty-message {
    text-align: center;
    padding: 2.5rem;
    color: #c9bbaa;
    font-style: italic;
    background: #fefaf5;
    border-radius: 32px;
    border: 1px dashed #e8ddd0;
}

.loading-message {
    text-align: center;
    padding: 2rem;
    color: #b7a07e;
}

.footer-note {
    text-align: center;
    margin-top: 2rem;
}

.special-love-line {
    text-align: center;
    margin: 0 auto 0.8rem auto;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #fff5ea, #fdebd8);
    border-radius: 60px;
    border: 1px solid #e6cdb0;
    box-shadow: 0 4px 12px rgba(160, 110, 60, 0.12);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #b45f2b;
    display: inline-block;
    width: auto;
    max-width: 95%;
    letter-spacing: 0.01em;
}

.special-love-line span.domain-highlight {
    font-weight: 700;
    color: #a34418;
    background: rgba(255, 225, 200, 0.6);
    padding: 0.1rem 0.3rem;
    border-radius: 30px;
    display: inline-block;
}

.sub-footer-note {
    font-size: 0.7rem;
    color: #d1c3b2;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .page-wrapper {
        padding: 1.5rem;
    }
    .main-title {
        font-size: 2rem;
    }
    .essay {
        font-size: 0.96rem;
    }
    .message-card {
        padding: 1rem;
    }
    .special-love-line {
        font-size: 0.88rem;
        padding: 0.5rem 1rem;
        line-height: 1.4;
    }
}