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

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-content-body);

  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: var(--line-height);
  font-weight: var(--font-weight-body);
}

p {
  margin: 0;
}

/* --------------------------------------------------
   DOCUMENT
-------------------------------------------------- */

.portfolio-doc {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding-inline: 20px;
  background: var(--color-background);

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------
   SECTION TEMPLATE (200px aside + 420px content)
-------------------------------------------------- */

.portfolio-section {
  width: 100%;
  max-width: 640px;
  padding-top: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border-medium);

  display: flex;
  gap: 20px;
}

.portfolio-section__aside {
  width: 200px;
  flex-shrink: 0;
}

.portfolio-section__content {
  width: 420px;
  flex-shrink: 0;
}

.portfolio-section__label {
  color: var(--color-content-caption);
  font-size: var(--font-size);
  line-height: var(--line-height);
}

/* --------------------------------------------------
   PROFILE
-------------------------------------------------- */

.portfolio-section--profile .portfolio-section__aside {
  display: flex;
}

.profile-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.profile-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 1000px;
  object-fit: cover;
  display: block;
}

.profile-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-card__name {
  color: var(--color-content-display);
  font-size: var(--font-size);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height);
}

.profile-card__role {
  color: var(--color-content-caption);
  font-size: var(--font-size-caption);
  line-height: var(--line-height-caption);
}

.profile-card__meta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-card__meta-item {
  color: var(--color-content-caption);
  font-size: var(--font-size-caption);
  line-height: var(--line-height);
}

/* --------------------------------------------------
   INTRO
-------------------------------------------------- */

.intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intro__paragraph {
  color: var(--color-content-body);
  font-size: var(--font-size);
  line-height: var(--line-height);
}

.intro__accent {
  color: var(--color-content-accent-medium);
  font-weight: var(--font-weight-body-accent);
}

.intro__link {
  color: var(--color-content-accent-heavy);
  text-decoration: underline;
}

/* --------------------------------------------------
   PROJECTS
-------------------------------------------------- */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card__image-wrapper {
  border-radius: 3px;
  background: var(--color-surface-medium);
  border: 1px solid var(--color-border-medium);
  overflow: hidden;
}

.project-card__image {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-card__title {
  margin: 0;
  color: var(--color-content-display);
  font-size: var(--font-size);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height);
}

.project-card__subtitle {
  margin: 0;
  color: var(--color-content-body);
  font-size: var(--font-size);
  line-height: var(--line-height);
}

/* --------------------------------------------------
   EXPERIENCE
-------------------------------------------------- */

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.experience-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.experience-item__header {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.experience-item__company {
  color: var(--color-content-display);
  font-size: var(--font-size);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height);
}

.experience-item__site {
  color: var(--color-content-caption);
  font-size: var(--font-size);
  line-height: var(--line-height);
}

.experience-item__dates {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.experience-item__date {
  color: var(--color-content-accent-medium);
  font-size: var(--font-size);
  line-height: var(--line-height);
}

.experience-item__dash {
  flex: 0 0 14px;
  margin-top: 11px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--color-content-faint);
}

/* --------------------------------------------------
   SKILLS
-------------------------------------------------- */

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skills-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skills-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.skills-tag {
  padding: 4px 8px;
  background: var(--color-surface-soft);
  box-shadow: 0 0 8px var(--color-border-heavy) inset;
  border-radius: 3px;

  outline: 1px solid var(--color-border-heavy);
  outline-offset: -1px;

  color: var(--color-content-display);
  font-size: var(--font-size);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height);
}

.skills-item__description {
  color: var(--color-content-body);
  font-size: var(--font-size);
  line-height: var(--line-height);
}

/* --------------------------------------------------
   PRINCIPLES
-------------------------------------------------- */

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.principle-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.principle-item__title {
  margin: 0;
  color: var(--color-content-display);
  font-size: var(--font-size);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height);
}

.principle-item__description {
  margin: 0;
  color: var(--color-content-body);
  font-size: var(--font-size);
  line-height: var(--line-height);
}

/* Контакты */

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-item__header {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.contact-item__title {
  color: var(--color-content-display);
  font-size: 15px;
  font-weight: 550;
  line-height: 22px;
}

.contact-item__note {
  color: var(--color-content-caption);
  font-size: 15px;
  line-height: 22px;
}

.contact-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 0;
}

.contact-item__url {
  font-size: 15px;
  line-height: 20px;
  display: inline-flex;
}

.contact-item__muted {
  color: var(--color-content-faint);
}

.contact-item__main {
  color: var(--color-content-body);
  text-decoration: underline;
}

/* Иконки */
.icon-slot svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Футер */

.portfolio-footer {
  width: 100%;
  max-width: 640px;
  padding-top: 48px;
  padding-bottom: 48px;

  display: flex;
  gap: 20px;
}

.portfolio-footer__aside {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portfolio-footer__label {
  color: var(--color-content-caption);
  font-size: 15px;
  line-height: 22px;
}

.portfolio-footer__content {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
