:root {
  --branco: #FFFFFF;
  --vinho: #4A0A16;
  --vinho-2: #5E0F1F;
  --texto-suave: #7A5A60; /* vinho apagado: 6:1 sobre o branco, passa no AA */
  --linha: rgb(74 10 22 / 12%);
  --off: #FBF5F0;
  --rosa: #F6D9DC;
  --ouro: #C9A24A;
  color-scheme: light;
  font-family: "Jost", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; background: var(--branco); }
body { margin: 0; min-height: 100vh; min-height: 100svh; color: var(--vinho); background: radial-gradient(ellipse 120% 60% at 50% 0%, rgb(246 217 220 / 38%), transparent 70%), var(--branco); }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--vinho); outline-offset: 5px; }
button, a, input { -webkit-user-select: none; user-select: none; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }

.cherry-pattern { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cherry-pattern img { position: absolute; width: 35px; height: 52px; opacity: .05; }
.cherry-pattern img:nth-child(1) { left: 8%; top: 5%; transform: rotate(-24deg); }
.cherry-pattern img:nth-child(2) { left: 54%; top: 1%; transform: rotate(21deg); }
.cherry-pattern img:nth-child(3) { right: 8%; top: 17%; transform: rotate(-14deg); }
.cherry-pattern img:nth-child(4) { left: 27%; top: 25%; transform: rotate(26deg); }
.cherry-pattern img:nth-child(5) { left: 5%; top: 43%; transform: rotate(14deg); }
.cherry-pattern img:nth-child(6) { left: 64%; top: 39%; transform: rotate(-24deg); }
.cherry-pattern img:nth-child(7) { right: 6%; top: 58%; transform: rotate(28deg); }
.cherry-pattern img:nth-child(8) { left: 32%; top: 61%; transform: rotate(-17deg); }
.cherry-pattern img:nth-child(9) { left: 10%; top: 80%; transform: rotate(-27deg); }
.cherry-pattern img:nth-child(10) { left: 65%; top: 81%; transform: rotate(16deg); }
.cherry-pattern img:nth-child(11) { left: 40%; top: 93%; transform: rotate(29deg); }
.cherry-pattern img:nth-child(12) { right: 1%; top: 96%; transform: rotate(-20deg); }

.entry-screen { position: fixed; z-index: 10; inset: 0; width: 100%; min-height: 100%; padding: 40px 20px; border: 0; border-radius: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; background: transparent; color: var(--vinho); transition: opacity 600ms ease, transform 600ms ease; }
.entry-screen:focus-visible { outline-offset: -10px; border-radius: 0; }
.entry-brand { display: flex; flex-direction: column; align-items: center; gap: 19px; }
.entry-cherry { display: block; width: auto; height: 88px; }
.entry-name { font-family: "Italiana", Georgia, serif; font-size: 44px; font-weight: 400; line-height: 1.15; letter-spacing: .02em; }
.entry-name::after { content: ""; display: block; width: 36px; height: 1px; margin: 16px auto 0; background: var(--ouro); }
.entry-invitation { color: var(--texto-suave); font-size: 13px; font-weight: 400; letter-spacing: .24em; line-height: 1.5; animation: invitation 2.4s ease-in-out infinite; }
.entry-screen.is-leaving { opacity: 0; transform: scale(.96); pointer-events: none; }
.noscript-message { position: fixed; z-index: 11; left: 20px; right: 20px; bottom: 24px; color: var(--vinho); font-size: 14px; text-align: center; }

.page { width: min(440px, calc(100% - 40px)); margin-inline: auto; padding-top: max(44px, env(safe-area-inset-top)); padding-bottom: max(30px, env(safe-area-inset-bottom)); }
.has-player .page { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
.has-entered .page { animation: page-arrive 600ms ease both; }
.brand-header { text-align: center; margin-bottom: 30px; }
.avatar { position: relative; width: 104px; height: 104px; margin: 0 auto 21px; display: grid; place-items: center; border: 1px solid rgb(74 10 22 / 22%); border-radius: 50%; background: var(--branco); box-shadow: 0 10px 30px -14px rgb(74 10 22 / 30%); }
.avatar::before { content: ""; position: absolute; inset: -7px; border: 1px solid rgb(201 162 74 / 45%); border-radius: 50%; }
.avatar img { display: block; width: 45px; height: 66px; }
h1 { margin: 0; color: var(--vinho); font-family: "Italiana", Georgia, serif; font-size: 40px; font-weight: 400; line-height: 1.2; letter-spacing: .02em; }
h1:focus { outline: none; }
.brand-description { margin: 11px 0 0; color: var(--texto-suave); font-size: 14px; font-weight: 400; line-height: 1.65; text-wrap: balance; }
.brand-header::after { content: ""; display: block; width: 36px; height: 1px; margin: 22px auto 0; background: var(--ouro); }
.brand-links { display: grid; gap: 12px; }
.brand-link { position: relative; display: flex; align-items: center; gap: 13px; min-height: 74px; padding: 14px 17px; border: 1px solid var(--linha); border-radius: 18px; background: var(--branco); color: var(--vinho); text-decoration: none; box-shadow: 0 1px 2px rgb(74 10 22 / 4%), 0 8px 24px -16px rgb(74 10 22 / 22%); transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.brand-link--primary { border-color: var(--vinho); background: var(--vinho); color: var(--off); box-shadow: 0 12px 28px -14px rgb(74 10 22 / 55%); }
.link-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; color: var(--vinho); background: rgb(246 217 220 / 55%); }
.brand-link--primary .link-icon { color: var(--off); background: rgb(251 245 240 / 14%); }
.link-icon svg { width: 20px; height: 20px; }
.link-copy { min-width: 0; flex: 1; }
.link-title, .link-subtitle { display: block; }
.link-title { font-size: 16px; font-weight: 500; line-height: 1.4; }
.link-subtitle { margin-top: 2px; color: var(--texto-suave); font-size: 13px; font-weight: 300; line-height: 1.5; }
.brand-link--primary .link-subtitle { color: var(--rosa); }
.link-arrow { flex: 0 0 auto; margin-left: 1px; font-size: 26px; font-weight: 300; line-height: 1; opacity: .6; }
.coming-soon { display: inline-block; margin-top: 6px; padding: 2px 7px 3px; border: 1px solid var(--linha); border-radius: 20px; font-size: 10px; font-weight: 400; line-height: 1.2; letter-spacing: .04em; white-space: nowrap; }
.brand-link:focus-visible { transform: translateY(-2px); border-color: rgb(74 10 22 / 35%); box-shadow: 0 2px 4px rgb(74 10 22 / 5%), 0 14px 30px -14px rgb(74 10 22 / 30%); }
@media (hover: hover) { .brand-link:hover { transform: translateY(-2px); border-color: rgb(74 10 22 / 35%); box-shadow: 0 2px 4px rgb(74 10 22 / 5%), 0 14px 30px -14px rgb(74 10 22 / 30%); } }
.brand-link--primary:focus-visible, .brand-link--primary:hover { border-color: var(--vinho); }
.brand-link:active { transform: scale(.98); }
.page-footer { margin-top: 28px; text-align: center; color: var(--texto-suave); font-size: 12px; font-weight: 300; line-height: 1.7; }
.page-footer p { margin: 0; }
.page-footer p + p { margin-top: 2px; }

/* Player limpo: só barra, trocar faixa e a cereja (que toca e pausa). Um degradê protege o texto que rola por baixo. */
.music-player { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; padding: 30px max(20px, calc(50% - 220px)) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--branco) 45%, rgb(255 255 255 / 0%)); }
.player-controls { position: relative; display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 8px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: rgb(74 10 22 / 65%); background: transparent; transition: color 180ms ease, transform 180ms ease; }
.icon-button svg { width: 17px; height: 17px; }
.icon-button:hover { color: var(--vinho); }
.icon-button:active, .cherry-button:active { transform: scale(.94); }
.cherry-button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgb(74 10 22 / 22%); border-radius: 50%; background: var(--branco); box-shadow: 0 6px 18px -10px rgb(74 10 22 / 35%); transition: border-color 220ms ease, transform 180ms ease; }
.cherry-button img { display: block; width: 20px; height: 29px; transition: opacity 220ms ease; }
.cherry-button[data-playing="false"] img { opacity: .4; }
.cherry-button[data-playing="true"] { border-color: rgb(74 10 22 / 45%); animation: cherry-breath 4s ease-in-out infinite; }
.cherry-button:hover { border-color: rgb(74 10 22 / 60%); }
.player-progress { --progress: 0%; display: block; width: 100%; height: 20px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.player-progress::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--vinho) var(--progress), rgb(74 10 22 / 14%) var(--progress)); }
.player-progress::-webkit-slider-thumb { width: 8px; height: 8px; margin-top: -3px; border: 0; border-radius: 50%; background: var(--vinho); appearance: none; -webkit-appearance: none; opacity: 0; }
.player-progress:hover::-webkit-slider-thumb, .player-progress:focus-visible::-webkit-slider-thumb { opacity: 1; }
.player-progress::-moz-range-track { height: 2px; border: 0; border-radius: 2px; background: rgb(74 10 22 / 14%); }
.player-progress::-moz-range-progress { height: 2px; background: var(--vinho); }
.player-progress::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--vinho); }
.player-progress:disabled { cursor: default; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 40px); margin: 0; padding: 12px 18px; border: 0; border-radius: 14px; background: var(--vinho); color: var(--off); text-align: center; font-size: 14px; line-height: 1.5; box-shadow: 0 12px 28px -12px rgb(74 10 22 / 50%); opacity: 0; transform: translate(-50%, 6px); transition: opacity 200ms ease, transform 200ms ease; pointer-events: none; }
.has-player .toast { bottom: calc(126px + env(safe-area-inset-bottom)); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* O mínimo de .65 preserva contraste AA mesmo na fase suave da pulsação. */
@keyframes invitation { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes cherry-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes page-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 768px) { .page { padding-top: 64px; } .cherry-pattern img { width: 45px; height: 66px; } }
@media (max-width: 359px) { .brand-link { gap: 10px; padding-inline: 13px; } .link-title { font-size: 15px; } .player-controls { gap: 20px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  .entry-screen { transition: opacity 400ms ease; }
  .entry-screen.is-leaving { transform: none; }
  .has-entered .page { animation: none; }
  .brand-link, .icon-button, .cherry-button { transition: background-color 180ms ease, border-color 180ms ease; }
  .brand-link:hover, .brand-link:focus-visible, .brand-link:active, .icon-button:active, .cherry-button:active { transform: none; }
  .toast { transform: translateX(-50%); transition: opacity 200ms ease; }
}

.music-credits { margin: 14px auto 0; max-width: 340px; font-size: 11px; }
.music-credits summary { cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.music-credits summary::-webkit-details-marker { display: none; }
.music-credits summary:focus-visible { outline: 2px solid var(--vinho); outline-offset: 3px; border-radius: 4px; }
.music-credits ul { margin: 10px 0 0; padding: 0; list-style: none; line-height: 1.6; }
.music-credits a { color: inherit; text-underline-offset: 2px; }
