@font-face {
  font-family: "AMJ Cormorant Light Italic";
  src: url("../assets/amj-cartao-cormorant-light-italic-20261104.woff2") format("woff2");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}

:root {
  color-scheme: light;
  background: #eee6dd;
  color: #32251f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-width: 0; }

body { min-height: 100vh; min-height: 100svh; }

.card-message {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 22px 20px 18px;
  background: #fffdf9;
  text-align: center;
}

.card-message p {
  margin: 0;
  color: #32251f;
  font-family: "AMJ Cormorant Light Italic", Georgia, serif;
  font-size: clamp(28px, 7vw, 36px);
  font-style: italic;
  font-weight: 300;
  font-synthesis: none;
  line-height: 1.2;
  text-wrap: balance;
}

.card-message::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 14px auto 0;
  background: #b18431;
}

.card {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  background: #fffdf9;
}

.card-art {
  display: block;
  width: 100%;
  height: auto;
}

.visually-hidden, .link-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.card-links { position: absolute; inset: 0; }

/* The original 1080 x 1920 artwork is unchanged. Each hit area includes
   half of the 28px gap above and below the original 104px button. The
   resulting 132px rows meet the 44px target at a 360px card width. */
.card-link {
  position: absolute;
  left: 13.518518519%;
  width: 72.962962963%;
  height: 6.875%;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(139, 100, 32, .15);
}

.card-link-whatsapp { top: 64.375%; }
.card-link-instagram { top: 71.25%; }
.card-link-site { top: 78.125%; }
.card-link-agendar { top: 85%; }

.card-link::after {
  content: "";
  position: absolute;
  inset: 10.606060606% 0;
  border-radius: 12px;
  pointer-events: none;
}

.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after {
  outline: 3px solid #32251f;
  outline-offset: 2px;
  box-shadow: 0 0 0 7px #fffdf9;
}

@media (hover: hover) {
  .card-link:hover::after { box-shadow: inset 0 0 0 2px #8b6420; }
}

.link-arrow, .compact-instruction { display: none; }

/* At widths below 360px, the printed button centers are less than 44px
   apart. Separate real links preserve the original artwork while avoiding
   overlapping or undersized touch targets. */
@media (max-width: 359px) {
  .compact-instruction {
    display: block;
    margin: 0;
    padding: 20px 16px 4px;
    font-size: 16px;
    font-weight: 600;
  }

  .card-links {
    position: static;
    display: grid;
    gap: 12px;
    padding: 12px 16px 24px;
  }

  .card-link {
    position: relative;
    inset: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #8b6420;
    border-radius: 10px;
    background: #fffdf9;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
  }

  .card-link::after { display: none; }
  .card-link:focus-visible { outline: 3px solid #32251f; outline-offset: 3px; }

  .link-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .link-arrow { display: block; color: #8b6420; }
}

@media (forced-colors: active) {
  .card-link:focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }
  .card-link:focus-visible::after { outline: 3px solid Highlight; box-shadow: none; }
}
