*, *::before, *::after {
    box-sizing: border-box;
}
body {
    font-family: 'DM Sans', sans-serif;
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    -webkit-text-size-adjust: 100%;
}
h1 {
    font-family: 'Lora', serif;
    font-weight: 400;
    margin-bottom: 0.25rem;
}
.page-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.page-header h1 {
    margin-bottom: 0;
}
.header-link {
    font-size: 14px;
    color: gray;
    text-decoration: underline dotted gray;
    text-underline-offset: 3px;
}
.header-link:hover {
    color: black;
    text-decoration-color: black;
}
hr {
    border: none;
    border-top: 0.5px solid lightgray;
    margin-bottom: 2rem;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    background-color: #111;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: 1px solid #111;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 200ms ease;
    -webkit-appearance: none;
    min-height: 44px;
}
button:hover {
    background: #333;
    border-color: #333;
}
button:active {
    transform: scale(0.97);
}
.post {
    padding: 1.25rem 1.5rem;
    border: 1px solid lightgray;
    border-radius: 12px;
    transition: 150ms;
    margin-bottom: 1rem;
}
.post:hover {
    background-color: #f5f5f5;
}
.post:active {
    background-color: #f0f0f0;
}
.post h2 {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0 0 0.3rem;
}
.badge {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #1a7f37;
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
    display: block;
}
.date {
    font-size: 12px;
    color: gray;
    margin: 0 0 0.6rem;
}
.description {
    font-size: 14px;
    color: gray;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.reply-count {
    font-size: 12px;
    color: gray;
    margin: 0.4rem 0 0;
}
.post-actions {
    margin-top: 0.6rem;
    font-size: 13px;
    color: gray;
}
.post-actions .sep {
    color: lightgray;
    margin: 0 0.15rem;
}
.delete-form {
    display: inline;
}
.link-btn {
    all: unset;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: inherit;
    cursor: pointer;
    text-decoration: underline dotted gray;
    text-underline-offset: 3px;
}
.link-btn:hover,
button.link-btn:hover {
    color: black;
    text-decoration-color: black;
    background: none;
    border-color: transparent;
}
button.link-btn:active {
    transform: none;
}
.empty {
    text-align: center;
    color: lightgray;
    font-size: 15px;
    margin: 4rem 0;
}
.advanced {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 0.5px solid lightgray;
    font-size: 13px;
    color: gray;
}
.advanced summary {
    cursor: pointer;
    list-style: none;
}
.advanced summary::-webkit-details-marker {
    display: none;
}
.advanced-content {
    margin-top: 0.75rem;
}
.danger {
    color: #c53030;
    text-decoration-color: #c53030;
}
.danger:hover,
button.danger:hover {
    color: #9b1c1c;
    text-decoration-color: #9b1c1c;
    background: none;
    border-color: transparent;
}
.footer {
    margin-top: 2rem;
    font-size: 13px;
    color: gray;
}
.footer a {
    text-decoration: underline dotted gray;
    text-underline-offset: 3px;
}
.footer a:hover {
    color: black;
    text-decoration-color: black;
}

@media (max-width: 480px) {
    body {
        padding: 1.5rem 1rem;
    }
    .post {
        padding: 1rem 1.25rem;
    }
}
