:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #666666;
    --line: #e6e6e6;
    --soft: #f7f7f7;
    --accent: #111111;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.main-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    width: min(960px, calc(100% - 32px));
    min-height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.home,
.page,
.section {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
}

.home {
    padding: 48px 0 88px;
}

.hero-minimal {
    padding: 30px 0 42px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
.page-header h1 {
    margin: 0;
    font-size: clamp(2.45rem, 9vw, 5rem);
    line-height: 1.08;
    letter-spacing: 0;
    word-break: keep-all;
}

.lead {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    word-break: keep-all;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--text);
    font-weight: 800;
    font-size: 0.95rem;
}

.btn.primary {
    background: var(--text);
    color: #ffffff;
}

.btn.secondary {
    background: #ffffff;
    color: var(--text);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.primary-links,
.secondary-links {
    grid-template-columns: 1fr;
}

.secondary-links {
    border-top: 1px solid var(--line);
    margin-top: 34px;
}

.simple-link {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.simple-link span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.simple-link strong {
    font-size: 1rem;
    line-height: 1.5;
}

.plain-section {
    max-width: 720px;
    padding: 34px 0 0;
}

.plain-section h2,
.content-section h2 {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 5vw, 2.4rem);
    line-height: 1.2;
}

.plain-section p,
.content-section p,
.timeline p,
.drive-fallback p,
.video-card h2 {
    color: var(--muted);
}

.page {
    padding: 46px 0 88px;
}

.page-header {
    max-width: 760px;
    margin-bottom: 44px;
}

.page-header.compact {
    max-width: 740px;
}

.content-section {
    padding: 42px 0;
    border-top: 1px solid var(--line);
}

.content-section > p {
    max-width: 760px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
    gap: 28px;
    align-items: start;
}

.statement {
    color: var(--text) !important;
    font-size: clamp(1.25rem, 4vw, 1.8rem);
    font-weight: 800;
    line-height: 1.35;
}

.quiet-panel,
.video-card,
.drive-fallback {
    border: 1px solid var(--line);
    background: var(--soft);
}

.quiet-panel {
    padding: 22px;
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.prompt-grid div {
    min-height: 118px;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prompt-grid span {
    color: var(--muted);
    font-weight: 800;
}

.prompt-grid strong {
    line-height: 1.45;
}

.timeline {
    display: grid;
    gap: 0;
    max-width: 820px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.timeline li {
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

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

.video-frame,
.video-card iframe {
    aspect-ratio: 16 / 9;
    background: #111111;
}

.video-frame iframe,
.video-card iframe,
.drive-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.rule-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.rule-list li {
    min-height: 72px;
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--soft);
    font-weight: 700;
}

.audio-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.audio-section audio {
    width: min(420px, 100%);
}

.drive-section {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.drive-section iframe {
    min-height: 640px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.drive-fallback {
    margin-top: 12px;
    padding: 18px;
}

.drive-fallback p {
    margin: 6px 0 0;
}

.archive-count {
    margin: 14px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.log-list {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.log-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 58px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.log-title {
    min-width: 0;
    color: var(--text);
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.log-action {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.video-card {
    overflow: hidden;
}

.video-card h2 {
    margin: 0;
    padding: 16px;
    font-size: 0.98rem;
    line-height: 1.5;
}

.floating-kakao {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 20;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: #fee500;
    color: #2b1710;
    border: 1px solid rgba(43, 23, 16, 0.16);
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.92rem;
}

.content-container {
    width: calc(100% - 32px);
    max-width: 800px;
    margin: 0 auto;
    padding: 46px 0 88px;
}

.content-container h1 {
    margin: 0 0 42px;
    text-align: center;
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.2;
}

.content-container .card {
    margin-bottom: 26px;
    padding: 30px;
    border: 1px solid var(--line);
    background: #ffffff;
    min-width: 0;
    overflow-wrap: anywhere;
}

.content-container .card h2 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.35rem, 5vw, 1.8rem);
    line-height: 1.35;
}

.content-container .card p {
    color: var(--muted);
    word-break: break-all;
    overflow-wrap: anywhere;
}

.content-container .card strong {
    color: var(--text);
    word-break: break-all;
    overflow-wrap: anywhere;
}

.content-container .card ul {
    margin: 20px 0;
    padding: 20px 20px 20px 36px;
    background: var(--soft);
}

.content-container .card li {
    margin-bottom: 8px;
}

.video-container {
    position: relative;
    height: 0;
    margin: 28px 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #111111;
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-primary {
    background: var(--text);
    color: #ffffff;
}

.btn-danger {
    background: #555555;
    color: #ffffff;
}

.footer {
    padding: 34px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

#topBtn {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 82px;
    z-index: 99;
    width: 42px;
    height: 42px;
    border: 1px solid var(--text);
    background: #ffffff;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 760px) {
    .home,
    .page,
    .section,
    .nav-container {
        width: auto;
        margin-left: 16px;
        margin-right: 16px;
    }

    .nav-container {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 4px 14px;
    }

    .nav-links a {
        min-height: 30px;
        padding: 0;
    }

    .home {
        padding-top: 30px;
    }

    .hero-minimal {
        padding-top: 10px;
    }

    h1,
    .page-header h1 {
        font-size: clamp(2.3rem, 13vw, 3.4rem);
    }

    .lead {
        font-size: 1rem;
        line-height: 1.8;
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .plain-section p,
    .content-section p,
    .simple-link strong {
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .actions,
    .btn {
        width: 100%;
    }

    .quick-links,
    .split,
    .prompt-grid,
    .rule-list,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .audio-section {
        display: grid;
        align-items: stretch;
    }

    .drive-section iframe {
        min-height: 520px;
    }

    .log-item {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: start;
    }

    .content-container {
        width: calc(100% - 32px);
        margin-left: auto;
        margin-right: auto;
        padding-top: 34px;
    }

    .content-container .card {
        padding: 22px;
    }

    .content-container .card p {
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .content-container .card strong {
        word-break: break-all;
        overflow-wrap: anywhere;
    }
}
