:root {
  --resume-paper: #fafafa;
  --resume-ink: #252525;
  --resume-muted: #707070;
  --resume-link-line: #858585;
  --font-main: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --resume-paper: #191919;
  --resume-ink: #e4e4e4;
  --resume-muted: #a4a4a4;
  --resume-link-line: #777777;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --resume-paper: #191919;
    --resume-ink: #e4e4e4;
    --resume-muted: #a4a4a4;
    --resume-link-line: #777777;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; padding: 0; margin: 0; }
html, body { width: 100%; min-height: 100%; }
body {
  color: var(--resume-ink);
  background: var(--resume-paper);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { color: var(--resume-paper); background: var(--resume-ink); }

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

.resume {
  --section-gap: 44px;
  --entry-gap: 24px;
  min-height: 100svh;
  background: var(--resume-paper);
  color: var(--resume-ink);
  font-size: .9375rem;
  line-height: 1.8;
  letter-spacing: -.012em;
  padding: 76px 32px;
}

.resume :where(h1, h2, h3, strong) { color: inherit; }
.resume :where(section, header, article, div) { min-width: 0; }
.resume :where(p, h1, h2, h3, li) { word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.resume a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--resume-link-line);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.resumeSheet { max-width: 640px; margin: 0 auto; }
.resumeHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name controls" "contact contact";
  align-items: center;
  gap: 6px 24px;
  margin-bottom: 52px;
}
.resumeName { grid-area: name; min-width: 0; }
.resume h1 { font-size: 1.75rem; font-weight: 600; line-height: 1.35; letter-spacing: -.035em; }
.resumeContact {
  grid-area: contact;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: var(--resume-muted);
  font-style: normal;
  font-size: .8125rem;
  line-height: 1.8;
}
.resumeContact a { position: relative; }
.resumeContact a::after {
  position: absolute;
  right: 0;
  bottom: .15em;
  left: 0;
  height: 1px;
  background: var(--resume-ink);
  content: '';
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1);
}
.resumeContact a:is(:focus-visible, :active) {
  color: var(--resume-ink);
  text-decoration-color: currentColor;
}
.resumeContact a:is(:focus-visible, :active)::after {
  transform: scaleX(1);
}
.resumeControls { grid-area: controls; justify-self: end; display: flex; align-items: center; gap: 8px; }
.resumeLanguage { display: flex; font-size: .8125rem; line-height: 1.5; letter-spacing: 0; }
.resumeLanguage a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--resume-muted);
  text-decoration: none;
}
.resumeLanguageLabel { position: relative; }
.resumeLanguageLabel::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: '';
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1);
}
.resumeLanguage a:not([aria-current]):is(:focus-visible, :active) {
  color: var(--resume-ink);
}
.resumeLanguage a:not([aria-current]):is(:focus-visible, :active) .resumeLanguageLabel::after {
  transform: scaleX(1);
}
.resumeLanguage a[aria-current="page"] {
  color: var(--resume-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 5px;
}
.resumeSection + .resumeSection { margin-top: var(--section-gap); }
.resume h2 { margin-bottom: 16px; font-size: 1.125rem; font-weight: 650; line-height: 1.5; letter-spacing: -.02em; }
.resume h3 { font-size: .9375rem; font-weight: 500; line-height: 1.75; }
.resumeEntries { display: grid; gap: var(--entry-gap); }
.resumeTitleLine { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 20px; }
.resumeDate { color: var(--resume-muted); font-size: .75rem; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.resumeMeta { color: var(--resume-muted); font-size: .8125rem; margin-top: 3px; }
.resumeSkills { display: flex; flex-wrap: wrap; gap: 3px .45em; list-style: none; }
.resumeSkills li { white-space: nowrap; }
.resumeSkills span { color: var(--resume-muted); margin-right: .35em; }
.resumeOtherGroup + .resumeOtherGroup { margin-top: 32px; }
.resumeOtherGroup h3 { margin-bottom: 10px; font-size: 1rem; font-weight: 600; line-height: 1.5; }
.resumeOtherGroup ul { list-style: none; display: grid; gap: 16px; }
.resumeOtherGroup strong { display: block; font-weight: 500; margin-bottom: 2px; }
.resumeExternal { white-space: nowrap; }
.resumeQualification strong, .resumeQualification p { display: inline; }

@media (hover: hover) and (pointer: fine) {
  .resume a:hover { text-decoration-color: currentColor; }
  .resumeContact a:hover { color: var(--resume-ink); text-decoration-color: var(--resume-link-line); }
  .resumeContact a:hover::after {
    transform: scaleX(1);
  }
  .resumeLanguage a:hover { color: var(--resume-ink); }
  .resumeLanguage a:not([aria-current]):hover .resumeLanguageLabel::after {
    transform: scaleX(1);
  }
}

@media (max-width: 620px) {
  .resume { padding: 52px 25px; line-height: 1.7; }
  .resumeHeader { margin-bottom: 44px; }
}
@media (max-width: 450px) {
  .resume { --section-gap: 36px; padding: 40px 20px; }
  .resume h1 { font-size: 1.5rem; }
  .resumeHeader { column-gap: 16px; margin-bottom: 36px; }
  .resumeControls { gap: 0; }
  .resumeTitleLine { display: block; }
  .resumeDate { margin-top: 2px; }
  .resume h2 { margin-bottom: 14px; }
}

.toggle {
  --glyph-turn: 0deg;
  --glyph-scale: 1;
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--resume-muted);
  cursor: pointer;
}

.toggle:disabled { cursor: default; }
.toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .toggle:enabled:hover {
    --glyph-turn: 18deg;
    --glyph-scale: 1.06;
    color: var(--resume-ink);
  }
}

