/*
 * QoL for Gamers
 *
 * Shared styling for the QoL for Gamers static website.
 */

:root {
  color-scheme: light dark;

  --background: #f7f8fa;
  --surface: #ffffff;
  --surface-secondary: #eef1f5;
  --text: #17191c;
  --text-secondary: #5f6670;
  --border: #dfe3e8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;

  --content-width: 72rem;
  --radius: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101214;
    --surface: #181b1f;
    --surface-secondary: #20242a;
    --text: #f3f4f6;
    --text-secondary: #a9b0ba;
    --border: #30353c;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .container {
  display: flex;
  align-items: center;
  min-height: 4rem;
}

.brand {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 6rem 0 4rem;
}

.eyebrow,
.product-type {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.75rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-description {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--text-secondary);
  font-size: 1.25rem;
}

.products {
  padding: 0 0 6rem;
}

.products h2 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
}

.product-card {
  max-width: 48rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.product-heading h3 {
  margin: 0;
  font-size: 1.5rem;
}

.product-card > p {
  margin: 1rem 0;
  color: var(--text-secondary);
}

.status {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

.site-footer .disclaimer {
  max-width: 48rem;
  margin-top: 0.75rem;
}

@media (max-width: 40rem) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .products {
    padding-bottom: 4rem;
  }

  .product-heading {
    flex-direction: column;
  }
}
