/* Hallmark · v2.0.0 · theme: custom, derived from club.dumchit.kr (dark floor, pink neon, green floor tiles) · genre: playful · job: enter the club · signature: the live club scene, 50 dancers on one beat */
/* critique: one pink signal for actions and the wordmark, green only for the energy bar; no gradients, no cards inside cards, labels in the body face */
/* waive 15 sloplint: scripts are not run (no local render allowed in this workspace); the Floor is checked by hand */

@font-face {
    /* 제목에 쓰는 글자만 잘라 둔 검은고딕(Black Han Sans, SIL OFL 1.1). 제목 글을 바꾸면 docs/작업기록.md 의 방법으로 다시 자른다 */
    font-family: "Dumchit Display";
    src: url("/fonts/black-han-sans-sub.woff2?v=1") format("woff2");
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #07060b;
    --bg-raise: #110e19;
    --bg-sunk: #0b0911;
    --line: #2a2438;
    --text: #f2eefc;
    --muted: #b5adc8;
    --pink: #ff4fa3;
    --pink-hover: #ff74b6;
    --pink-ink: #16060f;
    --pink-glow: rgba(255, 79, 163, 0.45);
    --pink-glow-soft: rgba(255, 79, 163, 0.18);
    --green: #3ee6a0;
    --green-dim: #1d5c44;
    --focus: #4fd8ff;
    --display: "Dumchit Display", "Black Han Sans", system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    --sans: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --radius: 14px;
    --radius-small: 8px;
    --container: 72rem;
    --measure: 38rem;
    --gutter: clamp(20px, 4vw, 40px);
    --space-section: clamp(72px, 10vw, 128px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: clip;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 10;
    padding: 10px 16px;
    border-radius: var(--radius-small);
    background: var(--pink);
    color: var(--pink-ink);
    font-weight: 700;
    text-decoration: none;
}

.skip:focus-visible {
    top: 12px;
}

.wrap {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* 위 띠 */
.top {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.top .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 64px;
    padding-top: env(safe-area-inset-top, 0px);
}

.brand {
    font-family: var(--display);
    font-size: 1.75rem;
    line-height: 1;
    color: var(--pink);
    text-decoration: none;
    text-shadow: 0 0 18px var(--pink-glow);
}

.top nav {
    display: none;
    margin-left: auto;
}

.top nav ul {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 12px;
    border-radius: var(--radius-small);
    color: var(--muted);
    font-size: 0.9375rem;
    text-decoration: none;
}

.top nav a:hover {
    color: var(--text);
}

.top .enter-small {
    margin-left: auto;
}

@media (min-width: 860px) {
    .top nav {
        display: block;
    }

    .top .enter-small {
        margin-left: 0;
    }
}

/* 단추 */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding-inline: 26px;
    border: 2px solid var(--pink);
    border-radius: 999px;
    background: var(--pink);
    color: var(--pink-ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 0 28px var(--pink-glow);
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.button:hover {
    background: var(--pink-hover);
    border-color: var(--pink-hover);
}

.button:active {
    transform: translateY(1px);
}

.button.ghost {
    background: transparent;
    color: var(--text);
    box-shadow: none;
    border-color: var(--line);
}

.button.ghost:hover {
    border-color: var(--muted);
}

.button.small {
    min-height: 40px;
    padding-inline: 16px;
    font-size: 0.9375rem;
    box-shadow: none;
}

/* 들어온 적이 있으면 (dmc_seen) '다시 클럽으로' 를 앞세운다. 스크립트가 꺼져 있으면 처음 오신 분 쪽이 보인다 */
.when-back {
    display: none;
}

.returning .when-back {
    display: inline-flex;
}

.returning p.when-back {
    display: block;
}

.returning .when-new {
    display: none;
}

/* 첫 화면 */
.hero {
    padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px);
}

.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

@media (min-width: 960px) {
    .hero .wrap {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }
}

.hero h1 {
    min-width: 0;
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(4.5rem, 16vw, 9rem);
    line-height: 0.95;
    color: var(--pink);
    text-shadow: 0 0 32px var(--pink-glow), 0 0 4px var(--pink-glow);
    overflow-wrap: break-word;
}

.hero .tagline {
    margin: 18px 0 0;
    font-family: var(--display);
    font-size: clamp(1.625rem, 4.2vw, 2.25rem);
    line-height: 1.25;
}

.hero .lead {
    margin: 14px 0 0;
    max-width: 26rem;
    color: var(--muted);
}

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

.hero .note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

.hero figure {
    min-width: 0;
    margin: 0;
}

.hero figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 0 60px var(--pink-glow-soft);
}

.hero figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.875rem;
}

/* 절 */
.section {
    padding-block: var(--space-section) 0;
}

.section h2 {
    min-width: 0;
    margin: 0 0 20px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    line-height: 1.15;
    overflow-wrap: break-word;
}

.section > .wrap > p,
.prose p,
.prose li {
    max-width: var(--measure);
}

.section p {
    margin: 0 0 1em;
}

.muted {
    color: var(--muted);
}

