:root {
  --coral: #D85A30;
  --coral-dark: #993C1D;
  --coral-tint: #FAECE7;
  --ink: #4A1B0C;
  --ink-soft: #5F5E5A;
  --paper: #FFFFFF;
  --rule: #E4E0D6;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --measure: 38rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  padding: 0 1.5rem 3rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.topbar, main, footer { max-width: var(--measure); margin-inline: auto; }

h1, h2, h3 { font-weight: 600; text-wrap: balance; }

p { margin: 0 0 1rem; }

a { color: var(--coral-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }

a:hover { color: var(--coral); }

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

.skip {
  position: absolute;
  left: 1.5rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus { top: 1rem; color: var(--paper); }

.wordmark {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--coral);
  text-decoration: none;
}

.wordmark span { font-weight: 400; color: var(--ink-soft); }

.wordmark:hover { color: var(--coral); }

/* Top bar */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.topbar ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.topbar nav a { color: var(--ink-soft); text-decoration: none; }

.topbar nav a:hover { color: var(--coral-dark); }

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.lang { padding-left: 1.5rem; border-left: 1px solid var(--rule); }

.topbar .lang ul { gap: 0.875rem; }

.topbar .lang a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Entry page, only visible without JavaScript */

.choose { padding-top: 4rem; }

.choose ul { margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: 1.125rem; }

.choose li { padding: 0.5rem 0; }

/* Masthead */

.masthead { padding: clamp(3.5rem, 9vw, 5.5rem) 0 0; }

.mark { display: block; border-radius: 20px; }

h1 {
  margin: 2rem 0 0;
  font-size: clamp(2.25rem, 3.6vw + 1.2rem, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lede {
  margin: 1.5rem 0 0;
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.1875rem);
  color: var(--ink-soft);
}

.meta {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

/* Sections */

section { padding: clamp(3.5rem, 8vw, 5rem) 0 0; }

/* Echoes the bar in the icon. The only decorative element on the page. */
section > h2::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 0.3125rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: var(--coral);
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.625rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Apps */

.apps { margin: 1.5rem 0 0; padding: 0; list-style: none; }

.apps li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1.25rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.apps li:last-child { border-bottom: 1px solid var(--rule); }

.app-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  background: var(--coral-tint);
}

.app-text h3 { margin: 0.125rem 0 0; font-size: 1.125rem; line-height: 1.3; }

.app-text p { margin: 0.25rem 0 0; color: var(--ink-soft); }

.app-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.app-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.app-links a:hover { border-color: var(--coral-dark); color: var(--coral-dark); }

/* Footer */

footer {
  margin-top: clamp(4rem, 10vw, 6rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
}

.footer-row p { margin: 0 0 0.5rem; }

.footer-small { font-size: 0.875rem; }

@media (max-width: 30rem) {
  .apps li { grid-template-columns: 2.75rem 1fr; gap: 0 1rem; }
  .app-icon { width: 2.75rem; height: 2.75rem; border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
