/* ===== Font ===== */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
}

/* ===== Page-wide settings ===== */
:root {
  background-color: #fafafa;
  font-family: "Inter Variable", sans-serif;
  font-size: 16px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== Page layout: profile on the left, links on the right ===== */
.page {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  align-content: flex-start;
  column-gap: 1rem;
  width: 100%;
  max-width: 90rem;
  margin-right: auto;
  margin-left: auto;
  padding-top: 8rem;
  padding-bottom: 5rem;
  letter-spacing: 0;
  background-image: url("/assets/images/page-background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

/* ===== Profile ===== */
.profile {
  position: sticky;
  top: 10rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  row-gap: 2rem;
  max-width: 25rem;
  margin-top: 2rem;
}

.profile-header {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  column-gap: 1.5rem;
}

.profile-avatar {
  width: 12rem;
  aspect-ratio: 1 / 1;
  border: 0.25rem solid #fff;
  border-radius: 50%;
  background-color: #fff;
  object-fit: cover;
}

.profile-name {
  margin-top: 0;
  margin-bottom: 0.2em;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 600;
  text-wrap: balance;
}

.profile-subtitle {
  margin-top: 0;
  margin-bottom: 0;
  color: #f73333;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  text-wrap: balance;
}

.profile-bio {
  margin-top: 0;
  margin-bottom: 0;
  color: #f73333;
  font-size: 0.9375rem;
  line-height: 1.75;
  text-wrap: balance;
}

/* ===== Link grid: 3 columns of 11rem tiles ===== */
.link-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 1.5em;
  width: 36rem;
  margin-bottom: 4rem;
}

/* ===== Link cards ===== */
.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 11rem;
  height: 11rem;
  padding: 1.25rem 1.5rem 1.5rem;
  overflow: clip;
  border: 3px solid #f2f2f2;
  border-radius: 1.65rem;
  box-shadow: #00000012 0 6px 12px -6px;
  background-color: #939fa0;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  text-decoration: none;
  transition: scale 0.3s ease, padding 0.3s ease;
}

.link-card:hover {
  padding: 1rem 1.25rem 1.25rem;
  scale: none;
}

.link-card-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
}

/* Each card: brand colour, artwork, and title colour */
.link-card-youtube {
  background-color: red;
  background-image: url("/assets/images/card-youtube.png");
  background-size: contain;
  background-repeat: repeat;
  color: #fff;
}

.link-card-instagram {
  background-image: url("/assets/images/card-instagram.gif");
}
.link-card-instagram .link-card-title {
  text-shadow: 0 2px 3px #000;
}

.link-card-jinxxy {
  background-color: #1db954;
  background-image: url("/assets/images/avatar.gif");
}

.link-card-payhip {
  background-color: #0a66c2;
  background-image: url("/assets/images/card-payhip.avif");
}
.link-card-payhip .link-card-title {
  color: #f06;
}

.link-card-twitch {
  background-color: #9146ff;
  background-image: url("/assets/images/card-twitch.png");
  background-size: contain;
  background-repeat: repeat;
}

.link-card-kofi {
  background-color: #ffdd04;
  background-image: url("/assets/images/card-kofi.png");
  background-size: contain;
  background-repeat: repeat;
}

.link-card-whatnot {
  background-color: #fc6d26;
  background-image: url("/assets/images/card-whatnot.webp");
  background-size: contain;
}

.link-card-discord {
  background-color: #2945d4;
  background-image: url("/assets/images/card-discord.png");
  background-size: contain;
}

.link-card-vinted {
  background-color: #1877f2;
  background-image: url("/assets/images/card-vinted.png");
  background-size: contain;
}

.link-card-redbubble {
  background-color: #c90000;
  background-image: url("/assets/images/card-redbubble.png");
  color: #000;
}

.link-card-teespring {
  background-color: #fff;
  background-image: url("/assets/images/card-teespring.jpg");
  background-size: contain;
  color: #111;
}

.link-card-tiktok {
  background-color: #000;
  background-image: url("/assets/images/card-tiktok.png");
  background-size: contain;
  background-repeat: repeat;
}
.link-card-tiktok .link-card-title {
  color: #000;
}

