/* PushUp Arena website: one stylesheet for every page. No scripts and no web fonts; light and dark follow the
   system setting. The colours are the app's (ios/Packages/ArenaDesign, ArenaPalette), with a darker green in
   the light theme so links and buttons keep at least 4.5:1 contrast. */

:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #14161b;
  --text-muted: #4a5260;
  --stroke: #d9dde4;
  --accent: #0b7a3e;
  --on-accent: #ffffff;
  --radius: 14px;
  --measure: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0e;
    --surface: #14161b;
    --text: #f4f6fa;
    --text-muted: #a9b1be;
    --stroke: #2e333d;
    --accent: #3df58c;
    --on-accent: #03140a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

.site-header,
main,
.site-footer {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header and navigation */

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 1;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.4rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  border-radius: 22%;
}

.site-header ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header li + li,
.site-footer li + li {
  margin-top: 0;
}

.site-header nav a {
  display: inline-block;
  padding-block: 0.6rem;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

/* Text */

main {
  padding-block: 1rem 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  margin: 1rem 0 0.5rem;
  font-size: clamp(1.9rem, 1.5rem + 2vw, 2.5rem);
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.4rem;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.125rem;
}

p,
ul,
ol,
dl,
address {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.4rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

address {
  font-style: normal;
}

.meta {
  margin-top: 0;
  color: var(--text-muted);
}

.lead {
  font-size: 1.15rem;
}

/* Long pages (privacy policy, terms, support): a rule above each section. */

.doc h2 {
  padding-top: 1.75rem;
  border-top: 1px solid var(--stroke);
}

.card {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.card h2,
.doc .card h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 1.15rem;
}

.toc ol {
  margin: 0;
  columns: 2 15rem;
  column-gap: 2rem;
}

.toc li,
.toc li + li {
  margin: 0;
  padding-block: 0.15rem;
  break-inside: avoid;
}

/* What, why, legal basis, kept for: a label column on wide screens, stacked on phones. */

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--surface);
}

.facts dt {
  color: var(--text-muted);
  font-weight: 600;
}

.facts dd {
  margin: 0;
}

@media (max-width: 34rem) {
  .facts {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .facts dd + dt {
    margin-top: 0.6rem;
  }
}

/* Home page */

.hero {
  padding-block: 1.5rem 0.5rem;
  text-align: center;
}

.hero img {
  border-radius: 22%;
}

.hero h1 {
  margin-top: 1rem;
}

.tagline {
  margin-top: -0.25rem;
  color: var(--text-muted);
  font-size: 1.25rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent; /* visible in forced-colours mode */
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

.small {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.features li {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
}

.features h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

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

/* Footer */

.site-footer {
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--stroke);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.site-footer a {
  display: inline-block;
  padding-block: 0.35rem;
}

@media print {
  .skip-link,
  .site-header nav,
  .site-footer nav {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }
}
