/* ==========================================================================
   Luana Mendes · página de links (luanamendes.com)
   ========================================================================== */

:root {
  /* mesmas cores e fontes do portfólio */
  --bg: #FFFAF1;
  --card: #FCF5E9;   /* quase o tom do fundo, só um pouquinho mais escuro */
  --brown: #702E25;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--brown);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p,
h1,
h2 {
  margin: 0;
}

a:focus-visible {
  outline: 2px dashed var(--brown);
  outline-offset: 3px;
}

.page {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 64px max(20px, env(safe-area-inset-right, 0px)) 72px max(20px, env(safe-area-inset-left, 0px));
}


/* ---- perfil ---- */
.profile {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 24px;
  text-align: center;
}

.profile__photo {
  width: 150px;
  height: 150px;
  margin-bottom: 8px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
}

.profile__name {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.profile__email {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 400 14px var(--font-display);
  cursor: copy;
}

.profile__email:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.socials {
  display: flex;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transition: transform .2s;
}

.socials a:hover {
  transform: translateY(-2px);
}

.socials svg {
  width: 22px;
  height: 22px;
}


/* ---- blocos de links ---- */
.links {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-title {
  margin: 26px 0 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
}

.link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 65px;
  padding: 8px 72px;
  border: 2px solid var(--brown);
  border-radius: 8px;
  background: var(--card);
  text-align: center;
  text-decoration: none;
  transition: transform .2s;
}

.link:hover {
  transform: scale(1.02);
}

.link--soft {
  border-color: transparent;
}

.link__icon {
  position: absolute;
  top: 50%;
  left: 28px;
  width: 32px;
  height: 32px;
  object-fit: contain;
  transform: translateY(-50%);
}

.link__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.link__sub {
  font-size: 13px;
  line-height: 1.35;
}

/* ---- botão de compartilhar (junto dos ícones) ---- */
.share {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: transform .2s;
}

.share:hover {
  transform: translateY(-2px);
}

.share svg {
  width: 21px;
  height: 21px;
}

.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 10;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--brown);
  color: var(--bg);
  font: 500 14px var(--font-display);
  transform: translateX(-50%);
}

/* celular: mesma largura, botões mais baixos e letra um pouco menor */
@media (max-width: 480px) {
  .links {
    gap: 12px;
  }

  .link {
    min-height: 54px;
    padding: 6px 20px 6px 64px;
  }

  /* botão sem logo (calculadora): texto no centro */
  .link--no-icon {
    padding-inline: 20px;
  }

  .link__icon {
    left: 16px;
    width: 26px;
    height: 26px;
  }

  /* a letra diminui junto com a tela, para o texto nunca quebrar linha */
  .link__title {
    font-size: clamp(10px, 3.6vw, 14px);
    white-space: nowrap;
  }

  .link__sub {
    font-size: clamp(9px, 3.05vw, 12px);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
