@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-medium.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07090b;
  --panel: rgba(14, 16, 18, .7);
  --panel-strong: rgba(255, 255, 255, .075);
  --text: #f5f2ec;
  --muted: #aaa9a4;
  --line: rgba(255, 255, 255, .085);
  --gold: #c6aa74;
  --silver: #d8d9d5;
  --shadow: 0 24px 72px rgba(0, 0, 0, .24);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  letter-spacing: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(198, 170, 116, .14), transparent 31rem),
    linear-gradient(180deg, #0a0d10 0%, #06080a 52%, #0c0d0e 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 23%, rgba(255,255,255,.035) 23.1% 23.22%, transparent 23.35% 50%, rgba(255,255,255,.03) 50.1% 50.2%, transparent 50.3% 76%, rgba(255,255,255,.025) 76.1% 76.22%, transparent 76.35%),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 32%);
  opacity: .42;
}

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

.shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
}

.card {
  position: relative;
  width: min(100%, 430px);
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255,255,255,.038), rgba(255,255,255,.012) 44%, rgba(255,255,255,.025)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
  transform: translate3d(0, 0, 0);
}

.card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(125deg, rgba(198,170,116,.22), transparent 34%, rgba(216,217,213,.08));
  opacity: .22;
}

.topline,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(245,242,236,.68);
}

.topline span:first-child {
  color: var(--gold);
  font-weight: 500;
}

.profile {
  display: grid;
  justify-items: center;
  padding: 30px 6px 34px;
  text-align: center;
}

.portrait-wrap {
  position: relative;
  width: 104px;
  aspect-ratio: 1;
  padding: 4px;
  border: 1px solid rgba(216,217,213,.24);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(198,170,116,.78), rgba(216,217,213,.2), rgba(198,170,116,.26));
  box-shadow: 0 16px 42px rgba(0,0,0,.34);
}

.portrait-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(.92) contrast(1.06);
}

.eyebrow {
  margin: 11px 0 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

h1 {
  margin: 20px 0 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.08;
}

.role {
  max-width: 320px;
  margin: 9px 0 0;
  color: var(--silver);
  font-size: 14px;
  line-height: 1.35;
}

.links {
  display: grid;
  gap: 10px;
}

.link-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  background: rgba(255,255,255,.038);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(198,170,116,.62);
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 32px rgba(0,0,0,.22);
  transform: translateY(-2px);
  outline: 0;
}

.link-card:active {
  transform: translateY(0) scale(.99);
}

.link-card.primary {
  border-color: rgba(198,170,116,.24);
  background: linear-gradient(135deg, rgba(198,170,116,.1), rgba(255,255,255,.035));
}

.mark {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(198,170,116,.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(0,0,0,.18);
}

.mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark .book-icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.35;
}

.mark .whatsapp-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.35;
}

.mark .institution-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.3;
}

.link-card strong,
.link-card em {
  display: block;
  font-style: normal;
}

.link-card strong {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.link-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.25;
}

.link-card b {
  color: rgba(245,242,236,.75);
  font-size: 17px;
  font-weight: 400;
}

.footer {
  justify-content: center;
  margin-top: 21px;
  padding: 4px 0 2px;
}

.footer a {
  padding: 8px 5px;
  color: rgba(245,242,236,.62);
  transition: color .2s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
  outline: 0;
}

@media (min-width: 720px) {
  .shell {
    padding: 40px;
  }

  .card {
    padding: 21px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: arrive .7s cubic-bezier(.2, .8, .2, 1) both;
  }

  .link-card {
    animation: lift .62s cubic-bezier(.2, .8, .2, 1) both;
  }

  .link-card:nth-child(1) { animation-delay: .08s; }
  .link-card:nth-child(2) { animation-delay: .14s; }
  .link-card:nth-child(3) { animation-delay: .20s; }
  .link-card:nth-child(4) { animation-delay: .26s; }
  .link-card:nth-child(5) { animation-delay: .32s; }

  @keyframes arrive {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes lift {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 360px) {
  .shell {
    padding-inline: 12px;
  }

  .card {
    padding: 14px;
  }

  .link-card {
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    padding-inline: 12px;
  }

  .mark {
    width: 40px;
  }

  h1 {
    font-size: 34px;
  }
}
