﻿/* Root Variables */
:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-accent: #aaaaf7;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-scrollbar: #333;
  --color-scrollbar-hover: #666;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
}

/* Typography */
h1, h2, h3 {
  font-weight: 900;
  text-transform: uppercase;
}
.flag {
  color: var(--color-accent);
  background-color: var(--color-black);
}

/* Flex Layout */
.flex-row { display: flex; flex-direction: row; }
.flex-column { display: flex; flex-direction: column; }
.flex-1 { flex: 1; }
.flex-grow-1 { flex-grow: 1; }
.flex-grow-2 { flex-grow: 2; }
.flex-grow-3 { flex-grow: 3; }
.gap-xl { gap: 3rem; }
.gap-lg { gap: 2rem; }
.gap-md { gap: 1rem; }
.gap-sm { gap: 0.5rem; }
.gap-xs { gap: 0.25rem; }

/* Alignment */
.justify-center { justify-content: center; }
.justify-space { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.text-center { text-align: center; }

/* Components */
main {
  min-height: 100vh;
}
@media (hover: none) and (pointer: coarse) {
  main {
    min-height: 100svh;
  }
}
.nav > div:nth-child(2) {
  max-width: 45vw;
}
.nav p {
  color: var(--color-white);
  z-index: 2;
  mix-blend-mode: difference;
  user-select: none;
  pointer-events: none;
}

/* Links */
a {
  color: var(--color-accent);
  background-color: var(--color-black);
  text-decoration: none;
  font-weight: 700;
  padding: 2px 8px;
  transition: color 200ms ease, background-color 200ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nav a {
  color: var(--color-white);
  mix-blend-mode: difference;
  z-index: 2;
}
a:active,
.nav a:active {
  color: var(--color-black);
  background-color: var(--color-white);
}
@media (hover: hover) and (pointer: fine) {
  a:hover,
  .nav a:hover {
    color: var(--color-black);
    background-color: var(--color-white);
  }
}

/* EX Letters */
.exrow {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.fade-in {
  opacity: 0;
  filter: blur(10px);
  animation: fadeBlurIn 1.5s ease-out forwards;
}
@keyframes fadeBlurIn {
  0% {
    opacity: 0;
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}
.letter-e, .letter-x, .space {
  transition: flex-basis 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.letter-e, .letter-x { flex-basis: 48%; }
.space { flex-basis: 4%; }
.letter-e:hover,
.letter-x:hover,
.space:hover {
  flex-basis: 100%;
}
.black {
  background-color: var(--color-black);
}

/* Fit Heights */
.fit-1  { height: calc(100% / 14); }
.fit-2  { height: calc(100% / 14 * 2); }
.fit-4  { height: calc(100% / 14 * 4); }
.fit-5  { height: calc(100% / 14 * 5); }
.fit-6  { height: calc(100% / 14 * 6); }
.fit-all { height: 100%; }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Project Section */
.projects {
  background-color: var(--color-accent);
  position: relative;
  padding: 0.5rem;
}
.projects p {
  line-height: 1.25rem;
}

/* Mobile Warning */
.mobile-warning {
  display: none;
  width: 100%;
  background-color: var(--color-accent);
  padding: 0.5rem;
  text-align: center;
  font-weight: 700;
  z-index: 3;
}

/* Selection & Scrollbar */
::selection {
  color: var(--color-accent);
  background: var(--color-black);
}

::-webkit-scrollbar {
  width: 0.5rem;
}
::-webkit-scrollbar-track {
  background: none;
}
::-webkit-scrollbar-thumb {
  background: var(--color-scrollbar);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-scrollbar-hover);
}

/* Media Queries */
@media (max-width: 768px) {
  .mobile {
    flex-direction: column;
  }
}
