:root {
    color-scheme: light;
    --ink: #161616;
    --muted: #6f6f6f;
    --line: rgba(20, 20, 20, 0.12);
    --paper: #f7f7f5;
    --soft: #ededeb;
    --white: #ffffff;
    --accent: #b94432;
    --sage: #71836f;
    --gold: #c49a58;
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 76% 12%, rgba(185, 68, 50, 0.08), transparent 26%),
        linear-gradient(180deg, #fbfbfa 0%, #efefec 100%);
    color: var(--ink);
    font-family:
        Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
textarea {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 20;
    width: min(calc(100% - 32px), 1180px);
    min-height: 56px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 8px 10px 8px 18px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(18px);
}

.brand {
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.category-ribbon {
    display: flex;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.category-ribbon a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    color: #333;
    font-size: 14px;
    font-weight: 800;
    transition:
        background 180ms ease,
        transform 180ms ease;
}

.category-ribbon a:hover {
    background: rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

.write-button,
.primary-link,
.ghost-link,
.danger-link,
.gold-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    padding: 0 22px;
    font-weight: 900;
}

.write-button,
.primary-link {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: white;
}

.ghost-link {
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
}

.gold-link {
    border: 1px solid rgba(196, 154, 88, 0.8);
    background: #f4ead8;
    color: #6e4d1f;
}

.danger-link {
    border: 1px solid #b94432;
    background: #b94432;
    color: white;
}

.page {
    min-height: 100vh;
    padding: 130px clamp(20px, 6vw, 84px) 70px;
}

.hero-board {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 44px;
    align-items: start;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.hero-copy p:not(.eyebrow),
.sub-text {
    max-width: 560px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.78;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.board-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
}

.post-list {
    display: grid;
    gap: 14px;
}

.post-card {
    display: block;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.045);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.08);
}

.post-card-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
}

.post-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.post-card time {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.post-number,
.soft-badge {
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #f4ead8;
    color: #8a5f24;
    font-size: 12px;
    font-weight: 900;
}

.post-number {
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
}

.soft-badge {
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    margin-bottom: 16px;
}

.empty-box {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px;
    border: 1px dashed rgba(0, 0, 0, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.58);
}

.empty-box strong {
    display: block;
    margin-bottom: 10px;
    font-size: 28px;
}

.form-card,
.detail-card {
    width: min(100%, 860px);
    margin: 0 auto;
    padding: clamp(24px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
}

.form-grid {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 900;
}

input[type="text"],
textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: var(--radius);
    background: white;
    color: var(--ink);
    outline: none;
}

input[type="text"] {
    min-height: 54px;
    padding: 0 16px;
}

textarea {
    min-height: 320px;
    padding: 16px;
    resize: vertical;
    line-height: 1.75;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(185, 68, 50, 0.12);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 28px;
}

.inline-form {
    display: inline;
}

.content-box {
    margin: 34px 0;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    white-space: pre-wrap;
    color: #303030;
    font-size: 18px;
    line-height: 1.9;
}

.created-at {
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.site-footer {
    padding: 70px clamp(20px, 6vw, 84px) 44px;
    background: #fbfbfa;
    color: #2a2a2a;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.footer-bottom strong {
    color: var(--gold);
    font-size: clamp(30px, 3vw, 48px);
    letter-spacing: -0.04em;
}

.footer-bottom p {
    justify-self: end;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: white;
    font-size: 10px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .site-header {
        top: 10px;
        width: calc(100% - 20px);
        min-height: auto;
        grid-template-columns: 1fr auto;
        border-radius: 24px;
    }

    .category-ribbon {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .category-ribbon::-webkit-scrollbar {
        display: none;
    }

    .category-ribbon a {
        flex: 0 0 auto;
    }

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

    .page {
        padding-top: 160px;
    }

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

    .footer-bottom p,
    .footer-bottom strong {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .page {
        padding: 150px 18px 60px;
    }

    .brand {
        font-size: 16px;
    }

    .write-button {
        padding: 0 14px;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 38px;
    }

    .post-card-top {
        display: grid;
    }

    .form-card,
    .detail-card {
        padding: 24px;
    }

    .site-footer {
        padding: 56px 18px 36px;
    }
}
