:root {
    --sky-50: #eff9ff;
    --sky-100: #d7f0ff;
    --sky-200: #aee0ff;
    --sky-300: #73ccff;
    --sky-400: #42b7f6;
    --sky-500: #149de6;
    --sky-600: #007fc4;
    --sky-700: #0069a8;
    --navy-700: #1f4b69;
    --navy-900: #153249;
    --white: rgba(255, 255, 255, 0.88);
    --white-strong: rgba(255, 255, 255, 0.96);
    --border: rgba(0, 127, 196, 0.16);
    --shadow-soft: 0 28px 64px rgba(20, 104, 153, 0.2);
    --shadow-card: 0 18px 40px rgba(20, 104, 153, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "SUIT", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    color: var(--navy-900);
    background:
        radial-gradient(circle at top left, rgba(115, 204, 255, 0.68), transparent 34%),
        radial-gradient(circle at 85% 15%, rgba(174, 224, 255, 0.5), transparent 22%),
        linear-gradient(180deg, #eaf7ff 0%, #dff2ff 48%, #eef8ff 100%);
}

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

button,
input,
textarea {
    font: inherit;
}

.sky-theme {
    min-height: 100vh;
}

.page-shell {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 40px 20px 56px;
}

.ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(20px);
    pointer-events: none;
    opacity: 0.65;
}

.ambient--one {
    top: -60px;
    right: -40px;
    width: 260px;
    height: 260px;
    background: rgba(66, 183, 246, 0.42);
}

.ambient--two {
    bottom: 90px;
    left: -70px;
    width: 240px;
    height: 240px;
    background: rgba(174, 224, 255, 0.72);
}

.hero,
.status-card,
.feature-card,
.cta-panel {
    position: relative;
    z-index: 1;
}

.hero {
    width: min(1120px, 100%);
    margin: 0 auto 28px;
    padding: 56px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(224, 243, 255, 0.84)),
        rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.hero__badge,
.status-card__label,
.cta-panel__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(20, 157, 230, 0.12);
    color: var(--sky-600);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero__title {
    margin: 18px 0 14px;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero__description {
    max-width: 620px;
    margin: 0;
    color: rgba(24, 53, 75, 0.78);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero__actions,
.cta-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.inline-form {
    display: inline-flex;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--sky-600), var(--sky-400));
    color: #fff;
    box-shadow: 0 18px 34px rgba(20, 157, 230, 0.32);
}

.btn-secondary {
    background: var(--white-strong);
    color: var(--navy-900);
    border-color: rgba(20, 157, 230, 0.22);
    box-shadow: var(--shadow-card);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.58);
    color: var(--sky-600);
    border-color: rgba(20, 157, 230, 0.18);
}

.content-stack {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.status-card,
.cta-panel {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.status-card h2,
.cta-panel h2,
.feature-card h3 {
    margin: 14px 0 10px;
    letter-spacing: -0.03em;
}

.status-card p,
.cta-panel p,
.feature-card p {
    margin: 0;
    color: rgba(24, 53, 75, 0.72);
    line-height: 1.72;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.feature-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 157, 230, 0.28);
    box-shadow: 0 24px 38px rgba(20, 104, 153, 0.18);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 157, 230, 0.18), rgba(115, 204, 255, 0.4));
    color: var(--sky-600);
    font-weight: 800;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.board-hero,
.panel {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
}

.board-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 38px 40px;
    margin-bottom: 22px;
}

.board-hero__title {
    margin: 16px 0 12px;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    letter-spacing: -0.05em;
}

.board-hero__description {
    max-width: 660px;
    margin: 0;
    color: rgba(21, 50, 73, 0.74);
    line-height: 1.72;
}

.board-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.board-shell,
.detail-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.board-shell {
    display: grid;
    gap: 20px;
}

.panel {
    padding: 28px;
}

.panel__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(20, 157, 230, 0.1);
    color: var(--sky-700);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.panel__title {
    margin: 14px 0 0;
    letter-spacing: -0.03em;
}

.panel-search {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.search-form {
    display: flex;
    align-items: end;
    gap: 12px;
    width: min(440px, 100%);
}

.search-form .form-field {
    flex: 1;
}

.board-panel__header,
.comments-panel__header,
.detail-article__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.board-panel__meta {
    align-self: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(20, 157, 230, 0.08);
    color: var(--sky-700);
    font-size: 0.92rem;
    white-space: nowrap;
}

.empty-state {
    display: grid;
    justify-items: start;
    gap: 10px;
    padding: 34px;
    margin-top: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(238, 249, 255, 0.98), rgba(223, 242, 255, 0.84));
}

.empty-state--compact {
    padding: 24px;
}

.empty-state__badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(20, 157, 230, 0.12);
    color: var(--sky-700);
    font-size: 0.82rem;
    font-weight: 700;
}

.empty-state h3,
.detail-article__title {
    margin: 0;
    letter-spacing: -0.04em;
}

.empty-state p {
    margin: 0;
    color: rgba(21, 50, 73, 0.72);
    line-height: 1.7;
}

.post-table-wrap {
    margin-top: 18px;
    overflow-x: auto;
}

.post-table {
    width: 100%;
    border-collapse: collapse;
}

