:root {
  --page: #f3f5f9;
  --paper: #ffffff;
  --hero: #e8edf7;
  --ink: #293247;
  --muted: #5e6779;
  --accent: #b94f4b;
  --accent-soft: #fae9e5;
  --line: #dfe3eb;
  --shadow: 0 18px 55px rgba(64, 77, 105, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 48px 20px 56px;
  background:
    radial-gradient(circle at 8% 3%, rgba(216, 225, 244, 0.74), transparent 31rem),
    radial-gradient(circle at 93% 16%, rgba(251, 229, 224, 0.62), transparent 29rem),
    var(--page);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.ambient-glow {
  position: fixed;
  z-index: 0;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  filter: blur(82px);
  pointer-events: none;
}

.ambient-glow-left {
  top: -10rem;
  left: -8rem;
  background: rgba(204, 218, 241, 0.42);
}

.ambient-glow-right {
  top: 22rem;
  right: -9rem;
  background: rgba(248, 211, 204, 0.35);
}

.card {
  position: relative;
  z-index: 1;
  width: min(45rem, 100%);
}

.hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  column-gap: 30px;
  align-items: center;
  padding: 29px;
  border: 1px solid #dce3ef;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.94), transparent 58%),
    var(--hero);
  box-shadow: var(--shadow);
}

.avatar-wrap {
  grid-row: 1 / 5;
  width: 190px;
  height: 215px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.83);
  border-radius: 19px;
  box-shadow: 0 12px 25px rgba(54, 68, 98, 0.12);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 23%;
}

.badge {
  width: fit-content;
  margin: 0 0 9px;
  padding: 6px 11px;
  border: 1px solid #d9c2c1;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.58);
  color: #9d4644;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Manrope, sans-serif;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.handle {
  margin: 7px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.bio {
  margin: 14px 0 0;
  color: #4e586b;
  font-size: 14px;
  line-height: 1.58;
}

.section {
  margin-top: 35px;
}

.section-heading {
  margin: 0 2px 17px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.34rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.links,
.brand-grid,
.content-list,
.media-grid {
  display: grid;
  gap: 11px;
}

.links a {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  column-gap: 13px;
  align-items: center;
  min-height: 76px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 4px 18px rgba(54, 67, 92, 0.035);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.link-head {
  display: contents;
}

.social-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 13px;
  background: #edf1f7;
}

.social-icon img {
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(0) saturate(100%) invert(29%) sepia(13%) saturate(1230%) hue-rotate(180deg) brightness(89%);
}

.link-head > span:last-child {
  grid-column: 2;
  align-self: end;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.links a small {
  grid-column: 2;
  align-self: start;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.links a::after {
  content: "";
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: center;
  align-self: center;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  color: var(--accent);
}

.links a:hover,
.brand-card:hover,
.content-item:hover,
.media-card:hover {
  transform: translateY(-2px);
  border-color: #d5a29f;
  box-shadow: 0 13px 28px rgba(84, 69, 80, 0.09);
}

:is(a, button):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.brand-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.brand-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.brand-logo {
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f6f7fa;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-copy span {
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.coupon-row {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.coupon-code {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: #774742;
  font-size: 12px;
}

.coupon-code strong {
  margin-left: 3px;
  color: #8f3633;
  font-size: 13px;
  letter-spacing: 0.035em;
}

.brand-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.coupon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.coupon-button:hover {
  transform: translateY(-1px);
}

.coupon-copy {
  background: var(--accent);
  color: #fff;
}

.coupon-copy.is-copied {
  border-color: #2c6658;
  background: #2c6658;
}

.coupon-visit {
  background: #fff;
  color: #9d3f3b;
}

.content-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid #ead1ce;
  border-radius: 18px;
  background: #fbefec;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.content-item span {
  display: block;
  margin-bottom: 4px;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.content-item small {
  display: block;
  color: #665c63;
  font-size: 12px;
  line-height: 1.5;
}

.content-item b {
  flex: 0 0 auto;
  color: #9d3f3b;
  font-size: 12px;
}

.media-card {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #343d48;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(28, 34, 43, 0.94) 0%, rgba(28, 34, 43, 0.77) 55%, rgba(28, 34, 43, 0.34) 100%),
    url("./assets/carneiro/carneiro-gym-bg.jpeg") center / cover no-repeat;
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.media-copy {
  display: grid;
  width: 100%;
  justify-items: start;
  gap: 8px;
  max-width: 27rem;
}

.gym-topline {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 5px;
}

.gym-chip {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.43);
  border-radius: 99px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.gym-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  width: auto;
  height: 54px;
  object-fit: contain;
}

h3 {
  font-size: clamp(1.1rem, 3.3vw, 1.4rem);
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.media-text {
  margin: 0;
  color: #e7e9ef;
  font-size: 12px;
  line-height: 1.5;
}

.gym-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.gym-points li {
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
}

.gym-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.gym-cta::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.media-card:focus-visible {
  outline-color: var(--ink);
}

@media (max-width: 620px) {
  body {
    padding: 18px 12px 36px;
  }

  .hero {
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 17px;
    padding: 18px;
    border-radius: 22px;
  }

  .avatar-wrap {
    grid-row: 1 / 4;
    width: 112px;
    height: 133px;
    border-width: 3px;
    border-radius: 13px;
  }

  .badge {
    max-width: 100%;
    padding: 5px 7px;
    font-size: 8px;
  }

  h1 {
    font-size: clamp(1.5rem, 7vw, 2.15rem);
  }

  .handle {
    margin-top: 5px;
    font-size: 12px;
  }

  .bio {
    grid-column: 1 / -1;
    margin-top: 16px;
    font-size: 13px;
  }

  .section {
    margin-top: 30px;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    gap: 14px;
  }

  .brand-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-card {
    min-height: 340px;
    background:
      linear-gradient(180deg, rgba(28, 34, 43, 0.68), rgba(28, 34, 43, 0.91)),
      url("./assets/carneiro/carneiro-gym-bg.jpeg") center / cover no-repeat;
  }

  .gym-logo {
    height: 26px;
  }
}

@media (max-width: 350px) {
  .hero {
    grid-template-columns: 93px minmax(0, 1fr);
    column-gap: 12px;
  }

  .avatar-wrap {
    width: 93px;
    height: 113px;
  }

  .brand-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
