:root {
  color-scheme: light;
  --ink: #101923;
  --ink-soft: #44505c;
  --paper: #f4efe5;
  --card: rgba(255, 253, 248, 0.96);
  --line: rgba(16, 25, 35, 0.14);
  --gold: #a77835;
  --gold-dark: #80591f;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 5%, rgba(167, 120, 53, 0.15), transparent 31rem),
    radial-gradient(circle at 96% 92%, rgba(16, 25, 35, 0.1), transparent 28rem),
    var(--paper);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.card {
  position: relative;
  width: min(100%, 540px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: var(--card);
  box-shadow:
    0 30px 80px rgba(16, 25, 35, 0.14),
    0 2px 8px rgba(16, 25, 35, 0.06);
  backdrop-filter: blur(18px);
}

.card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--ink) 0 72%, var(--gold) 72% 100%);
  content: "";
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 36px 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 3px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  padding: 7px;
}

.wordmark-mark span {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
}

.wordmark strong,
.wordmark small {
  display: block;
}

.wordmark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0.18em;
  line-height: 1;
}

.wordmark small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.location {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.identity {
  padding: 42px 36px 30px;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.2em;
}

h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

h1 [lang="en"] {
  font-size: 0.52em;
  font-style: italic;
  letter-spacing: -0.015em;
}

.divider {
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.role {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 36px 30px;
}

.action {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.action:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 120, 53, 0.55);
  background: var(--white);
}

.action:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(167, 120, 53, 0.36);
  outline-offset: 3px;
}

.action-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.action-primary:hover {
  border-color: var(--ink);
  background: #192735;
}

.action-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.action-icon-in {
  border: 0;
  border-radius: 4px;
  background: #0a66c2;
  color: #fff;
}

.details {
  margin: 0 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.detail-row a:hover {
  color: var(--gold-dark);
}

.detail-label {
  padding-top: 1px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.linkedin-qr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 26px 36px 0;
  border-radius: 18px;
  background: var(--ink);
  padding: 18px;
  color: var(--white);
}

.linkedin-qr img {
  width: 88px;
  height: 88px;
  border: 7px solid var(--white);
  border-radius: 9px;
  background: var(--white);
}

.qr-title,
.qr-copy {
  margin: 0;
}

.qr-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.qr-copy {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px 34px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.card-footer p {
  max-width: 270px;
  margin: 0;
}

.card-footer .site-label {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 10;
  transform: translate(-50%, 20px);
  border-radius: 999px;
  background: var(--ink);
  padding: 11px 16px;
  color: var(--white);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .page-shell {
    display: block;
    padding: 0;
  }

  .card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-header,
  .identity,
  .card-footer {
    padding-right: 24px;
    padding-left: 24px;
  }

  .identity {
    padding-top: 48px;
  }

  .actions {
    padding-right: 24px;
    padding-left: 24px;
  }

  .details,
  .linkedin-qr {
    margin-right: 24px;
    margin-left: 24px;
  }

  .location {
    display: none;
  }

  .card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

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