:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f5f7;
  color: #15171a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

.page {
  display: grid;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.profile,
.zodiac {
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 20px;
}

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

.avatar {
  display: grid;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e8eefc;
  color: #215cc4;
  font-size: 20px;
  font-weight: 700;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 4px;
  color: #686f78;
  font-size: 14px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 6px;
  font-size: 22px;
  line-height: 1.25;
}

.username {
  margin: 0;
  color: #686f78;
}

.zodiac h2 {
  margin-bottom: 18px;
  font-size: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.field-label {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.birth-date-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 12px;
}

.birth-date-fields label {
  font-size: 14px;
  font-weight: 400;
}

select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b8bec7;
  border-radius: 6px;
  padding: 10px 12px;
  background: transparent;
  color: inherit;
  font: inherit;
}

select:disabled {
  opacity: 0.55;
}

.zodiac-result {
  margin-top: 20px;
  border-top: 1px solid #e1e4e8;
  padding-top: 20px;
}

.sign-name {
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 700;
}

.sign-period {
  margin-bottom: 16px;
  color: #686f78;
}

h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.people {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
  border-left: 3px solid #4b82df;
  padding-left: 10px;
  line-height: 1.4;
}

.person-name {
  font-weight: 600;
}

.person-description {
  color: #686f78;
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #17191c;
    color: #f1f3f5;
  }

  .profile,
  .zodiac {
    background: #22262b;
    border-color: #343a40;
  }

  .avatar {
    background: #263b60;
    color: #a8c7ff;
  }

  .eyebrow,
  .username,
  .sign-period,
  .person-description {
    color: #adb5bd;
  }

  select,
  .zodiac-result {
    border-color: #495057;
  }
}
