@font-face {
    font-family: 'Pretendard Variable';
    font-style: normal;
    font-weight: 45 920;
    font-display: swap;
    src: url('/assets/fonts/PretendardVariable.woff2') format('woff2');
}

/* Shared visual tokens from C:/WORK/sofkr/src/styles/_tokens.scss. */
:root {
    --canvas: #ffffff;
    --surface: #f7f9f6;
    --text: #191b1e;
    --muted: #606970;
    --border: #e3e8e5;
    --brand: #a4cc3a;
    --brand-strong: #7ea52a;
    --wordcloud: #f3f5f3;
    --radius: 16px;
    --radius-lg: 24px;
    --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.75; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: -9999px; z-index: 200; padding: 8px 16px; background: var(--text); color: white; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgb(255 255 255 / 92%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: baseline; font-size: 22px; font-weight: 800; letter-spacing: -.02em; flex-shrink: 0; }
.brand-dot { display: inline-block; width: 8px; height: 8px; margin-left: 3px; border-radius: 50%; background: var(--brand); }
.domain-label { margin-left: 7px; font-size: 13px; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.blog-link { margin-left: auto; padding: 7px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.blog-link:hover { background: var(--surface); }
.hero { position: relative; padding-top: 64px; }
.hero-card { position: relative; display: grid; grid-template-columns: 1.35fr .85fr; gap: 64px; align-items: center; padding: 48px; background: var(--surface); border-radius: var(--radius-lg); }
.hero-card > *, .skill-card, .background-grid > *, .credentials > * { min-width: 0; }
.eyebrow { margin-bottom: 18px; font-size: .9375rem; font-weight: 700; }
.eyebrow span { color: var(--muted); font-weight: 500; }
h1 { font-size: clamp(2rem, 3.8vw, 2.875rem); letter-spacing: -.035em; line-height: 1.35; margin-bottom: 20px; }
.highlight { background: linear-gradient(transparent 70%, rgb(164 204 58 / 42%) 70%, rgb(164 204 58 / 42%) 94%, transparent 94%); }
.hero-description { color: var(--muted); font-size: 1rem; max-width: 35ch; margin-bottom: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 1px solid transparent; border-radius: 999px; font-size: .9375rem; font-weight: 700; transition: background .18s, border-color .18s; }
.button-primary { background: var(--brand); color: var(--text); }
.button-primary:hover { background: #b2d75b; }
.button-secondary { background: var(--canvas); border-color: var(--border); }
.button-secondary:hover { border-color: var(--text); }
.profile-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--canvas); }
.profile-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.profile-heading > div { flex: 1 1 4.75rem; min-width: 0; }
.profile-photo { width: 80px; height: 100px; object-fit: cover; border: 1px solid var(--border); border-radius: 12px; }
.profile-name { margin: 0 0 2px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
.profile-role { margin: 0 0 8px; font-size: .875rem; color: var(--muted); }
.github-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; max-width: 100%; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: .875rem; font-weight: 600; background: var(--canvas); }
.github-chip img { width: 16px; height: 16px; flex-shrink: 0; }
.github-chip:hover { border-color: var(--brand-strong); background: var(--surface); }
.profile-education { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.profile-education p { margin: 0 0 4px; font-size: .9375rem; font-weight: 600; }
.profile-education span { display: block; font-size: .875rem; color: var(--muted); }
.profile-focus { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.profile-focus span { font-size: .75rem; color: var(--muted); }
.profile-focus span + span::before { content: '/'; margin-right: 8px; color: #a4aba7; }
.hero-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .875rem; }
.hero-bottom p { margin: 0; }
.section { padding-top: 80px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 28px; }
h2 { font-size: clamp(1.625rem, 2.8vw, 2rem); letter-spacing: -.03em; margin: 0; }
.section-intro { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.project { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; background: var(--canvas); }
.project-featured { grid-column: 1 / -1; background: var(--surface); }
.project-overview { display: flex; flex-direction: column; }
.project-featured .project-overview { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; }
.project-copy { padding: 28px; }
.project-featured .project-copy { padding: 36px; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; font-size: .75rem; color: var(--muted); }
.category-chip { display: inline-block; padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 700; }
.project-title { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 3px; }
.project-title-link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.project-title-link img { width: 20px; height: 20px; flex-shrink: 0; }
.project-title-link:hover { text-decoration: underline; text-decoration-color: var(--brand-strong); text-underline-offset: 5px; }
.project-featured .project-title { font-size: 2rem; }
.project-subtitle { margin: 0 0 14px; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.project-description { margin-bottom: 18px; font-size: 1rem; color: var(--muted); }
.project-role { margin-bottom: 12px; font-size: .875rem; font-weight: 600; }
.project-role span { display: inline-block; padding-right: 10px; margin-right: 10px; border-right: 1px solid var(--border); font-weight: 500; color: var(--muted); }
.tags { display: flex; gap: 7px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.tags li { border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; font-size: .75rem; color: var(--muted); background: var(--canvas); }
.project-result { display: block; margin: 20px 0 0; font-size: .875rem; font-weight: 600; }
.project-result::before { content: ''; display: inline-block; vertical-align: middle; width: 14px; height: 3px; margin-right: 8px; background: var(--brand); }
.project-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; font-size: .875rem; font-weight: 600; }
.project-links a { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 5px; text-decoration-thickness: 2px; padding: 3px 0; }
.project-links a:hover { text-decoration-color: var(--text); }
.project-media { order: -1; position: relative; height: 252px; padding: 20px; background: var(--surface); border-bottom: 1px solid var(--border); overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: contain; }
.project-media figcaption { position: absolute; left: 16px; right: 16px; bottom: 12px; width: fit-content; max-width: calc(100% - 32px); padding: 3px 10px; background: rgb(255 255 255 / 96%); border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: .75rem; }
.project-featured .project-media { order: 0; display: flex; align-items: center; justify-content: center; height: 280px; margin: 28px 28px 28px 0; border: 1px solid var(--border); border-radius: var(--radius); background: #f0f5fc; padding: 36px; }
.project-featured .project-media img { max-width: 341px; height: auto; }
.project-featured .project-media figcaption { left: 0; right: 0; bottom: 20px; width: 100%; max-width: none; background: transparent; border: 0; text-align: center; }
.project-searchbook .project-media { flex-direction: column; gap: 12px; padding: 16px; }
.project-searchbook .project-media img { max-width: 100%; width: 100%; height: 0; min-height: 0; flex: 1; object-fit: contain; }
.project-searchbook .project-media figcaption { position: static; width: 100%; max-width: 100%; padding: 0; flex-shrink: 0; }
.project-recycling .project-media { background: #edf2ed; padding: 0; }
.project-recycling .project-media img { object-fit: cover; object-position: center 66%; }
.project-details { border-top: 1px solid var(--border); background: var(--canvas); }
.project-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; list-style: none; padding: 14px 28px; font-size: .875rem; font-weight: 600; cursor: pointer; }
.project-details summary::-webkit-details-marker { display: none; }
.project-details summary::after { content: '+'; color: var(--muted); font-size: 1.375rem; font-weight: 400; }
.project-details[open] summary::after { content: '−'; }
.project-details summary:hover { background: var(--surface); }
.detail-content { padding: 10px 28px 28px; }
.detail-section + .detail-section { margin-top: 22px; }
.detail-section h4 { font-size: 1rem; }
.detail-section p { margin: 0; color: var(--muted); font-size: 1rem; }
.detail-figure { margin-top: 24px; background: var(--surface); border-radius: 12px; padding: 12px; }
.detail-figure img { width: 100%; max-height: 640px; object-fit: contain; }
.detail-figure figcaption { margin-top: 10px; font-size: .75rem; color: var(--muted); }
.project-featured .detail-content { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; padding: 16px 36px 32px; }
.project-featured .detail-section + .detail-section { margin: 0; }
.project-featured .detail-figure { grid-column: 1 / -1; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skill-card { padding: 26px; background: var(--surface); border-radius: var(--radius); }
.skill-card h3 { font-size: 1.1875rem; letter-spacing: -.02em; }
.skill-subtitle { margin-bottom: 24px; font-size: .875rem; color: var(--muted); }
.skill-card dl { margin: 0; }
.skill-card dl > div + div { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.skill-card dt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 600; line-height: 1.5; }
.skill-card dt > span:last-child { flex: 1 1 130px; min-width: 0; }
.skill-icons { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--canvas); flex-shrink: 0; }
.skill-icons img { width: 28px; height: 28px; object-fit: contain; }
.skill-card dd { margin: 5px 0 0; font-size: .875rem; line-height: 1.7; color: var(--muted); }
.background-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.panel-heading { margin-bottom: 24px; font-size: .9375rem; color: var(--muted); }
.date { color: var(--muted); font-size: .8125rem; margin-bottom: 8px; }
.date span { display: inline-block; margin-left: 8px; padding: 1px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: .75rem; }
.education-item h4, .experience-item h4 { font-size: 1.1875rem; margin-bottom: 4px; }
.education-item > p:not(.date), .experience-item > p:not(.date), .experience-item li { font-size: 1rem; color: var(--muted); }
.education-stats { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 22px 0 0; }
.education-stats dt { font-size: .8125rem; color: var(--muted); }
.education-stats dd { font-size: 1.75rem; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.education-stats dd span { font-size: .8125rem; font-weight: 400; color: var(--muted); }
.experience-item + .experience-item { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.experience-role { margin-bottom: 10px; }
.experience-item ul { margin: 0; padding-left: 20px; }
.experience-item > p:last-child { margin: 0; }
.experience-item a { text-decoration: underline; text-decoration-color: var(--brand-strong); text-underline-offset: 3px; }
.credentials { display: grid; grid-template-columns: .35fr 1fr; gap: 32px; padding-top: 28px; }
.credentials h3 { margin: 0; font-size: .9375rem; color: var(--muted); }
.credentials ul { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; list-style: none; padding: 0; margin: 0; }
.credentials strong { display: block; font-size: .9375rem; font-weight: 600; }
.credentials li span { display: block; font-size: .875rem; color: var(--muted); }
.site-footer { margin-top: 80px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.footer-inner p { margin: 6px 0 0; color: var(--muted); font-size: .8125rem; }
.footer-right { text-align: right; align-self: center; }
.footer-right a { font-size: .875rem; }
.footer-right a:hover { text-decoration: underline; }

.section-indicator { --rail-step: 26px; position: fixed; right: 0; top: 50%; transform: translateY(-50%); width: min(12rem, 100vw); padding: 24px 16px; overflow: hidden; pointer-events: none; z-index: 80; }
.rail-panel {
    position: relative;
    isolation: isolate;
    width: 44px;
    margin-left: auto;
    padding: 5px 3px;
    border: 1px solid rgb(255 255 255 / 56%);
    border-radius: 24px;
    background: linear-gradient(145deg, rgb(255 255 255 / 34%), rgb(247 249 246 / 12%) 48%, rgb(255 255 255 / 26%));
    -webkit-backdrop-filter: blur(12px) saturate(170%);
    backdrop-filter: blur(12px) saturate(170%);
    box-shadow: 0 6px 20px rgb(25 27 30 / 11%), 0 1px 4px rgb(25 27 30 / 5%), inset 0 1px 0 rgb(255 255 255 / 72%), inset 0 -1px 0 rgb(255 255 255 / 32%);
    transform: translateX(64px);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility 0s .28s;
}
.rail-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(125deg, rgb(255 255 255 / 34%), transparent 32%, transparent 64%, rgb(164 204 58 / 5%));
    box-shadow: inset 1px 0 0 rgb(255 255 255 / 58%), inset -1px 0 0 rgb(255 255 255 / 30%);
    z-index: -1;
}
.section-indicator.is-visible .rail-panel, .section-indicator:focus-within .rail-panel { transform: translateX(0); opacity: 1; visibility: visible; transition-delay: 0s; pointer-events: auto; }
.section-indicator ol { list-style: none; margin: 0; padding: 0; }
.section-indicator a { position: relative; display: flex; align-items: center; justify-content: center; height: var(--rail-step); width: 36px; padding: 0; border-radius: 18px; transition: background .2s ease; }
.section-indicator a:hover, .section-indicator a:focus-visible { background: rgb(255 255 255 / 42%); }
.rail-mark { display: block; width: 12px; height: 3px; background: rgb(96 105 112 / 48%); border-radius: 2px; transition: width .22s ease, background .22s ease; }
.section-indicator a[aria-current='location'] .rail-mark { width: 32px; background: var(--text); }
.section-indicator a:hover .rail-mark, .section-indicator a:focus-visible .rail-mark { background: var(--text); }
.rail-label { position: absolute; right: calc(100% + 14px); top: 50%; transform: translate(4px, -50%); padding: 6px 12px; border: 1px solid rgb(255 255 255 / 85%); border-radius: 14px; background: linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(247 249 246 / 70%)); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 4px 14px rgb(25 27 30 / 10%), inset 0 1px 0 rgb(255 255 255 / 95%); color: var(--text); font-size: .875rem; line-height: 1.4; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, transform .15s ease, visibility 0s .15s; }
.section-indicator a:hover .rail-label, .section-indicator a:focus-visible .rail-label { transform: translate(0, -50%); opacity: 1; visibility: visible; transition-delay: 0s; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .rail-panel, .rail-label { background: rgb(247 249 246 / 97%); border-color: var(--border); }
}

@media (prefers-reduced-transparency: reduce) {
    .rail-panel, .rail-label { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--border); }
    .rail-panel::before { background: none; }
}

@media (max-width: 1023px) {
    .hero-card { gap: 28px; padding: 32px; }
    .profile-card { padding: 22px; }
    .skills-grid { gap: 16px; }
    .skill-card { padding: 22px; }
    .project-copy, .project-featured .project-copy { padding: 26px; }
    .background-grid { gap: 32px; }
}

@media (max-width: 767px) {
    html { scroll-padding-top: 76px; }
    .header-inner { min-height: 56px; gap: 12px; flex-wrap: wrap; }
    .blog-link { margin-left: auto; font-size: .8125rem; padding: 6px 10px; }
    .section-indicator { padding-right: 12px; }
    .hero { padding-top: 36px; }
    .hero-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
    h1 { font-size: 2rem; }
    .hero-description { max-width: 100%; }
    .profile-card { padding: 22px; }
    .profile-heading { gap: 12px; }
    .profile-photo { width: 56px; height: 70px; }
    .github-chip { padding-inline: 6px; flex-wrap: wrap; }
    .profile-education { margin-top: 18px; padding-top: 16px; }
    .hero-bottom { align-items: flex-start; font-size: .8125rem; }
    .section { padding-top: 56px; }
    .section-heading { display: block; margin-bottom: 22px; }
    .section-intro { margin-top: 12px; font-size: .875rem; }
    .section-intro br { display: none; }
    .project-grid { grid-template-columns: 1fr; gap: 22px; }
    .project-featured { grid-column: auto; }
    .project-featured .project-overview { display: flex; }
    .project-featured .project-media { order: -1; width: calc(100% - 40px); height: 200px; margin: 20px 20px 0; padding: 30px; }
    .project-featured .project-media img { max-width: 265px; }
    .project-searchbook .project-media { padding: 16px; }
    .project-searchbook .project-media img { max-width: 100%; }
    .project-featured .project-media figcaption { font-size: .75rem; bottom: 12px; }
    .project-copy, .project-featured .project-copy { padding: 24px; }
    .project-description { font-size: 1rem; }
    .project-media { height: 236px; }
    .project-details summary { padding-inline: 24px; }
    .detail-content { padding: 10px 24px 24px; }
    .project-featured .detail-content { display: block; padding: 10px 24px 24px; }
    .project-featured .detail-section + .detail-section { margin-top: 22px; }
    .skills-grid { grid-template-columns: 1fr; gap: 16px; }
    .skill-card { padding: 26px; }
    .background-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 28px; }
    .experience-panel { padding-top: 28px; border-top: 1px solid var(--border); }
    .credentials { grid-template-columns: 1fr; gap: 18px; }
    .credentials ul { grid-template-columns: 1fr; gap: 18px; }
    .site-footer { margin-top: 56px; }
    .footer-inner { flex-direction: column; }
    .footer-right { text-align: left; align-self: flex-start; }
}

@media (max-width: 374px) {
    .hero-card, .contact-card { padding: 22px; }
    h1 { font-size: 1.75rem; }
    .domain-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
    .site-header, .section-indicator, .site-footer { display: none; }
    .container { max-width: none; padding-inline: 0; }
    .hero { padding-top: 0; }
    .hero-card { padding: 24px; gap: 24px; }
    .section { padding-top: 32px; }
    .project-grid, .skills-grid { display: block; }
    .project, .skill-card { margin-bottom: 20px; break-inside: avoid; }
    .project-media { display: none !important; }
    .project-featured .project-overview { display: block; }
}
