:root {
  --bg-0: #f8f4ee;
  --bg-1: #dce9e5;
  --ink: #111515;
  --muted: #46575a;
  --accent: #0d8a7a;
  --accent-2: #f1a24a;
  --panel: rgba(255, 255, 255, 0.13);
  --panel-edge: rgba(17, 21, 21, 0.16);
  --card: rgba(255, 255, 255, 0.62);
  --card-border: rgba(17, 21, 21, 0.12);
  --skeleton-image-height: 170vh;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 16%, rgba(13, 138, 122, 0.18), transparent 36%),
    radial-gradient(circle at 86% 90%, rgba(241, 162, 74, 0.22), transparent 34%),
    radial-gradient(circle at 62% 28%, rgba(122, 165, 214, 0.14), transparent 42%),
    linear-gradient(150deg, var(--bg-0), var(--bg-1));
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.skeleton-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.skeleton-bg img {
  position: absolute;
  left: 50%;
  top: 0;
  width: auto;
  height: var(--skeleton-image-height);
  max-width: none;
  opacity: 0.5;
  transform: translateX(-50%) translateY(0);
  will-change: transform;
  animation: skeleton-pan 6.5s cubic-bezier(0.42, 0, 0.58, 1) infinite alternate;
}

.background-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.48;
  animation: drift 10s ease-in-out infinite alternate;
}

.shape-a {
  width: 260px;
  height: 260px;
  background: #9fd5c8;
  top: 8%;
  right: -60px;
}

.shape-b {
  width: 220px;
  height: 220px;
  background: #f7d8a8;
  bottom: 10%;
  left: -70px;
  animation-duration: 13s;
}

.layout {
  position: relative;
  z-index: 1;
  width: min(960px, 92vw);
  min-height: 94vh;
  padding: 24px 30px 16px;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  backdrop-filter: none;
  box-shadow: 0 14px 28px rgba(15, 26, 30, 0.12);
  overflow: hidden;
}

.layout::before {
  content: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
}

.topbar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.site-logo {
  height: clamp(96px, 12vw, 200px);
  width: auto;
  filter: drop-shadow(0 10px 18px rgba(14, 31, 33, 0.2));
}

.hero {
  text-align: center;
  margin-bottom: 28px;
  animation: rise 600ms ease-out both;
}

.eyebrow {
  margin: 0 0 2px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.73rem;
}

h1 {
  margin: 6px 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #0f6b60 0%, #0d8a7a 48%, #1e9f8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2.25vw, 1.16rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.card {
  position: relative;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(1px);
  border-radius: 20px;
  padding: 22px 24px 22px;
  min-height: 198px;
  display: grid;
  gap: 8px;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  animation: rise 600ms ease-out both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(13, 138, 122, 0.95), rgba(241, 162, 74, 0.95));
}

.card:nth-child(2) {
  animation-delay: 120ms;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(13, 138, 122, 0.52);
  box-shadow: 0 18px 34px rgba(16, 34, 38, 0.16);
  background: rgba(255, 255, 255, 0.84);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-label {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--muted);
}

h2 {
  margin: 1px 0 1px;
  font-size: clamp(1.18rem, 3.2vw, 1.52rem);
  color: #133638;
}

.card p {
  margin: 0;
  color: #3f5255;
  line-height: 1.45;
}

.arrow {
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 1.2rem;
  color: var(--accent);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 21, 21, 0.12);
}

.footer-title {
  margin: 0 0 9px;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.69rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
}

.repo-link {
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #18393b;
  border: 1px solid rgba(16, 34, 38, 0.2);
  background: rgba(255, 255, 255, 0.5);
  padding: 9px 13px;
  border-radius: 999px;
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}

.repo-link:hover,
.repo-link:focus-visible {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(13, 138, 122, 0.62);
  background: rgba(255, 255, 255, 0.86);
}

.repo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translateY(0px) scale(1);
  }
  to {
    transform: translateY(18px) scale(1.06);
  }
}

@keyframes skeleton-pan {
  from {
    transform: translateX(-50%) translateY(0);
  }
  to {
    transform: translateX(-50%) translateY(calc(100vh - var(--skeleton-image-height)));
  }
}

@media (max-width: 780px) {
  :root {
    --skeleton-image-height: 150vh;
  }

  .skeleton-bg img {
    width: auto;
    height: var(--skeleton-image-height);
    top: 0;
    opacity: 0.2;
  }

  .layout {
    min-height: 94vh;
    padding: 16px 14px 10px;
    border-radius: 20px;
  }

  .topbar {
    justify-content: center;
    margin-bottom: 10px;
  }

  .cards {
    grid-template-columns: 1fr;
    margin-bottom: 14px;
  }

  .card {
    min-height: 166px;
  }
}
