/*
  64gb.net project homepage
  No framework or JavaScript required.

  Change --thumbnail-ratio from 21 / 9 to 32 / 9
  for super-ultrawide thumbnails.
*/

:root {
  --header-bg: #1a2742;
  --page-bg: #10192c;
  --page-bg-deep: #0c1424;
  --card-bg: #17253f;
  --card-bg-hover: #1b2d4c;
  --heading: #69e7f6;
  --text: #eef7ff;
  --muted: #9fb1ca;
  --cyan: #19e6f3;
  --thumbnail-ratio: 21 / 9;
  --content-width: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--page-bg-deep);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--page-bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
p {
  margin-top: 0;
}

.site-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 50%, rgba(20, 218, 240, 0.07), transparent 25rem),
    var(--header-bg);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(25, 230, 243, 0.42),
    rgba(217, 92, 255, 0.30),
    transparent
  );
}

.header-inner,
.projects-inner,
.footer-inner {
  width: min(calc(100% - 64px), var(--content-width));
  margin-inline: auto;
}

.header-inner {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(22px, 3vw, 42px);
  padding-block: 5px;
}

.site-logo {
  flex: 0 0 auto;
  width: clamp(135px, 13vw, 185px);
  display: block;
  outline: none;
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-logo:focus-visible {
  box-shadow: 0 0 0 3px var(--header-bg), 0 0 0 6px var(--cyan);
}

.header-copy {
  max-width: 680px;
}

h1 {
  margin-bottom: 8px;
  color: var(--heading);
  font-family: "Russo One", sans-serif;
  font-size: clamp(1.75rem, 2.7vw, 2.7rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.site-intro {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.78rem, 0.92vw, 0.9rem);
  font-weight: 400;
  line-height: 1.55;
}

.projects-section {
  min-height: 50vh;
  padding: 42px 0 62px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.012), transparent 140px),
    var(--page-bg);
}

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

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--card-bg);
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  background-color: var(--card-bg-hover);
}

.project-card:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.project-thumb {
  position: relative;
  aspect-ratio: var(--thumbnail-ratio);
  overflow: hidden;
  background: #111b30;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 420ms ease,
    filter 180ms ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.025);
  filter: saturate(1.08) brightness(1.04);
}

.project-thumb-placeholder {
  display: grid;
  place-items: center;
  color: rgba(147, 192, 215, 0.48);
  background:
    linear-gradient(135deg, rgba(25, 230, 243, 0.055), transparent 45%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 15px
    ),
    #111b30;
}

.project-thumb-placeholder span {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-copy {
  flex: 1;
  padding: 15px 17px 18px;
}

.project-copy h2 {
  margin-bottom: 7px;
  color: var(--heading);
  font-family: "Orbitron", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.project-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
}

.site-footer {
  background: var(--page-bg-deep);
  border-top: 1px solid rgba(98, 231, 244, 0.10);
}

.footer-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f91aa;
  font-size: 0.82rem;
  text-align: center;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner a {
  color: #a9c3dc;
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--cyan);
}

@media (max-width: 1040px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner,
  .projects-inner,
  .footer-inner {
    width: min(calc(100% - 34px), var(--content-width));
  }

  .header-inner {
    align-items: center;
    gap: 18px;
    padding-block: 5px;
  }

  .site-logo {
    width: 112px;
  }

  h1 {
    font-size: clamp(1.35rem, 6.4vw, 1.85rem);
  }

  .site-intro {
    font-size: 0.72rem;
  }

  .projects-section {
    padding-block: 30px 48px;
  }

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

  .project-copy {
    padding: 14px 15px 17px;
  }

  .footer-inner {
    min-height: 62px;
  }
}

@media (max-width: 470px) {
  .header-inner {
    align-items: flex-start;
  }

  .site-logo {
    width: 90px;
  }

  .site-intro {
    max-width: 260px;
  }
}

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