:root {
  color-scheme: light dark;

  --bg: #fbfbfa;
  --text-strong: rgba(0, 0, 0, 0.85);
  --text: rgba(0, 0, 0, 0.55);
  --line: rgba(0, 0, 0, 0.1);
  --accent: #0066cc;
  --surface: #ffffff;
  --chip: rgba(0, 0, 0, 0.05);
  --icon-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);

  --column: 480px;
  --gutter: 24px;

  --font-text: ui-rounded, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1e1e;
    --text-strong: rgba(255, 255, 255, 0.85);
    --text: rgba(255, 255, 255, 0.5);
    --line: rgba(255, 255, 255, 0.12);
    --accent: #5aa9ff;
    --surface: #262626;
    --chip: rgba(255, 255, 255, 0.08);
    --icon-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3, p { margin: 0; }

.page {
  max-width: calc(var(--column) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 72px var(--gutter) 0;
}

.display {
  color: var(--text-strong);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.accent { color: var(--accent); }

.rule {
  margin: 32px 0 40px;
  border: 0;
  border-top: 1px solid var(--line);
}

/* App icon */

.app-icon {
  display: block;
  flex: none;
  border-radius: 22.37%;
  object-fit: cover;
}

/* The image already has its own (continuous-corner) shape. A slightly larger
   radius keeps the white backing inside that shape so it fills only the
   translucent parts of the icon. */
.app-icon-shaped {
  border-radius: 27%;
  background: #fff;
}

/* Home */

.home-header {
  margin-bottom: 40px;
  text-align: center;
}

.app-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.app-list li { border-bottom: 1px solid var(--line); }

.app-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
  color: inherit;
}
.app-row:hover { text-decoration: none; }
.app-row:hover .app-row-title { color: var(--accent); }

.app-row-text { min-width: 0; }

.app-row-title {
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 700;
  transition: color 0.15s ease;
}

.app-row-description { font-size: 15px; }

/* App page */

.app-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-icon-hero {
  margin-bottom: 28px;
  box-shadow: var(--icon-shadow);
}
.app-icon-hero.app-icon-shaped {
  box-shadow: none;
  filter: drop-shadow(var(--icon-shadow));
}

.app-description {
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 18px;
}

.rotator { display: grid; }
.rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.rotator > span.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .rotator > span { transition: none; }
}

/* Apple's guidelines: minimum 40px tall onscreen, with clear space of at
   least a quarter of the badge height around it. */
.store { margin-top: 28px; }

.store-badge { display: block; }
.store-badge img { display: block; width: auto; height: 40px; }

/* Matches the App Store badge's size, colors, and corners, but carries no
   Apple logo or App Store wording, which only Apple's artwork may use. */
.store-soon {
  display: inline-grid;
  place-items: center;
  width: 120px;
  height: 40px;
  border: 1px solid #a6a6a6;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
  user-select: none;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 32px 0 40px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.screenshots {
  display: flex;
  gap: 12px;
  margin: 0 calc(var(--gutter) * -1) 40px;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
}
.screenshots img {
  flex: none;
  width: auto;
  height: 420px;
  border-radius: 16px;
  scroll-snap-align: start;
}

/* Sections */

.section { scroll-margin-top: 32px; }
.section > h2 + * { margin-top: 0; }

.prose .section-updated {
  margin: 2em 0 0;
  font-size: 13px;
  text-align: right;
}

/* Prose */

.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose h2 {
  margin: 2.5em 0 1em;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 700;
}
.prose h3 {
  margin: 1.75em 0 0.35em;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prose h3::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 2px;
  margin-right: 8px;
  border-radius: 1px;
  background: var(--accent);
  vertical-align: middle;
  transform: translateY(-1px);
}
.prose strong { color: var(--text-strong); }

/* 404 */

.not-found {
  padding-top: 48px;
  text-align: center;
}

.not-found-message {
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 18px;
}

/* Footer */

.site-footer {
  max-width: calc(var(--column) + var(--gutter) * 2);
  margin: 96px auto 0;
  padding: 0 var(--gutter) 48px;
  font-size: 13px;
  text-align: center;
}
.site-footer a { color: inherit; }

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .page { padding-top: 48px; }
  .display { font-size: 28px; }
  .app-icon-hero { width: 112px; height: 112px; }
  .screenshots img { height: 360px; }
}
