:root {
  --fg: #111111;
  --fg-soft: #555555;
  --fg-mute: #8a8a8a;
  --line: rgba(0,0,0,0.08);
  --line-soft: rgba(0,0,0,0.05);

  /* Section background tints (pastel) */
  --bg-hero: #ffffff;
  --bg-about: #fef9ec;        /* cream */
  --bg-skills: #e0f2fe;       /* light sky blue */
  --bg-archive: #eef4ff;      /* powder blue */
  --bg-projects: #ebfaef;     /* mint */
  --bg-career: #fff0e6;       /* peach */
  --bg-footer: #fafafa;

  /* Section accent colors */
  --ac-about: #b8860b;        /* warm gold */
  --ac-skills: #3b6bd1;       /* steel blue */
  --ac-archive: #0284c7;      /* sky blue */
  --ac-projects: #2d7d4a;     /* forest green */
  --ac-career: #c2410c;       /* burnt orange */

  --font: "Inter", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg-hero);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.nav__inner {
  max-width: 720px; margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav__logo { font-weight: 700; font-size: 15px; letter-spacing: -0.3px; }
.nav__links { display: flex; gap: 22px; font-size: 13px; }
.nav__links a { color: var(--fg-soft); transition: color .2s; }
.nav__links a:hover { color: var(--fg); }

/* ===== Hero ===== */
.hero { background: var(--bg-hero); padding: 100px 0 70px; }
.hero__hi { font-size: 14px; color: var(--fg-soft); margin-bottom: 12px; }
.hero__name {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700; letter-spacing: -2px; line-height: 1.1;
  margin-bottom: 14px;
}
.hero__role { font-size: 18px; font-weight: 500; margin-bottom: 22px; }
.hero__quote {
  font-size: 16px; color: var(--fg-soft); max-width: 520px;
  line-height: 1.75; margin-bottom: 40px;
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--fg);
  border-bottom: 1px solid var(--fg); padding-bottom: 2px;
  transition: opacity .2s;
}
.hero__cta:hover { opacity: 0.6; }

/* ===== Section base ===== */
.section { padding: 80px 0; position: relative; }
.section--about    { background: var(--bg-about);    --ac: var(--ac-about); }
.section--skills   { background: var(--bg-skills);   --ac: var(--ac-skills); }
.section--archive  { background: var(--bg-archive);  --ac: var(--ac-archive); }
.section--projects { background: var(--bg-projects); --ac: var(--ac-projects); }
.section--career   { background: var(--bg-career);   --ac: var(--ac-career); }

.section__head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
}
.section__icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--ac); border-radius: 8px; padding: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.section__icon svg { width: 100%; height: 100%; stroke-width: 1.8; }
.section__title { font-size: 22px; font-weight: 700; letter-spacing: -0.6px; }
.section__tag {
  margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--ac); background: #fff; padding: 4px 10px; border-radius: 999px;
  border: 1px solid currentColor; text-transform: uppercase;
}

/* ===== About ===== */
.about {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; padding: 24px 26px; border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}
.about__row {
  display: grid; grid-template-columns: 22px 90px 1fr;
  gap: 14px; align-items: center; font-size: 15px; padding: 6px 0;
}
.about__row + .about__row { border-top: 1px dashed rgba(0,0,0,0.05); }
.about__row-icon {
  color: var(--ac-about);
  display: inline-flex; align-items: center; justify-content: center;
}
.about__row-icon svg { width: 17px; height: 17px; stroke-width: 1.8; }
.about__row-label { color: var(--fg-mute); font-size: 13.5px; font-weight: 500; }
.about__row-value { color: var(--fg); font-weight: 500; }
.about__row-value a { border-bottom: 1px solid rgba(0,0,0,0.15); transition: border-color .2s; }
.about__row-value a:hover { border-color: var(--fg); }

