* {
  box-sizing: border-box;
}

:root {
  --ink: oklch(22% 0.018 var(--fz-hue));
  --muted: oklch(50% 0.015 var(--fz-hue));
  --line: oklch(89% 0.012 var(--fz-hue));
  --paper: oklch(98.5% 0.006 var(--fz-hue));
  --accent: oklch(47% 0.14 var(--fz-hue));
  --accent-light: oklch(93% 0.045 var(--fz-hue));
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  color: var(--ink);
  background: oklch(86% 0.09 var(--fz-hue));
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 5vw, 72px);
  color: white;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-size: 17px;
}

.brand img {
  display: block;
  max-width: 154px;
  max-height: 58px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-block;
  border: 8px solid white;
  border-radius: 50% 50% 50% 16%;
}

.topbar-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .68;
}

.back-link {
  justify-self: end;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, opacity .2s ease;
}

.back-link:hover {
  border-color: currentColor;
  opacity: .8;
}

.hero {
  min-height: min(760px, 92svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 78% 32%, oklch(68% 0.17 calc(var(--fz-hue) + 18) / .42), transparent 26%),
    linear-gradient(135deg, oklch(29% 0.09 var(--fz-hue)), oklch(42% 0.14 var(--fz-hue)) 58%, oklch(35% 0.11 calc(var(--fz-hue) + 25)));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5% - 1px), white calc(12.5% - 1px), white 12.5%);
}

.hero-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 138px 32px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
  align-items: center;
  gap: 72px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  animation: hero-in .75s cubic-bezier(.2, .75, .25, 1) both;
}

.eyebrow,
.release-kicker {
  margin: 0 0 19px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: oklch(88% 0.08 var(--fz-hue));
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(58px, 8.5vw, 108px);
  line-height: .94;
  letter-spacing: -.06em;
}

.hero-text {
  max-width: 570px;
  margin: 30px 0 38px;
  color: oklch(91% 0.018 var(--fz-hue));
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.latest-link {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  color: white;
  border-bottom: 1px solid oklch(100% 0 0 / .45);
  text-decoration: none;
  transition: gap .22s ease, border-color .22s ease;
}

.latest-link span {
  font-size: 13px;
  opacity: .72;
}

.latest-link strong {
  font-family: "Sora", sans-serif;
}

.latest-link:hover {
  gap: 21px;
  border-color: white;
}

.hero-version {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(370px, 31vw);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid oklch(100% 0 0 / .38);
  border-radius: 50%;
  animation: version-in .9s .1s cubic-bezier(.2, .75, .25, 1) both;
}

.hero-version::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px dashed oklch(100% 0 0 / .22);
  border-radius: inherit;
  animation: orbit 28s linear infinite;
}

