:root {
  color-scheme: light;
  --ink: #151827;
  --muted: #596170;
  --cream: #fff8ee;
  --cream-muted: rgb(255 248 238 / 0.76);
  --line-light: rgb(255 255 255 / 0.22);
  --line-dark: rgb(21 24 39 / 0.14);
  --panel: rgb(255 248 238 / 0.94);
  --night: #111322;
  --shadow: 0 28px 72px rgb(17 19 34 / 0.22);
  --container: min(1180px, calc(100% - 48px));
  --content: min(860px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--cream);
  background-color: var(--night);
  background-image:
    linear-gradient(
      180deg,
      color(display-p3 0.4469 0.6472 0.7828) 0,
      color(display-p3 0.3504 0.5599 0.7197) 12rem,
      color(display-p3 0.6309 0.5142 0.4032) 27rem,
      color(display-p3 0.198 0.144 0.308) 43rem,
      var(--night) 62rem
    );
  background-repeat: no-repeat;
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 30;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--cream);
  background: var(--night);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-light);
  background: rgb(17 19 34 / 0.36);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.nav {
  display: flex;
  width: var(--container);
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 22px 28px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-size: 16px;
  font-weight: 780;
  text-decoration: none;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-links a {
  color: var(--cream);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cream-muted);
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgb(21 24 39 / 0.12);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.76);
}

.language-switcher button {
  appearance: none;
  min-width: 44px;
  height: 24px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: rgb(21 24 39 / 0.7);
  background: transparent;
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--cream);
  background: var(--night);
}

.brand:focus-visible,
.nav-links a:focus-visible,
.language-switcher button:focus-visible,
.retry-button:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgb(255 248 238 / 0.54);
  outline-offset: 4px;
}

main {
  min-height: calc(100vh - 174px);
}

.page-hero {
  display: grid;
  width: var(--content);
  gap: 14px;
  margin: 0 auto;
  padding: clamp(72px, 12vw, 136px) 0 44px;
  text-align: center;
}

.page-hero .product-name {
  color: var(--cream-muted);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

h1 {
  color: var(--cream);
  font-size: clamp(3.3rem, 9vw, 5.8rem);
  font-weight: 820;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-wrap: balance;
}

.release-feed {
  width: var(--content);
  margin: 0 auto;
  padding: 0 0 clamp(80px, 12vw, 140px);
}

.status-panel {
  display: grid;
  min-height: 180px;
  place-items: center;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line-light);
  border-radius: 30px;
  color: var(--cream);
  background: rgb(17 19 34 / 0.42);
  box-shadow: var(--shadow);
  text-align: center;
}

.status-panel[hidden],
.release-list[hidden] {
  display: none;
}

.status-panel p {
  color: var(--cream-muted);
  font-size: 17px;
  line-height: 1.6;
}

.retry-button {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: 999px;
  color: var(--night);
  background: var(--cream);
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
}

.release-list {
  display: grid;
  gap: 26px;
}

.release-card {
  display: grid;
  gap: 32px;
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid rgb(255 255 255 / 0.32);
  border-radius: 34px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.release-card:first-child {
  border-color: rgb(255 255 255 / 0.68);
  background: var(--cream);
}

.release-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
}

.release-header h2 {
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1;
}

.release-header time {
  color: var(--muted);
  font-size: 15px;
  font-weight: 680;
  white-space: nowrap;
}

.release-sections {
  display: grid;
  gap: 30px;
}

.release-section {
  display: grid;
  gap: 16px;
}

.release-section h3 {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
}

.release-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.35em;
}

.release-section li {
  padding-left: 0.2em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.release-section li::marker {
  color: color(display-p3 0.3431 0.5566 0.7234);
}

.site-footer {
  border-top: 1px solid var(--line-light);
  color: var(--cream-muted);
}

.footer-inner {
  display: flex;
  width: var(--container);
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin: 0 auto;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 620;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--cream);
}

@media (max-width: 980px) {
  .site-header {
    position: static;
  }

  .nav {
    min-height: auto;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1180px);
    --content: min(100% - 28px, 860px);
  }

  .nav-links a {
    font-size: 13px;
  }

  .language-switcher button {
    min-width: 42px;
    height: 26px;
    padding: 0 10px;
  }

  .page-hero {
    padding-top: 72px;
  }

  .release-card {
    gap: 26px;
    border-radius: 26px;
  }

  .release-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-section li {
    font-size: 16px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .retry-button {
    transition: none;
  }
}
