/* Egnatius.TV — static, mobile-first link hub */
:root {
  --bg: #0f1115;
  --bg-elev: #161b22;
  --surface: #1b212b;
  --text: #e7eaf0;
  --text-muted: #98a2b3;
  --border: #2a313c;
  --focus: #8ea2ff;
  --radius: 14px;
  --youtube: #ff0033;
  --twitch: #a970ff;
  --max-width: 540px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  background:
    radial-gradient(1000px 500px at 50% -10%, #1a2333 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  padding: 44px 20px 32px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.site-header {
  text-align: center;
  margin-bottom: 30px;
}

.brand {
  margin: 0;
  font-size: clamp(2.3rem, 9vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.brand__dot {
  color: var(--twitch);
}

.tagline {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

main {
  flex: 1 1 auto;
}

.links {
  margin-bottom: 24px;
}

.links__heading {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.links__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: #3a4453;
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Primary: full-width, taller, brand-coloured */
.links__row--primary .btn {
  width: 100%;
  min-height: 60px;
  font-size: 1.15rem;
  border-color: transparent;
  color: #fff;
}

.btn--youtube {
  background: var(--youtube);
}

.btn--youtube:hover {
  box-shadow: 0 12px 30px rgba(255, 0, 51, 0.35);
}

.btn--twitch {
  background: var(--twitch);
}

.btn--twitch:hover {
  box-shadow: 0 12px 30px rgba(169, 112, 255, 0.4);
}

/* Secondary: two per row */
.links__row--secondary .btn {
  flex: 1 1 calc(50% - 6px);
}

.contact {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 10px;
}

.contact h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.contact p {
  margin: 0;
  color: var(--text-muted);
}

.contact a {
  color: var(--text);
  font-weight: 600;
  text-underline-offset: 3px;
}

.site-footer {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

/* Very small phones: stack secondary buttons full width */
@media (max-width: 360px) {
  .links__row--secondary .btn {
    flex-basis: 100%;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
