:root {
  --wine: #380008;
  --burgundy: #57000e;
  --gold: #e9b957;
  --cream: #ffe0b6;
  --text: #fff0d5;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  background: #1b0005;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

.bio-page {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 34px 24px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  text-align: center;
  background-color: var(--wine);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bio-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(28, 0, 4, .30) 100%);
  pointer-events: none;
}

.logo-wrap {
  width: min(58%, 240px);
  aspect-ratio: 1;
  margin: clamp(12px, 3vh, 32px) auto 0;
  border: 2px solid var(--gold);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(233, 185, 87, .28);
  filter: drop-shadow(0 0 16px rgba(236, 185, 87, .18));
}

.logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
}

.brand-name {
  margin: 28px 0 0;
  font-size: clamp(42px, 10vw, 66px);
  font-weight: normal;
  line-height: 1.08;
  letter-spacing: .015em;
  color: var(--cream);
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}

.brand-subtitle {
  margin: 14px 0 0;
  color: var(--gold);
  font-size: clamp(14px, 3.8vw, 22px);
  letter-spacing: .28em;
  text-transform: uppercase;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 340px);
  margin: 26px 0 0;
  color: var(--gold);
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.ornament span {
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 194, 83, .55);
}

.tagline {
  margin: 22px 0 34px;
  color: var(--cream);
  font-size: clamp(18px, 4.8vw, 25px);
  font-style: italic;
  line-height: 1.45;
}

.whatsapp-button {
  width: min(100%, 410px);
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 22px;
  border: 2px solid #f2c46c;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe3b8 0%, #f2bf64 52%, #e7a641 100%);
  color: #3d0008;
  box-shadow:
    0 0 0 5px rgba(242, 195, 107, .12),
    0 0 24px rgba(242, 195, 107, .24),
    inset 0 1px 0 rgba(255,255,255,.65);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 4.5vw, 23px);
  font-weight: bold;
  line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 5px rgba(242, 195, 107, .18),
    0 0 32px rgba(242, 195, 107, .38),
    inset 0 1px 0 rgba(255,255,255,.65);
}

.whatsapp-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.button-divider {
  width: 1px;
  height: 46px;
  background: rgba(76, 0, 10, .42);
}

.button-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.button-text small {
  font-size: .82em;
  font-weight: normal;
}

.button-text strong {
  font-size: 1.12em;
}

.arrow {
  font-family: Arial, sans-serif;
  font-size: 30px;
  margin-left: auto;
}

.footer {
  margin-top: auto;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 224, 182, .75);
  font-family: Arial, sans-serif;
  font-size: 10px;
  line-height: 1.5;
}

.footer p { margin: 0; }

.footer-copy {
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer-credit { letter-spacing: .08em; }

.footer-credit a {
  color: var(--gold);
  text-decoration: none;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .bio-page {
    background-image:
      linear-gradient(180deg, rgba(48, 0, 7, .30), rgba(57, 0, 9, .72)),
      url("../img/background-mobile.webp");
  }
}

@media (max-width: 380px) {
  .bio-page { padding-inline: 18px; }
  .whatsapp-button { gap: 12px; min-height: 82px; padding-inline: 16px; }
  .whatsapp-icon { width: 32px; height: 32px; }
  .button-divider { height: 38px; }
}

@media (max-width: 520px) and (max-height: 840px),
  (min-width: 521px) and (max-height: 860px) {
  .bio-page { padding-block: 28px 34px; }
  .logo-wrap { width: min(52%, 200px); margin-top: 12px; }
  .brand-name { margin-top: 22px; }
  .brand-subtitle { margin-top: 10px; }
  .ornament { margin-top: 20px; }
  .tagline { margin: 18px 0 28px; }
  .whatsapp-button { min-height: 82px; }
  .footer { padding-top: 36px; }
}

@media (max-height: 620px),
  (min-width: 521px) and (max-height: 740px) {
  .bio-page { padding-block: 20px 24px; }
  .logo-wrap { width: min(50%, 160px); margin-top: 6px; }
  .brand-name { margin-top: 14px; font-size: clamp(36px, 9vw, 44px); }
  .brand-subtitle { margin-top: 6px; }
  .ornament { margin-top: 12px; }
  .tagline { margin: 10px 0 16px; font-size: clamp(17px, 4.4vw, 22px); }
  .whatsapp-button { min-height: 78px; }
  .footer { padding-top: 20px; }
}

@media (max-height: 500px) {
  .bio-page { padding-block: 16px; }
  .logo-wrap { width: min(44%, 140px); margin-top: 4px; }
  .brand-name { margin-top: 10px; font-size: clamp(32px, 8vw, 38px); }
  .brand-subtitle { margin-top: 4px; }
  .ornament { margin-top: 8px; }
  .tagline { margin: 8px 0 12px; font-size: clamp(16px, 4vw, 19px); }
  .footer { padding-top: 12px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .bio-page { padding-block: 10px; }
  .logo-wrap { width: min(30%, 100px); margin-top: 0; }
  .brand-name { margin-top: 6px; font-size: clamp(28px, 6vh, 34px); }
  .brand-subtitle { margin-top: 2px; font-size: clamp(11px, 3vh, 14px); }
  .ornament { display: none; }
  .tagline { margin: 6px 0 10px; font-size: clamp(14px, 4vh, 17px); }
  .whatsapp-button { padding-block: 10px; min-height: 56px; }
  .whatsapp-icon { width: 32px; height: 32px; }
  .button-divider { height: 34px; }
  .footer { padding-top: 8px; font-size: 9px; }
}

@media (min-width: 521px) {
  body {
    padding: 24px 0;
    background-image:
      linear-gradient(180deg, rgba(48, 0, 7, .30), rgba(57, 0, 9, .72)),
      url("../img/background.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .bio-page {
    min-height: calc(100vh - 48px);
    min-height: calc(100svh - 48px);
    border-radius: 18px;
  }
}

@media (min-width: 521px) and (max-height: 500px) {
  body { padding: 0; }
  .bio-page {
    min-height: 100vh;
    min-height: 100svh;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-button { transition: none; }
}
