:root {
  --background: #fffaf5;
  --accent: #f4eee2;
  --text: #1f1f1f;
  --border: #e3dee4;
}

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

body {
  margin: 0;
  font-family: 'Roboto Flex', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

.container {
  max-width: 960px;
  padding: 1.5rem;
  margin: 0 auto;
}

header,
section {
  width: 100%;
}

.hero {
  text-align: center;
  padding: 1rem 0 1rem;
}

.hero__logo {
  width: min(240px, 60vw);
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}

.hero__lead {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 1.3rem;
}

.section-title {
  margin: 0 0 0.1rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.profile {
  padding: 0.4rem 0 1rem;
}

.profile .container {
  text-align: center;
}

.profile__frame {
  display: flex;
  justify-content: center;
  /* .contacts: var(--accent); */
  border-radius: 18px;
  padding: 1rem;
}

.profile__image {
  width: min(80vw, 520px);
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.contacts {
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--accent);
}

.contacts .container {
  text-align: center;
}

.contacts__summary {
  margin: 0 0 2rem;
}

.contacts__summary a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  transition: text-decoration-color 120ms ease;
}

.contacts__summary a:hover,
.contacts__summary a:focus-visible {
  text-decoration-color: var(--text);
}

.contacts__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.contacts__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: #f4eee2;
  transition: border-color 120ms ease, transform 120ms ease;
}

.contacts__links a:hover,
.contacts__links a:focus-visible {
  border-color: var(--border);
  transform: translateY(-1px);
}

.contacts__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .hero__lead {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.25rem;
  }
}
