:root {
  --turf: #3b683f;
  --yellow: #fcec4f;
  --ink: #0b0b0b;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--turf) url("/background.jpg") center / cover no-repeat fixed;
  color: var(--white);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 16px;
}

.logo {
  width: min(480px, 85vw);
  height: auto;
}
.logo.small { width: min(260px, 60vw); }

.button {
  display: inline-block;
  padding: 14px 40px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.button.ghost { background: transparent; color: var(--white); border-color: var(--white); }

dialog {
  width: min(380px, 92vw);
  padding: 28px;
  border: 3px solid var(--white);
  border-radius: 18px;
  background: var(--ink);
  color: var(--white);
}
dialog::backdrop { background: rgb(0 0 0 / 0.6); }
dialog h2 { margin: 0 0 16px; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.06em; }
dialog input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--white);
  border-radius: 10px;
  background: #1a1a1a;
  color: var(--white);
  font: inherit;
  font-size: 1.1rem;
}
dialog input:focus-visible { outline: none; border-color: var(--yellow); }
.error { margin: 12px 0 0; color: #ff8a80; }
.actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.actions .button { padding: 10px 22px; font-size: 0.95rem; }

.downloads h1 { margin: 0; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.06em; }
.downloads header { margin-top: 28px; text-align: center; }
.release { margin: 8px 0 0; color: rgb(255 255 255 / 0.75); font-size: 1.05rem; }
.release strong { color: var(--white); font-weight: 800; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: min(880px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 24px;
  border-radius: 10px;
  background: var(--ink);
  text-align: center;
}
.card h2 { margin: 0; font-size: 1.6rem; letter-spacing: 0.02em; }
.card p { margin: 0; overflow-wrap: anywhere; }
.card .needs { margin-top: 6px; color: rgb(255 255 255 / 0.6); font-size: 0.9rem; }
.card .meta { margin-top: 18px; color: rgb(255 255 255 / 0.6); font-size: 0.9rem; }
.card .button { align-self: stretch; margin-top: 22px; padding: 12px 16px; font-size: 0.95rem; text-align: center; }
.card.empty { opacity: 0.7; }