.post-table th,
.post-table td {
    padding: 18px 16px;
    border-bottom: 1px solid rgba(20, 157, 230, 0.1);
    text-align: left;
    vertical-align: middle;
}

.post-table th {
    color: rgba(21, 50, 73, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
}

.post-table tbody tr {
    transition: background-color 180ms ease, transform 180ms ease;
}

.post-table tbody tr:hover {
    background: rgba(20, 157, 230, 0.04);
}

.post-id {
    color: rgba(21, 50, 73, 0.58);
    font-weight: 700;
}

.post-link {
    display: grid;
    gap: 4px;
}

.post-link__title {
    font-weight: 700;
}

.post-link__meta {
    color: rgba(21, 50, 73, 0.56);
    font-size: 0.88rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(20, 157, 230, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--sky-700);
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.pagination__link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.94);
}

.pagination__link.is-current {
    background: linear-gradient(135deg, var(--sky-600), var(--sky-400));
    border-color: transparent;
    color: #fff;
}

.pagination__link.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.detail-shell {
    display: grid;
    gap: 20px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.meta-chip {
    display: grid;
    gap: 4px;
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(238, 249, 255, 0.96), rgba(224, 243, 255, 0.78));
}

.meta-chip__label {
    color: rgba(21, 50, 73, 0.6);
    font-size: 0.84rem;
}

.detail-content {
    margin-top: 22px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
}

.detail-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    line-height: 1.85;
    color: rgba(21, 50, 73, 0.88);
}

.comment-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.comment-card {
    padding: 20px;
    border: 1px solid rgba(20, 157, 230, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
}

.comment-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.comment-card__header strong {
    display: block;
}

.comment-card__date {
    display: inline-block;
    margin-top: 4px;
    color: rgba(21, 50, 73, 0.56);
    font-size: 0.88rem;
}

.comment-card__content {
    margin: 14px 0 0;
    color: rgba(21, 50, 73, 0.82);
    line-height: 1.75;
}

.comment-card__button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
}

.comment-form-wrap {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(20, 157, 230, 0.12);
}

.comment-form-wrap__title {
    margin: 0 0 14px;
    letter-spacing: -0.03em;
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.login-hint {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(238, 249, 255, 0.78);
}

.login-hint p {
    margin: 0;
    color: rgba(21, 50, 73, 0.74);
}

.login-hint a {
    color: var(--sky-700);
    font-weight: 700;
}

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

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: stretch;
    gap: 22px;
    width: min(1120px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.auth-card,
.auth-aside {
    border: 1px solid var(--border);
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.auth-card {
    padding: 38px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 245, 255, 0.9));
}

.auth-aside {
    padding: 34px;
    background:
        linear-gradient(155deg, rgba(11, 133, 204, 0.95), rgba(92, 195, 248, 0.84));
    color: #fff;
    overflow: hidden;
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: auto -50px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(6px);
}

.auth-eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(20, 157, 230, 0.1);
    color: var(--sky-700);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-card h1,
.auth-aside h2 {
    margin: 16px 0 12px;
    letter-spacing: -0.04em;
}

.auth-card h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.auth-card__title--signup {
    font-size: clamp(1.8rem, 3.1vw, 2.7rem);
    word-break: keep-all;
}

.auth-card > p,
.auth-aside p,
.auth-link-row {
    color: rgba(21, 50, 73, 0.74);
    line-height: 1.72;
}

.auth-aside p,
.auth-aside li {
    color: rgba(255, 255, 255, 0.84);
}

.auth-form {
    margin-top: 28px;
}

.form-stack {
    display: grid;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-700);
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid rgba(20, 157, 230, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy-900);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(20, 157, 230, 0.48);
    box-shadow: 0 0 0 4px rgba(115, 204, 255, 0.18);
}

.form-hint,
.form-error,
.alert {
    font-size: 0.92rem;
    line-height: 1.55;
}

.form-error {
    color: #c34747;
}

.alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.alert-error {
    background: rgba(255, 241, 241, 0.92);
    border-color: rgba(195, 71, 71, 0.14);
    color: #9d3d3d;
}

.alert-success {
    background: rgba(235, 250, 255, 0.92);
    border-color: rgba(0, 127, 196, 0.16);
    color: var(--sky-700);
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.auth-link-row {
    margin-top: 20px;
}

.auth-link-row a {
    color: var(--sky-700);
    font-weight: 700;
}

.auth-feature-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
}

.auth-feature-list li {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 520ms ease,
        transform 520ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 40px 28px;
    }

    .board-hero,
    .panel-search,
    .board-panel__header,
    .comments-panel__header,
    .detail-article__top {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 640px) {
    .page-shell {
        padding: 20px 14px 36px;
    }

    .hero,
    .board-hero,
    .status-card,
    .feature-card,
    .cta-panel,
    .panel,
    .auth-card,
    .auth-aside {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .hero__actions,
    .board-hero__actions,
    .cta-panel__actions,
    .auth-actions {
        flex-direction: column;
    }

    .btn,
    .inline-form,
    .auth-actions .btn {
        width: 100%;
    }

    .search-form,
    .comment-form__actions,
    .detail-actions {
        width: 100%;
    }

    .search-form,
    .comment-form__actions,
    .detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .post-table th,
    .post-table td {
        padding: 14px 12px;
    }
}
