@font-face {
  font-family: "Inconsolata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./vendor/inconsolata-latin.woff2") format("woff2");
}

:root {
  --bg: #050505;
  --text: #eeeeec;
  --muted: #73736f;
  --accent: #ff5fae;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inconsolata", Consolas, monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: grid;
  place-items: center;

  background:
    radial-gradient(circle at center, rgba(255, 255, 255, .035), transparent 28%),
    var(--bg);

  opacity: 1;
  visibility: visible;
  transition:
    opacity 520ms cubic-bezier(.22, 1, .36, 1),
    visibility 520ms step-end;
}

.site-loader__content {
  display: grid;
  justify-items: center;
  gap: 24px;

  opacity: 1;
  transform: scale(1);
  transition:
    opacity 120ms ease,
    transform 180ms ease;
}

.site-loader__icon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;

  filter:
    brightness(1.15)
    drop-shadow(0 0 18px rgba(255, 255, 255, .14))
    drop-shadow(0 0 28px rgba(255, 95, 174, .1));

  animation: loader-icon 1.35s ease-in-out infinite;
}

.site-loader__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

body.is-ready .site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader.is-exiting .site-loader__content {
  opacity: 0;
  transform: scale(.94);
}

@keyframes loader-icon {
  0%,
  100% {
    filter:
      brightness(.78)
      drop-shadow(0 0 12px rgba(255, 255, 255, .09))
      drop-shadow(0 0 20px rgba(255, 95, 174, .06));
    transform: scale(.9);
  }

  50% {
    filter:
      brightness(1.45)
      drop-shadow(0 0 20px rgba(255, 255, 255, .18))
      drop-shadow(0 0 34px rgba(255, 95, 174, .13));
    transform: scale(1);
  }
}

#ocean-background {
  position: fixed;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  pointer-events: none;
  opacity: .78;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  z-index: 1;

  min-height: 100vh;
  padding: 28px 32px;

  display: grid;
  grid-template-rows: 1fr;
}

main {
  width: min(640px, 100%);
  margin: auto;
}

#logo-viewer {
  position: relative;

  width: 100%;
  height: 275px;

  margin-bottom: 24px;

  cursor: grab;
  touch-action: none;

  background: transparent;
}

#logo-viewer:active {
  cursor: grabbing;
}

#logo-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;

  outline: none;
}

.projects {
  width: min(420px, 100%);
  margin-inline: auto;
}

.projects-header {
  width: 100%;
  margin-bottom: 18px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.projects-title {
  margin: 0;

  font-size: 13px;
  font-weight: 400;
  line-height: 1;

  color: var(--muted);
}

.email-link {
  padding: 3px 8px;

  border: 1px solid #292927;
  border-radius: 2px;

  font-size: 11px;
  line-height: 1;
  color: var(--muted);

  transition:
    border-color 150ms ease,
    color 150ms ease;
}

.email-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-list {
  width: 100%;
  display: grid;
  gap: 11px;
}

.project {
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;

  font-size: 18px;
  font-weight: 500;
  line-height: 1;

  transition: color 150ms ease;
}

a.project:hover {
  color: var(--accent);
}

.project.disabled {
  color: #858581;
}

.coming-soon {
  color: #4f4f4b;
}

.project-status {
  flex: 0 0 auto;

  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;

  color: #555551;
}

.project-status.active {
  color: var(--accent);
}

@media (max-width: 600px) {
  .page {
    padding: 20px;
  }

  #logo-viewer {
    height: 230px;
  }

  .project {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader__icon {
    animation: none;
  }
}
