/* Ballocity & Sudoku-PuzzleCraft — Privacy & Support */

:root {
  --bg: #0f1218;
  --bg-elevated: #161b24;
  --surface: #1c222d;
  --surface-hover: #232a36;
  --text: #e8eaef;
  --text-muted: #9aa3b5;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --sudoku-accent: #3d9a9a;
  --sudoku-glow: rgba(61, 154, 154, 0.22);
  --nova-accent: #e8a04f;
  --nova-glow: rgba(232, 160, 79, 0.2);
  --radius: 14px;
  --radius-lg: 20px;
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --max-width: 44rem;
  --max-wide: 72rem;
  --space: clamp(1.25rem, 4vw, 2rem);
  --header-pad: clamp(2.5rem, 8vw, 4.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(61, 154, 154, 0.12), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(232, 160, 79, 0.08), transparent 45%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(99, 102, 241, 0.06), transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sudoku-accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: #5cb8b8;
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--text);
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: relative;
  padding: var(--header-pad) var(--space) calc(var(--header-pad) * 0.85);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 34, 45, 0.65) 0%, transparent 100%);
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  max-width: var(--max-wide);
  margin: 0 auto;
  z-index: 1;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
  background: linear-gradient(135deg, #f0f2f8 0%, #b8c0d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-tagline {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-tagline span {
  color: var(--text);
  opacity: 0.85;
}

.site-topics {
  position: relative;
  z-index: 1;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1.35rem var(--space) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.site-topics__item {
  color: rgba(232, 234, 239, 0.72);
}

.site-topics__sep {
  color: var(--border-strong);
  font-weight: 400;
  user-select: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.75rem var(--space) 4.5rem;
}

section {
  margin-bottom: 3.25rem;
}

section:last-of-type {
  margin-bottom: 0;
}

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.65rem 0 0.5rem;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
  color: rgba(232, 234, 239, 0.92);
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: rgba(232, 234, 239, 0.92);
}

li {
  margin-bottom: 0.45rem;
}

li::marker {
  color: var(--text-muted);
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sudoku-accent);
  box-shadow: 0 0 10px var(--sudoku-glow);
}

/* About apps */
.about-apps {
  max-width: var(--max-wide);
  margin: 0 auto 3.5rem;
  padding: 0 var(--space);
}

.about-apps__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .about-apps__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.app-card {
  position: relative;
  padding: 1.65rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.55);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 28px 56px -28px rgba(0, 0, 0, 0.6);
}

.app-card--sudoku {
  border-top: 3px solid var(--sudoku-accent);
}

.app-card--nova {
  border-top: 3px solid var(--nova-accent);
}

.app-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.app-card--sudoku .app-card__name {
  color: #7fd4d4;
}

.app-card--nova .app-card__name {
  color: #f0c078;
}

.app-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.section-block {
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--border);
}

.section-block:first-of-type {
  padding-top: 0;
  border-top: none;
}

.section-block h2 {
  margin-bottom: 1rem;
}

.support-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem 1.5rem;
  margin-top: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.support-card p:last-child {
  margin-bottom: 0;
}

.support-card strong {
  color: var(--text);
}

.email-link {
  font-weight: 600;
  color: #7fd4d4;
  word-break: break-all;
}

.email-link:hover {
  color: #9ee8e8;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem var(--space);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
}

.site-footer p {
  margin: 0;
  color: inherit;
}
