/* ===== 색상과 기본값: 색을 바꾸려면 여기 변수만 수정하세요 ===== */
:root {
  --primary: #007aa6;        /* 하늘색 배경과 읽기 쉬운 짙은 파랑 */
  --primary-dark: #12638a;
  --primary-soft: #e3f5fc;
  --sky: #cef2fd;
  --text: #10283b;
  --text-sub: #526777;
  --text-muted: #5b6f7e;
  --line: #d5e6ef;
  --card: #ffffff;
  --bg: #f7fcfd;
  --bg-alt: #f2fafd;
  --radius: 16px;
  --radius-inset: 12px;
  --shadow: 0 8px 24px -12px rgba(18, 99, 138, 0.16);
  --max: 1080px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "PingFang SC", "Microsoft YaHei", "Noto Sans KR", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
/* 중국어와 일본어는 띄어쓰기가 없어서 keep-all을 쓰면 줄이 넘치므로 일반 줄바꿈 사용 */
html:lang(zh) body, html:lang(ja) body { word-break: normal; }
a { color: inherit; }
ul { list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 252, 253, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; height: 52px; gap: 12px;
}
.site-nav { grid-column: 2; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.site-nav a:first-child { margin-left: auto; }
.site-nav a:last-child { margin-right: auto; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  text-decoration: none; color: var(--text-sub); font-size: 14px;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.site-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.header-tools { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 14px; }
.header-name { grid-column: 1; grid-row: 1; justify-self: start; color: var(--primary); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-name:hover { color: var(--primary-dark); }
.lang-switch { position: relative; background: var(--primary-soft); padding: 3px; border-radius: 999px; }
.lang-switch button {
  border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--text-sub);
  padding: 4px 10px; border-radius: 999px; cursor: pointer; line-height: 1.5;
}
.lang-switch .language-toggle { display: flex; align-items: center; gap: 7px; background: var(--primary); color: #fff; white-space: nowrap; }
.language-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.language-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.language-menu { position: absolute; top: 100%; right: 0; min-width: 134px; padding-top: 8px; }
.language-options { display: grid; gap: 3px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.language-options button { width: 100%; padding: 8px 12px; text-align: left; }
.language-options button:hover { background: var(--primary-soft); color: var(--primary-dark); }
.language-options button[aria-pressed="true"] { background: var(--primary); color: #fff; }

/* ===== 첫 화면 ===== */
.hero {
  background:
    radial-gradient(ellipse 75% 58% at 82% 0%, rgba(187, 238, 252, 0.72), transparent 76%),
    radial-gradient(ellipse 40% 48% at 0% 12%, rgba(219, 249, 253, 0.75), transparent 78%),
    var(--bg);
  padding: 88px 0;
}
.hero-text { max-width: 960px; }
.hero h1 { font-size: 68px; line-height: 1.2; letter-spacing: -0.03em; margin: 8px 0 24px; }
.headline { font-size: 34px; font-weight: 700; line-height: 1.5; letter-spacing: -0.025em; margin-bottom: 24px; }
.headline-phrase { display: inline-block; max-width: 100%; text-wrap: balance; }
.sentence { display: block; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-soft); }

.strengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 52px; }
.strength { min-width: 0; padding-inline: 24px; }
.strength:first-child { padding-inline-start: 0; }
.strength:last-child { padding-inline-end: 0; }
.strength + .strength { border-inline-start: 1px solid var(--line); }
.strength h2 { font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.strength p { color: var(--text-sub); font-size: 15px; }

/* ===== 공통 섹션 ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-label { color: var(--primary); font-weight: 700; letter-spacing: 0.14em; font-size: 14px; }
.section-title { font-size: 32px; letter-spacing: -0.02em; margin: 4px 0 28px; line-height: 1.45; text-wrap: balance; }
.lead { color: var(--text-sub); font-size: 16px; margin-bottom: 12px; max-width: 760px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.meta { color: var(--text-muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--primary-soft); color: var(--primary-dark); font-size: 13px;
  padding: 4px 12px; border-radius: 999px;
}
.bullets li { position: relative; padding-left: 16px; color: var(--text-sub); margin: 4px 0; font-size: 15px; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.75em;
  width: 6px; height: 6px; border-radius: 50%; background: #6dd1f2;
}
.sub-title { font-size: 15px; font-weight: 700; margin: 18px 0 6px; color: var(--text); }

/* 펼쳐 보기 */
details.more { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
details.more > summary {
  cursor: pointer; color: var(--primary); font-weight: 600; font-size: 15px; list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-weight: 700; }
details.more[open] > summary::after { content: "−"; }
details.more[open] > summary .when-closed { display: none; }
details.more:not([open]) > summary .when-open { display: none; }

/* ===== About ===== */
#about .section-title { max-width: 32em; margin-bottom: 40px; }
.title-line { display: block; text-wrap: pretty; }
.about-body { max-width: 760px; }
.about-body p { color: var(--text); font-size: 18px; line-height: 1.95; margin-bottom: 22px; text-wrap: pretty; }
.about-body p:last-child { margin-bottom: 0; }
.about-accordions { display: grid; gap: 12px; margin-top: 32px; }
.disclosure { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-inset); }
.disclosure > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 50px; padding: 12px 20px; list-style: none;
  cursor: pointer; font-size: 16px; font-weight: 600; line-height: 1.5;
  border-radius: var(--radius-inset);
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: "+"; flex-shrink: 0; color: var(--primary); font-size: 20px; font-weight: 600; line-height: 1; }
.disclosure[open] > summary::after { content: "−"; }
.disclosure > summary:hover { color: var(--primary); }
.disclosure-body { margin: 0 20px; padding: 18px 0 20px; border-top: 1px solid var(--line); color: var(--text-sub); font-size: 15px; }
.disclosure-body h3 { font-size: 16px; margin: 22px 0 10px; color: var(--text); }
.disclosure-body h3:first-child { margin-top: 0; }
.edu-item + .edu-item { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.edu-item strong { display: block; font-size: 16px; }
.tool-item { margin: 6px 0; font-size: 15px; color: var(--text-sub); }
.tool-item strong { color: var(--text); font-weight: 600; }

/* ===== Experience ===== */
.exp-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.exp-head h3 { font-size: 21px; }
.experience-card + .experience-card { margin-top: 20px; }
.exp-period { color: var(--primary); font-size: 14px; white-space: nowrap; }
.experience-summary { font-size: 17px; margin-top: 20px; text-wrap: pretty; }
.experience-skills { margin-top: 20px; }
.experience-skills .tag { background: var(--sky); font-size: 14px; }
.experience-details { display: grid; gap: 12px; margin-top: 24px; }
.experience-case h4 { color: var(--text); font-size: 17px; margin-bottom: 10px; }
.experience-case + .experience-case { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; }
.workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0; list-style: none; }
.workflow li { min-width: 0; padding: 12px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); font-size: 14px; }
.workflow li > span { display: block; font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.comparison-scroll { overflow-x: auto; margin: 18px 0 12px; border: 1px solid var(--line); border-radius: 12px; }
.comparison-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 14px; }
.comparison-table th, .comparison-table td { padding: 12px 14px; vertical-align: top; overflow-wrap: anywhere; }
.comparison-table thead { background: var(--bg-alt); color: var(--text); }
.comparison-table th:first-child { width: 28%; }
.comparison-table tbody tr + tr { border-top: 1px solid var(--line); }
.comparison-table tbody th { color: var(--text); font-weight: 600; }
.evidence-caption { color: var(--text-muted); font-size: 13px; line-height: 1.7; }

/* ===== Projects ===== */
.projects-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.project { min-width: 0; }
.project-topline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; color: var(--text-muted); font-size: 13px; }
.project-period { margin-left: auto; font-variant-numeric: tabular-nums; }
.project h3 { font-size: 25px; margin: 0 0 10px; line-height: 1.45; letter-spacing: -0.02em; text-wrap: balance; }
.guide-summary { color: var(--text); font-size: 16px; line-height: 1.8; max-width: 80ch; text-wrap: pretty; }
.guide-role { color: var(--text-sub); font-size: 13px; line-height: 1.8; margin: 10px 0 20px; max-width: 90ch; text-wrap: pretty; }
.guide-role > span { color: var(--primary-dark); font-weight: 600; margin-right: 10px; white-space: nowrap; }
.project-story { display: grid; gap: 14px; max-width: 880px; }
.project-story > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.project-story dt { color: var(--primary-dark); font-size: 13px; font-weight: 600; }
.project-story dd { margin: 0; color: var(--text-sub); font-size: 15px; line-height: 1.85; text-wrap: pretty; }
.project-story > div:last-child dd { color: var(--text); }
.project .link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.project .link-row .btn { font-size: 13px; padding: 8px 15px; border-width: 1px; border-radius: 10px; }
.project .link-row .btn:hover { border-color: var(--primary-dark); }
.project .link-row .btn > span { font-size: 16px; line-height: 1; }
details.project-details { margin-top: 18px; padding-top: 0; border-top: 0; }
details.project-details > summary { font-size: 13px; color: var(--text-muted); }
details.project-details > summary:hover { color: var(--primary); }
.project-details-body { margin-top: 14px; padding-top: 18px; }
.project-details-body h4 { font-size: 15px; color: var(--text); margin-bottom: 12px; }
.project-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.project-process li { position: relative; min-width: 0; border-top: 1px solid var(--line); padding-top: 10px; }
.step-count { display: block; color: var(--primary); font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.project-process p { color: var(--text-sub); font-size: 14px; line-height: 1.85; text-wrap: pretty; }
.process-arrow { position: absolute; right: -17px; top: 6px; color: var(--text-muted); font-size: 16px; }
.guide-ai { margin-top: 24px; }
.guide-ai h4 { margin-bottom: 4px; }
.guide-tools { color: var(--primary-dark); font-size: 13px; margin-bottom: 14px; }
.guide-ai-duties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guide-ai-duties > div { min-width: 0; border-left: 2px solid var(--sky); padding-left: 12px; }
.guide-ai-duties dt { color: var(--text); font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.guide-ai-duties dd { margin: 0; color: var(--text-sub); font-size: 14px; line-height: 1.85; text-wrap: pretty; }
.extra { margin-top: 28px; }
.extra-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.extra-item { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-inset); padding: 16px 18px; }
.extra-item strong { display: block; font-size: 15px; }
.extra-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.activity-link { margin-top: 10px; padding: 8px 15px; font-size: 13px; border-width: 1px; border-radius: 10px; }

/* ===== Now ===== */
.now-as-of { color: var(--primary); font-size: 15px; margin-bottom: 24px; }
.now-statement { background: var(--card); border: 1px solid var(--line); border-left: 4px solid #6dd1f2; border-radius: var(--radius); padding: 24px 28px; }
.now-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; margin-top: 32px; }
.now-grid h3 { font-size: 18px; margin-bottom: 14px; }
.now-grid .bullets li { font-size: 16px; margin: 8px 0; }
.now-grid .tag { background: var(--sky); font-size: 14px; padding: 5px 12px; }
.now-plan-groups { display: grid; gap: 22px; }
.now-plan-group { min-width: 0; }
.now-plan-group + .now-plan-group { border-top: 1px solid var(--line); padding-top: 20px; }
.now-grid .now-plan-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.now-plan-period { color: var(--primary); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.statement { font-size: 17px; color: var(--text); line-height: 1.9; text-wrap: pretty; }

/* ===== Notes ===== */
.notes-list { display: grid; border-top: 1px solid var(--line); }
.note-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 28px; min-width: 0; padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.note-card > time { grid-column: 1; grid-row: 1 / 4; padding-top: 4px; font-variant-numeric: tabular-nums; }
.note-card > h3, .note-card > p, .note-card > .tags { grid-column: 2; }
.note-card h3 { font-size: 20px; line-height: 1.5; margin: 0; max-width: 65ch; text-wrap: balance; }
.note-card h3 a { text-underline-offset: 4px; overflow-wrap: anywhere; }
.note-card h3 a:hover { color: var(--primary); }
.note-summary { color: var(--text-sub); font-size: 15px; line-height: 1.8; max-width: 76ch; }

/* ===== Contact ===== */
#contact > .container { max-width: 800px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.contact-intro .lead { font-size: 16px; line-height: 1.7; margin-bottom: 4px; }
.contact-address { display: inline-block; color: var(--primary); font-size: 20px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-address:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.card.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 22px; }
.form-field-message, .contact-form .btn { grid-column: 1 / -1; }
.form-field { display: grid; gap: 6px; min-width: 0; }
.form-field label { font-size: 15px; font-weight: 600; }
.form-field input, .form-field textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; line-height: 1.5; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-inset); padding: 9px 12px; }
.form-field textarea { min-height: 108px; resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--text-muted); font-size: 14px; text-align: center; }
.noscript { padding: 20px; text-align: center; }

/* ===== 태블릿/모바일 ===== */
@media (max-width: 900px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 36px 32px; height: auto; padding-top: 4px; padding-bottom: 4px; gap: 0; }
  .header-tools { grid-column: 2; grid-row: 1; gap: 12px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; max-width: 100%; }
  html { scroll-padding-top: 92px; }
  .hero { padding-top: 64px; padding-bottom: 72px; }
  .strengths { grid-template-columns: 1fr; }
  .strengths > .strength { padding-inline: 0; }
  .strength + .strength { border-inline-start: 0; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
  .extra-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lang-switch .language-toggle { font-size: 12px; padding: 4px 9px; }
  .site-nav a { font-size: 12px; padding: 4px 6px; }
  .hero { padding: 44px 0 56px; }
  .hero h1 { font-size: 50px; }
  .headline { font-size: 25px; margin-bottom: 18px; }
  .hero-interests .tag { font-size: 15px; padding: 5px 14px; }
  .strengths { margin-top: 36px; }
  .card.contact-form { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 26px; }
  #about .section-title { margin-bottom: 28px; }
  .about-body p { font-size: 16px; line-height: 1.9; margin-bottom: 20px; }
  .about-accordions { margin-top: 28px; gap: 12px; }
  .disclosure > summary { min-height: 46px; padding: 10px 16px; font-size: 15px; }
  .disclosure-body { margin: 0 16px; padding: 16px 0 18px; }
  .exp-head h3 { font-size: 19px; }
  .experience-summary { font-size: 16px; }
  .experience-skills .tag { font-size: 13px; }
  .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-table th, .comparison-table td { padding: 10px; }
  .project-topline { gap: 10px; }
  .project h3 { font-size: 21px; }
  .project-story { gap: 16px; }
  .project-story > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .project-process { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .project-process li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
  .step-count { margin-bottom: 0; }
  .process-arrow { display: none; }
  .guide-ai-duties { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .now-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .now-statement { padding: 20px; }
  .contact-address { font-size: 20px; }
  .card { padding: 22px; }
  .project { padding: 22px; }
  .note-card { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px 0; }
  .note-card > time, .note-card > h3, .note-card > p, .note-card > .tags { grid-column: 1; grid-row: auto; }
  .note-card > time { padding-top: 0; }
}

/* 첫 화면 관심 분야 */
.hero-interests { margin-top: 26px; }
.hero-interests .tag { background: var(--primary); color: #fff; font-size: 17px; padding: 6px 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
