:root {
  --terracotta: #c24e34;
  --terracotta-dark: #9f3826;
  --gold: #d79a3a;
  --cream: #f7e7cc;
  --cream-light: #fffaf0;
  --peach: #e6c3a6;
  --brown: #4b2e20;
  --brown-soft: #76513c;
  --shadow: 0 14px 34px rgba(75, 46, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
  color-scheme: light;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--brown);
  background:
    radial-gradient(circle at 12% 10%, rgba(215, 154, 58, 0.22), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(194, 78, 52, 0.13), transparent 31%),
    var(--cream);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.bio {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 540px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(34px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.decor {
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(194, 78, 52, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.decor::after {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(215, 154, 58, 0.23);
  border-radius: inherit;
  content: "";
}

.decor--one {
  top: -73px;
  right: -57px;
}

.decor--two {
  bottom: 46px;
  left: -101px;
  transform: scale(1.35);
}

.profile {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.profile__logo-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin-top: 18px;
}

.profile__logo-wrap::before {
  position: absolute;
  inset: -6px;
  z-index: -1;
  border: 2px solid var(--terracotta);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(75, 46, 32, 0.18);
  content: "";
}

.profile__logo {
  display: block;
  width: 100%;
  height: 100%;
  border: 4px solid var(--cream-light);
  border-radius: 50%;
  background: var(--cream-light);
  object-fit: cover;
}

.profile__steam {
  position: absolute;
  top: -32px;
  left: 50%;
  display: flex;
  gap: 6px;
  height: 32px;
  transform: translateX(-50%);
}

.profile__steam i {
  display: block;
  width: 8px;
  height: 25px;
  border-left: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0.8;
  transform: rotate(8deg);
  animation: steam 2.8s ease-in-out infinite;
}

.profile__steam i:nth-child(2) {
  height: 30px;
  animation-delay: 0.45s;
}

.profile__steam i:nth-child(3) {
  animation-delay: 0.9s;
}

.profile__eyebrow {
  margin: 25px 0 6px;
  color: var(--terracotta);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 10vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.profile__tagline {
  margin: 11px 0 0;
  color: var(--brown-soft);
  font-size: 0.96rem;
  line-height: 1.45;
}

.links {
  display: grid;
  gap: 13px;
  margin-top: 30px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 76px;
  padding: 12px 16px 12px 13px;
  border: 1px solid rgba(75, 46, 32, 0.08);
  border-radius: 20px;
  color: var(--brown);
  background: rgba(255, 250, 240, 0.9);
  box-shadow: var(--shadow);
  font: inherit;
  text-align: left;
}

a.link-card {
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

a.link-card:hover {
  background: #fffdf8;
  box-shadow: 0 17px 38px rgba(75, 46, 32, 0.19);
  transform: translateY(-2px);
}

a.link-card:active {
  transform: scale(0.985);
}

a.link-card:focus-visible,
button.link-card:focus-visible {
  outline: 3px solid rgba(194, 78, 52, 0.28);
  outline-offset: 3px;
}

.link-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  color: var(--cream-light);
  background: var(--terracotta);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.link-card__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.link-card__icon svg .fill {
  fill: currentColor;
  stroke: none;
}

.link-card__icon--99 {
  position: relative;
  overflow: hidden;
  background: #ffda00;
}

.link-card__icon--99 img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: translate(-47%, -54%);
}

.link-card__icon--ifood {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.link-card__icon--ifood img {
  display: block;
  width: 42px;
  height: auto;
}

.link-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.link-card__copy strong {
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__copy small {
  overflow: hidden;
  color: var(--brown-soft);
  font-size: 0.77rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--terracotta);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.link-card--coming {
  cursor: default;
}

.link-card__badge {
  padding: 6px 8px;
  border: 1px solid rgba(194, 78, 52, 0.19);
  border-radius: 999px;
  color: var(--terracotta-dark);
  background: rgba(194, 78, 52, 0.08);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 27px;
  color: var(--brown-soft);
  text-align: center;
}

footer span {
  color: var(--terracotta);
  font-size: 0.67rem;
}

footer p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.015em;
}

@keyframes steam {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(4px) rotate(8deg) scaleY(0.85);
  }

  50% {
    opacity: 0.9;
    transform: translateY(-3px) rotate(-8deg) scaleY(1);
  }
}

@media (min-width: 600px) {
  body {
    display: grid;
    place-items: center;
    padding: 28px;
  }

  .bio {
    min-height: auto;
    padding: 58px 48px 36px;
    border: 1px solid rgba(75, 46, 32, 0.08);
    border-radius: 36px;
    background: rgba(247, 231, 204, 0.7);
    box-shadow: 0 24px 70px rgba(75, 46, 32, 0.14);
  }
}

@media (max-width: 370px) {
  .bio {
    padding-right: 14px;
    padding-left: 14px;
  }

  .link-card {
    grid-template-columns: 45px minmax(0, 1fr) auto;
    gap: 10px;
    padding-right: 12px;
  }

  .link-card__icon {
    width: 45px;
    height: 45px;
  }

  .link-card__copy strong {
    font-size: 0.91rem;
  }

  .link-card__badge {
    padding: 5px 6px;
    font-size: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
