@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #23344D;
  --ink-soft: #4B5A73;
  --red: #D9381E;
  --red-dark: #B02A14;
  --teal: #278D8B;
  --yellow: #FBC04D;
  --cream: #FFF9F0;
  --sun: #FFEFC2;
  --mint: #DDF0EE;

  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --pop: 0 5px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
a { touch-action: manipulation; color: inherit; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, p { margin: 0; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.bio {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: clamp(28px, 6vw, 48px) 18px 32px;
  display: grid;
  gap: 22px;
}

.bio__head { display: grid; justify-items: center; gap: 14px; text-align: center; }
.bio__logo { width: min(31vw, 115px); filter: drop-shadow(0 8px 10px rgba(35,52,77,.18)); }
.bio__tag {
  max-width: 24em;
  font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; line-height: 1.25;
  color: var(--ink-soft); text-wrap: balance;
}


.bio__links { display: grid; gap: 18px; }
.eyebrow {
  text-align: center;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  font-size: .9rem; color: var(--red);
}

.link {
  display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center;
  padding: 16px; text-decoration: none;
  background: var(--sun); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop);
  transition: transform .12s ease, box-shadow .12s ease;
}
.link--mundo { background: var(--mint); }
.link:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.link:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }

.link__img {
  width: 104px; height: auto; background: #fff;
  border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: 0 6px 12px rgba(35,52,77,.22);
  transform: rotate(-2.5deg);
}
.link--mundo .link__img { transform: rotate(2.5deg); }
.link__img--book { border: 0; background: transparent; border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 8px rgba(35,52,77,.3)); }

.link__body { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.badge {
  display: inline-block; background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 999px;
  padding: .1em .75em; font-weight: 800; font-size: .78rem; line-height: 1.4;
  box-shadow: 0 2px 0 var(--ink);
}
.link--mundo .badge { background: #fff; }
.link__title { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.link__text { font-weight: 700; font-size: .95rem; line-height: 1.3; color: var(--ink-soft); text-wrap: balance; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 4px;
  min-height: 44px; padding: .45em 1.15em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.15; text-align: center;
  color: #fff; background: var(--red);
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink);
}
.link:hover .btn { background: var(--red-dark); }

.bio__foot { display: grid; gap: 2px; justify-items: center; text-align: center; font-size: .85rem; font-weight: 700; color: var(--ink-soft); padding-top: 4px; }

@media (max-width: 380px) {
  .link { grid-template-columns: 84px 1fr; gap: 12px; padding: 14px; }
  .link__img { width: 84px; }
  .link__title { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
