
/* =========================================
   CHRISTMAS MAIL
   YugorLAB × Kyodo
   Vintage Christmas — 2027
========================================= */


/* 1. VARIABLES */

:root {
    --forest: #26382f;
    --forest-dark: #1c2c25;
    --forest-light: #3b5144;

    --burgundy: #854747;
    --burgundy-dark: #693636;

    --gold: #b89a64;
    --gold-light: #d3bb8e;

    --paper: #f1e8d7;
    --paper-light: #faf6ed;
    --paper-dark: #e6dac4;

    --ink: #3d392f;
    --ink-light: #777064;

    --white: #ffffff;

    --font-heading: "Playfair Display", Georgia, serif;
    --font-body: "DM Sans", Arial, sans-serif;

    --shadow-soft: 0 12px 35px rgba(28, 44, 37, 0.09);
    --shadow-paper: 0 5px 18px rgba(61, 57, 47, 0.12);

    --transition: 0.25s ease;
}


/* 2. RESET */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper-light);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

body,
button,
input,
textarea {
    font-family: var(--font-body);
}

button,
input,
textarea {
    font-size: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.hidden {
    display: none !important;
}


/* 3. HEADER */

.site-header {
    position: relative;
    z-index: 5;

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

    min-height: 78px;
    padding: 14px 7%;

    background: var(--forest);
    color: var(--paper-light);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.logo-mark {
    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    border: 1px solid var(--gold);
    border-radius: 50%;

    color: var(--gold-light);
    font-size: 19px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;

    color: rgba(250, 246, 237, 0.72);
    font-size: 13px;
    letter-spacing: 0.5px;

    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-light);
}

.nav-link.active::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;

    height: 1px;

    background: var(--gold);
    content: "";
}


/* 4. HERO */

.hero {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    min-height: 590px;
    padding: 75px 10%;

    background:
        radial-gradient(
            circle at 80% 45%,
            rgba(184, 154, 100, 0.13),
            transparent 35%
        ),
        var(--forest);
    color: var(--paper-light);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 540px;
}

.eyebrow {
    margin: 0 0 18px;

    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    font-family: var(--font-heading);
    font-size: clamp(65px, 8vw, 105px);
    font-weight: 500;
    line-height: 0.99;
    letter-spacing: -3px;
}

.hero h1 span {
    color: var(--gold-light);
    font-style: italic;
}

.hero-description {
    max-width: 430px;
    margin: 27px 0 32px;

    color: rgba(250, 246, 237, 0.77);
    font-size: 15px;
    line-height: 1.9;
}


/* 5. BUTTONS */

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-height: 52px;
    padding: 0 25px;

    border: 1px solid transparent;
    border-radius: 2px;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.primary-button {
    background: var(--burgundy);
    color: var(--paper-light);
}

.primary-button:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
}

.primary-button span {
    font-size: 19px;
}

.secondary-button {
    border-color: var(--gold);
    background: transparent;
    color: var(--forest);
}

.secondary-button:hover {
    background: var(--forest);
    color: var(--paper-light);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}


/* 6. MAILBOX ILLUSTRATION */

.hero-illustration {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 400px;
}

.mailbox {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 225px;
    margin-top: 35px;
}

.mailbox-roof {
    width: 225px;
    height: 35px;

    border: 2px solid var(--gold);
    border-bottom: none;
    border-radius: 110px 110px 0 0;

    background: var(--burgundy);
}

.mailbox-body {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 205px;
    height: 215px;

    border: 2px solid var(--gold);
    border-top: 3px solid var(--gold);

    border-radius: 7px 7px 13px 13px;

    background:
        linear-gradient(
            110deg,
            rgba(255,255,255,0.08),
            transparent 35%
        ),
        var(--burgundy);
    box-shadow: 12px 18px 30px rgba(0, 0, 0, 0.22);
}

.mailbox-slot {
    width: 130px;
    height: 12px;
    margin-top: 32px;

    border: 2px solid var(--gold);
    border-radius: 12px;

    background: var(--forest-dark);
}

.mailbox-label {
    display: grid;
    place-items: center;

    width: 112px;
    height: 70px;
    margin-top: 25px;

    border: 1px solid var(--gold);
    background: var(--forest);

    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 2px;
    text-align: center;
}

.mailbox-stand {
    width: 30px;
    height: 80px;

    background: linear-gradient(
        90deg,
        var(--gold),
        #8b7045,
        var(--gold)
    );
}

