:root {
  --der: #007aff;
  --die: #af52de;
  --das: #34c759;
  --accent: #007aff;
  --bg: #ffffff;
  --surface: #f5f5f7;
  --border: #e3e3e8;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --der: #0a84ff;
    --die: #bf5af2;
    --das: #30d158;
    --accent: #0a84ff;
    --bg: #0b0d10;
    --surface: #16191f;
    --border: #262a33;
    --text: #f5f5f7;
    --muted: #9a9aa2;
  }
}

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

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

body {
  margin: 0;
  padding: 0 1.5rem;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.site-header {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.75rem 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wordmark .der {
  color: var(--der);
}

.wordmark .die {
  color: var(--die);
}

.wordmark .das {
  color: var(--das);
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current] {
  color: var(--text);
}

main {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  flex: 1;
  padding: 2.5rem 0 3rem;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}

p,
ul {
  margin: 0 0 1.25rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.lede {
  font-size: 1.1875rem;
  color: var(--muted);
}

.updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

.cards {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.card {
  display: block;
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
}

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

.card strong {
  display: block;
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.card span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.cta {
  display: inline-block;
  padding: 0.75rem 1.375rem;
  border-radius: 0.75rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.languages {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.languages a {
  color: var(--muted);
  text-decoration: none;
}

.languages a:hover,
.languages a[aria-current] {
  color: var(--text);
}

.site-footer p {
  margin: 0 0 0.375rem;
}

body.home {
  --measure: 58rem;
}

body.home main {
  padding-top: 1.5rem;
}

body.home section {
  margin-bottom: 3.5rem;
}

body.home h2 {
  margin: 0 0 1.25rem;
}

body.home p,
.extras {
  max-width: 40rem;
}

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

.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 1rem;
}

.hero .lede {
  max-width: 38rem;
  margin: 0 auto 1.75rem;
}

.hero p {
  margin-left: auto;
  margin-right: auto;
}

.app-icon {
  width: 7rem;
  height: 7rem;
  border-radius: 23%;
  margin-bottom: 1.75rem;
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 0.22);
}

.stats,
.why,
.modes,
.extras {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats li {
  margin: 0;
}

.stats strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.why {
  display: grid;
  gap: 1.25rem;
}

.why li {
  margin: 0;
  max-width: 40rem;
}

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

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.modes li {
  margin: 0;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
}

.modes strong {
  display: block;
  margin-bottom: 0.25rem;
}

.modes span {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.extras li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.625rem;
}

.extras li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}

.no-ads {
  padding: 1.75rem;
  border-radius: 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.no-ads h2 {
  margin-top: 0;
}

.no-ads p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.shots {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0 -1.5rem;
  padding: 0 1.5rem 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.shots li {
  flex: 0 0 15rem;
  margin: 0;
  scroll-snap-align: center;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 1688;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.shots span {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}
