@font-face {
  font-family: "Protest Guerrilla";
  src: url("/fonts/ProtestGuerrilla-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  padding: 3rem 1.25rem;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  color: var(--text-color);
  background-color: var(--page-background-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
}

:root {
  --body-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand-font-family: "Protest Guerrilla", sans-serif;
  --body-font-size: 1rem;
  --body-line-height: 1.5;
  --heading-font-family: var(--body-font-family);
  --page-title-font-size: 1.75rem;
  --section-title-font-size: 1.4rem;
  --heading-line-height: 1.2;
  --theme-light-background: #fff;
  --theme-light-text: #111;
  --theme-dark-background: #323130;
  --theme-dark-text: #f5f5f5;
  --theme-color-scheme: light;
  --page-background-color: var(--theme-light-background);
  --text-color: var(--theme-light-text);
  --section-spacing: 3rem;
  --download-badge-height: 2.75rem;
  --download-badge-gap: 0.75rem;
  --slint-badge-width: 13.25rem;
  color-scheme: var(--theme-color-scheme);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --theme-color-scheme: dark;
    --page-background-color: var(--theme-dark-background);
    --text-color: var(--theme-dark-text);
  }
}

:root[data-theme="dark"] {
  --theme-color-scheme: dark;
  --page-background-color: var(--theme-dark-background);
  --text-color: var(--theme-dark-text);
}

.site-header,
main,
.site-footer {
  width: min(100%, 48rem);
  margin-inline: auto;
}

.site-header {
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;

  font-family: var(--brand-font-family);
  font-weight: 400;
  font-style: normal;
}

.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

.site-subtitle {
  margin: 0.35rem 0 1.25rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.25rem;
  color: inherit;
}

nav a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.theme-toggle img {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.theme-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

:root[data-theme="dark"] .theme-toggle img {
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle img {
    filter: invert(1);
  }
}

main {
  flex: 1;
  margin-top: 2rem;
}

.releases-page {
  margin-top: var(--section-spacing);
}

.license-page {
  margin-top: var(--section-spacing);
}

.page-title {
  margin: 0;
  text-align: center;
  font-family: var(--heading-font-family);
  font-size: var(--page-title-font-size);
  line-height: var(--heading-line-height);
}

.release-list {
  margin-top: var(--section-spacing);
}

.release+.release {
  margin-top: var(--section-spacing);
}

.release-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.release-title,
.release-date {
  margin: 0;
}

.release-title {
  font-family: var(--heading-font-family);
  font-size: var(--section-title-font-size);
  line-height: var(--heading-line-height);
}

.site-footer {
  margin-top: var(--section-spacing);
  padding-bottom: 1rem;
}

.license-attribution {
  margin-top: var(--section-spacing);
  text-align: center;
}

.slint-attribution-link {
  display: inline-flex;
  margin-top: 1.25rem;
  line-height: 0;
}

.slint-attribution-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

.slint-attribution-image {
  display: block;
  width: min(100%, var(--slint-badge-width));
  height: auto;
}

.slint-attribution-image--on-dark {
  display: none;
}

:root[data-theme="dark"] .slint-attribution-image--on-dark {
  display: block;
}

:root[data-theme="dark"] .slint-attribution-image--on-light {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .slint-attribution-image--on-dark {
    display: block;
  }

  :root:not([data-theme]) .slint-attribution-image--on-light {
    display: none;
  }
}

.content-section {
  margin-top: var(--section-spacing);
}

.content-section--centered {
  text-align: center;
}

.section-title {
  margin: 0;
  text-align: center;
  font-family: var(--heading-font-family);
  font-size: var(--section-title-font-size);
  line-height: var(--heading-line-height);
}

.download-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--download-badge-gap);
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.download-badges img {
  display: block;
  width: auto;
  max-width: 100%;
  height: var(--download-badge-height);
}

.download-badge {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  cursor: pointer;
}

.download-badge:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

.download-badge-image--light {
  display: none !important;
}

:root[data-theme="dark"] .download-badge-image--dark {
  display: none;
}

:root[data-theme="dark"] .download-badge-image--light {
  display: block !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .download-badge-image--dark {
    display: none;
  }

  :root:not([data-theme]) .download-badge-image--light {
    display: block !important;
  }
}

.site-image {
  display: block;
  width: min(100%, 12rem);
  object-fit: cover;
  margin-inline: auto;
}

.showcase-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.25rem auto 0;
}

.showcase-image--on-dark {
  display: none;
}

:root[data-theme="dark"] .showcase-image--on-dark {
  display: block;
}

:root[data-theme="dark"] .showcase-image--on-light {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .showcase-image--on-dark {
    display: block;
  }

  :root:not([data-theme]) .showcase-image--on-light {
    display: none;
  }
}