.mailbox-flag {
    position: absolute;
    top: 85px;
    right: -16px;
    z-index: 3;

    width: 35px;
    height: 48px;

    border: 2px solid var(--gold);
    border-radius: 2px;

    background: var(--forest-light);
}

.postmark {
    position: absolute;
    top: 15px;
    right: 7%;

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

    width: 88px;
    height: 88px;

    border: 1px solid rgba(184, 154, 100, 0.55);
    border-radius: 50%;

    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 10px;
    line-height: 1.4;

    transform: rotate(12deg);
}

.postmark strong {
    font-size: 30px;
    font-weight: 500;
}

.decor {
    position: absolute;
    color: var(--gold);
}

.decor-star {
    top: 65px;
    left: 12%;
    font-size: 35px;
}

.decor-snow {
    right: 12%;
    bottom: 45px;
    font-size: 35px;
}

.decor-snow-two {
    bottom: 95px;
    left: 10%;
    font-size: 27px;
}


/* 7. INTRO STRIP */

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 55px;

    min-height: 110px;
    padding: 25px 7%;

    border-bottom: 1px solid var(--paper-dark);
    background: var(--paper);
}

.intro-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.intro-item p {
    margin: 0;

    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 16px;
}

.intro-icon {
    color: var(--burgundy);
    font-size: 25px;
}

.intro-divider {
    width: 1px;
    height: 32px;
    background: var(--paper-dark);
}


/* 8. WRITE SECTION */

.write-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 100px 25px 110px;
}

.section-heading {
    margin-bottom: 42px;
    text-align: center;
}

.section-heading h2,
.wall-invitation h2,
.wall-heading h1 {
    margin: 0;

    color: var(--forest);
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 500;
    line-height: 1.2;
}

.section-heading > p:last-child {
    max-width: 470px;
    margin: 15px auto 0;

    color: var(--ink-light);
    font-size: 14px;
    line-height: 1.8;
}

.letter-form {
    padding: 42px;

    border: 1px solid var(--paper-dark);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;

    color: var(--forest);
    font-family: var(--font-heading);
    font-size: 17px;
}

.form-group input,
.form-group textarea {
    display: block;

    width: 100%;
    padding: 15px 16px;

    border: 1px solid #d8cbb5;
    border-radius: 2px;
    outline: none;

    background: var(--paper-light);
    color: var(--ink);

    font-size: 14px;

    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa18f;
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.8;
}

.character-counter {
    margin-top: 8px;

    color: var(--ink-light);
    font-size: 11px;
    text-align: right;
}


/* 9. ANONYMOUS OPTION */

.anonymous-option {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: -5px 0 28px;

    cursor: pointer;
}

.anonymous-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.custom-checkbox {
    display: grid;
    flex-shrink: 0;
    place-items: center;

    width: 19px;
    height: 19px;

    border: 1px solid var(--gold);
    background: var(--paper-light);
}

.anonymous-option input:checked + .custom-checkbox {
    background: var(--forest);
}

.anonymous-option input:checked + .custom-checkbox::after {
    color: var(--gold-light);
    content: "✓";
    font-size: 13px;
}

