:root {
  --text: #ffffff;
  --muted: #ded7d9;

  --black: #070708;
  --surface: #111113;
  --surface-2: #18181b;

  --maroon: #6f1425;
  --maroon-dark: #3d0914;
  --maroon-light: #a5263e;

  --border: rgba(255, 255, 255, 0.18);
}


/* =========================================================
   BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background:
    #080808
    url("bbg.webp")
    center 20% / cover
    fixed
    no-repeat;
}


body::before {
  content: "";

  position: fixed;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.20)
    );

  pointer-events: none;

  z-index: -1;
}


/* =========================================================
   PAGE
   ========================================================= */

.shell {
  width: min(1120px, 94vw);

  margin: 0 auto;

  padding: 32px 0 48px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  width: min(760px, 94vw);

  margin: 0 auto 28px;

  padding: 24px 20px;

  text-align: center;

  /*
   * Hero itself is transparent.
   * Glass belongs ONLY to .hero-text.
   */
  background: transparent;

  text-shadow:
    0 2px 6px #000,
    0 0 12px rgba(0, 0, 0, 0.65);
}


/* Remove any old whole-hero effects */

.hero::before,
.hero::after {
  content: none !important;
  display: none !important;
}


/* =========================================================
   CLIPPY
   ========================================================= */

.clippy {
  width: 105px;
  height: 105px;

  object-fit: contain;

  filter:
    drop-shadow(
      0 6px 12px rgba(0, 0, 0, 0.8)
    );
}


/* =========================================================
   GLASS — NAME + BIO ONLY
   ========================================================= */

.hero-text {
  width: 100%;

  margin: 10px auto 0;

  padding:
    10px
    18px
    14px;

  background:
    linear-gradient(
      110deg,
      rgba(7, 7, 9, 0.58),
      rgba(18, 10, 14, 0.50),
      rgba(7, 7, 9, 0.58)
    );

  border:
    1px solid
    rgba(165, 38, 62, 0.24);

  border-radius: 8px;

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  backdrop-filter:
    blur(6px)
    saturate(105%);

  -webkit-backdrop-filter:
    blur(6px)
    saturate(105%);
}


/* No shiny reflection */

.hero-text::before,
.hero-text::after {
  content: none;
}


/* =========================================================
   HERO TEXT
   ========================================================= */

.hero h1 {
  margin: 0 0 12px;

  font-size: clamp(40px, 6vw, 68px);

  line-height: 1;

  font-weight: 800;
}


.bio {
  max-width: 680px;

  margin: 0 auto;

  font-size: 17px;

  line-height: 1.55;

  font-weight: 600;
}


/* =========================================================
   CURRICULUM VITAE
   ========================================================= */

.mini-links {
  display: flex;

  justify-content: center;

  margin-top: 18px;
}


.mini-links a {
  padding: 10px 20px;

  color: #fff;

  text-decoration: none;

  font-size: 16px;
  font-weight: 700;

  background: #09090a;

  border: 1px solid var(--maroon);

  border-radius: 999px;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4);

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}


.mini-links a:hover {
  background: var(--maroon-dark);

  border-color: var(--maroon-light);

  transform: translateY(-2px);
}


.mini-links a:focus-visible {
  outline: 3px solid #fff;

  outline-offset: 3px;
}


/* =========================================================
   LINK COLUMNS
   ========================================================= */

.links,
.messaging {
  width: min(490px, 92vw);

  margin: 28px auto;
}


/* =========================================================
   MESSAGING TITLE
   ========================================================= */

.messaging h2 {
  margin: 42px 0 22px;

  color: #fff;

  text-align: center;

  font-size: 27px;
  font-weight: 800;

  text-shadow:
    0 2px 5px #000,
    0 0 12px #000;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.link {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 12px;

  width: 100%;

  min-height: 72px;

  margin: 15px 0;

  padding: 12px 20px;

  overflow: hidden;

  color: #fff;

  text-decoration: none;

  font-size: 20px;
  font-weight: 750;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 10px;

  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.35);

  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.65);

  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
}


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

  filter: brightness(1.10);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.42);
}


.link:focus-visible {
  outline: 3px solid #fff;

  outline-offset: 3px;
}


.link span {
  font-size: 20px;

  font-weight: 750;
}


/* =========================================================
   LOGOS
   ========================================================= */

.service-logo {
  display: block;

  width: 34px !important;
  height: 34px !important;

  min-width: 34px !important;

  max-width: 34px !important;
  max-height: 34px !important;

  flex: 0 0 34px !important;

  object-fit: contain;
  object-position: center;

  filter:
    drop-shadow(
      0 1px 2px rgba(0, 0, 0, 0.35)
    );
}


/* ORCID */

