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

:root {
  --ground: #F4FBFF;
  --surface: #FFFFFF;
  --ink: #12355B;
  --muted: #4A6580;
  --line: #D5E3EC;
  --teal: #1A7A74;
  --teal-bright: #5CDBD5;
  --sun: #FFE66D;
  --radius: 16px;
}

html { color-scheme: light; }

body {
  font: 16px/1.55 system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--ground);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--teal); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
}

header {
  padding: 1.25rem 0 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand img {
  width: 32px;
  height: 32px;
}

.mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}

main { flex: 1; padding: 1.5rem 0 3rem; }

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0.4rem 0 0.6rem;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.apps {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem 1.1rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

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

.card img.icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--ink);
}

.card h2 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.card p { color: var(--muted); font-size: 0.95rem; }

.meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #E4F5EC;
  color: #1A7A46;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.app-head {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.app-head img.icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: var(--ink);
}

.app-head h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.sub { color: var(--muted); margin-top: 0.2rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--teal); }

article p + p, article h2 { margin-top: 1rem; }
article h2 { font-size: 1.1rem; letter-spacing: -0.02em; }
article ul { margin: 0.6rem 0 0 1.2rem; color: var(--muted); }
article li + li { margin-top: 0.35rem; }
article img.shots { display: block; max-width: 100%; height: auto; margin: 0.5rem 0; }

.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.crumbs a { color: inherit; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 1.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}

footer a { color: inherit; }

@media (max-width: 520px) {
  .card { grid-template-columns: 56px 1fr; }
  .card img.icon { width: 56px; height: 56px; border-radius: 12px; }
  .app-head img.icon { width: 72px; height: 72px; border-radius: 16px; }
}

/* The cookie notice (notice.js). A notice, not a form: nothing to accept. */
.notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10;
  max-width: 640px; margin: 0 auto; padding: 12px 16px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(18, 53, 91, 0.16);
}
.notice p { margin: 0; }
.notice .btn { flex: none; }

/* The download details on an app page */
.download-meta { font-size: 0.9rem; color: var(--muted); margin: -4px 0 18px; }
.download-meta code { word-break: break-all; }