/* 둠칫은 어떤 곳: 네 가지 */
.facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 40px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 720px) {
    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.facts li {
    padding-block: 20px;
    border-top: 1px solid var(--line);
}

.facts strong {
    display: block;
    font-size: 1.125rem;
}

.facts span {
    color: var(--muted);
}

/* 할 수 있는 것 */
.doings {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (min-width: 900px) {
    .doings {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
}

.energy {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-raise);
}

.energy h3,
.doing h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.4;
}

.energy .clock {
    display: block;
    margin: 20px 0 6px;
    font-family: var(--display);
    font-size: clamp(4rem, 14vw, 7rem);
    line-height: 1;
    color: var(--green);
    font-variant-numeric: tabular-nums;
}

.energy .bar {
    height: 14px;
    margin: 12px 0 8px;
    border-radius: 999px;
    background: var(--green-dim);
    overflow: hidden;
}

.energy .bar span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--green);
    transform-origin: left center;
    animation: drain 20s linear infinite;
}

@keyframes drain {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0.5);
    }
}

@media (prefers-reduced-motion: reduce) {
    .energy .bar span {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

.energy .bar-label {
    color: var(--muted);
    font-size: 0.875rem;
}

.energy p:last-child {
    margin-bottom: 0;
}

.doing-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.doing {
    padding-block: 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.doing:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.doing p {
    margin: 0;
    color: var(--muted);
}

.soon {
    margin-top: 48px;
}

.soon h3 {
    margin: 0 0 12px;
    font-size: 1.125rem;
}

.soon ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.soon li {
    padding: 6px 14px;
    border: 1px dashed var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* 조작법 */
.controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-top: 32px;
}

@media (min-width: 760px) {
    .controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.controls h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.controls dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0 18px;
    margin: 0;
}

.controls dt,
.controls dd {
    margin: 0;
    padding-block: 12px;
    border-top: 1px solid var(--line);
}

.controls dd {
    color: var(--muted);
}

kbd {
    display: inline-block;
    min-width: 1.9em;
    margin-right: 3px;
    padding: 1px 7px;
    border: 1px solid var(--line);
    border-bottom-width: 3px;
    border-radius: 6px;
    background: var(--bg-sunk);
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.875rem;
    text-align: center;
}

/* 새 소식 목록 */
.news-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.news-list li {
    padding-block: 18px;
    border-top: 1px solid var(--line);
}

.news-list li:last-child {
    border-bottom: 1px solid var(--line);
}

.news-list time {
    display: block;
    color: var(--muted);
    font-size: 0.875rem;
}

.news-list a {
    font-size: 1.1875rem;
    font-weight: 700;
    text-decoration: none;
}

.news-list a:hover {
    color: var(--pink);
    text-decoration: underline;
}

.news-list p {
    margin: 4px 0 0;
    color: var(--muted);
}

.more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 12px;
    color: var(--pink);
    font-weight: 700;
}

/* 묻고 답하기 */
.faq {
    max-width: 48rem;
    margin-top: 24px;
}

.faq details {
    border-top: 1px solid var(--line);
}

.faq details:last-child {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding-block: 12px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex: none;
    color: var(--pink);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.15s ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    margin: 0 0 18px;
    color: var(--muted);
}

/* 마지막 권유 */
.last-call {
    padding-block: var(--space-section);
}

.last-call .wrap {
    text-align: center;
}

.last-call h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.25rem, 7vw, 4rem);
    line-height: 1.15;
    overflow-wrap: break-word;
}

.last-call .actions {
    justify-content: center;
}

/* 글 페이지 (소식, 방침) */
.page {
    padding-block: clamp(40px, 7vw, 80px) var(--space-section);
}

.page h1 {
    min-width: 0;
    margin: 0 0 12px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.25rem, 7vw, 3.5rem);
    line-height: 1.15;
    overflow-wrap: break-word;
}

.page .meta {
    margin: 0 0 32px;
    color: var(--muted);
}

.prose h2 {
    margin: 2.2em 0 0.6em;
    padding-top: 1.2em;
    border-top: 1px solid var(--line);
    font-size: 1.375rem;
    line-height: 1.4;
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
}

.prose li {
    margin-bottom: 0.4em;
}

.prose a {
    color: var(--pink);
}

.table {
    overflow-x: auto;
    margin: 1em 0;
}

table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

th,
td {
    padding: 10px 14px 10px 0;
    border-bottom: 1px solid var(--line);
    text-align: start;
    vertical-align: top;
}

th {
    white-space: nowrap;
}

code {
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--bg-raise);
    font-family: var(--mono);
    font-size: 0.875em;
}

.back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 32px;
    color: var(--pink);
    font-weight: 700;
}

/* 바닥 */
.foot {
    border-top: 1px solid var(--line);
    background: var(--bg-sunk);
    color: var(--muted);
    font-size: 0.9375rem;
}

.foot .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 760px) {
    .foot .wrap {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }
}

.foot .brand {
    min-height: 0;
    padding-inline: 0;
    font-size: 1.5rem;
}

.foot p {
    margin: 8px 0 0;
}

.foot ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin: 0 0 0 -8px;
    padding: 0;
    list-style: none;
}

.foot a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 8px;
    color: var(--text);
    text-decoration: none;
}

.foot a:hover {
    color: var(--pink);
    text-decoration: underline;
}

.foot .sns-title {
    margin: 12px 0 0;
    font-size: 0.875rem;
}

.foot small {
    display: block;
    margin-top: 16px;
}

/* 404 */
.lost {
    display: grid;
    place-items: center;
    min-height: 70vh;
    padding-block: 48px;
    text-align: center;
}

.lost h1 {
    margin: 0 0 8px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    line-height: 1.2;
}

.lost p {
    margin: 0 0 8px;
    color: var(--muted);
}

.lost .actions {
    justify-content: center;
}
