:root {
  --bg-top: #efe7db;
  --bg-bottom: #cfd8d2;
  --sheet-bg: rgba(250, 246, 239, 0.96);
  --panel-bg: rgba(255, 255, 255, 0.62);
  --ink: #172127;
  --muted: #51636a;
  --line: rgba(23, 33, 39, 0.12);
  --accent: #a4693f;
  --accent-soft: rgba(164, 105, 63, 0.12);
  --deep-green: #203a36;
  --serif: "Noto Serif KR", serif;
  --sans: "Noto Sans KR", sans-serif;
  --shadow: 0 28px 80px rgba(18, 28, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.56), transparent 32%),
    linear-gradient(155deg, var(--bg-top), var(--bg-bottom));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 33, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 39, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 100%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(32, 58, 54, 0.92);
  color: #f7f1e8;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 800;
}

.brand-copy {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.language-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.lang-btn,
.print-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.lang-btn {
  min-width: 48px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.lang-btn.is-active {
  background: var(--deep-green);
  color: #f7f1e8;
}

.print-btn {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 700;
}

.profile-sheet {
  position: relative;
  overflow: hidden;
  background: var(--sheet-bg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.profile-sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: linear-gradient(90deg, var(--deep-green), var(--accent));
}

.hero-grid,
.content-grid,
.visual-grid {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: 1.6fr minmax(240px, 0.88fr);
  align-items: stretch;
}

.sheet-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sheet-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4vw, 3.35rem);
  line-height: 1.08;
}

.sheet-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
  font-size: 1rem;
  color: var(--muted);
}

.subtitle-divider {
  width: 40px;
  height: 1px;
  background: rgba(81, 99, 106, 0.45);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 33, 39, 0.06);
}

.contact-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.summary {
  margin: 18px 0 16px;
  font-size: 1rem;
  line-height: 1.72;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(164, 105, 63, 0.14);
  color: var(--deep-green);
  font-size: 0.88rem;
  font-weight: 700;
}

.platform-block {
  margin-top: 16px;
  padding: 14px 16px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(23, 33, 39, 0.07);
}

.platform-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.platform-link {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 236, 225, 0.9));
  border: 1px solid rgba(23, 33, 39, 0.08);
  color: var(--ink);
  text-decoration: none;
}

.platform-link strong {
  font-size: 0.92rem;
}

.platform-link span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.portrait-card,
.visual-card {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 39, 0.08);
  background: #f4eee5;
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait-card figcaption,
.visual-card figcaption {
  display: grid;
  gap: 6px;
  padding: 14px 16px 16px;
  background: rgba(255, 255, 255, 0.72);
}

.portrait-card figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.stats-panel {
  margin-top: 20px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head span {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.section-head.mini {
  align-items: center;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.highlight-card {
  min-height: 108px;
  padding: 16px 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(247, 240, 231, 0.88));
  border: 1px solid rgba(23, 33, 39, 0.08);
}

.highlight-value {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--deep-green);
}

.highlight-value.is-placeholder,
.contact-value.is-placeholder {
  color: rgba(32, 58, 54, 0.62);
}

.highlight-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.highlight-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.content-grid {
  grid-template-columns: 1.52fr 0.88fr;
  margin-top: 18px;
}

.content-main,
.content-rail,
.visual-column {
  display: grid;
  gap: 14px;
}

.panel,
.diagram-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-bg);
  border: 1px solid rgba(23, 33, 39, 0.07);
}

.bullet-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.bullet-list li {
  line-height: 1.6;
}

.bullet-list-compact li,
.snapshot-copy,
.diagram-note {
  font-size: 0.95rem;
  line-height: 1.6;
}

.snapshot-copy {
  margin: 0;
}

.visual-grid {
  grid-template-columns: 1.18fr 0.82fr;
  margin-top: 18px;
  align-items: stretch;
}

.visual-card img {
  display: block;
  width: 100%;
  height: 228px;
  object-fit: cover;
}

.visual-card-asset {
  background: rgba(255, 255, 255, 0.9);
}

.visual-card-asset img {
  object-fit: contain;
  background: #ffffff;
  padding: 10px;
}

.visual-card-wide img {
  height: 100%;
  min-height: 346px;
}

.visual-card strong {
  font-size: 0.96rem;
}

.visual-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 12px;
}

.flow-step {
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 12px 8px;
  text-align: center;
  border-radius: 18px;
  background: rgba(164, 105, 63, 0.08);
  border: 1px solid rgba(164, 105, 63, 0.12);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.sheet-footer {
  margin-top: 14px;
  text-align: right;
  color: rgba(23, 33, 39, 0.72);
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100vw - 20px, 1120px);
    padding: 14px 0 18px;
  }

  .profile-sheet {
    padding: 26px;
  }

  .hero-grid,
  .content-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .visual-card img,
  .visual-card-wide img {
    height: auto;
    min-height: 0;
  }

  .platform-links {
    grid-template-columns: 1fr;
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body::before {
    background-size: 28px 28px;
  }

  .page-shell {
    width: min(100vw - 12px, 1120px);
  }

  .topbar,
  .brand-block,
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sheet-title {
    font-size: 2.2rem;
  }

  .sheet-subtitle {
    gap: 8px;
  }

  .subtitle-divider {
    width: 24px;
  }

  .contact-list {
    display: grid;
    gap: 10px;
  }

  .contact-list li {
    justify-content: space-between;
  }

  .platform-link {
    min-height: 0;
  }

  .profile-sheet {
    padding: 20px;
    border-radius: 22px;
  }

  .flow {
    grid-template-columns: 1fr;
  }
}

@page {
  size: A4 portrait;
  margin: 10mm;
}

@media print {
  body {
    background: #ffffff;
  }

  body::before,
  .topbar,
  .sheet-footer {
    display: none;
  }

  .page-shell {
    width: auto;
    padding: 0;
  }

  .profile-sheet {
    padding: 16mm 14mm 14mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
  }

  .panel,
  .diagram-card,
  .highlight-card,
  .contact-list li,
  .portrait-card,
  .visual-card {
    background: #ffffff;
  }

  .highlight-card,
  .panel,
  .diagram-card,
  .portrait-card,
  .visual-card,
  .contact-list li {
    border-color: rgba(23, 33, 39, 0.12);
  }

  .sheet-title {
    font-size: 2.2rem;
  }

  .summary,
  .bullet-list li,
  .snapshot-copy,
  .diagram-note,
  .visual-card p {
    font-size: 0.93rem;
  }
}
