@import "components/nav.css";

:root {
  --bg: #152326;
  --bg-trans: #1d3034;
  --title: #79c2b6;
  --section: #6fa791;
  --text: #dbd0c6;
  --link: #ffd7aa;
  --divider: #f9ada0;
}

@font-face {
  font-family: "Monaspace Neon";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    url(https://cdn.jsdelivr.net/fontsource/fonts/monaspace-neon@latest/latin-400-normal.woff2)
      format("woff2"),
    url(https://cdn.jsdelivr.net/fontsource/fonts/monaspace-neon@latest/latin-400-normal.woff)
      format("woff");
}

@font-face {
  font-family: "Monaspace Neon";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src:
    url(https://cdn.jsdelivr.net/fontsource/fonts/monaspace-neon@latest/latin-700-normal.woff2)
      format("woff2"),
    url(https://cdn.jsdelivr.net/fontsource/fonts/monaspace-neon@latest/latin-700-normal.woff)
      format("woff");
}

@font-face {
  font-family: "Adwaita Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    url(https://cdn.jsdelivr.net/fontsource/fonts/adwaita-mono@latest/latin-400-normal.woff2)
      format("woff2"),
    url(https://cdn.jsdelivr.net/fontsource/fonts/adwaita-mono@latest/latin-400-normal.woff)
      format("woff");
}

body {
  font-family: "Monaspace Neon", ui-monospace, monospace;

  display: flex;
  flex-direction: column;
  /* background-color: var(--bg); */
  background: linear-gradient(
    125deg,
    #0f1a1c 33%,
    #111f22 33% 66%,
    var(--bg) 66%
  );
  max-width: 65em;
  min-height: 100vh;
  margin: 0 auto;
}

main {
  flex: 1;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}

.footer-text {
  color: var(--section);
  padding: 1rem;
  opacity: 0.5;
  font-size: 1rem;
}

.footer-icons {
  display: flex;
  gap: 1rem;
}

.footer-icons img {
  width: 30px;
  opacity: 0.5;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.footer-icons img:hover {
  opacity: 1;
  transform: scale(1.1);
}

p {
  color: var(--text);
  font-size: 1.2em;
}

.inline-link {
  color: var(--link);
  text-decoration: none;
  display: inline-block;

  background-image: linear-gradient(var(--link), var(--link));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: bottom left;
  transition: background-size 0.2s ease;
}

.inline-link:hover {
  background-size: 100% 2px;
}

.section {
  margin: 0 0 5em 0;
}

.section-header {
  color: var(--title);
  margin-bottom: 0;
}

.section-divider {
  color: var(--title);
  font-size: 1.5em;
  margin-top: 0;
  font-family: "Adwaita Mono";
}

.project {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 4px 0;
  text-decoration: none;
  position: relative;

  margin: 1rem 0;

  font-size: 1.2rem;

  background-image: linear-gradient(var(--title), var(--title));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: bottom left;
  transition:
    background-size 0.3s ease,
    background-color 0.5s ease;

  img {
    align-self: flex-start;
    width: 30px;
  }
}

.project:hover {
  background-size: 100% 2px;
  background-color: var(--bg-trans);
}
.project-name {
  font-weight: bold;
  flex-shrink: 0;
  color: var(--section);
}

.project-desc {
  color: var(--text);
  flex: 1;
  opacity: 0.7;
}