.anonymous-option input:focus-visible + .custom-checkbox {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.anonymous-option > span:last-child {
    color: var(--ink);
    font-size: 13px;
}

.anonymous-option small {
    display: block;
    margin-top: 2px;

    color: var(--ink-light);
    font-size: 11px;
}

.form-note {
    margin: 18px 0 0;

    color: var(--ink-light);
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}


/* 10. LETTER PREVIEW */

.letter-preview {
    margin-top: 35px;
    padding: 25px;

    border: 1px solid var(--paper-dark);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.preview-header {
    display: flex;
    justify-content: space-between;

    padding-bottom: 15px;
    border-bottom: 1px solid var(--paper-dark);

    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.preview-paper {
    margin: 22px 0;
    padding: 30px;

    background: var(--paper-light);
    box-shadow: var(--shadow-paper);
}

.preview-recipient {
    margin-top: 0;

    color: var(--ink-light);
    font-family: var(--font-heading);
    font-style: italic;
}

.preview-message {
    min-height: 80px;

    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.9;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.preview-signature {
    display: flex;
    flex-direction: column;
    gap: 3px;

    margin-top: 30px;
    padding-top: 15px;

    border-top: 1px solid var(--paper-dark);

    font-size: 12px;
}

.preview-signature span {
    color: var(--ink-light);
}

.preview-signature strong {
    color: var(--burgundy);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
}

.preview-notice {
    color: var(--ink-light);
    font-size: 12px;
    text-align: center;
}

.letter-preview .secondary-button {
    display: flex;
    width: fit-content;
    margin: 20px auto 0;
}


/* 11. WALL INVITATION */

.wall-invitation {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;

    min-height: 390px;
    padding: 70px 12%;

    background: var(--paper);
}

.wall-invitation-content {
    max-width: 460px;
}

.wall-invitation h2 {
    margin-bottom: 20px;
}

.wall-invitation-content > p:not(.eyebrow) {
    margin-bottom: 25px;

    color: var(--ink-light);
    font-size: 14px;
    line-height: 1.9;
}


/* 12. ENVELOPE DECORATION */

.wall-decoration {
    display: grid;
    place-items: center;

    min-height: 240px;
}

.envelope {
    position: relative;

    width: 220px;
    height: 145px;

    border: 1px solid var(--gold);
    background: var(--burgundy);

    box-shadow: 12px 15px 30px rgba(61, 57, 47, 0.15);

    transform: rotate(-8deg);
}

.envelope::before,
.envelope::after {
    position: absolute;
    inset: 0;

    border-bottom: 1px solid rgba(184, 154, 100, 0.6);
    content: "";
}

.envelope::before {
    clip-path: polygon(0 0, 50% 55%, 100% 0);
    background: var(--burgundy-dark);
}

.envelope::after {
    clip-path: polygon(0 100%, 50% 45%, 100% 100%);
    background: #75403f;
}

.envelope-flap {
    position: absolute;
    inset: 0;

    clip-path: polygon(0 0, 50% 65%, 100% 0);
    background: var(--burgundy-dark);
}

.envelope-seal {
    position: absolute;
    top: 51%;
    left: 50%;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border: 2px solid var(--gold-light);
    border-radius: 50%;

    background: var(--burgundy);
    color: var(--gold-light);

    font-size: 19px;

    transform: translate(-50%, -50%);
}


/* 13. FOOTER */

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 35px 20px;

    background: var(--forest-dark);
    color: rgba(250, 246, 237, 0.65);

    text-align: center;
}

.site-footer > p {
    margin: 0;
    font-size: 11px;
}

.footer-brand {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;

    margin: 14px 0;

    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 17px;
}

.footer-separator {
    color: var(--gold);
}

.footer-year {
    letter-spacing: 1px;
}


/* 14. WALL PAGE COMPONENTS */

.wall-main {
    min-height: 65vh;
    padding: 85px 7%;
}

.wall-heading {
    max-width: 650px;
    margin: 0 auto 45px;
    text-align: center;
}

.wall-heading > p:last-child {
    color: var(--ink-light);
    font-size: 14px;
}

.wall-board {
    max-width: 1050px;
    min-height: 280px;
    margin: 0 auto;
    padding: 35px;

    border: 1px solid var(--paper-dark);
    background:
        linear-gradient(
            90deg,
            rgba(184, 154, 100, 0.07) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(184, 154, 100, 0.07) 1px,
            transparent 1px
        ),
        #e9deca;

    background-size: 25px 25px;
}

.wall-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 210px;

    color: var(--ink-light);
    text-align: center;
}

.wall-empty-icon {
    margin-bottom: 12px;
    color: var(--burgundy);
    font-size: 38px;
}

.wall-empty h2 {
    margin: 0;

    color: var(--forest);
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 500;
}

.wall-empty p {
    max-width: 350px;
    font-size: 13px;
    line-height: 1.8;
}

.wall-empty .primary-button {
    margin-top: 12px;
}


/* 15. RESPONSIVE: TABLETS */

@media (max-width: 900px) {

    .hero {
        padding-right: 6%;
        padding-left: 7%;
    }

    .hero-illustration {
        transform: scale(0.85);
    }

    .intro-strip {
        gap: 25px;
    }

    .wall-invitation {
        padding-right: 8%;
        padding-left: 8%;
    }
}


/* 16. RESPONSIVE: MOBILE */

@media (max-width: 760px) {

    .site-header {
        min-height: 70px;
        padding: 12px 5%;
    }

    .logo {
        font-size: 18px;
    }

    .main-nav {
        gap: 17px;
    }

    .nav-link {
        font-size: 11px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 10px;

        min-height: auto;
        padding: 70px 8% 25px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(65px, 15vw, 90px);
    }

    .hero-description {
        max-width: 500px;
    }

    .hero-illustration {
        min-height: 330px;
        transform: scale(0.85);
    }

    .postmark {
        top: 0;
        right: 10%;
    }

    .intro-strip {
        flex-wrap: wrap;
        gap: 17px 25px;

        padding: 25px 5%;
    }

    .intro-item p {
        font-size: 13px;
    }

    .intro-icon {
        font-size: 21px;
    }

    .intro-divider {
        display: none;
    }

    .write-section {
        padding: 75px 6%;
    }

    .letter-form {
        padding: 27px 22px;
    }

    .wall-invitation {
        grid-template-columns: 1fr;
        gap: 20px;

        padding: 65px 8%;
    }

    .wall-decoration {
        min-height: 190px;
    }

    .wall-board {
        padding: 20px;
    }
}


/* 17. RESPONSIVE: SMALL PHONES */

@media (max-width: 420px) {

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;

        padding: 15px 6%;
    }

    .main-nav {
        width: 100%;
        justify-content: space-between;
    }

    .nav-link.active::after {
        bottom: -5px;
    }

    .hero {
        padding-top: 55px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-illustration {
        min-height: 290px;
        transform: scale(0.75);
    }

    .intro-strip {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 12%;
    }

    .letter-form {
        padding: 23px 17px;
    }

    .form-group textarea {
        min-height: 150px;
    }

    .submit-button {
        width: 100%;
        padding: 0 12px;
        gap: 9px;
        font-size: 12px;
    }

    .preview-paper {
        padding: 22px 18px;
    }

    .letter-preview {
        padding: 17px;
    }

    .wall-main {
        padding: 60px 5%;
    }
}


/* 18. ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================
   CHRISTMAS WALL — ADDITIONAL STYLES
========================================= */

.wall-decoration-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    margin-top: 25px;

    color: var(--gold);
}

.wall-decoration-line::before,
.wall-decoration-line::after {
    width: 65px;
    height: 1px;

    background: var(--gold);
    content: "";
}

.wall-information {
    max-width: 550px;
    margin: 65px auto 0;

    text-align: center;
}

.wall-information-icon {
    color: var(--burgundy);
    font-size: 28px;
}

.wall-information h2 {
    margin: 10px 0;

    color: var(--forest);
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 500;
}

.wall-information p {
    margin: 10px 0;

    color: var(--ink-light);
    font-size: 13px;
    line-height: 1.9;
}

@media (max-width: 520px) {

    .wall-information {
        margin-top: 45px;
        padding: 0 8px;
    }

    .wall-information h2 {
        font-size: 22px;
    }

}

/* =========================================
   CHRISTMAS WALL — LETTER CARDS
========================================= */

.wall-board {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 280px), 1fr)
    );
    align-items: start;
    gap: 25px;
}


