:root {
  --bg: #ffffff;
  --text: #2a2a2a;
  --muted: #5f5f5f;
  --line: #ece8df;
  --title: #bd945f;
  --chip: #f7f3ee;
  --chip-blue: #e8f0ff;
  --card: #fff;
  --shadow: 0 8px 20px rgba(23, 23, 23, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 28px 72px;
}

.page-header h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.headline {
  margin: 22px 0 0;
  font-size: 28px;
  letter-spacing: -0.015em;
}

.headline strong {
  font-weight: 800;
}

section {
  margin-top: 58px;
}

.top-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.75fr);
  gap: 38px;
}

.section-title {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 33px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--title);
  font-weight: 700;
}

.sub-title {
  margin: 26px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--title);
  font-weight: 700;
}

.profile-wrap {
  padding-top: 24px;
}

.avatar {
  width: 178px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid #222;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.meta-list {
  margin: 0;
  display: grid;
  gap: 7px;
}

.meta-list div {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 6px;
  align-items: center;
}

.meta-list dt {
  font-size: 22px;
  font-weight: 700;
  color: #434343;
}

.meta-list dd {
  margin: 0;
  font-size: 20px;
  color: #666;
  overflow-wrap: anywhere;
}

.channel-list {
  padding-top: 14px;
}

.channel-list a {
  text-decoration: none;
  border-bottom: 1px solid #d7d7d7;
}

.channel-list a:hover,
.channel-list a:focus-visible {
  color: #222;
  border-bottom-color: #222;
}

.bullet-list {
  margin: 16px 0 0;
  padding-left: 28px;
  font-size: 21px;
  color: #4a4a4a;
}

.bullet-list li + li {
  margin-top: 9px;
}

.skill-group {
  margin-top: 16px;
}

.skill-item + .skill-item {
  margin-top: 26px;
}

.skill-item h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.skill-item p {
  margin: 9px 0 0;
  font-size: 21px;
  color: #4e4e4e;
}

.chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 8px;
  background: var(--chip);
  color: #b26f67;
  font-size: 0.84em;
  font-weight: 700;
}

.chip-blue {
  background: var(--chip-blue);
  color: #3c5b8e;
}

.empty {
  margin: 12px 0 0;
  font-size: 21px;
}

.section-head-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
}

.gallery-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
}

.icon-btn {
  border: 1px solid transparent;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  color: #8f8f8f;
  cursor: pointer;
}

.gallery-btn:hover,
.icon-btn:hover {
  border-color: var(--line);
  background: #faf9f6;
}

.gallery-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.thumb {
  min-height: 200px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 22px;
}

.thumb-image {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.tone-dark {
  background: linear-gradient(135deg, #0d0d0d 0%, #202020 100%);
}

.tone-light {
  background: linear-gradient(135deg, #f0f3f8 0%, #e2e7ef 100%);
  color: #4f5a67;
}

.tone-green {
  background: linear-gradient(135deg, #d1f083 0%, #77a85f 100%);
  color: #2b3a1e;
}

.tone-blue {
  background: linear-gradient(135deg, #dce8ff 0%, #92b7ef 100%);
  color: #21416f;
}

.card-body {
  padding: 12px 14px 14px;
}

.card-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
}

.card-sub {
  margin: 4px 0 0;
  font-size: 15px;
  color: #767676;
}

.card-date {
  margin: 6px 0 0;
  font-size: 15px;
  color: #606060;
}

.card-link-wrap {
  margin: 8px 0 0;
}

.card-link {
  font-size: 14px;
  font-weight: 700;
  color: #4d5f82;
  text-decoration: none;
  border-bottom: 1px solid #cfd8e6;
}

.card-link:hover,
.card-link:focus-visible {
  color: #2d3e62;
  border-bottom-color: #2d3e62;
}

.tag-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 700;
}

.tag.status {
  background: #e8f4e8;
  color: #4a7a4f;
}

.tag.type {
  background: #f2ecf8;
  color: #6d5b82;
}

.tag.external {
  background: #eef1f7;
  color: #5c6678;
}

@media (max-width: 1120px) {
  .page {
    padding: 28px 22px 64px;
  }

  .page-header h1 {
    font-size: clamp(2.1rem, 5vw, 2.9rem);
  }

  .headline {
    font-size: clamp(1.3rem, 3.5vw, 2.1rem);
  }

  .section-title {
    font-size: clamp(1.45rem, 3vw, 2.2rem);
  }

  .sub-title {
    font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  }

  .meta-list dt,
  .meta-list dd,
  .bullet-list,
  .skill-item p,
  .empty {
    font-size: clamp(0.98rem, 2.1vw, 1.25rem);
  }

  .skill-item h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  }

  .gallery-btn {
    font-size: 0.92rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-sub,
  .card-date {
    font-size: 0.88rem;
  }
}

@media (max-width: 860px) {
  .top-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .meta-list div {
    grid-template-columns: 104px 1fr;
  }

  .avatar {
    width: 130px;
    font-size: 38px;
  }
}
