/* A wardrobe of paper, ink and small library companions. */
.feature-heading {
  margin: 48px 0 36px;
  max-width: 820px;
}
.feature-heading h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 12px 0 20px;
}
.feature-heading p {
  font-size: 18px;
  color: var(--muted);
  max-width: 650px;
  line-height: 1.6;
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
}
.avatar-page {
  max-width: 1160px;
  margin: auto;
}
.avatar-editor {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.avatar-wardrobe {
  min-width: 0;
}
.avatar-stage {
  position: sticky;
  top: 110px;
  background: var(--gradient-wash);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 32px;
  text-align: center;
}
.avatar-stage > img {
  width: 100%;
  height: auto;
  max-width: 256px;
  margin: 0 auto 24px;
  filter: var(--shadow-figure);
}
.avatar-stage p {
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.2;
  margin: 10px 0;
}
.slot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.slot-nav a[aria-selected="true"] {
  background: var(--accent);
  color: var(--paper);
}
.slot-nav a {
  font-size: 13px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 24px;
  background: var(--accent-wash);
  color: var(--accent);
}
.avatar-slot {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
  scroll-margin-top: 110px;
}
.avatar-slot legend {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 14px;
}
.avatar-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.avatar-option {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 8px;
  cursor: pointer;
  font-size: 12px;
  text-align: center;
  background: var(--paper);
}
.avatar-option input {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
}
.avatar-option img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.avatar-option:has(:checked) {
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: 0 0 0 1px var(--accent);
}
.avatar-option:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.editor-save {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.editor-save p {
  flex: 1;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 767.98px) {
  .feature-heading {
    margin: 28px 0;
  }
  .feature-heading h1 {
    font-size: 44px;
  }
  .feature-heading p {
    font-size: 16px;
  }
  .avatar-editor {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .avatar-stage {
    position: static;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .avatar-stage > img {
    width: 180px;
    margin-bottom: 14px;
  }
  .avatar-stage p {
    font-size: 23px;
  }
  .slot-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px 24px;
    padding: 0 16px 12px;
  }
  .slot-nav a[aria-selected="true"] {
    background: var(--accent);
    color: var(--paper);
  }
  .slot-nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .avatar-options {
    grid-template-columns: repeat(3, 1fr);
  }
  .avatar-slot {
    scroll-margin-top: 90px;
  }
  .editor-save {
    flex-wrap: wrap;
  }
  .editor-save p {
    flex-basis: 100%;
  }
}