/* 1. CARD */

.letter-card {
    position: relative;

    min-width: 0;
    padding: 25px 23px;

    border: 1px solid var(--paper-dark);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.45),
            transparent 65%
        ),
        var(--paper-light);

    box-shadow:
        3px 5px 12px rgba(61, 57, 47, 0.12);

    animation: letter-arrive 0.5s ease both;
}

.letter-card:nth-child(even) {
    transform: rotate(1deg);
}

.letter-card:nth-child(odd) {
    transform: rotate(-0.7deg);
}


/* 2. HEADER */

.letter-card-header {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-bottom: 14px;

    border-bottom: 1px solid var(--paper-dark);
}

.letter-card-stamp {
    display: grid;
    place-items: center;

    width: 28px;
    height: 28px;

    border: 1px solid var(--gold);
    border-radius: 50%;

    color: var(--burgundy);
    font-size: 14px;
}

.letter-card-label {
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* 3. MESSAGE */

.letter-card-message {
    margin: 20px 0 25px;

    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 16px;
    line-height: 1.9;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* 4. FOOTER */

.letter-card-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding-top: 13px;

    border-top: 1px solid var(--paper-dark);
}

.letter-card-nickname {
    color: var(--burgundy);
    font-family: var(--font-heading);
    font-size: 15px;
    font-style: italic;
}

.letter-card-date {
    color: var(--ink-light);
    font-size: 10px;
    letter-spacing: 0.5px;
}


/* 5. ANIMATION */

@keyframes letter-arrive {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 6. ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .letter-card {
        animation: none;
    }
}

@media (max-width: 420px) {
    .wall-board {
        gap: 18px;
        padding: 17px;
    }

    .letter-card {
        padding: 22px 19px;
    }
}

/* =========================================
   CHRISTMAS MAIL — POSTMASTER OFFICE
========================================= */

.admin-main {
    min-height: 70vh;
    padding: 75px 6% 90px;
}

.admin-heading {
    max-width: 650px;
    margin: 0 auto 45px;
    text-align: center;
}

.admin-heading h1 {
    margin: 0;

    color: var(--forest);
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 52px);
    font-weight: 500;
    line-height: 1.2;
}

