:root {
  color-scheme: light;
  --paper: #fcfcfb;
  --paper-deep: #f4f4f2;
  --ink: #111111;
  --muted: rgba(17, 17, 17, 0.66);
  --soft: rgba(17, 17, 17, 0.28);
  --line: rgba(17, 17, 17, 0.1);
  --line-strong: rgba(17, 17, 17, 0.18);
  --shadow: 0 14px 40px rgba(17, 17, 17, 0.045);
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/caveat-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/sora-latin.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Sora", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 30%),
    radial-gradient(circle at bottom right, rgba(235, 235, 232, 0.56), transparent 28%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}

body::before {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.56), transparent 28%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.012), rgba(17, 17, 17, 0));
  pointer-events: none;
  content: "";
}

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

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.poster {
  width: min(100%, 1520px);
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.topbar {
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--ink);
}

.canvas {
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: clamp(48px, 9vw, 140px);
  align-items: center;
  min-height: calc(100vh - 96px);
}

.hero {
  position: relative;
  padding: 7vh 0 10vh;
}

.hero::before {
  position: absolute;
  top: 7%;
  left: 6%;
  width: clamp(180px, 22vw, 320px);
  height: clamp(120px, 15vw, 210px);
  border: 1.35px solid rgba(17, 17, 17, 0.16);
  border-radius: 56% 44% 47% 53% / 42% 58% 42% 58%;
  transform: rotate(-12deg);
  pointer-events: none;
  content: "";
}

.hero::after {
  position: absolute;
  bottom: 8%;
  left: 14%;
  width: 180px;
  height: 48px;
  border-bottom: 1.35px solid rgba(17, 17, 17, 0.18);
  border-radius: 50%;
  transform: rotate(-7deg);
  pointer-events: none;
  content: "";
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hero-title-top,
.hero-title-bottom {
  display: block;
}

.hero-title-top {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title-bottom {
  margin-top: 16px;
  font-family: "Caveat", cursive;
  font-size: clamp(4.7rem, 10vw, 9.8rem);
  font-weight: 700;
  line-height: 0.87;
  letter-spacing: -0.04em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.action-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 8px 20px 8px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.action-badge:hover,
.action-badge:focus-visible {
  transform: translateY(-2px);
}

.action-badge-github:hover,
.action-badge-github:focus-visible {
  border-color: rgba(17, 17, 17, 0.26);
}

.action-badge-openai {
  background: var(--ink);
  color: #fffdf8;
  border-color: var(--ink);
}

.action-badge-openai:hover,
.action-badge-openai:focus-visible {
  background: #242424;
  border-color: #242424;
}

.badge-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: #f3f3f1;
}

.badge-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-avatar-openai {
  background: #fcfcfb;
  padding: 12px;
}

.badge-copy {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.project-cloud {
  position: relative;
  min-height: 860px;
}

.project-cloud::before {
  position: absolute;
  inset: 4% 8% 6% 12%;
  border: 1.35px solid rgba(17, 17, 17, 0.12);
  border-radius: 47% 53% 45% 55% / 54% 41% 59% 46%;
  transform: rotate(8deg);
  pointer-events: none;
  content: "";
}

.project-cloud::after {
  position: absolute;
  inset: 14% 4% 22% 22%;
  border: 1.35px solid rgba(17, 17, 17, 0.1);
  border-radius: 58% 42% 53% 47% / 38% 61% 39% 62%;
  transform: rotate(-9deg);
  pointer-events: none;
  content: "";
}

.project {
  position: absolute;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: min(100%, 310px);
  color: var(--ink);
  transition: transform 220ms ease;
}

.project:hover,
.project:focus-visible {
  transform: translateY(-4px);
}

.project-icon-shell {
  width: 94px;
  height: 94px;
}

.project-icon-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-copy {
  display: block;
}

.project-date {
  display: block;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.project-name {
  display: block;
  margin-top: 6px;
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.project-note {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 22ch;
}

.project-vibo {
  top: 8%;
  left: 4%;
  animation: drift-a 8.4s ease-in-out infinite;
}

.project-friends {
  top: 29%;
  right: 2%;
  animation: drift-b 9.3s ease-in-out infinite;
}

.project-magicpaste {
  top: 54%;
  left: 12%;
  animation: drift-c 8.8s ease-in-out infinite;
}

.project-tip {
  top: 2%;
  right: 20%;
  animation: drift-c 10.2s ease-in-out infinite;
}

.project-contextos {
  bottom: 7%;
  left: 34%;
  animation: drift-b 9.8s ease-in-out infinite;
}

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

@keyframes drift-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }

  50% {
    transform: translate3d(0, -10px, 0) rotate(2deg);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(2deg);
  }

  50% {
    transform: translate3d(0, 9px, 0) rotate(-2deg);
  }
}

@keyframes drift-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }

  50% {
    transform: translate3d(6px, -8px, 0) rotate(2deg);
  }
}

@media (max-width: 1180px) {
  .canvas {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  .hero {
    padding: 4vh 0 0;
  }

  .project-cloud {
    display: grid;
    gap: 18px;
    justify-items: start;
    min-height: auto;
    padding: 24px 0 10px;
  }

  .project-cloud::before,
  .project-cloud::after {
    display: none;
  }

  .project {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 420px;
    margin-bottom: 0;
    animation: none;
  }
}

@media (max-width: 760px) {
  .poster {
    padding: 20px 14px 32px;
  }

  .canvas {
    gap: 14px;
  }

  .topbar {
    margin-bottom: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
  }

  .brand-icon {
    width: 20px;
    height: 20px;
  }

  .hero::before {
    width: 170px;
    height: 104px;
    top: 11%;
    left: 2%;
  }

  .hero::after {
    width: 124px;
    left: 5%;
    bottom: 12%;
  }

  .hero-title-top {
    width: 100%;
    font-size: 0.92rem;
    letter-spacing: 0.14em;
  }

  .hero-title-bottom {
    margin-top: 12px;
    width: 100%;
    font-size: clamp(4.8rem, 28vw, 7.4rem);
    line-height: 0.84;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
  }

  .action-badge {
    width: auto;
    max-width: 100%;
    min-height: 58px;
    padding: 6px 16px 6px 6px;
    justify-content: flex-start;
    gap: 10px;
  }

  .badge-avatar {
    width: 44px;
    height: 44px;
  }

  .badge-avatar-openai {
    padding: 10px;
  }

  .badge-copy {
    font-size: 0.92rem;
    white-space: normal;
  }

  .project {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
  }

  .project-icon-shell {
    width: 82px;
    height: 82px;
  }

  .project-date {
    font-size: 0.68rem;
  }

  .project-name {
    font-size: 1.08rem;
  }

  .project-note {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
