/* 심호령 (seml) — minimal personal site
   단일 컬럼 · 타이포그래피 중심 · 라이트/다크 */

:root {
    color-scheme: dark;
    --bg: #0f1115;
    --text: #e6e8eb;
    --text-soft: #9aa1ab;
    --text-faint: #6b7280;
    --line: rgba(255, 255, 255, 0.09);
    --tag-bg: rgba(255, 255, 255, 0.05);
    --link: #9ecbff;
    --shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #fbfbfa;
    --text: #1c1e21;
    --text-soft: #5c636d;
    --text-faint: #8b929c;
    --line: rgba(0, 0, 0, 0.09);
    --tag-bg: rgba(0, 0, 0, 0.045);
    --link: #0a5bd3;
    --shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
    background: var(--bg);
    transition: background 0.25s ease, color 0.25s ease;
}

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Hero ---- */
.hero {
    padding: 88px 0 24px;
    text-align: center;
}

.avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 28px;
    box-shadow: var(--shadow);
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h1 .handle {
    font-weight: 300;
    color: var(--text-faint);
    font-size: 1.25rem;
    margin-left: 10px;
    letter-spacing: 0.01em;
}

.tagline {
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 1.02rem;
}

/* ---- Sections ---- */
section {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

h2 {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-faint);
    margin-bottom: 18px;
}

section p {
    margin-bottom: 14px;
    word-break: keep-all;
}

section p:last-child {
    margin-bottom: 0;
}

/* ---- Tags ---- */
.stack-label {
    font-size: 0.82rem;
    color: var(--text-faint);
    margin: 18px 0 10px !important;
}

.stack-label:first-of-type {
    margin-top: 0 !important;
}

.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags li {
    font-size: 0.86rem;
    font-weight: 400;
    color: var(--text-soft);
    background: var(--tag-bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 14px;
    line-height: 1.6;
}

/* ---- Links ---- */
.links {
    list-style: none;
}

.links li {
    border-bottom: 1px solid var(--line);
}

.links li:first-child {
    border-top: 1px solid var(--line);
}

.links a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 2px;
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.links a:hover {
    color: var(--link);
    padding-left: 8px;
}

.link-detail {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Theme toggle ---- */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text-soft);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#theme-toggle:hover {
    color: var(--text);
    border-color: var(--text-faint);
}

#theme-toggle svg {
    width: 18px;
    height: 18px;
}

.icon-sun { display: none; }
.icon-moon { display: block; }

.is-light .icon-sun { display: block; }
.is-light .icon-moon { display: none; }

/* ---- Footer ---- */
footer {
    max-width: 640px;
    margin: 88px auto 0;
    padding: 28px 24px 44px;
    border-top: 1px solid var(--line);
}

footer p {
    font-size: 0.82rem;
    color: var(--text-faint);
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .hero { padding-top: 64px; }
    h1 { font-size: 1.65rem; }
    h1 .handle { display: block; margin: 6px 0 0; font-size: 1.1rem; }
    section { margin-top: 52px; padding-top: 32px; }
}