.admin-heading > p:last-of-type {
    max-width: 500px;
    margin: 18px auto 0;

    color: var(--ink-light);
    font-size: 14px;
    line-height: 1.9;
}


/* 1. DASHBOARD */

.admin-dashboard {
    max-width: 950px;
    margin: 0 auto;
    padding: 30px;

    border: 1px solid var(--paper-dark);
    background: var(--paper);

    box-shadow: var(--shadow-soft);
}


/* 2. TOOLBAR */

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding-bottom: 22px;

    border-bottom: 1px solid var(--paper-dark);
}

.admin-counter {
    display: flex;
    align-items: center;
    gap: 13px;
}

.admin-counter-icon {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    border: 1px solid var(--gold);
    border-radius: 50%;

    color: var(--burgundy);
    font-size: 21px;
}

.admin-counter > div {
    display: flex;
    flex-direction: column;
}

.admin-counter strong {
    color: var(--forest);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

.admin-counter span:last-child {
    color: var(--ink-light);
    font-size: 11px;
}

.admin-refresh {
    min-height: 42px;
    padding: 0 15px;
    font-size: 12px;
}

.admin-refresh:disabled {
    opacity: 0.6;
    cursor: wait;
}


/* 3. STATUS */

.admin-status {
    padding: 15px 0;

    color: var(--ink-light);
    font-size: 12px;
    text-align: center;
}

.admin-status:empty {
    display: none;
}

.admin-status[data-type="error"] {
    color: var(--burgundy);
}

.admin-status[data-type="success"] {
    color: var(--forest);
}


/* 4. LETTER LIST */

.admin-letter-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-letter {
    padding: 24px;

    border: 1px solid var(--paper-dark);
    background: var(--paper-light);

    box-shadow: 0 3px 12px rgba(61, 57, 47, 0.06);
}

.admin-letter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding-bottom: 14px;

    border-bottom: 1px solid var(--paper-dark);
}

.admin-letter-author {
    color: var(--burgundy);
    font-family: var(--font-heading);
    font-size: 16px;
    font-style: italic;
}

.admin-letter-date {
    color: var(--ink-light);
    font-size: 10px;
    text-align: right;
}

.admin-letter-message {
    margin: 20px 0;

    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 16px;
    line-height: 1.9;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.admin-letter-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding-top: 15px;

    border-top: 1px solid var(--paper-dark);
}

.admin-action {
    min-height: 42px;
    padding: 0 17px;

    font-size: 12px;
}

.admin-approve {
    background: var(--forest);
    color: var(--paper-light);
}

.admin-approve:hover {
    background: var(--forest-light);
}

.admin-reject {
    border-color: var(--burgundy);
    color: var(--burgundy);
}

.admin-reject:hover {
    background: var(--burgundy);
    color: var(--paper-light);
}

.admin-action:disabled {
    opacity: 0.55;
    cursor: wait;
}


/* 5. EMPTY STATE */

.admin-empty {
    padding: 45px 15px;
    text-align: center;
}

.admin-empty-icon {
    color: var(--gold);
    font-size: 40px;
}

.admin-empty h2 {
    margin: 12px 0;

    color: var(--forest);
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 500;
}

.admin-empty p {
    max-width: 380px;
    margin: 0 auto;

    color: var(--ink-light);
    font-size: 13px;
    line-height: 1.8;
}


/* 6. FOOTNOTE */

.admin-footnote {
    max-width: 520px;
    margin: 40px auto 0;

    color: var(--ink-light);
    text-align: center;
}

.admin-footnote > div {
    color: var(--burgundy);
    font-size: 28px;
}

.admin-footnote p {
    font-size: 12px;
    line-height: 1.9;
}


/* 7. MOBILE */

@media (max-width: 600px) {

    .admin-main {
        padding: 55px 5% 70px;
    }

    .admin-dashboard {
        padding: 20px 15px;
    }

    .admin-toolbar {
        align-items: flex-start;
    }

    .admin-letter {
        padding: 19px 16px;
    }

    .admin-letter-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .admin-letter-date {
        text-align: left;
    }

    .admin-letter-footer {
        flex-direction: column;
    }

    .admin-action {
        width: 100%;
    }
}

    .wall-empty[hidden] {
       display: none;
    }

/* Honeypot field – invisible to real visitors */

.honeypot-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
