:root {
  color-scheme: dark;
  font: 17px/1.65 system-ui, sans-serif;
  color: #f0f1ed;
  background: #17191a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a {
  color: #ffab9e;
  text-underline-offset: .22em;
}

a:hover {
  color: #ffcfbd;
}

:focus-visible {
  outline: 3px solid #ffd593;
  outline-offset: 4px;
}

.site-header,
main,
.site-footer {
  width: min(100% - 3rem, 1000px);
  margin-inline: auto;
}

.site-header {
  padding-block: 1.5rem 1rem;
  border-bottom: 1px solid #555e60;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.brand {
  font-size: 1.8rem;
  font-weight: 750;
  color: #f0f1ed;
  text-decoration: none;
}

.language-link {
  font-size: .9rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
}

nav a {
  padding-block: .3rem;
}

nav a[aria-current] {
  color: #fff;
  font-weight: 700;
  text-decoration-thickness: 2px;
}

main {
  flex: 1;
  padding-block: 3rem 4rem;
}

main>section,
.home {
  max-width: 780px;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0 0 1.5rem;
}

h2,
h3 {
  line-height: 1.3;
}

p {
  margin: 0 0 1.25rem;
  max-width: 70ch;
}

.lead {
  font-size: 1.15rem;
}

.status {
  font-size: .85rem;
  color: #bcc8c6;
  margin-bottom: .75rem;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1.75rem;
}

.account-page form,
#newsletter-form {
  max-width: 540px;
}

label {
  display: block;
  margin-top: 1.1rem;
  margin-bottom: .35rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input:not([type=radio]),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .65rem .8rem;
  border: 1px solid #97a3a1;
  border-radius: 3px;
  background: #222829;
  color: #f0f1ed;
}

button {
  display: inline-block;
  min-height: 48px;
  border: 1px solid #ffab9e;
  border-radius: 3px;
  background: #ffab9e;
  color: #1b1110;
  padding: .6rem 1.25rem;
  margin: 1.25rem .65rem 0 0;
  font-weight: 650;
  cursor: pointer;
}

button:hover {
  background: #ffcfbd;
}

button:disabled {
  opacity: .65;
  cursor: wait;
}

.secondary {
  background: transparent;
  color: #ffab9e;
}

.secondary:hover {
  background: #343b3b;
}

textarea {
  resize: vertical;
}

#contact-form {
  max-width: 600px;
}

.header-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.site-language {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}

.site-language label {
  margin: 0;
}

.site-language select {
  width: 150px;
  max-width: 100%;
}

.site-language button {
  margin: 0;
}

.site-menu:not([open]) nav {
  display: none;
}

.site-menu {
  position: relative;
}

.site-menu summary {
  padding: .65rem 1rem;
  border: 1px solid #97a3a1;
  border-radius: 3px;
  cursor: pointer;
  min-height: 48px;
}

.site-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  z-index: 5;
  inset-inline-start: 0;
  top: calc(100% + .4rem);
  width: max-content;
  min-width: 220px;
  max-width: calc(100vw - 2rem);
  padding: .5rem;
  border: 1px solid #97a3a1;
  border-radius: 3px;
  background: #222829;
  box-shadow: 0 8px 24px #0008;
}

.site-menu nav a,
.site-menu nav button {
  display: block;
  margin: 0;
  padding: .6rem .8rem;
  text-align: start;
  border: 0;
  background: transparent;
  color: #ffab9e;
  font-weight: 400;
}

.site-menu nav a:hover,
.site-menu nav button:hover {
  background: #343b3b;
}

.site-menu nav a[aria-current] {
  color: #fff;
  font-weight: 700;
}

.header-top {
  margin-bottom: 0;
}

@media (max-width: 520px) {

  .header-controls,
  .site-language {
    width: 100%;
  }

  .site-language select {
    flex: 1;
    min-width: 100px;
  }
}

.hint {
  color: #c2ccca;
  font-size: .85rem;
  margin: .5rem 0 1rem;
}

.feedback {
  margin-top: 1.25rem;
  color: #ffe0b1;
}

.feedback:empty {
  display: none;
}

.session {
  margin-bottom: 1.5rem;
}

.session button {
  margin-top: 0;
}

fieldset {
  border: 1px solid #75817f;
  padding: 1rem;
  margin: 1.5rem 0 0;
}

legend {
  padding-inline: .35rem;
}

.language-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: .5rem 1rem;
}

.language-choices label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding-block: .35rem;
  cursor: pointer;
}

.language-choices input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #ffab9e;
  margin: 0;
}

.language-choices a {
  padding-block: .4rem;
}

#releases article {
  border-bottom: 1px solid #555e60;
  padding-block: 1.5rem;
}

#releases article p {
  white-space: pre-wrap;
}

.site-footer {
  border-top: 1px solid #555e60;
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  font-size: .85rem;
}

.site-footer p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  padding: .7rem;
  background: #fff;
  color: #111;
}

.skip:focus {
  top: .5rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {

  .site-header,
  main,
  .site-footer {
    width: calc(100% - 2rem);
  }

  .header-top {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: .5rem;
  }

  nav {
    gap: .4rem 1.25rem;
  }

  main {
    padding-block: 2rem 3rem;
  }
}

@media (forced-colors: active) {

  input,
  button,
  fieldset {
    border: 1px solid ButtonText;
  }
}
