:root {
  --page-bg: #f6f4f1;
  --text: #2f2d2a;
  --muted: #56504a;
  --accent: #d1a17f;
  --panel-width: 28vw;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: "Google Sans Flex", Arial, sans-serif;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--panel-width) 1fr;
}

.content {
  padding: 78px 42px 56px min(5vw, 92px);
  display: flex;
  flex-direction: column;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 1.7vw, 2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: none;
  white-space: nowrap;
}

.separator {
  margin: 0 0 18px;
  font-size: 1.5rem;
  line-height: 1;
  color: #6f6a65;
}

.lead {
  max-width: 42ch;
  margin: 0;
  font-size: clamp(0.9rem, 0.82vw, 0.98rem);
  line-height: 1.75;
  color: var(--muted);
}

.links {
  margin: 34px 0 0;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.links a:hover {
  text-decoration: underline;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-link:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

h2 {
  margin: 44px 0 0;
  font-size: clamp(1.35rem, 1.7vw, 1.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 10ch;
}

.contact-link {
  margin: 18px 0 0;
}

.contact-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-link a:hover {
  color: var(--accent);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(209, 161, 127, 0.55);
  border-radius: 999px;
  color: var(--accent);
  line-height: 1;
}

.contact-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.visual {
  min-height: 100vh;
  background-image: url("../img/profile_big.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 58% center;
}

@media (min-width: 1400px) {
  .visual {
    background-size: contain;
    background-position: center center;
  }
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 88px 24px 40px;
    order: 2;
  }

  .visual {
    min-height: 52vh;
    order: 1;
    background-size: cover;
    background-position: center center;
  }

  .lead {
    max-width: 34ch;
  }
}

@media (max-width: 640px) {
  .content {
    padding-top: 76px;
  }

  h1 {
    white-space: normal;
  }

  h2 {
    max-width: 9ch;
  }
}
