/* Coruno landing – the changelog page (/ujdonsagok/). Reuses the hero colour field from styles.css. */

.cl-hero {
  position: relative;
  /* under the translucent sticky header, like the home page hero */
  margin-top: -68px;
  padding: 148px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.cl-hero .hero-bg {
  height: 100%;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

/* a calmer field than on the home page: smaller, further right */
.cl-hero .blob-amber {
  top: -40%;
  right: -12%;
  width: 52vw;
}

.cl-hero .blob-orange {
  top: -5%;
  right: 6%;
  width: 26vw;
}

.cl-hero .blob-rust {
  top: 20%;
  right: -8%;
  width: 20vw;
}

.cl-hero .blob-blue {
  top: -30%;
  left: -16%;
  width: 34vw;
}

.cl-eyebrow {
  margin: 0;
  color: oklch(0.42 0.11 45);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cl-hero h1 {
  margin-top: 12px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
  color: oklch(0.2 0.02 55);
}

.cl-lead {
  max-width: 600px;
  margin-top: 20px;
  color: oklch(0.32 0.02 60);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
}

/* ---------- layout: sticky index + releases ---------- */

.cl-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 96px;
}

.cl-index {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 0.875rem;
}

.cl-index ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-index a {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  transition: background-color 0.15s, color 0.15s;
}

.cl-index a:hover {
  background: var(--hover);
  color: var(--text);
}

.cl-index b {
  flex: none;
  width: 34px;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cl-list {
  display: grid;
}

/* ---------- one release ---------- */

.release {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 72px;
}

.release:first-child {
  padding-top: 0;
  border-top: 0;
}

.release-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.release-version {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.release-meta time {
  color: var(--muted);
  font-size: 0.875rem;
}

.release-latest {
  color: var(--success-text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.release-latest::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}

.release-body {
  max-width: 680px;
}

.release-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.release-lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.release-body h3 {
  margin: 28px 0 0;
  color: var(--subtle);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.release-body ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  line-height: 1.6;
}

.release-body li {
  position: relative;
  padding-left: 22px;
}

.release-body li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-strong);
  opacity: 0.7;
}

.release-body strong {
  font-weight: 600;
}

/* ---------- closing CTA ---------- */

.cl-cta {
  padding: 72px 0 88px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cl-cta h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.cl-cta p {
  margin: 12px 0 28px;
  color: var(--muted);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .cl-body {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cl-index {
    display: none;
  }
}

@media (max-width: 640px) {
  .cl-hero {
    padding: 116px 0 48px;
  }

  .cl-hero .blob-amber {
    width: 110vw;
    right: -50%;
  }

  .cl-hero .blob-orange {
    width: 60vw;
  }

  .cl-hero .blob-blue {
    width: 80vw;
  }

  .release {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 36px 0;
  }

  .release-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .cl-cta .btn {
    width: 100%;
  }
}
