:root {
  --bg: #fafafa;
  --text: #222222;
  --sub: #888888;
  --line: rgba(0, 0, 0, 0.08);
  --link: #3199e8;
  --photo-bg: #dde4ee;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

.page {
  max-width: 736px;
  margin: 0 auto;
  padding: 80px 32px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 28px;
}

.profile-photo {
  flex: none;
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--photo-bg);
  object-fit: cover;
}

.profile-text {
  min-width: 0;
}

.profile h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.contact {
  margin-top: 6px;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.section {
  margin-top: 72px;
}

.section h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.entries {
  padding: 0;
  list-style: none;
}

.entry {
  margin-top: 36px;
}

.entry + .entry {
  margin-top: 48px;
}

.band {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  flex: none;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}

.info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ident {
  min-width: 0;
}

.meta {
  flex: none;
  color: var(--sub);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.name {
  font-size: 17px;
  font-weight: 700;
  line-height: 26px;
}

.period {
  line-height: 26px;
}

.subtitle {
  color: var(--sub);
  line-height: 24px;
}

.place {
  line-height: 24px;
}

.role {
  margin-top: 14px;
  font-weight: 700;
}

.bullets {
  margin-top: 14px;
  padding-left: 14px;
  list-style: none;
}

.role + .bullets {
  margin-top: 4px;
}

.bullets li {
  position: relative;
}

.bullets li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text);
}

.more {
  margin-top: 10px;
}

.back {
  margin-bottom: 40px;
}

.more a,
.back a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.icon {
  flex: none;
  width: 16px;
  height: 16px;
}

.section > .bullets {
  margin-top: 24px;
}

.urls {
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.works {
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.works > li + li {
  margin-top: 32px;
}

.works .urls {
  margin-top: 14px;
}

.video {
  max-width: 560px;
  margin: 14px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--photo-bg);
}

.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.links {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  row-gap: 16px;
  margin-top: 32px;
}

.links dt {
  color: var(--sub);
}

.links dd ul {
  padding: 0;
  list-style: none;
}

@media (max-width: 600px) {
  .page {
    padding: 56px 32px;
  }

  .profile {
    gap: 18px;
  }

  .profile-photo {
    width: 80px;
    height: 80px;
  }

  .profile h1 {
    font-size: 24px;
  }

  .contact {
    margin-top: 4px;
    font-size: 15px;
  }

  .section {
    margin-top: 56px;
  }

  .band {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px 14px;
  }

  .band.no-logo {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo {
    grid-row: 1;
    grid-column: 1;
    width: 40px;
    height: 40px;
  }

  .info {
    display: contents;
  }

  .ident {
    grid-row: 1;
    grid-column: -2 / -1;
  }

  .meta {
    grid-row: 2;
    grid-column: 1 / -1;
    text-align: left;
    white-space: normal;
  }

  .place {
    white-space: nowrap;
  }

  .period,
  .place {
    line-height: 22px;
  }

  .back {
    margin-bottom: 32px;
  }

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

  .links dd + dt {
    margin-top: 14px;
  }
}

@media (max-width: 359px) {
  .profile {
    flex-direction: column;
    align-items: flex-start;
  }
}