.orcid-logo {
  width: 44px !important;
  height: 44px !important;

  min-width: 44px !important;

  max-width: 44px !important;
  max-height: 44px !important;

  flex: 0 0 44px !important;

  object-fit: contain;
}


/* Signal */

.signal-logo {
  width: 44px !important;
  height: 44px !important;

  min-width: 44px !important;

  max-width: 44px !important;
  max-height: 44px !important;

  flex: 0 0 44px !important;

  object-fit: contain;
}


/* SimpleX */

.simplex-logo {
  width: 46px !important;
  height: 46px !important;

  min-width: 46px !important;

  max-width: 46px !important;
  max-height: 46px !important;

  flex: 0 0 46px !important;

  object-fit: contain;
}


/* Matrix */

.matrix-logo {
  width: 48px !important;
  height: 34px !important;

  min-width: 48px !important;

  max-width: 48px !important;
  max-height: 34px !important;

  flex: 0 0 48px !important;

  object-fit: contain;
}


/* CODEFLOE */

.codefloe-logo {
  width: 40px !important;
  height: 40px !important;

  min-width: 40px !important;

  max-width: 40px !important;
  max-height: 40px !important;

  flex: 0 0 40px !important;

  object-fit: contain;
}


/* =========================================================
   BRAND BUTTONS
   ========================================================= */


/* ORCID */

.link:has(img[src*="orcid"]) {
  background:
    linear-gradient(
      135deg,
      #050505 0%,
      #0c0809 58%,
      #310811 100%
    );

  border: 1px solid #7b1729;

  border-left:
    4px solid
    var(--maroon-light);

  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.48),
    inset 0 0 20px rgba(111, 20, 37, 0.10);
}


.link:has(img[src*="orcid"]):hover {
  background:
    linear-gradient(
      135deg,
      #080808,
      #170a0d,
      #4b0c19
    );
}


/* CODEBERG */

.link:has(img[src*="codeberg"]) {
  background:
    linear-gradient(
      135deg,
      #071a27,
      #0b3047,
      #10506f
    );

  border-color: #286985;

  border-left:
    4px solid
    #2185bf;
}


.link:has(img[src*="codeberg"]):hover {
  background:
    linear-gradient(
      135deg,
      #0a2231,
      #0e3b55,
      #146080
    );

  border-color: #3b83a1;
}


/* CODEFLOE */

.codefloe {
  background:
    linear-gradient(
      135deg,
      #080b1f,
      #11183d,
      #123849
    );

  border-color: #285b69;

  border-left:
    4px solid
    #27c9d8;
}


.codefloe:hover {
  background:
    linear-gradient(
      135deg,
      #0c1029,
      #18204d,
      #174a5b
    );

  border-color: #39d9e5;
}


/* LEMMY */

.link:has(img[src*="lemmy"]) {
  background: #181a1d;

  border-color: #484d52;
}


/* PIXELFED */

.link:has(img[src*="pixelfed"]) {
  background:
    linear-gradient(
      100deg,
      #c81660,
      #9234c9,
      #167cbf,
      #00a863
    );

  border-color:
    rgba(255, 255, 255, 0.30);
}


/* MASTODON */

.link:has(img[src*="mastodon"]) {
  background:
    linear-gradient(
      135deg,
      #12102d,
      #21194d,
      #34246f
    );

  border-color: #51458d;

  border-left:
    4px solid
    #6364ff;
}


.link:has(img[src*="mastodon"]):hover {
  background:
    linear-gradient(
      135deg,
      #18143a,
      #29205c,
      #403080
    );

  border-color: #7065a8;
}


/* BLUESKY */

.link:has(img[src*="bluesky"]) {
  background:
    linear-gradient(
      135deg,
      #071522,
      #0a2943,
      #0c4169
    );

  border-color: #1c628f;

  border-left:
    4px solid
    #1185fe;
}


.link:has(img[src*="bluesky"]):hover {
  background:
    linear-gradient(
      135deg,
      #091c2c,
      #0d3552,
      #10517c
    );

  border-color: #2d79a7;
}


/* ODYSEE */

.link:has(img[src*="odysee"]) {
  background:
    linear-gradient(
      100deg,
      #b81039,
      #d34a1c,
      #c47a08
    );

  border-color: #e47d48;
}


/* SIGNAL */

.link:has(img[src*="signal"]) {
  background:
    linear-gradient(
      135deg,
      #101a45,
      #17265f,
      #1d3478
    );

  border-color: #334b91;

  border-left:
    4px solid
    #263f96;
}


/* SIMPLEX */

.link:has(img[src*="simplex"]) {
  background:
    linear-gradient(
      135deg,
      #06141f,
      #082536,
      #073d49
    );

  border-color: #155b68;

  border-left:
    4px solid
    #0b7f8c;
}


/* DELTA CHAT */

