:root {
  color-scheme: dark;
  --bg: #151515;
  --panel: #202020;
  --panel-hover: #252525;
  --line: #2d2d2d;
  --line-strong: #3a3a3a;
  --text: #f4f4f4;
  --muted: #8d8d8d;
  --faint: #555;
  --green: #85d6a3;
  --yellow: #d7bd72;
  --red: #d87887;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

p,
h1,
h2 {
  margin: 0;
}

img,
svg {
  display: block;
}

a:focus-visible {
  outline: 1px solid #777;
  outline-offset: 5px;
}

::selection {
  background: #303030;
  color: #fff;
}

.site-shell {
  display: flex;
  flex-direction: column;
  width: min(780px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0 28px;
  animation: page-in 420ms var(--ease) both;
}

.intro {
  display: grid;
  gap: 6px;
}

.intro h1 {
  color: #fff;
  font-size: clamp(2.25rem, 7vw, 3.05rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.95;
}

.intro p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.intro strong {
  color: #d7d7d7;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.role-line {
  color: #777;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.discord-link {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: #8f8f8f;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.discord-link svg {
  width: 25px;
  height: 25px;
}

hr {
  width: 100%;
  height: 1px;
  border: 0;
  margin: 22px 0 28px;
  background: var(--line);
}

.section-label {
  margin-bottom: 22px;
  color: #8f99a7;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 173px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--panel);
  will-change: transform;
  transition:
    border-color 460ms var(--ease),
    background 460ms var(--ease),
    box-shadow 460ms var(--ease),
    transform 460ms var(--ease);
}

.project-card div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-card h2 {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.project-title-wrap {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.project-title-wrap img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: contain;
}

.project-card .project-tag {
  flex: 0 0 auto;
  border-radius: 5px;
  padding: 4px 8px;
  background: #292929;
  color: #747474;
  font-size: 0.72rem;
  line-height: 1;
}

.project-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.project-stack {
  margin-top: 8px;
  color: #6f6f6f;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
}

.project-card time {
  margin-top: auto;
  padding-top: 22px;
  color: #666;
  font-size: 0.78rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 120px;
  color: #777;
  font-size: 0.78rem;
}

.project-card:hover {
  border-color: #505050;
  background: var(--panel-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.discord-link:hover {
  color: #d0d0d0;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 32px, 520px);
    padding-top: 54px;
  }

  hr {
    margin: 20px 0 26px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 148px;
  }

  footer {
    padding-top: 72px;
  }
}

@media (max-width: 420px) {
  .site-shell {
    width: min(100% - 24px, 360px);
    padding-top: 44px;
  }

  .intro h1 {
    font-size: 2.45rem;
  }

}

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

@keyframes page-in {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
}
