@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("./fonts/montserrat.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("./fonts/playfair.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("./fonts/playfair-italic.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --navy: oklch(0.215 0.039 258);
  --navy-deep: oklch(0.16 0.028 258);
  --navy-raised: oklch(0.27 0.047 258);
  --gold: oklch(0.735 0.097 88);
  --gold-soft: oklch(0.815 0.074 90);
  --ivory: oklch(0.955 0.014 90);
  --mist: oklch(0.79 0.019 255);
  --line: oklch(0.735 0.097 88 / 0.4);
  --shadow: oklch(0.08 0.02 258 / 0.35);
  --serif: "Playfair Display", Georgia, serif;
  --sans: Montserrat, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #070B14;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ivory);
  background-color: #070B14;
  background-image: url("./fundo-mobile-1080x1920.svg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

body.profile-isabela,
body.profile-rafael {
  background-color: #070B14;
  background-image: url("./fundo-mobile-1080x1920.svg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
}

.shell {
  width: min(100%, 39rem);
  margin: 0 auto;
  padding: clamp(1.75rem, 7vw, 4rem) clamp(1rem, 4.5vw, 2rem) 2.5rem;
}

.profile {
  display: grid;
  justify-items: center;
  text-align: center;
}

.profile__portrait {
  position: relative;
  width: 6.7rem;
  aspect-ratio: 1;
  margin: 0 0 1.25rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0.42rem oklch(0.735 0.097 88 / 0.12), 0 1.1rem 2.5rem var(--shadow);
}

.profile__portrait::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  border: 0.24rem solid oklch(0.955 0.014 90 / 0.15);
  border-radius: inherit;
  pointer-events: none;
}

.profile__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile--isabela .profile__portrait img {
  object-position: 50% 22%;
}

.profile--rafael .profile__portrait img {
  object-position: 50% 15%;
}

.profile__verified {
  position: absolute;
  right: -0.08rem;
  bottom: -0.08rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 0.16rem solid var(--navy);
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0.15rem 0.45rem var(--shadow);
  pointer-events: none;
}

.profile__verified svg {
  display: block;
  width: 100%;
  height: 100%;
}

.profile__institution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: var(--gold-soft);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.profile__institution::before,
.profile__institution::after {
  width: 1.8rem;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.65;
}

.profile h1 {
  max-width: 100%;
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 7vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
  white-space: nowrap;
}

.profile__role {
  max-width: 35ch;
  margin: 0.8rem 0 0;
  color: var(--mist);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.profile__thought {
  max-width: 36ch;
  margin: 1.15rem 0 0;
  color: oklch(0.87 0.03 93);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.35;
}

.link-list {
  display: grid;
  gap: 0.4rem;
  margin-top: clamp(1.15rem, 4.5vw, 1.6rem);
}

.link-card {
  display: block;
  border: 0;
  background: transparent;
  border-radius: 0;
  content-visibility: auto;
  contain-intrinsic-size: 300px;
  filter:
    drop-shadow(0 0.55rem 0.85rem oklch(0.05 0.015 258 / 0.45))
    drop-shadow(0 0.15rem 0.35rem oklch(0.05 0.015 258 / 0.35));
  transition: transform 240ms cubic-bezier(.16, 1, .3, 1), filter 240ms ease;
}

.link-card:first-child {
  content-visibility: visible;
}

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

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-0.18rem);
  filter:
    drop-shadow(0 0.85rem 1.25rem oklch(0.05 0.015 258 / 0.55))
    drop-shadow(0 0.25rem 0.45rem oklch(0.05 0.015 258 / 0.4));
}

.footer {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  margin-top: 1.55rem;
  padding-top: 1.35rem;
  border-top: 1px solid oklch(0.735 0.097 88 / 0.22);
  color: oklch(0.69 0.023 255);
  text-align: center;
}

.footer__crm {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.018em;
}

.footer__crm span + span::before {
  margin-right: 0.75rem;
  content: "·";
  color: var(--gold);
}

.signature-space {
  width: 8.5rem;
  height: 1.85rem;
  border-bottom: 1px solid oklch(0.735 0.097 88 / 0.3);
}

.footer__note {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.chooser {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.chooser .shell {
  text-align: center;
}

.chooser__links {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.chooser__links a {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.chooser__links a:hover {
  border-color: var(--gold);
  background: oklch(0.38 0.057 258 / 0.2);
}

@media (min-width: 48rem) {
  body,
  body.profile-isabela,
  body.profile-rafael {
    background-image: url("./fundo-desktop-2560x1440.svg");
  }

  .shell {
    padding-bottom: 3.8rem;
  }

  .profile__portrait {
    width: 7.5rem;
  }

  .profile__verified {
    width: 1.6rem;
    height: 1.6rem;
  }

  .link-list {
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .link-card:hover,
  .link-card:focus-visible {
    transform: none;
  }
}