/* ===== Skills ===== */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.skills__group {
  background: #fff; padding: 22px 24px; border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}
.skills__group-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
  color: var(--ac-skills);
}
.skills__group-title-icon {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.skills__group-title-icon svg { width: 100%; height: 100%; }
.skills__list { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--fg-soft); }
.skills__list li { padding-left: 14px; position: relative; }
.skills__list li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ac-skills); position: absolute; left: 2px; top: 10px;
}

/* ===== Archive ===== */
.archive { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.archive__card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; background: #fff;
  border: 1px solid rgba(0,0,0,0.04); border-radius: 14px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.archive__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.18);
}
.archive__card-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-archive); border-radius: 10px; color: var(--ac-archive);
}
.archive__card-icon svg { width: 20px; height: 20px; }
.archive__card-label {
  font-size: 11.5px; color: var(--ac-archive);
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.archive__card-name { font-size: 13.5px; font-weight: 600; color: var(--fg); margin-top: 2px; }

/* ===== Projects ===== */
.projects { display: flex; flex-direction: column; gap: 14px; }
.project {
  background: #fff; padding: 24px 26px; border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 24px rgba(0,0,0,0.03);
  transition: transform .2s, box-shadow .2s;
}
.project:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(45, 125, 74, 0.15);
}
.project__top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; flex-wrap: wrap; margin-bottom: 8px;
}
.project__title { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; }
.project__date {
  font-size: 12px; font-weight: 600;
  color: var(--ac-projects); background: var(--bg-projects);
  padding: 3px 10px; border-radius: 999px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.project__desc {
  font-size: 14.5px; color: var(--fg-soft);
  margin-bottom: 12px; line-height: 1.7;
}
.project__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.project__tag {
  font-size: 11.5px; padding: 3px 10px;
  background: var(--bg-projects); color: var(--ac-projects);
  border-radius: 999px; font-weight: 500;
}
.project__links { display: flex; gap: 6px; flex-wrap: wrap; }
.project__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px; font-size: 12.5px; font-weight: 500;
  color: var(--fg);
  transition: background .2s, color .2s, border-color .2s;
}
.project__link:hover {
  background: var(--ac-projects); color: #fff; border-color: var(--ac-projects);
}

/* ===== Career ===== */
.career { display: flex; flex-direction: column; gap: 14px; }
.career__item {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  background: #fff; padding: 24px 26px; border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}
.career__logo {
  width: 56px; height: 56px;
  background: var(--bg-career); border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; color: var(--ac-career);
  overflow: hidden;
}
.career__logo img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
}
.career__top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; flex-wrap: wrap; margin-bottom: 4px;
}
.career__company { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.career__period {
  font-size: 12px; font-weight: 600;
  color: var(--ac-career); background: var(--bg-career);
  padding: 3px 10px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.career__role { font-size: 13.5px; color: var(--fg-soft); margin-bottom: 10px; }
.career__bullets {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13.5px; color: var(--fg-soft);
}
.career__bullets li { padding-left: 14px; position: relative; }
.career__bullets li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ac-career); position: absolute; left: 2px; top: 9px;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0 60px; background: var(--bg-footer);
  text-align: center; color: var(--fg-mute); font-size: 13px;
}

/* ===== To Top ===== */
.to-top {
  position: fixed; right: 20px; bottom: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--fg); color: #fff; border: none; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .2s;
  z-index: 40;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.to-top.visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); }
.to-top svg { width: 16px; height: 16px; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero { padding: 70px 0 50px; }
  .section { padding: 56px 0; }
  .skills { grid-template-columns: 1fr; gap: 12px; }
  .archive { grid-template-columns: 1fr; }
  .about__row {
    grid-template-columns: 22px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 14px;
  }
  .about__row-label { grid-column: 2; grid-row: 1; font-size: 12px; }
  .about__row-value { grid-column: 2; grid-row: 2; }
  .career__item { grid-template-columns: 44px 1fr; gap: 14px; }
  .career__logo { width: 44px; height: 44px; font-size: 16px; }
  .section__tag { display: none; }
}
