:root {
  color-scheme: light dark;
  --bg: #edf1f7;
  --bg-accent: rgba(44, 61, 104, 0.16);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #0f172a;
  --muted: #5b6780;
  --line: rgba(15, 23, 42, 0.08);
  --accent: #1e3a5f;
  --accent-strong: #132845;
  --accent-soft: rgba(30, 58, 95, 0.1);
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 16px;
  --max-width: 1080px;
  --font-sans: "Manrope", "Pretendard Variable", "Pretendard", "Noto Sans KR", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06101f;
    --bg-accent: rgba(73, 102, 176, 0.18);
    --surface: rgba(10, 20, 40, 0.78);
    --surface-strong: rgba(8, 17, 34, 0.9);
    --text: #eef3ff;
    --muted: #9aa8c3;
    --line: rgba(238, 243, 255, 0.08);
    --accent: #88a7ff;
    --accent-strong: #c6d5ff;
    --accent-soft: rgba(136, 167, 255, 0.12);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #edf1f7;
  --bg-accent: rgba(44, 61, 104, 0.16);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #0f172a;
  --muted: #5b6780;
  --line: rgba(15, 23, 42, 0.08);
  --accent: #1e3a5f;
  --accent-strong: #132845;
  --accent-soft: rgba(30, 58, 95, 0.1);
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06101f;
  --bg-accent: rgba(73, 102, 176, 0.18);
  --surface: rgba(10, 20, 40, 0.78);
  --surface-strong: rgba(8, 17, 34, 0.9);
  --text: #eef3ff;
  --muted: #9aa8c3;
  --line: rgba(238, 243, 255, 0.08);
  --accent: #88a7ff;
  --accent-strong: #c6d5ff;
  --accent-soft: rgba(136, 167, 255, 0.12);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
  animation: none !important;
}

html, body {
  margin: 0;
  min-height: 100%;
}

html {
  background-color: var(--bg);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--bg-accent), transparent 30%),
    radial-gradient(circle at right 18%, rgba(105, 124, 201, 0.14), transparent 24%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, #ffffff 8%) 0%, var(--bg) 100%);
}

body[data-ready="false"] {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, select {
  font: inherit;
}

.page {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 24px 18px 56px;
}

body[data-ready="false"] .page {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

body[data-ready="true"] .page {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, var(--bg-accent), transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 94%, #ffffff 6%) 0%, var(--bg) 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.boot[data-visible="false"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-panel {
  display: grid;
  justify-items: center;
  padding: 8px;
}

.boot-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-top-color: var(--accent);
  animation: boot-spin 0.9s linear infinite;
}

@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.lang-switch,
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(14px);
}

.lang-button,
.theme-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.lang-button {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.theme-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.theme-button svg {
  width: 20px;
  height: 20px;
}

.lang-button[aria-pressed="true"],
.theme-button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.lang-button:hover,
.theme-button:hover,
.lang-button:focus-visible,
.theme-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.identity {
  display: grid;
  gap: 10px;
  padding: 2px 0;
  max-width: 100%;
}

.identity-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.identity-name {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-inline: 4px;
}

.identity-name-sub {
  margin-inline: 0 4px;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
}

.identity-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.identity-skill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.notice {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.notice[data-visible="true"] {
  display: block;
}

.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -12px);
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #3fa56f 45%, var(--line));
  background: color-mix(in srgb, #e8f8ef 76%, var(--surface));
  color: #0f5a35;
  box-shadow: 0 8px 18px rgba(11, 72, 43, 0.12);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.toast[data-visible="true"] {
  opacity: 1;
  transform: translate(-50%, 0);
}

html[data-theme="dark"] .toast {
  border-color: rgba(86, 190, 128, 0.42);
  background: linear-gradient(180deg, rgba(16, 52, 33, 0.96), rgba(13, 42, 27, 0.96));
  color: #dff7e6;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.links {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.link-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-card:hover,
.link-card:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
}

.link-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  overflow: hidden;
}

.link-icon.plain {
  background: transparent;
}

.link-icon img,
.link-icon svg {
  width: 26px;
  height: 26px;
}

.link-copy {
  border: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-strong);
  cursor: pointer;
}

.link-copy svg {
  width: 18px;
  height: 18px;
}

.link-main {
  min-width: 0;
}

.link-name {
  font-weight: 800;
  font-size: 1rem;
}

.link-url {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.link-description {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 2px 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-site {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.footer-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-url {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-copy {
  border: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-strong);
  cursor: pointer;
}

.footer-share {
  border: 0;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}

.footer-copy svg,
.footer-share svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 840px) {
  .page {
    padding: 40px 28px 80px;
  }

  .hero {
    padding: 18px 26px;
  }
}

@media (max-width: 639px) {
  .page {
    padding-inline: 14px;
  }

  .toolbar {
    gap: 10px;
  }

  .lang-button {
    padding-inline: 12px;
  }

  .hero {
    padding: 14px 18px;
    border-radius: 20px;
  }

  .link-card {
    grid-template-columns: auto 1fr auto;
    align-items: start;
  }

  .link-copy {
    margin-top: 2px;
  }

  .footer {
    align-items: stretch;
  }

  .footer-actions {
    width: 100%;
  }

  .footer-share {
    width: 100%;
    justify-content: center;
  }

  .footer-copy {
    flex: 0 0 44px;
  }
}