﻿@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-mono/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-mono/GeistMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #fafafa;
  --main: #a3a3a3;
  --muted: #525252;
  --low: #343434;
  --line: rgba(250, 250, 250, 0.05);
  --line-hot: #2d2d2d;
  --field: #050505;
  --danger: #9a4a42;
  --smooth: cubic-bezier(0.19, 1, 0.22, 1);
  --quick: cubic-bezier(0.2, 0, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--main);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 16px;
}

body::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  pointer-events: none;
  border-radius: 9999px;
  background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
  opacity: 0.03;
  transform: translate(-50%, -50%);
}

body::before {
  content: "";
  position: fixed;
  inset: 6px;
  pointer-events: none;
  border: 1px solid #20242b;
  border-radius: 4px;
  opacity: 0.92;
}

button,
input {
  font: inherit;
}

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

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.link-card {
  width: min(100%, 318px);
  min-height: 510px;
  display: grid;
  align-content: center;
  position: relative;
  animation: page-enter 980ms var(--smooth) both;
}

.profile {
  position: relative;
  margin-bottom: 74px;
  animation: fade-rise 900ms 110ms var(--smooth) both;
}

.mark {
  position: absolute;
  left: -34px;
  top: -1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #282828;
  cursor: pointer;
  opacity: 0;
  transition:
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.link-card:hover .mark,
.mark:focus-visible,
.add-panel.open + .project-list {
  opacity: 1;
}

.mark:hover,
.mark:focus-visible {
  color: var(--muted);
  transform: rotate(90deg);
  outline: none;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.profile p {
  margin: 7px 0 0;
  color: #4b4b4b;
  font-size: 15px;
  line-height: 1.35;
}

.add-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  border-top: 0 solid transparent;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 240ms ease,
    opacity 180ms ease,
    padding 240ms ease,
    border-color 240ms ease,
    transform 240ms ease;
}

.add-panel.open {
  max-height: 340px;
  margin: -45px 0 48px;
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 1;
  transform: translateY(0);
}

label {
  display: grid;
  gap: 5px;
}

label span {
  color: var(--muted);
  font-size: 11px;
}

input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--field);
  color: var(--main);
  padding: 8px 9px;
  outline: none;
}

input:focus {
  border-color: var(--line-hot);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.icon-button {
  width: 30px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--line-hot);
  color: var(--ink);
}

.project-list {
  display: grid;
  gap: 26px;
  animation: fade-in 700ms 180ms var(--smooth) both;
}

.project-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 22px;
  color: var(--main);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  filter: blur(3px);
  animation: link-enter 920ms var(--smooth) forwards;
  animation-delay: calc(170ms + (var(--index, 0) * 82ms));
  will-change: opacity, transform, filter;
}

.project-link {
  min-width: 0;
  display: block;
}

.project-link,
.footer-links a {
  position: relative;
  width: fit-content;
}

.project-link::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  opacity: 0.42;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--smooth), opacity 260ms var(--quick);
}

.project-link:hover::after,
.project-link:focus-visible::after,
.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.project-title {
  display: block;
  min-width: 0;
}

.project-title strong {
  display: block;
  overflow: hidden;
  color: currentColor;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    color 150ms ease,
    transform 150ms ease;
}

.project-title span,
.project-note {
  display: none;
}

.project-item:hover .project-title strong,
.project-item:focus-within .project-title strong {
  color: var(--ink);
  transform: translate3d(6px, 0, 0);
}

.project-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 260ms var(--quick);
}

.project-item:hover .project-actions,
.project-item:focus-within .project-actions {
  opacity: 1;
}

.mini-button {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
  font-size: 12px;
  transition: color 220ms var(--quick), transform 320ms var(--smooth);
}

.mini-button:hover,
.mini-button:focus-visible {
  color: var(--muted);
  outline: none;
}

.mini-button.delete:hover {
  color: var(--danger);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 96px;
  padding-top: 29px;
  border-top: 1px solid #111;
  animation: fade-rise 900ms 620ms var(--smooth) both;
}

.footer-links a,
.footer-links button {
  border: 0;
  background: transparent;
  color: #3e3e3e;
  padding: 0;
  font-size: 15px;
  cursor: pointer;
  transition: color 260ms var(--quick), transform 420ms var(--smooth);
}

.footer-links a:hover,
.footer-links button:hover,
.footer-links a:focus-visible,
.footer-links button:focus-visible {
  color: var(--muted);
  outline: none;
}

.admin-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 14px;
  opacity: 0;
  transition: opacity 150ms ease;
}

.link-card:hover .admin-controls,
.admin-controls:focus-within {
  opacity: 1;
}

.admin-controls button {
  border: 0;
  background: transparent;
  color: #282828;
  padding: 0;
  font-size: 12px;
  cursor: pointer;
}

.admin-controls button:hover,
.admin-controls button:focus-visible {
  color: var(--muted);
  outline: none;
}

.save-state {
  position: fixed;
  left: 50%;
  bottom: 28px;
  min-height: 16px;
  margin: 0;
  color: #3f3f3f;
  font-size: 12px;
  transform: translateX(-50%);
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes link-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@media (max-width: 560px) {
  .page-shell {
    place-items: center;
    padding: 24px;
  }

  .link-card {
    width: min(100%, 285px);
    min-height: 560px;
  }

  .mark {
    left: auto;
    right: 0;
    top: 0;
    opacity: 1;
  }

  .add-panel {
    grid-template-columns: 1fr;
  }

  .project-list {
    gap: 24px;
  }

  .project-actions {
    opacity: 1;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}





