/* Shared by every page on fw-suite.de: black, centered, one column. */

:root {
  color-scheme: dark;
  --bg: #000000;
  --text: #f2f3f5;
  --muted: #8b8f98;
  --line: #1f2024;
  --accent: #5865f2;
  /* Discord's embed colours, so patch notes read like the bot's posts. */
  --embed-bg: #2b2d31;
  --embed-text: #dbdee1;
  --embed-muted: #949ba4;
  --embed-link: #00a8fc;
  --embed-code: #1e1f22;
  --testing: #f0b232;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 16px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
a { color: inherit; }

.logo { width: 88px; height: 88px; margin-bottom: 20px; }
h1 { margin: 0; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.byline { margin: 6px 0 0; color: var(--muted); font-size: 1.05rem; }

.download { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.button {
  display: inline-block;
  padding: 14px 44px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.1s ease, background 0.15s ease;
}
.button:hover { background: #ffffff; transform: translateY(-1px); }
.download .meta { margin: 0; color: var(--muted); font-size: 0.85rem; }
.download .meta a { color: var(--muted); }
.download .meta a:hover { color: var(--text); }

.note { margin: 0; color: var(--muted); font-size: 0.8rem; max-width: 420px; }

/* Wider than the column, so the app is readable. */
.shot { display: block; width: min(1000px, calc(100vw - 32px)); flex: none; margin-top: 48px; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 24px 64px rgba(88, 101, 242, 0.12);
}

/* Patch notes, one Discord-style embed per version. */
.notes { width: 100%; margin-top: 56px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.embed {
  background: var(--embed-bg);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 12px 16px 14px 14px;
  color: var(--embed-text);
  font-size: 0.875rem;
  line-height: 1.375;
}
.embed.older { border-left-color: #4e5058; }
.embed-title { margin: 0 0 4px; color: #ffffff; font-size: 1rem; font-weight: 600; }
.embed-field { margin-top: 10px; }
.embed-field h3 { margin: 0 0 2px; color: #ffffff; font-size: 0.875rem; font-weight: 600; }
.embed-field.testing h3 { color: var(--testing); }
.embed ul { margin: 0; padding-left: 1.25em; }
.embed li { margin: 3px 0; }
.embed a { color: var(--embed-link); text-decoration: none; }
.embed a:hover { text-decoration: underline; }
.embed code { background: var(--embed-code); padding: 1px 4px; border-radius: 3px; font-size: 0.85em; }
.embed-footer { margin-top: 12px; color: var(--embed-muted); font-size: 0.75rem; }

/* Landing page: a list of projects. */
.projects { width: 100%; margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
a.project {
  display: flex; gap: 16px; align-items: center; text-align: left;
  padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; transition: border-color 0.15s ease;
}
a.project:hover { border-color: var(--muted); }
a.project img { width: 48px; height: 48px; flex: none; }
a.project h2 { margin: 0; font-size: 1.1rem; }
a.project p { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }

footer { margin-top: 64px; color: var(--muted); font-size: 0.75rem; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  main { padding-top: 56px; }
  h1 { font-size: 2.1rem; }
  .button { width: 100%; }
  .download { width: 100%; }
}
footer .bot { margin: 0 0 12px; font-size: 0.85rem; }
footer .bot a { color: var(--text); }
footer .source { margin: 0 0 12px; }