.toggle:enabled:focus-visible { color: var(--resume-ink); }
.toggle:enabled:active {
  --glyph-scale: .9;
  color: var(--resume-ink);
}
.toggle:enabled:active :is(.sun, .moon) { transition-duration: 160ms, 100ms; }

.sun,
.moon {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  pointer-events: none;
  transition: opacity 160ms ease, transform 280ms cubic-bezier(.22, 1, .36, 1);
}

.sun { opacity: 1; transform: rotate(var(--glyph-turn)) scale(var(--glyph-scale)); }
.moon { opacity: 0; transform: rotate(calc(-35deg - var(--glyph-turn))) scale(var(--glyph-scale)); }

html[data-theme='dark'] .sun { opacity: 0; transform: rotate(calc(35deg + var(--glyph-turn))) scale(var(--glyph-scale)); }
html[data-theme='dark'] .moon { opacity: 1; transform: rotate(calc(0deg - var(--glyph-turn))) scale(var(--glyph-scale)); }

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .sun { opacity: 0; transform: rotate(calc(35deg + var(--glyph-turn))) scale(var(--glyph-scale)); }
  html:not([data-theme]) .moon { opacity: 1; transform: rotate(calc(0deg - var(--glyph-turn))) scale(var(--glyph-scale)); }
}

@media (prefers-reduced-motion: reduce) {
  .toggle:enabled:is(:hover, :focus-visible, :active) {
    --glyph-turn: 0deg;
    --glyph-scale: 1;
  }
}

.shell {
  min-height: 100svh;
  padding: 76px 32px;
  color: var(--resume-ink);
  background: var(--resume-paper);
}
.notice { max-width: 640px; margin: 0 auto; }
.code { color: var(--resume-muted); font-size: .8125rem; line-height: 1.8; }
.notice h1 {
  margin-top: 16px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.025em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.description {
  margin-top: 12px;
  color: var(--resume-muted);
  font-size: .9375rem;
  line-height: 1.8;
}
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; }
.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .8125rem;
  line-height: 1.8;
  text-decoration: underline;
  text-decoration-color: var(--resume-link-line);
  text-underline-offset: 4px;
}
.links a:hover { text-decoration-color: currentColor; }
@media (max-width: 620px) { .shell { padding: 52px 25px; } }
@media (max-width: 450px) { .shell { padding: 40px 20px; } }