.hero-version span,
.hero-version small {
  position: relative;
  color: oklch(92% 0.025 var(--fz-hue));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-version strong {
  position: relative;
  margin: 7px 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(44px, 6vw, 80px);
  letter-spacing: -.07em;
}

.intro {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 105px 0 92px;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 48px;
  border-bottom: 1px solid var(--line);
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.intro .intro-lead {
  color: var(--ink);
  font-family: "Sora", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.principles {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.principles span::before {
  content: "•";
  margin-right: 8px;
}

.marker-guide {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 22px;
}

.marker-guide header {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 12px 48px;
  margin-bottom: 40px;
}

.marker-guide .eyebrow {
  grid-row: 1 / 3;
  margin: 5px 0 0;
  color: var(--accent);
}

.marker-guide h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.035em;
}

.marker-guide header > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.marker-guide dl {
  margin: 0;
}

.marker-guide dl > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  transition: padding-left .2s ease, border-color .2s ease;
}

.marker-guide dl > div:last-child {
  border-bottom: 1px solid var(--line);
}

.marker-guide dl > div:hover {
  padding-left: 8px;
  border-color: oklch(76% 0.07 var(--fz-hue));
}

.marker-guide dt {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.marker-guide dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.changelog-layout {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 130px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(50px, 9vw, 120px);
}

.version-index {
  align-self: start;
  position: sticky;
  top: 32px;
}

.version-index > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.version-index nav {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.version-index a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0 10px 20px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}

.version-index a::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 12px;
  width: 3px;
  height: 29px;
  border-radius: 4px;
  background: transparent;
}

.version-index a span {
  font-size: 10px;
  text-transform: uppercase;
}

.version-index a strong {
  font-family: "Sora", sans-serif;
  font-size: 14px;
}

.version-index a:hover,
.version-index a.active {
  padding-left: 25px;
  color: var(--accent);
}

.version-index a.active::before {
  background: var(--accent);
}

.version-index-grupo {
  margin: 16px 0 2px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

details.release-group {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 24px 8px;
  margin-bottom: 40px;
}

details.release-group > summary {
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 17px;
  border-radius: 8px;
}

details.release-group > summary small {
  color: var(--muted);
  font-weight: 400;
  font-size: 12.5px;
  font-family: "Inter", sans-serif;
}

details.release-group .release {
  padding-bottom: 60px;
}

details.release-group .release + .release {
  padding-top: 40px;
}

.release:target {
  animation: changelog-destaque 1.4s ease;
}

@keyframes changelog-destaque {
  0% { box-shadow: 0 0 0 3px var(--accent); border-radius: 12px; }
  100% { box-shadow: none; }
}

.release {
  padding: 0 0 100px;
  scroll-margin-top: 32px;
  border-top: 1px solid var(--line);
  opacity: 1;
  transform: none;
}

.reveal-ready .release {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal-ready .release.visible {
  opacity: 1;
  transform: none;
}

.release + .release {
  padding-top: 82px;
}

.release.unreleased {
  border-top: 4px solid var(--accent);
}

.release-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-top: 30px;
}

.release-kicker {
  margin-bottom: 8px;
  color: var(--accent);
}

.release-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -.055em;
}

.release-head time {
  padding-top: 7px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.unreleased-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 7px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.unreleased-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-light);
}

.release-highlight {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.developer-note {
  position: relative;
  margin: 42px 0 10px;
  padding: 30px 36px 32px;
  color: oklch(25% 0.04 var(--fz-hue));
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
}

.developer-note > p {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.developer-note blockquote {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.55;
}

.developer-note > span {
  display: block;
  margin-top: 17px;
  color: var(--muted);
  font-size: 13px;
}

.empty-release {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empty-release span {
  color: var(--accent);
  font-size: 24px;
}

.empty-release p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.change-type {
  margin-top: 52px;
}

.change-type > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  font-family: "Sora", sans-serif;
  font-size: 24px;
}

.change-type > h3 a {
  color: inherit;
  text-decoration: none;
}

.change-type > h3 a:hover {
  color: var(--accent);
}

.change-type > h3 span {
  width: 10px;
  height: 10px;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.type-corrigido > h3 span,
.type-seguranca > h3 span {
  border-radius: 2px;
  transform: rotate(45deg);
}

.change-scope + .change-scope {
  margin-top: 38px;
}

.change-scope h4 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.change-scope ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.change-scope li {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.change-scope li:last-child {
  border-bottom: 1px solid var(--line);
}

.change-tag {
  align-self: start;
  width: fit-content;
  max-width: 115px;
  padding: 5px 8px;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.change-scope strong {
  display: block;
  margin-bottom: 5px;
  font-family: "Sora", sans-serif;
  font-size: 16px;
}

.change-scope p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

code {
  padding: 2px 5px;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 4px;
  font: 600 .9em ui-monospace, SFMono-Regular, Consolas, monospace;
}

.release-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.release-footer span {
  color: var(--muted);
}

.release-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.page-footer {
  min-height: 210px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  padding: 56px clamp(24px, 5vw, 72px);
  color: white;
  background: var(--ink);
}

.page-footer div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.page-footer strong {
  font: 700 21px "Sora", sans-serif;
}

.page-footer span,
.page-footer p {
  margin: 0;
  color: oklch(78% 0.012 var(--fz-hue));
  font-size: 13px;
}

.load-error {
  width: min(760px, calc(100% - 48px));
  margin: 80px auto 120px;
}

.load-error h2 {
  font: 700 40px/1.2 "Sora", sans-serif;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes version-in {
  from { opacity: 0; transform: scale(.88) rotate(-5deg); }
  to { opacity: 1; transform: none; }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr auto;
    height: 74px;
    padding: 0 22px;
  }

  .topbar-title {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 122px 24px 70px;
  }

  .hero-version {
    position: absolute;
    right: -58px;
    bottom: -45px;
    width: 250px;
    opacity: .34;
  }

  .hero-version strong {
    font-size: 52px;
  }

  .intro {
    grid-template-columns: 1fr;
    padding: 75px 0 70px;
    gap: 20px;
  }

  .principles {
    grid-column: 1;
    margin-top: 15px;
  }

  .marker-guide {
    padding-top: 65px;
  }

  .marker-guide header {
    grid-template-columns: 1fr;
  }

  .marker-guide .eyebrow {
    grid-row: auto;
  }

  .changelog-layout {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }

  .version-index {
    position: static;
    overflow: hidden;
  }

  .version-index nav {
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
  }

  .version-index a {
    min-width: max-content;
    padding: 9px 15px 12px;
  }

  .version-index a::before {
    inset: auto 12px -1px;
    width: auto;
    height: 3px;
  }

  .version-index a:hover,
  .version-index a.active {
    padding-left: 15px;
  }
}

@media (max-width: 560px) {
  .brand img {
    max-width: 122px;
    max-height: 48px;
  }

  .brand strong {
    font-size: 14px;
  }

  .back-link {
    font-size: 12px;
  }

  .hero {
    min-height: 625px;
  }

  .hero h1 {
    font-size: clamp(52px, 18vw, 72px);
  }

  .hero-text {
    max-width: 92%;
    font-size: 16px;
  }

  .intro,
  .marker-guide,
  .changelog-layout {
    width: min(100% - 36px, 1120px);
  }

  .marker-guide dl > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .release {
    padding-bottom: 76px;
  }

  .release + .release {
    padding-top: 62px;
  }

  .release-head {
    flex-direction: column;
    gap: 10px;
  }

  .release-head h2 {
    font-size: 44px;
  }

  .developer-note {
    padding: 25px 23px 27px;
  }

  .change-scope li {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .release-footer {
    grid-template-columns: 1fr auto;
  }

  .release-footer span {
    grid-column: 1 / -1;
  }

  .page-footer {
    min-height: 240px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }
}

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

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

  .release {
    opacity: 1;
    transform: none;
  }
}
