:root {
  --bg: #f6f7f9;
  --paper: #ffffff;
  --ink: #17212c;
  --muted: #596673;
  --line: #dce3e8;
  --green: #0f766e;
  --blue: #1d4ed8;
  --sponsor: #bf3989;
  --sponsor-hover: #a53178;
  --shadow: 0 18px 44px rgba(23, 33, 44, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 33, 44, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

nav a:hover,
nav a:focus {
  color: var(--ink);
}

.download {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-weight: 700;
}

main {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: 72px 0 40px;
}

.intro > * {
  min-width: 0;
}

.tag {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(2.05rem, 4.35vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.intro-copy > p:not(.tag),
.section-title p:not(.tag),
.card-grid p {
  color: var(--muted);
  font-size: 1.04rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: #ffffff;
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.button.sponsor {
  background: var(--sponsor);
  color: #ffffff;
}

.button:hover,
.button:focus {
  filter: brightness(0.96);
}

.button.sponsor:hover,
.button.sponsor:focus {
  background: var(--sponsor-hover);
}

.helper {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.release-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.release-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
}

.release-summary {
  margin-bottom: 18px;
  color: var(--muted);
}

.release-card dl {
  display: grid;
  gap: 16px;
  margin: 0 0 12px;
}

.release-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.release-card dd {
  margin: 3px 0 0;
  color: var(--ink);
}

.release-card dd {
  overflow-wrap: anywhere;
}

.release-card code {
  display: block;
  max-width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: #26323f;
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-x: auto;
  overflow-wrap: normal;
  white-space: nowrap;
}

.release-card a {
  font-weight: 800;
}

.release-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.release-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.release-actions a:hover,
.release-actions a:focus {
  border-color: #b8c4ce;
  background: #f8fafc;
}

.release-actions a[data-release-page] {
  grid-column: 1 / -1;
}

.release-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.screen {
  margin: 0 0 46px;
}

.screen img {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.screen figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  max-width: 620px;
  margin-bottom: 22px;
}

.card-grid {
  display: grid;
  gap: 14px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid article {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card-grid strong {
  display: block;
  margin-bottom: 8px;
}

.card-grid p {
  margin-bottom: 0;
}

.card-grid .button {
  margin-top: 16px;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
}

.clean-list li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

footer {
  margin-top: 18px;
  padding: 28px clamp(18px, 4vw, 56px) 38px;
  background: #17212c;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

footer p {
  width: min(1080px, 100%);
  margin: 0 auto 8px;
}

footer a {
  color: #d7f7ee;
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 150px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 12px;
    width: 100%;
  }

  .intro,
  .card-grid.two,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-top: 46px;
  }
}

@media (max-width: 520px) {
  main {
    width: calc(100% - 28px);
  }

  h1 {
    font-size: 1.78rem;
    line-height: 1.12;
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .button {
    width: 100%;
  }

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

  .release-actions a[data-release-page] {
    grid-column: auto;
  }
}
