@layer base {
  *, :before, :after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    text-size-adjust: none;
  }

  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin-block-end: 0;
  }

  ul[role="list"], ol[role="list"] {
    list-style: none;
  }

  body {
    min-height: 100vh;
    line-height: 1.5;
  }

  h1, h2, h3, h4, button, input, label {
    line-height: 1.1;
  }

  h1, h2, h3, h4 {
    text-wrap: balance;
  }

  a:not([class]) {
    -webkit-text-decoration-skip-ink: auto;
    text-decoration-skip-ink: auto;
    color: currentColor;
  }

  img, picture {
    max-width: 100%;
    display: block;
  }

  input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
  }

  textarea:not([rows]) {
    min-height: 10em;
  }

  :target {
    scroll-margin-block: 5ex;
  }

  :root {
    --bright: #d3c3e9;
    --dim: #766478;
    --paragraph: #eee;
    --bg2: #2c2736;
    --bg1: #1e1d23;
    --bg0: #111014;
    --danger: lightcoral;
    --lume-red: #e05252;
    --sansserif: "Atkinson Hyperlegible Next", "Roboto", "Helvetica Neue", 
    "Arial Nova", "Nimbus Sans", "Arial", sans-serif;
    --serif: "EB Garamond", "Charter", "Bitstream Charter", "Sitka Text", "Cambria", serif;
    --mono: "Space Mono", ui-monospace, "Cascadia Code", "Source Code Pro", 
    "Menlo", "Consolas", "DejaVu Sans Mono", monospace;
    --trans: .17s;
    --lanewidth: 672px;
  }

  @supports (color: lab(0% 0 0)) {
    :root {
      --bright: lab(80.9979% 11.12 -16.8524);
      --dim: lab(44.6117% 10.388 -8.49525);
      --paragraph: lab(94.084% .0000298023 0);
      --bg2: lab(16.6003% 5.32095 -8.87249);
      --bg1: lab(11.0099% 2.00298 -3.97341);
      --bg0: lab(4.86081% .960805 -2.05538);
      --lume-red: lab(55.2155% 56.2172 31.3643);
    }
  }

  *, :before, :after {
    font-family: var(--sansserif);
  }
}

@layer components {
  .socials {
    --link-color: white;
    --link-bg: black;
    --icon: none;
    pointer-events: none;
    flex-flow: wrap;
    align-content: flex-end;
    gap: .3em;
    margin-top: 1em;
    font-weight: 800;
    display: flex;
    background: none !important;
  }

  .socials .socials-link {
    position: relative;
  }

  .socials .socials-link:before {
    content: "";
    background-image: var(--icon);
    image-rendering: auto;
    background-position: 0;
    background-repeat: no-repeat;
    background-size: 1.5em;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }

  .socials .socials-link.Bluesky:before {
    filter: invert();
    margin-left: .1em;
  }

  .socials .socials-link.NG:before {
    background-size: 1.9em;
    margin-left: -.05em;
  }

  .socials .socials-link.Discord:before {
    filter: invert();
    margin-left: .1em;
  }

  .socials .socials-link.Altstream:before {
    background-size: 1.45em;
    margin-left: .1em;
  }

  .socials .socials-link.VGen:before {
    margin-left: .05em;
  }

  .socials .socials-link.Ko-fi:before {
    background-size: 1.65em;
    margin-left: .1em;
  }

  .socials .socials-link.E-mail:before {
    filter: invert(90%);
    background-size: 1.55em;
    margin-left: .05em;
  }

  .socials .socials-link {
    pointer-events: auto;
    min-width: 7em;
    color: var(--link-color);
    background-color: var(--link-bg);
    border-right: .4em solid oklch(from var(--link-bg) calc(l*.8) calc(c*.7) h);
    height: 1.8em;
    transition: all .1s;
    transition-property: opacity border width filter;
    filter: drop-shadow(0 0 #0000);
    flex: 1;
    place-content: center right;
    padding-right: .3em;
    text-decoration: none;
    display: grid;
  }

  .socials .socials-link:hover {
    border-right-style: double;
    border-right-width: .8em;
    border-right-color: var(--link-color);
  }

  .socials .socials-link.Altstream {
    border-color: oklch(from var(--link-color) calc(l*.5) calc(c*.8) h);
    border-left: .1em solid oklch(from var(--link-color) calc(l*.5) calc(c*.8) h);
  }

  .socials .socials-link.Altstream:hover {
    border-right-color: var(--link-color);
  }

  .socials .socials-link.Altstream:hover:before {
    background-image: url("assets/icons/altstream-ashe-yap.gif");
  }

  .socials:hover > :not(:hover) {
    opacity: .57;
  }
}

html, body {
  height: 100%;
  margin: 0;
}

html {
  background: url("/assets/landing.avif") no-repeat;
  background-color: var(--bg1);
  background-position: 20% 30%;
  background-size: cover;
}

.container {
  grid-template-rows: 3rem 1fr;
  grid-template-columns: 1fr 20em;
  width: 100dvw;
  height: 100dvh;
  padding: 1em;
  display: grid;
}

.enter, .links, .name {
  background: oklch(from var(--bg0) l c h / .8);
  color: var(--paragraph);
}

:is(.enter, .links, .name).name {
  background: none;
  grid-column: 2;
  justify-content: right;
  place-self: stretch stretch;
  justify-items: center;
  position: relative;
  right: 0;
}

:is(.enter, .links, .name).enter {
  background-color: var(--bg0);
  border: var(--bg0) .2em solid;
  grid-row-start: 2;
  grid-column-start: 2;
  place-self: end;
  width: 20em;
  height: 10em;
}

:is(.enter, .links, .name).enter:hover a {
  border-right: .8em double var(--bg0);
  background-color: var(--bright);
  color: var(--bg0);
}

:is(.enter, .links, .name).enter a {
  transition: var(--trans) color, var(--trans) border, var(--trans) background-color;
  border-right: .3em solid var(--bright);
  color: var(--bright);
  place-content: center;
  width: 100%;
  height: 100%;
  font-size: 3em;
  text-decoration: none;
  display: grid;
}

:is(.enter, .links, .name).links {
  border-top: .2em solid var(--bright);
  grid-row: span 2 / span 2;
  place-self: end stretch;
  width: 20em;
  height: auto;
  padding: 1em;
}

:is(.enter, .links, .name).links .profile {
  display: none;
}

@media not (min-width: 671px) {
  .container {
    background: oklch(from var(--bg0) l c h);
    opacity: 1;
    flex-flow: column;
    padding: 0;
    font-size: 125%;
    display: flex;
  }

  .container .name {
    display: none;
  }

  .container .links {
    text-align: left;
    text-align: center;
    flex-flow: column;
    flex: 1;
    width: 100%;
    display: flex;
  }

  .container .links .socials {
    flex-flow: column;
    order: 99;
    justify-content: center;
    height: 14em;
    font-size: 160%;
  }

  .container .links .profile {
    box-sizing: content-box;
    display: inherit;
    float: right;
    border: .4em var(--bright) double;
    border-radius: 100%;
    align-self: center;
    width: 4.2em;
    margin: 1em 0;
  }

  .container .enter {
    flex: 1;
    order: 1;
    width: 100%;
  }
}
