:root {
    color-scheme: light;
    font-family: system-ui, "Malgun Gothic", "Noto Sans KR", sans-serif;
    color: #211f28;
    background: #fff;
    line-height: 1.55;
    --line: #e9e6ed;
    --muted: #625d6a;
    --accent: #725397;
}

body { margin: 0; }

.board {
    box-sizing: border-box;
    max-width: 44rem;
    padding: 0 clamp(1rem, 4vw, 1.75rem) 1.75rem;
    margin: 0 auto;
}

.board-heading {
    padding: .85rem 0;
    border-top: 3px solid #8765a9;
    border-bottom: 1px solid var(--line);
}

h1 {
    margin: 0;
    font-size: clamp(1.25rem, 5.25vw, 1.5rem);
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: -.025em;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.empty {
    margin: 0;
    padding: 2rem 0;
    color: var(--muted);
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.post-list { margin: 0; padding: 0; list-style: none; }
.post-list li + li { border-top: 1px solid var(--line); }

.post-link {
    display: flex;
    gap: .75rem;
    align-items: center;
    box-sizing: border-box;
    min-height: 6rem;
    padding: 1.05rem 0;
    text-decoration: none;
}

.post-link:hover { background: #faf8fc; }

.thumbnail {
    flex: 0 0 3.5rem;
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.post-summary { flex: 1 1 auto; min-width: 0; }

.post-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 650;
    line-height: 1.43;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.post-prefix { color: #57515f; white-space: nowrap; }

.post-meta {
    display: block;
    margin-top: .45rem;
}

.post-meta time { color: var(--muted); font-size: 1rem; }

.post-nav { border-bottom: 1px solid var(--line); }

.post-nav a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.75rem;
    padding-inline: .15rem .5rem;
    color: var(--accent);
    font-size: .875rem;
    font-weight: 650;
    text-decoration: none;
}

.post-nav a:hover { text-decoration: underline; }

.back-arrow {
    width: .42rem;
    height: .42rem;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: rotate(45deg);
    margin-inline-start: .1rem;
}

.post-detail header {
    padding: 1rem 0 .95rem;
    border-bottom: 1px solid var(--line);
}

.detail-image,
.body-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.detail-image {
    margin: 1.1rem auto 0;
}

.post-body { margin-top: 1.1rem; }
.post-body > * + * { margin-top: .75rem; }
.body-image { margin-inline: auto; }

.post-text {
    white-space: pre-wrap;
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.7;
}
