* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f6f3ee;
    color: #293e36;
    font: 15px/1.7 Arial, "Microsoft Yahei", sans-serif;
}

a {
    color: inherit;
}

header {
    max-width: 1100px;
    margin: auto;
    padding: 26px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d9ddd5;
}

.brand {
    font-weight: 900;
    letter-spacing: 3px;
}

header span {
    font-size: 11px;
    letter-spacing: 2px;
}

main {
    max-width: 1050px;
    margin: 46px auto;
    padding: 0 24px;
}

.hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 35px;
    align-items: center;
    margin-bottom: 40px;
}

h1 {
    font-family: Georgia, serif;
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.1;
    margin: 18px 0;
}

.tag {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8b5c40;
}

.date {
    background: #e8eddf;
    border-radius: 100px;
    text-align: center;
    padding: 34px 22px;
    transform: rotate(3deg);
}

.date strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 58px;
    line-height: 1.1;
}

.date span {
    font-size: 13px;
}

.layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

.aside {
    font-size: 13px;
}

.aside b {
    display: block;
    margin: 15px 0 5px;
}

form,
.card {
    background: #fff;
    border: 1px solid #dde1d7;
    border-radius: 18px;
    padding: 30px;
}

fieldset {
    border: 0;
    border-bottom: 1px solid #e6e8e1;
    padding: 0 0 26px;
    margin: 0 0 26px;
}

legend {
    font: 24px Georgia, serif;
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin: 18px 0 8px;
}

input,
select,
textarea,
button {
    font: inherit;
}

input:not([type=checkbox]):not([type=radio]),
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd4cb;
    border-radius: 8px;
    background: #fcfdfb;
    color: #293e36;
}

textarea {
    min-height: 90px;
}

input[type=checkbox],
input[type=radio] {
    accent-color: #335e47;
    margin-right: 10px;
}

.choice {
    font-weight: 400;
    padding: 10px 12px;
    border: 1px solid #dce2d8;
    border-radius: 8px;
    margin: 8px 0;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

small,
.muted {
    color: #69756b;
    font-size: 12px;
}

.rules {
    max-height: 340px;
    overflow: auto;
    background: #f6f7f2;
    border-radius: 10px;
    padding: 4px 18px;
    font-size: 13px;
}

.rules p {
    margin: 16px 0;
}

button,
.button {
    display: inline-block;
    background: #294d3a;
    color: white;
    padding: 13px 24px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}

button:disabled {
    opacity: .5;
    cursor: wait;
}

#notice {
    white-space: pre-line;
    margin-top: 16px;
}

footer {
    text-align: center;
    padding: 35px;
    color: #708075;
    font-size: 12px;
}

.admin-card {
    background: white;
    padding: 22px;
    border-radius: 12px;
    margin: 18px 0;
    overflow-wrap: anywhere;
}

.admin-card img {
    height: 100px;
    width: 100px;
    object-fit: cover;
    margin: 8px;
}

summary {
    cursor: pointer;
}

details[open] summary {
    margin-bottom: 15px;
}

.status {
    color: #875536;
}

#success {
    display: none;
    text-align: center;
    padding: 40px;
}

.required {
    color: #ab4d39;
}

.notice-error {
    color: #9a3931;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 700px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .date {
        border-radius: 20px;
        padding: 18px;
        transform: none;
    }

    .date strong {
        font-size: 36px;
    }

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

    .aside {
        display: none;
    }

    form,
    .card {
        padding: 22px;
    }

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

    main {
        margin-top: 28px;
    }

    header span {
        display: none;
    }
}