.link:has(img[src*="deltachat"]) {
  background:
    linear-gradient(
      135deg,
      #0b1013,
      #16242b,
      #233943
    );

  border-color: #405b66;

  border-left:
    4px solid
    #496c79;
}


.link:has(img[src*="deltachat"]):hover {
  background:
    linear-gradient(
      135deg,
      #10171b,
      #1c3038,
      #2b4854
    );

  border-color: #587986;
}


/* MATRIX */

.link:has(img[src*="matrix"]) {
  background: #111214;

  border-color: #45484b;
}


/* =========================================================
   CONTACT ROWS
   ========================================================= */

.contact-row {
  display: flex;

  align-items: center;

  gap: 13px;

  width: 100%;

  min-height: 68px;

  margin: 12px 0;

  padding: 12px 18px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #0c0b0c,
      #151012
    );

  border: 1px solid #4d1721;

  border-left:
    4px solid
    var(--maroon);

  border-radius: 10px;

  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.35);

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}


.contact-row:hover {
  background:
    linear-gradient(
      135deg,
      #111011,
      #241015
    );

  border-color:
    var(--maroon-light);

  transform:
    translateY(-1px);
}


.contact-row .service-logo {
  width: 36px !important;
  height: 36px !important;

  min-width: 36px;

  max-width: 36px !important;
  max-height: 36px !important;

  flex: 0 0 36px;
}


/* =========================================================
   CONTACT TEXT
   ========================================================= */

.contact-text {
  display: flex;

  flex-direction: column;

  min-width: 0;

  line-height: 1.35;
}


.contact-text strong {
  color: #fff;

  font-size: 17px;
  font-weight: 750;
}


.contact-text span {
  margin-top: 2px;

  color: var(--muted);

  font-size: 14px;

  overflow-wrap: anywhere;
}


/* =========================================================
   FERMI
   ========================================================= */

.fermi-logo {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  min-width: 36px;

  flex: 0 0 36px;

  color: #fff;

  font-size: 19px;
  font-weight: 900;

  background:
    linear-gradient(
      135deg,
      var(--maroon),
      var(--maroon-light)
    );

  border-radius: 7px;
}


/* =========================================================
   EMAIL
   ========================================================= */

.mail-symbol {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  min-width: 34px;

  font-size: 25px;
}


/* =========================================================
   EMAIL BUTTON
   ========================================================= */

.link[data-key="email"] {
  background:
    linear-gradient(
      135deg,
      #071522,
      #0b3552,
      #0d527a
    );

  border-color: #286b91;

  border-left:
    4px solid
    #087bd4;
}


/* =========================================================
   DISABLED
   ========================================================= */

.configurable.disabled {
  opacity: 0.48;

  cursor: not-allowed;

  filter:
    grayscale(0.3);
}


.configurable.disabled:hover {
  transform: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  body {
    background-position:
      58% top;

    background-attachment:
      scroll;
  }


  .shell {
    padding:
      16px
      0
      36px;
  }


  .hero {
    padding:
      18px
      12px;
  }


  .clippy {
    width: 88px;
    height: 88px;
  }


  .hero-text {
    padding:
      9px
      12px
      12px;
  }


  .hero h1 {
    font-size: 40px;
  }


  .bio {
    font-size: 15px;
  }


  .links,
  .messaging {
    width: 92vw;
  }


  .link {
    min-height: 65px;

    margin: 12px 0;

    padding: 11px 16px;

    gap: 10px;

    font-size: 18px;
  }


  .link span {
    font-size: 18px;
  }


  .service-logo {
    width: 30px !important;
    height: 30px !important;

    min-width: 30px;

    max-width: 30px !important;
    max-height: 30px !important;

    flex-basis: 30px;
  }


  .link img[src*="orcid"],
  .link img[src*="simplex"] {
    width: 34px !important;
    height: 34px !important;

    min-width: 34px;

    max-width: 34px !important;
    max-height: 34px !important;

    flex-basis: 34px;
  }


  .matrix-logo {
    width: 43px !important;
    height: 30px !important;

    min-width: 43px;

    max-width: 43px !important;
    max-height: 30px !important;

    flex-basis: 43px;
  }


  .messaging h2 {
    font-size: 24px;
  }


  .contact-row {
    min-height: 62px;

    padding:
      10px
      14px;
  }


  .contact-row .service-logo {
    width: 31px !important;
    height: 31px !important;

    min-width: 31px;

    max-width: 31px !important;
    max-height: 31px !important;

    flex-basis: 31px;
  }


  .fermi-logo {
    width: 31px;
    height: 31px;

    min-width: 31px;

    flex-basis: 31px;

    font-size: 17px;
  }


  .contact-text strong {
    font-size: 16px;
  }


  .contact-text span {
    font-size: 13px;
  }

}