@import url("../assets/fonts/unbounded-local.css");

:root {
  --ink: #000;
  --bg: #fff;
  --line: #e8e8e8;
  --accent: #9c5148;
  --qr: 220px;
  --gap: 48px;
  --content-width: calc(var(--qr) * 2 + var(--gap));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.35;
}

.shell {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  padding: 24px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 36px;
}

.logo {
  display: inline-flex;
  align-self: flex-start;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 168px;
  height: auto;
}

.page__title {
  margin: 0;
  text-align: center;
  font-family: "Unbounded", sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  color: #000;
}

.messengers {
  display: grid;
  grid-template-columns: var(--qr) var(--qr);
  justify-content: space-between;
  column-gap: var(--gap);
  width: 100%;
  align-items: start;
}

.messenger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: var(--qr);
  color: inherit;
  text-decoration: none;
}

.messenger__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
}

.messenger__qr {
  width: var(--qr);
  aspect-ratio: 1;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.messenger__qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.messenger__label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 100%;
}

.site-link {
  display: block;
  margin: 0;
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

.logo:hover img,
.logo:focus-visible img,
.site-link:hover,
.site-link:focus-visible {
  opacity: 0.85;
}

.messenger:hover .messenger__label,
.messenger:focus-visible .messenger__label {
  color: var(--accent);
}

@media (max-width: 600px) {
  .shell {
    padding: 18px 0 40px;
    gap: 28px;
  }
  .logo img { width: 100px; }
  .messengers {
    grid-template-columns: 1fr;
    justify-items: center;
    justify-content: center;
    row-gap: 32px;
  }
  .messenger,
  .messenger__qr {
    width: min(var(--qr), 100%);
  }
  .site-link { font-size: 32px; }
  .page__title { font-size: 22px; }
}
