/* Exon 9 Games — global stylesheet */

:root {
  color-scheme: dark;

  --bg: #0b0c0f;
  --bg-elevated: #14161b;
  --bg-card: #191c22;
  --border: #262a33;
  --border-hover: #3a3f4c;

  --text-primary: #f2f3f5;
  --text-secondary: #b7bcc6;
  --text-muted: #7c8190;

  --accent: #6ee7d4;
  --accent-dim: #3fa896;
  --accent-contrast: #06110f;

  --badge-bg: rgba(110, 231, 212, 0.12);
  --badge-border: rgba(110, 231, 212, 0.35);

  --tag-bg: #20242c;
  --tag-border: #2c313c;

  --max-width: 960px;
  --radius: 14px;
  --radius-sm: 8px;

  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Site header */

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-secondary);
}

.site-nav a:hover {
  color: var(--text-primary);
}

/* Hero */

.hero {
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--badge-bg);
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p.tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 40ch;
  margin: 0;
}

/* Sections */

section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--border);
}

section > .container > h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 0 0 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Project card */

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  transition: border-color 0.2s ease;
}

.project-card:hover {
  border-color: var(--border-hover);
}

.project-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.project-card-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--accent);
  border: 1px solid var(--badge-border);
  white-space: nowrap;
}

.project-card p.description {
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  max-width: 60ch;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
}

/* Contact */

.contact-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.contact-box p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 42ch;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dim);
  text-decoration: none;
  color: var(--accent-contrast);
}

/* Static content pages (privacy / terms) */

.legal {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 3rem);
}

.legal h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  margin: 0 0 0.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.75rem;
  font-weight: 700;
}

.legal p,
.legal li {
  color: var(--text-secondary);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal address {
  font-style: normal;
  color: var(--text-secondary);
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  margin: 1rem 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 520px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}
