/* ORLIQ.me V4.1.1 | Black & Crimson | mais respiro entre links. */
:root {
  color-scheme: light;
  --outer: #28221f;
  --outer-ink: #4c403b;
  --paper: #eee7dc;
  --ink: #211d1b;
  --muted: #615852;
  --stroke: #201b19;
  --hero: #ed7052;
  --hero-ink: #211d1b;
  --secondary: #e8bba2;
  --secondary-ink: #201d1b;
  --secondary-2: #f4eee7;
  --avatar: #24201e;
  --avatar-text: #e9e2d5;
  --tiny: #a49b90;
  font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme='silver'] {
  --outer: #151617;
  --outer-ink: #323639;
  --paper: #e0e1df;
  --ink: #161718;
  --muted: #565a5a;
  --stroke: #151718;
  --hero: #f8f8f6;
  --hero-ink: #151617;
  --secondary: #949b9e;
  --secondary-ink: #111314;
  --secondary-2: #f4f5f2;
  --avatar: #161819;
  --avatar-text: #e5e8e6;
  --tiny: #929895;
}
/* Paleta 33: preto + crimson. Preserva integralmente a estrutura V3.1. */
:root[data-theme='crimson'] {
  color-scheme: dark;
  --outer: #0d0d0f;
  --outer-ink: #0d0d0f;
  --paper: #18181b;
  --ink: #f7f4f3;
  --muted: #bdb1b6;
  --stroke: #4c4147;
  --hero: #e63950;
  --hero-ink: #ffffff;
  --secondary: #902337;
  --secondary-ink: #ffffff;
  --secondary-2: #242125;
  --avatar: #0d0d0f;
  --avatar-text: #f7f4f3;
  --tiny: #9e9197;
}
:root[data-theme='crimson'] .canvas {
  border-left-color: rgba(255,255,255,.07);
  border-right-color: rgba(255,255,255,.07);
  box-shadow: 0 24px 80px rgba(0,0,0,.27);
}
:root[data-theme='crimson'] .link-dark {
  background: var(--outer);
  color: var(--ink);
}
:root[data-theme='crimson'] .link-dark .link-symbol {
  color: var(--ink);
}
:root[data-theme='crimson'] .link-target:focus-visible,
:root[data-theme='crimson'] .share:focus-visible { outline-color: var(--hero); }
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--outer); color: var(--ink); }
button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
#app { min-height: 100vh; }
.canvas { position: relative; margin: 0 auto; width: min(100%, 634px); min-height: 100vh; background: var(--paper); border-left: 1px solid rgba(0,0,0,.16); border-right: 1px solid rgba(0,0,0,.16); box-shadow: 0 24px 80px rgba(0,0,0,.17); }
.sheet { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: 27px 38px 23px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { font-size: 18px; font-weight: 600; letter-spacing: -.045em; white-space: nowrap; }
.brand span { font-weight: 400; letter-spacing: -.035em; }
.share { display: inline-flex; gap: 9px; align-items: center; border: 1.5px solid var(--stroke); background: transparent; color: var(--ink); border-radius: 50px; font-size: 13px; font-weight: 700; padding: 9px 13px; min-height: 40px; transition: background .18s, color .18s; }
.share:hover { background: var(--ink); color: var(--paper); }
.share svg { flex-shrink: 0; }
.identity { position: relative; display: flex; flex-direction: column; align-items: center; isolation: isolate; margin-top: 32px; padding: 18px 0 11px; text-align: center; }
.portrait { width: 118px; height: 118px; border-radius: 50%; background: var(--ink); padding: 6px; transform: rotate(-7deg); box-shadow: 9px 9px 0 var(--hero); }
.portrait-inset { width: 100%; height: 100%; border-radius: inherit; border: 2px solid var(--paper); overflow: hidden; display: grid; place-items: center; background: var(--avatar); color: var(--avatar-text); }
.portrait-inset > span { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 71px; line-height: 1; transform: rotate(7deg); }
.portrait-inset img { width: 100%; height: 100%; object-fit: cover; display: block; transform: rotate(7deg) scale(1.03); }
.identity h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(45px, 7vw, 62px); letter-spacing: -.08em; line-height: 1; margin: 23px 0 0; font-weight: 700; }
.name-dot { color: var(--hero); }
.identity p { margin: 10px 0 0; font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--muted); letter-spacing: -.02em; }
.links { display: flex; flex-direction: column; gap: 18px; margin: 36px 0 50px; }
/* A caixa abre o destino; só há um controle de compartilhar, à direita. */
.link-card { width: 100%; display: flex; align-items: stretch; position: relative; border: 2px solid var(--stroke); border-radius: 3px; color: var(--ink); box-shadow: 4px 5px 0 var(--stroke); transition: transform .18s ease, box-shadow .18s ease; }
.link-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 8px 0 var(--stroke); }
.link-card:active { transform: translate(0, 0); }
.link-target { flex: 1; min-width: 0; display: flex; align-items: center; gap: 15px; color: inherit; text-decoration: none; padding: 12px 6px 12px 21px; }
.link-title { min-width: 0; overflow-wrap: anywhere; }
/* Hit target de 44 px: ícone sem caixa, fundo ou borda. */
.link-share {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-self: center;
  display: grid;
  place-items: center;
  margin: 0 17px 0 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}