.link-card-furaffinity {
  background-color: #f80;
  background-image: url("/assets/images/card-furaffinity.png");
}

.link-card-patreon {
  background-color: #e60023;
  background-image: url("/assets/images/card-patreon.png");
  background-size: contain;
}
.link-card-patreon .link-card-title {
  color: #000;
}

.link-card-deviantart {
  background-color: #5865f2;
  background-image: url("/assets/images/card-deviantart.jpg");
}

.link-card-facebook {
  background-color: #08c;
  background-image: url("/assets/images/card-facebook.jpg");
}

.link-card-inkbunny {
  background-color: #fff;
  background-image: url("/assets/images/card-inkbunny.png");
}

.link-card-weasyl {
  background-image: url("/assets/images/card-weasyl.png");
  background-size: contain;
}

/* ===== Banners: image tiles that are 3 cards wide ===== */
.banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 36rem;
  overflow: clip;
  border: 3px solid #f2f2f2;
  border-radius: 1.65rem;
  box-shadow: #00000012 0 6px 12px -6px;
  background-color: #939fa0;
  background-image: linear-gradient(135deg, #0000 40%, #0000000a);
}

.banner-wide {
  height: 11rem;
}

.banner-tall {
  height: 23.5rem;
}

.banner-large {
  height: 36rem;
  background-image: linear-gradient(135deg, #0000 40%, #0000000a), url("/assets/images/banner-large.png");
  background-position: 0% 0%, 50% 50%;
  background-size: auto auto, cover;
}

.banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 110% 110% 100%;
}

/* ===== Tablet (up to 991px): stack profile above links ===== */
@media (max-width: 991px) {
  .page {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    row-gap: 4rem;
    padding-top: 4rem;
  }

  .profile {
    position: static;
    max-width: 36rem;
    margin-top: 0;
  }

  .profile-header {
    flex-direction: row;
    align-items: center;
    justify-content: start;
    width: 85%;
  }

  .profile-avatar {
    width: 8rem;
    margin-bottom: auto;
  }

  .profile-heading {
    margin-bottom: 0;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .profile-bio {
    width: 80%;
  }

  .link-grid {
    margin-bottom: 0;
  }
}

/* ===== Phone (up to 767px): tiles scale with the screen width ===== */
@media (max-width: 767px) {
  .page {
    padding-top: 2rem;
    row-gap: 3rem;
  }

  .profile {
    align-items: center;
    justify-content: start;
    row-gap: 1.5rem;
    max-width: none;
  }

  .profile-header {
    width: 90%;
  }

  .profile-avatar {
    width: 5rem;
  }

  .profile-name {
    font-size: 1.25rem;
  }

  .profile-subtitle,
  .profile-bio {
    font-size: 0.875rem;
  }

  .link-grid {
    width: 100%;
    gap: 1.75vw;
    padding-right: 1.75vw;
    padding-left: 1.75vw;
  }

  .link-card {
    width: 31vw;
    height: 31vw;
    padding: 0.85rem 1rem 1rem;
    border-radius: 1.25rem;
  }

  .link-card:hover {
    padding: 0.85rem 1rem 1rem;
  }

  .banner {
    width: 96vw;
    border-radius: 1.25rem;
  }

  .banner-wide {
    height: 31vw;
  }

  .banner-tall {
    height: 63vw;
  }

  .banner-large {
    height: 96vw;
  }
}

/* ===== Small phone (up to 479px) ===== */
@media (max-width: 479px) {
  .page {
    row-gap: 2.5rem;
  }

  .profile-header {
    column-gap: 1.25rem;
  }

  .profile-name {
    font-size: 1rem;
  }

  .profile-bio {
    margin-left: 0.75rem;
  }

  .link-grid {
    width: 100vw;
  }

  .link-card {
    padding: 3vw;
    border-radius: 0.9375rem;
  }

  .link-card:hover {
    padding: 3vw;
  }

  .link-card-title {
    font-size: 0.75rem;
  }

  .banner {
    width: 96.8vw;
    border-radius: 0.9375rem;
  }
}
