:root {
  --outer-bg: #8f7d59;
  --page-bg: #c7ab78;
  --text: #090c13;
  --button: #3a2e1b;
  --button-border: #3a2e1b;
  --button-hover: #695330;
  --button-text: #3a2e1b;
  --button-fill: rgba(58, 46, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--outer-bg);
  color: var(--text);
  font-family: "Oxanium", Inter, system-ui, sans-serif;
}

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

.page-shell {
  width: min(100%, 580px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 42px 34px;
  position: relative;
  background: var(--page-bg);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 34px;
}

.circle-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1e2bf;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(58, 46, 27, 0.12);
}

.share-mark {
  color: var(--text);
}

.share-mark svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 4px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 36px;
}

.socials a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background 180ms ease;
}

.socials svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.socials a:hover {
  background: rgba(9, 12, 19, 0.08);
  transform: scale(1.08);
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.link-group h2 {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
}

.link-card {
  min-height: 64px;
  border: 1px solid var(--button-border);
  border-radius: 18px;
  background: var(--button-fill);
  color: var(--button-text);
  display: grid;
  /*grid-template-columns: 1fr 24px;*/
  align-items: center;
  /*gap: 10px;*/
  /*padding: 12px 18px 12px 30px;*/
  padding: 12px 18px 12px 18px;
  position: relative;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.link-card span:first-child {
  overflow-wrap: anywhere;
}

.link-card:hover {
  background: rgba(58, 46, 27, 0.16);
  border-color: var(--button-hover);
  transform: translateY(-2px);
}

.link-card:focus-visible {
  outline: 3px solid rgba(9, 12, 19, 0.28);
  outline-offset: 3px;
}

.dots {
  opacity: 0.55;
  font-weight: 400;
  transform: rotate(90deg);
  letter-spacing: -1px;
}

.footer {
  margin-top: 34px;
  text-align: center;
  font-size: 12px;
  opacity: 0.72;
}

@media (max-width: 759px) {
  .page-shell {
    padding: 14px 12px 34px;
    width: 100%;
    border-radius: 0;
  }

  .circle-button {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 12px;
  }

  h1 {
    font-size: 22px;
  }

  .link-card {
    border-radius: 16px;
    padding-left: 22px;
    font-size: 14px;
  }
}

@media (min-width: 760px) {
  body {
    padding: 48px 0;
  }

  .page-shell {
    width: min(560px, calc(100vw - 48px));
    min-height: calc(100vh - 96px);
    border-radius: 34px 34px 0 0;
  }
}