.link-share:hover { transform: translateY(-2px); opacity: .78; }
.link-share:active { transform: translateY(0); }
.link-share svg { pointer-events: none; }
.link-share:focus-visible, .link-target:focus-visible { outline: 3px solid var(--hero); outline-offset: 3px; }
.link-featured { min-height: 118px; background: var(--hero); color: var(--hero-ink); box-shadow: 5px 6px 0 var(--stroke); }
.link-featured .link-target { padding: 18px 6px 18px 22px; gap: 20px; }
.link-featured .link-title { font-family: Georgia, 'Times New Roman', serif; font-size: 41px; font-weight: 700; letter-spacing: -.06em; line-height: 1.1; }
.feature-type { width: 54px; height: 54px; flex: 0 0 54px; border: 0; border-radius: 0; display: grid; place-items: center; transform: none; }
/* LinkedIn aprovado: traço fino, sem círculo de fundo. */
.feature-type.feature-linkedin { width: 54px; height: 54px; flex-basis: 54px; border: 0; border-radius: 0; transform: none; }
.feature-type.feature-linkedin svg { width: 31px; height: 31px; }
/* Axis (27): livre da moldura circular no destaque do Portfólio. */
.feature-type.feature-portfolio { border: 0; border-radius: 0; transform: none; }
.feature-type.feature-portfolio svg { width: 42px; height: 42px; }
.link-secondary { min-height: 76px; }
.link-secondary .link-title { font-weight: 760; font-size: 21px; letter-spacing: -.045em; }
.link-dark { background: var(--ink); color: var(--paper); }
.link-dark .link-symbol { color: var(--paper); }
.link-light { background: var(--secondary); color: var(--secondary-ink); }
/* Todos os símbolos das redes seguem a prévia: apenas o traço, sem círculo. */
.link-symbol { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 0; border-radius: 0; }
.portrait-inset .avatar-fallback { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 71px; line-height: 1; transform: rotate(7deg); }
.portrait-inset img { display: none; }
.portrait-inset.photo-loaded img { display: block; }
.portrait-inset.photo-loaded .avatar-fallback { display: none; }
.footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); margin-top: auto; padding: 16px 0 0; font-size: 12px; color: var(--muted); letter-spacing: -.01em; }
.footer > span:first-child { font-weight: 800; color: var(--ink); letter-spacing: -.035em; }
.footer-address { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 8px; }
.toast { position: fixed; z-index: 5; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); max-width: calc(100vw - 40px); transform: translate(-50%, 18px); padding: 12px 17px; border-radius: 6px; background: var(--ink); color: var(--paper); box-shadow: 0 4px 18px rgba(0,0,0,.2); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.missing { min-height: 100vh; max-width: 650px; margin: auto; background: var(--paper); padding: 12vh 24px; text-align: center; }
.missing p { font-weight: 800; }
.missing h1 { font: 50px Georgia, serif; }
.missing a { color: var(--ink); }
@media (max-width: 620px) {
  .sheet { min-height: 100svh; padding: 20px 23px 23px; }
  .canvas { border: none; }
  .share { width: 41px; height: 41px; padding: 10px; justify-content: center; }
  .share span { display: none; }
  .identity { margin-top: 21px; padding-top: 16px; }
  .portrait { width: 105px; height: 105px; box-shadow: 7px 7px 0 var(--hero); }
  .portrait-inset > span { font-size: 62px; }
  .identity h1 { margin-top: 23px; font-size: clamp(40px, 12vw, 53px); }
  .identity p { font-size: 14px; margin-top: 9px; }
  .links { margin-top: 34px; gap: 17px; margin-bottom: 51px; }
  .link-featured { min-height: 106px; }
  .link-featured .link-target { padding: 16px 4px 16px 16px; gap: 12px; }
  .link-featured .link-title { font-size: clamp(26px, 8vw, 38px); }
  .feature-type { width: 44px; height: 44px; flex-basis: 44px; }
  .feature-type svg { width: 22px; }
  .feature-type.feature-linkedin svg { width: 26px; height: 26px; }
  .feature-type.feature-portfolio svg { width: 34px; height: 34px; }
  .link-secondary { min-height: 70px; }
  .link-target { padding: 10px 4px 10px 16px; gap: 13px; }
  .link-secondary .link-title { font-size: 19px; }
  .link-share { flex-basis: 42px; width: 42px; height: 42px; margin: 0 11px 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Share dialog: mesma interação no desktop e no celular. */
.share-dialog { padding: 0; background: var(--paper); color: var(--ink); border: 1px solid var(--stroke); border-radius: 12px; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); box-shadow: 8px 10px 0 var(--outer); }
.share-dialog::backdrop { background: rgba(0,0,0,.7); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 23px 23px 17px; }
.dialog-kicker { margin: 0 0 7px; font-weight: 600; color: var(--hero); font-size: 13px; }
.dialog-head h2 { margin: 0; font-size: 23px; letter-spacing: -.045em; line-height: 1.2; }
.dialog-close { flex: 0 0 36px; height: 36px; border: 1px solid var(--stroke); border-radius: 50%; background: transparent; color: var(--ink); display: grid; place-items: center; }
.share-address { padding: 14px 17px; margin: 0 23px 18px; background: var(--outer); border: 1px solid var(--stroke); border-radius: 5px; min-width: 0; }
.share-address > span { font-size: 12px; color: var(--muted); }
.share-address p { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; line-height: 1.35; }
.share-choices { padding: 0 23px 23px; display: grid; gap: 12px; }
.share-copy { width: 100%; min-height: 48px; background: var(--hero); color: var(--hero-ink); border: 0; border-radius: 5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; }
.share-copy:hover { filter: brightness(1.1); }
.share-services { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-services a { min-height: 48px; color: var(--ink); text-decoration: none; border: 1px solid var(--stroke); border-radius: 5px; display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.share-services a:hover, .dialog-close:hover { background: var(--outer); }
.native-share { min-height: 42px; border: 0; background: transparent; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 9px; font-size: 13px; }
.native-share[hidden] { display: none; }
@media (max-width: 620px) {
  .share-dialog { width: 100%; max-width: 100%; position: fixed; inset: auto 0 0; margin: 0; max-height: min(85dvh, 650px); border-radius: 17px 17px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); box-shadow: none; }
  .dialog-head { padding-top: 27px; }
}
