:root {
  color-scheme: light dark;
  --ink: #1c1c1e;
  --dim: #6b6b70;
  --tint: #3a3d8f;
  --marker: #d97706;
  --bg: #fff;
  --panel: #f7f7f9;
  --rule: #e5e5ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f7;
    --dim: #9a9aa0;
    --tint: #9aa0ea;
    --marker: #f6ac32;
    --bg: #000;
    --panel: #131315;
    --rule: #2c2c2e;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

/* Rounded for the wordmark and headings, so they read in the same voice the
   app uses for a trip title or a place name. No web fonts: any visitor who
   can run this app already has both faces installed. */
h1, h2, .wordmark {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  letter-spacing: -0.015em;
}

a { color: var(--tint); }

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

/* ---- frame ---------------------------------------------------------- */

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Prose is narrower than the marketing frame. A privacy policy set at 60rem
   is a wall of text. */
.wrap.prose { max-width: 36rem; }

header.site {
  border-bottom: 1px solid var(--rule);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

a.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}

a.brand img { width: 32px; height: 32px; border-radius: 8px; }

.wordmark { font-size: 1.1875rem; font-weight: 600; }

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

nav.site a { text-decoration: none; }
nav.site a:hover { text-decoration: underline; }

footer.site {
  margin-top: 4.5rem;
  border-top: 1px solid var(--rule);
  color: var(--dim);
  font-size: 0.875rem;
}

footer.site .wrap { padding-top: 2rem; padding-bottom: 3rem; }

footer.site ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

footer.site p { margin: 0.5rem 0 0; max-width: 34rem; }

/* ---- hero ----------------------------------------------------------- */

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

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  margin: 0 auto 1.25rem;
  max-width: 26rem;
}

.hero p.lede {
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  color: var(--dim);
  margin: 0 auto 2rem;
  max-width: 34rem;
}

/* ---- store button --------------------------------------------------- */

a.store {
  display: inline-block;
  padding: 0.8125rem 1.875rem;
  border-radius: 999px;
  background: var(--tint);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* The dark tint is a periwinkle, light enough that white label text on it
   fails contrast. The button inverts rather than introducing a third color. */
@media (prefers-color-scheme: dark) {
  a.store { color: #10101a; }
}

p.availability {
  color: var(--dim);
  font-size: 0.9375rem;
  margin: 1rem 0 0;
}

/* ---- screenshots ---------------------------------------------------- */

/* These are the App Store images, so the device and the background are baked
   into the picture. Rounding the corners turns each into a panel of its own;
   framing them further would be a frame around a frame. */
.shot { margin: 3rem 0 0; }

.shot img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.shot.phone {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---- features ------------------------------------------------------- */

.features {
  display: grid;
  gap: 2.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 4.5rem 0 0;
}

.features h2 {
  font-size: 1.1875rem;
  margin: 0 0 0.375rem;
}

.features p {
  margin: 0;
  color: var(--dim);
}

/* ---- panel ---------------------------------------------------------- */

.panel {
  margin: 4.5rem 0 0;
  padding: 2.25rem;
  background: var(--panel);
  border-radius: 18px;
}

.panel h2 { font-size: 1.5rem; margin: 0 0 0.75rem; }
.panel > p { margin: 0 0 1rem; max-width: 34rem; }
.panel ul { margin: 0; padding-left: 1.25rem; color: var(--dim); }
.panel li { margin-bottom: 0.375rem; }
.panel li:last-child { margin-bottom: 0; }
.panel p.more { margin: 1.25rem 0 0; }

/* ---- prose pages ---------------------------------------------------- */

.prose { padding-top: 3.5rem; }

.prose h1 { font-size: clamp(1.875rem, 5vw, 2.5rem); line-height: 1.15; margin: 0 0 0.5rem; }

.prose p.updated {
  color: var(--dim);
  font-size: 0.875rem;
  margin: 0 0 2.5rem;
}

.prose h2 {
  font-size: 1.3125rem;
  margin: 2.75rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  font-family: inherit;
}

.prose p, .prose li { margin: 0 0 1rem; }
.prose ul { padding-left: 1.375rem; }
.prose li { margin-bottom: 0.5rem; }

.prose blockquote {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  border-radius: 14px;
  font-size: 1.0625rem;
}

.prose blockquote p:last-child { margin-bottom: 0; }

/* ---- support answers ------------------------------------------------ */

.prose details {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}

.prose details summary {
  cursor: pointer;
  font-weight: 600;
  /* Safari draws its own disclosure marker and ignores the ::before unless
     `list-style` is cleared here as well as in the -webkit- rule below. */
  list-style: none;
  display: flex;
  gap: 0.625rem;
  align-items: baseline;
}

.prose details summary::-webkit-details-marker { display: none; }

.prose details summary::before {
  content: "+";
  color: var(--tint);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1;
}

.prose details[open] summary::before { content: "–"; }

.prose details > :not(summary) { color: var(--dim); }
.prose details > p:first-of-type { margin-top: 0.75rem; }
.prose details > p:last-child { margin-bottom: 0; }

.prose a.mailto { font-weight: 600; }
