@font-face {
  font-family: "Absans";
  src: url("assets/fonts/Absans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f2f2f2;
  --ink: #1f1614;
  --ink-warm: #20120d;
}

* { box-sizing: border-box; margin: 0; }

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink-warm);
  font-family: "Absans", "Helvetica Neue", Arial, sans-serif;
}

main {
  width: min(514px, 100% - 56px);
}

.hero {
  position: relative;
  aspect-ratio: 4 / 5;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero figcaption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Absans", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.21;
  color: var(--ink);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 7px;
  font-size: 15px;
}

.name { flex: 1; font-style: normal; }

.name { line-height: 1; }

.phone {
  color: inherit;
  text-decoration: none;
}

.icons { display: flex; gap: 8px; align-items: center; }
.icons a { display: block; line-height: 0; }
.icons a:first-child img { width: 24px; height: 24px; }
.icons a:last-child img { width: 18px; height: 18px; }

@media (max-width: 480px) {
  body { color: #262626; }
  footer { font-size: 14px; gap: 16px; }
  .name { line-height: 1.234; }
  .phone { font-size: 13px; line-height: 1.324; }
  .icons { gap: 8px; }
  .icons a:first-child img { width: 16px; height: 16px; }
  .icons a:last-child img { width: 12px; height: 12px; }
}
