/* MotionGrid website. Dark like the app; light when the system asks for it. */

:root {
  color-scheme: dark light;
  --bg: #0a0a0a;
  --surface: #161616;
  --text: #e6e6e6;
  --muted: #9b9b9b;
  --line: #2a2a2a;
  --accent: #69f0ae;
  --link: #69f0ae;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --surface: #ffffff;
    --text: #1b1b1b;
    --muted: #5e5e5e;
    --line: #e0e0e0;
    --accent: #0b8a57;
    --link: #08704a;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

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

.top,
.bottom {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.lang,
.bottom a {
  color: var(--muted);
  font-size: 0.9rem;
}

.bottom {
  border-top: 1px solid var(--line);
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.bottom [aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

main {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Start page */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 3rem;
}

.hero img {
  width: 9rem;
  height: 9rem;
}

.hero h1 {
  margin: 1.25rem 0 0.5rem;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.badge {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.15rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero p {
  margin: 0.25rem 0;
  max-width: 32rem;
}

.hero .contact {
  margin-top: 1.5rem;
  color: var(--muted);
}

/* Legal pages */

.text h1 {
  margin: 0.5rem 0 0.25rem;
  font-size: clamp(1.6rem, 5vw, 2rem);
  line-height: 1.2;
}

.text h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.text h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1rem;
}

.text p,
.text ul {
  margin: 0.5rem 0;
}

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

.text li + li {
  margin-top: 0.25rem;
}

.text address {
  font-style: normal;
}

.text .note {
  color: var(--muted);
  font-size: 0.9rem;
}

.text a,
.text code {
  overflow-wrap: anywhere;
}

.text code {
  font: 0.9em ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
