@font-face {
  font-family: Manrope; src: url('/assets/manrope.woff2') format('woff2'); font-weight: 400 800; font-display: swap;
}
@font-face {
  font-family: "WCBio Hangul"; src: url('/assets/pretendard-common.woff2') format('woff2'); font-weight: 45 920; font-display: swap;
  unicode-range: U+1100-11FF,U+3130-318F,U+AC00-D7A3;
}
@font-face {
  font-family: Pretendard; src: url('/assets/pretendard.woff2') format('woff2'); font-weight: 45 920; font-display: swap;
  unicode-range: U+1100-11FF,U+3130-318F,U+A960-A97F,U+AC00-D7FF;
}

:root {
  --ink: #112236;
  --secondary: #485d72;
  --muted: #53697e;
  --accent: #184a7a;
  --accent-hover: #103b64;
  --wash: #eef4fa;
  --line: #d5e1eb;
  --white: #fff;
  --page: 72rem;
  --padding: clamp(1.3rem, 5vw, 4.5rem);
  color: var(--ink);
  font-family: Manrope, "WCBio Hangul", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-weight: 500;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #2c69a1; outline-offset: 4px; }
section[id] { scroll-margin-top: 1.5rem; }
.wrap { max-width: calc(var(--page) + var(--padding) * 2); padding-inline: var(--padding); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: .7rem; left: 1rem; transform: translateY(-180%); background: #fff; padding: .7rem 1rem; }
.skip-link:focus { transform: none; }

.site-header { background: #fff; border-bottom: 1px solid #e4ecf3; }
.header-inner { min-height: 73px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .68rem; width: fit-content; text-decoration: none; font-size: .94rem; font-weight: 800; letter-spacing: -.025em; }
.monogram { display: grid; place-content: center; width: 37px; height: 37px; flex: 0 0 37px; background: #173655; color: #fff; border-radius: 8px; font-size: .82rem; letter-spacing: -.065em; }
.main-nav { display: flex; justify-content: center; gap: clamp(1.4rem, 3.4vw, 2.8rem); }
.main-nav a, .edit-link { text-decoration: none; color: var(--secondary); font-size: .91rem; font-weight: 750; padding-block: .55rem; }
.main-nav a:hover, .edit-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .3rem; }
.language { justify-self: end; width: max-content; display: inline-flex; gap: .15rem; align-items: center; padding: .17rem; border: 1px solid #e0e8f0; background: #f3f7fb; border-radius: 8px; }
.language a { min-width: 2.35rem; text-align: center; padding: .43rem .63rem; line-height: 1; min-height: 2rem; display: grid; place-content: center; text-decoration: none; border-radius: 6px; font-size: .81rem; font-weight: 800; color: var(--secondary); }
.language a[aria-current] { color: #14395d; background: white; box-shadow: 0 1px 3px #1736551a; }
.language a:hover { color: var(--accent); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .53rem; min-height: 46px; padding: .72rem 1.07rem; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); font-weight: 800; font-size: .9rem; line-height: 1.25; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.button svg { width: 17px; height: 17px; flex: 0 0 17px; }
.button-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button-line { border-color: #becfdf; color: #254866; }
.button-line:hover { border-color: #92adc7; background: #f9fcff; }
.contact { background: #142d48; color: #fff; }
.contact-inner { min-height: 15rem; display: flex; justify-content: space-between; align-items: center; gap: 2.1rem; padding-block: 3.5rem; }
.contact h2 { font-size: clamp(2.45rem, 4vw, 3.7rem); }
.contact p { color: #d8e7f6; margin-top: .72rem; line-height: 1.6; font-size: 1.04rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; flex-shrink: 0; }
.button-white { color: #173655; background: #f9fbff; }
.button-white:hover { background: #ddecfb; }
.button-light-line { color: white; border-color: #86a4bf; }
.button-light-line:hover { background: #33516d; }
.contact a:focus-visible { outline-color: #b1d8fd; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 79px; padding-block: .8rem; }
.footer-inner .monogram { width: 32px; height: 32px; flex-basis: 32px; }

@font-face { font-family: Baskervville; src: url('/assets/baskervville.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
:root { --deep: #102634; --teal: #0b625e; --paper: #f4f6f5; --hairline: #cfdbda; }
body:not(.admin-page) { color: var(--deep); }
body:not(.admin-page) .site-header { position: sticky; z-index: 5; top: 0; background: #fffffff7; border-bottom-color: #d9e1df; }
.monogram { background: var(--deep); border-radius: 50%; font-family: Baskervville, Georgia, serif; font-size: 1.03rem; font-weight: 500; }
.main-nav { gap: clamp(1.1rem, 2.7vw, 2.4rem); }
.main-nav a { white-space: nowrap; border-bottom: 2px solid transparent; }
.main-nav a[aria-current] { color: var(--teal); border-color: var(--teal); }
section[id], .projects li { scroll-margin-top: 6rem; }
.cover { background: #0b202d; color: #fff; overflow: hidden; position: relative; isolation: isolate; }
.cityscape { position: absolute; z-index: -2; top: 0; right: 0; width: 70%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.cover::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#0b202d 30%,#0b202df2 36%,#0b202d99 52%,#0b202d12 74%),linear-gradient(0deg,#091a2888,transparent 32%); }
.cover-inner { position: relative; padding-block: clamp(2.4rem, 4vw, 4rem) clamp(3rem, 4.5vw, 4.5rem); }
.identity { display: flex; gap: .8rem; align-items: center; font-size: .87rem; line-height: 1.45; color: #ccdadf; }
.identity img { border-radius: 50%; object-fit: cover; border: 1px solid #cad9d8; }
.identity strong { font-size: 1rem; color: white; font-weight: 650; }
.cover h1 { font-family: Baskervville, Georgia, serif; font-size: clamp(4.05rem,6.7vw,6.9rem); line-height: .94; letter-spacing: -.058em; font-weight: 450; margin: 1.5rem 0 1rem; max-width: 65%; overflow-wrap: anywhere; }
.cover h1 span { display: block; }
html[lang="ko"] .cover h1 { font-family: inherit; font-size: clamp(4.4rem,6.65vw,6.5rem); line-height: 1.06; font-weight: 650; letter-spacing: -.075em; margin-bottom: .35rem; }
.roman-name { font-family: Baskervville, Georgia, serif; font-size: clamp(1.6rem,2.4vw,2.4rem); line-height: 1.15; color: #e4eaeb; letter-spacing: -.018em; }
.cover-intro { max-width: min(43ch,53%); line-height: 1.65; font-size: clamp(1rem,1.45vw,1.17rem); color: #dce7ea; margin-top: 1.12rem; }
html[lang="ko"] .cover-intro { max-width: min(30rem,50%); }
html[lang="ko"] :is(p,h2,h3,summary,.projects li,.work-meta,.role-meta) { word-break: keep-all; overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.45rem; }
.button { border-radius: 5px; }
.button-glass { color: #fff; border-color: #91a5af; background: #0b202d66; }
.button-glass:hover { background: #244356; }
.cover-location { position: absolute; right: var(--padding); bottom: 1.35rem; display: flex; align-items: center; gap: .4rem; font-size: .86rem; color: #fff; text-shadow: 0 1px 6px #000; }
.cover-location svg { width: 16px; height: 16px; }
.cover :focus-visible { outline-color: #b8e9db; }
h2 { font-size: clamp(2rem,3.1vw,3.1rem); font-weight: 700; line-height: 1.12; letter-spacing: -.052em; }
html[lang="en"] main h2 { font-family: Baskervville,Georgia,serif; font-weight: 550; }
.selected { padding-block: clamp(2.5rem,4.5vw,4.6rem); }
.work-grid { list-style: none; margin: 1.45rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,2vw,1.65rem); }
.work-card { height: 100%; display: flex; flex-direction: column; background: #fff; text-decoration: none; border: 1px solid var(--hairline); border-radius: 7px; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
a.work-card:hover { border-color: #76a49b; box-shadow: 0 4px 16px #133d3812; }
.work-art { width: 100%; aspect-ratio: 2.17; height: auto; object-fit: cover; }
.work-body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.1rem; }
.work-meta { display: flex; justify-content: space-between; gap: .6rem; font-size: .82rem; font-weight: 730; color: var(--teal); }
.work-meta span + span { color: #526a70; font-weight: 600; }
.work-body h3 { font-weight: 750; font-size: clamp(1.17rem,1.7vw,1.5rem); line-height: 1.32; margin: .62rem 0 .45rem; letter-spacing: -.036em; }
.work-body p, .about-copy, .edu-detail { color: #465b63; line-height: 1.68; }
.work-link { width: fit-content; margin-top: auto; padding-top: 1.1rem; text-decoration: underline; text-underline-offset: .23em; color: var(--teal); font-size: .91rem; font-weight: 730; }
.experience { border-block: 1px solid #dce4e2; background: var(--paper); }
.exp-grid { display: grid; grid-template-columns: minmax(14.5rem,.73fr) minmax(0,2fr); align-items: start; gap: clamp(2rem,5vw,5rem); padding-block: clamp(2.7rem,5vw,5rem); }
.exp-index { position: sticky; top: 6.25rem; }
.exp-index h2 { max-width: 13ch; }
.career-tools { margin-top: 1.4rem; }
.search-field { display: flex; gap: .65rem; align-items: center; padding-inline: .85rem; background: white; border: 1px solid #aebfbe; border-radius: 5px; }
.search-field:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.search-field input { width: 100%; min-width: 0; border: none; background: none; outline: none; padding-block: .78rem; font-size: .88rem; color: var(--deep); }
.search-field input::placeholder { color: #586b70; opacity: 1; }
.search-symbol { width: 13px; height: 13px; flex: 0 0 13px; border: 1.7px solid #466167; border-radius: 50%; position: relative; }
.search-symbol::after { content: ''; position: absolute; width: 6px; height: 2px; background: #466167; bottom: -2px; right: -4px; transform: rotate(45deg); }
.company-filter { display: flex; flex-wrap: wrap; gap: .42rem; margin-top: .8rem; }
.company-filter button { background: transparent; border: 1px solid #bccbc9; color: #405c60; border-radius: 99px; padding: .48rem .72rem; font-size: .84rem; font-weight: 670; }
.company-filter button[aria-pressed="true"] { background: #174641; border-color: #174641; color: white; }
.filter-status { font-size: .88rem; color: #486267; margin-top: .6rem; }
.role-list { border-top: 2px solid #365e61; }
.role-entry { display: grid; grid-template-columns: minmax(7rem,.33fr) minmax(0,1fr); gap: 1.1rem; padding-block: 1.55rem; border-bottom: 1px solid var(--hairline); }
.role-date,.edu-period { color: #356361; font-size: .88rem; font-weight: 720; font-variant-numeric: tabular-nums; line-height: 1.6; }
.role-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; color: #4b6267; font-size: .85rem; }
.role-meta span + span { border-left: 1px solid #acbdbd; padding-left: .65rem; }
.role-main h3 { font-size: clamp(1.24rem,1.8vw,1.58rem); line-height: 1.33; letter-spacing: -.04em; margin-top: .35rem; }
.role-description { color: #41565d; line-height: 1.7; margin-top: .5rem; }
.role-description p + p { margin-top: .55rem; }
.project-details { margin-top: .85rem; }
.project-details summary { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; color: var(--teal); font-size: .9rem; font-weight: 750; padding-block: .4rem; }
.project-details summary::-webkit-details-marker { display: none; }
.number { background: #deebe7; border-radius: 4px; padding: .08rem .37rem; font-size: .8rem; }
.project-details summary::after { content: ''; width: .38rem; height: .38rem; border-bottom: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg); margin: -.15rem .3rem 0 .35rem; }
.project-details[open] summary::after { transform: rotate(225deg); margin-top: .22rem; }
.projects { list-style: none; margin: .4rem 0 0; padding: 0 .9rem; background: #fff; border-left: 2px solid #77a599; }
.projects li { display: grid; gap: .14rem; padding: .78rem .1rem; color: #314a51; font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.projects li + li { border-top: 1px solid #e0e8e5; }
.projects li:target,.projects li:focus { background: #e4f0e9; outline: 2px solid #508b76; outline-offset: 2px; }
.project-period { font-size: .84rem; color: #4e696a; font-weight: 700; font-variant-numeric: tabular-nums; }
.no-match { padding-block: 2rem; }
.no-match button { margin-top: .75rem; }
.background-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2.5rem,7vw,7rem); padding-block: clamp(2.8rem,5vw,5rem); }
.background-grid:has(> section:only-child) { grid-template-columns: 1fr; }
.about-copy { margin-top: 1.4rem; max-width: 60ch; font-size: 1.05rem; }
.about-copy p + p { margin-top: .9rem; }
.education-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.education-list li { padding-block: .85rem; border-top: 1px solid var(--hairline); }
.education-list h3 { font-size: 1.13rem; }
.edu-detail { font-size: .94rem; }
.contact { background: var(--deep); }
.contact-inner { min-height: 12rem; }
@media(max-width: 900px) {
  .exp-grid { grid-template-columns: 1fr; gap: 1.35rem; }
  .exp-index { position: static; }
  .exp-index h2 { max-width: none; }
  .career-tools { max-width: 35rem; }
  .cover h1 { max-width: 74%; }
}
@media(max-width: 720px) {
  .header-inner { grid-template-columns: 1fr auto; gap: .12rem .7rem; padding-top: .65rem; }
  .main-nav { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; gap: 1.1rem; overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
  .main-nav a { font-size: .87rem; padding-block: .6rem; }
  section[id],.projects li { scroll-margin-top: 7rem; }
  .cover-inner { padding-block: 2rem 3rem; }
  .cityscape { width: 100%; object-position: center 53%; }
  .cover::before { background: linear-gradient(90deg,#0a202fee 0%,#0b202dba 55%,#0b202d50),linear-gradient(0deg,#081d2b88,transparent); }
  .cover h1,html[lang="ko"] .cover-intro,.cover-intro { max-width: 100%; }
  .cover h1 { font-size: clamp(3.48rem,10vw,5rem); }
  .cover-intro { max-width: 38ch; }
  .cover-location { bottom: .72rem; font-size: .8rem; }
  .hero-actions { margin-top: 1.2rem; }
  .work-grid { grid-template-columns: 1fr; gap: .85rem; }
  .work-card:has(.work-art) { display: grid; grid-template-columns: 30% 1fr; }
  .work-art { height: 100%; min-height: 9rem; aspect-ratio: auto; }
  .work-body { padding: .85rem; }
  .work-meta { flex-wrap: wrap; gap: .2rem .6rem; }
  .work-body h3 { margin-block: .4rem .25rem; }
  .work-link { padding-top: .7rem; }
  .role-entry { grid-template-columns: 1fr; gap: .45rem; padding-block: 1.25rem; }
  .background-grid { grid-template-columns: 1fr; }
  .contact-inner { flex-direction: column; align-items: flex-start; gap: 1.2rem; padding-block: 2.5rem; }
}
@media(max-width:380px) {
  .main-nav { gap: .9rem; }
  .main-nav a { font-size: .81rem; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: 0s !important; }
}
