* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    /* Georgia to match the Open Graph image; Noto Serif KR covers CJK glyphs. */
    font-family: Georgia, "Noto Serif KR", "Times New Roman", serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* keep CJK words intact (break only at spaces/punctuation); inherited everywhere */
    word-break: keep-all;
    overflow-wrap: break-word;
}

.card {
    width: 100%;
    max-width: 560px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
}

.left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.name {
    font-size: 1.5rem;
    line-height: 1.4;
}

.contact {
    font-size: 0.85rem;
    line-height: 1.6;
}

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

.contact a:hover {
    text-decoration: underline;
}

.card-link {
    width: 100%;
    max-width: 560px;
    color: inherit;
    text-decoration: none;
}

.hanja {
    font-size: 1.5rem;
    writing-mode: vertical-rl;
    letter-spacing: 0.15em;
    align-self: flex-start;
}

.content {
    width: 100%;
    max-width: 560px;
    padding: 0 2.5rem 2.5rem;
}

.content h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.content li {
    line-height: 1.6;
    font-size: 0.85rem;
}

.content a {
    color: inherit;
}

.content table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.content td {
    padding: 0.15rem 0;
    vertical-align: top;
}

.content td:first-child {
    white-space: nowrap;
    padding-right: 1rem;
    width: 7rem;
}

.content td:nth-child(2) {
    overflow-wrap: break-word;
    word-break: keep-all;
}

#recent-activities td:nth-child(2) a[href^="http"] {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.skeleton td span {
    display: block;
    height: 0.85rem;
    border-radius: 0.25rem;
    background: #e0e0e0;
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton td:first-child span {
    width: 5rem;
    margin: calc((0.85rem * 0.6) / 2) 0;
}

.skeleton td:nth-child(2) span {
    width: 100%;
    margin: calc((0.85rem * 0.6) / 2) 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

article {
    width: 100%;
    max-width: 560px;
    padding: 0 2.5rem 2.5rem;
}

article h2 {
    margin-bottom: 0.25rem;
}

article p, article li, article blockquote {
    font-size: 0.85rem;
    line-height: 1.6;
}

article blockquote {
    margin: 1em 0;
    padding-left: 1em;
    border-left: 2px solid #ccc;
}

img {
    max-width: 100%;
}

@media (prefers-color-scheme: dark) {
    html {
        color-scheme: dark;
    }

    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    article blockquote {
        border-left-color: #555;
    }

    .skeleton td span {
        background: #333;
    }
}


.app-page {
    width: 100%;
    max-width: 760px;
    padding: 2.5rem;
}

@media (max-width: 480px) {
    .app-page {
        padding: 1.75rem 1.25rem;
    }
}

.language-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.language-nav button,
.app-page a {
    color: inherit;
}

.app-page a {
    transition: opacity 0.15s ease;
}

.app-page a:hover {
    opacity: 0.6;
}


.language-nav button {
    appearance: none;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    padding: 0.35rem 0.7rem;
    color: inherit;
    font: inherit;
    cursor: pointer;
    opacity: 0.65;
}

.language-nav button.active {
    background: #111;
    border-color: #111;
    color: #fff;
    opacity: 1;
}

.kkori-page section[hidden] {
    display: none;
}

.hero,
.localized {
    margin-bottom: 3rem;
}

.app-page .eyebrow {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: inherit;
}

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

.app-page h1 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.app-page h2 {
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem;
}

.app-page p,
.app-page li {
    font-size: 0.95rem;
    line-height: 1.7;
}

.app-page ul,
.app-page ol {
    margin: 0.5rem 0 1rem 1.25rem;
}

.lead {
    font-size: 1.1rem !important;
    color: #444;
}

.actions {
    display: flex;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.actions a {
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.app-page .disclaimer {
    margin-top: 1.75rem;
    font-size: 0.78rem;
    line-height: 1.6;
    opacity: 0.55;
}

@media (prefers-color-scheme: dark) {
    .lead {
        color: #aaa;
    }

    .language-nav button.active {
        background: #e0e0e0;
        border-color: #e0e0e0;
        color: #1a1a1a;
    }
}
