/* Layout concept: the logo's green field, drawn pictures, then a plain page. Tokens come from DESIGN.md. */
:root {
  --page: #ffffff;
  --ink: #111114;
  --ink-2: #4a4a52;
  --fill: #f0f0f2;
  --rule: #e3e3e6;
  --green: #15785c;
  --on-green: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #000000; --ink: #f5f5f7; --ink-2: #c2c2c8; --fill: #333338; --rule: #38383a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #000000; --ink: #f5f5f7; --ink-2: #c2c2c8; --fill: #333338; --rule: #38383a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.47 var(--font); overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* Header and hero */
.top { background: var(--green); color: var(--on-green); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; min-height: 44px; }
.brand img { width: 30px; height: 30px; border-radius: 22%; outline: 1px solid rgba(255, 255, 255, 0.5); }
.bar a.quiet { display: flex; align-items: center; min-height: 44px; font-weight: 600; }
.hero { padding-block: 28px 56px; }
.hero h1 { font-size: clamp(50px, 13.4vw, 112px); line-height: 0.98; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.lede { font-size: clamp(19px, 2.4vw, 22px); line-height: 1.36; max-width: 34em; }
.store { font-weight: 600; }
@media (min-width: 860px) { .hero { padding-block: 44px 84px; } }
.hero .text { display: grid; gap: 20px; }

/* Pictures drawn from real photos, each with its credit: the first across a phone and the rest two by two, or all five in a row on a wide screen */
.art { padding-block: 44px 0; }
.art .intro { margin-top: 8px; color: var(--ink-2); }
.art .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-top: 28px; }
.art figure { margin: 0; min-width: 0; }
.art img { width: 100%; height: auto; box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.25); }
.art figcaption { display: grid; gap: 2px; margin-top: 8px; font-size: 15px; line-height: 20px; }
.art figcaption b { font-weight: 600; }
.art small { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--ink-2); overflow-wrap: anywhere; }
.art figure:first-child { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .art .row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .art figure:first-child { grid-column: auto; }
}

/* Sections */
section.block { padding-block: 44px; }
h2 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.steps { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 28px; }
.steps > li { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; min-width: 0; }
.steps h3 { font-size: 22px; line-height: 1.2; font-weight: 700; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* A screenshot of the app, with no device around it */
.shot img { width: 100%; max-width: 320px; height: auto; border: 1px solid var(--rule); border-radius: 14px; }
.credit { display: block; font-size: 12px; line-height: 16px; color: var(--ink-2); overflow-wrap: anywhere; max-width: 320px; }

/* One model through a whole operation: three across on a phone, six on a wide screen */
.drawn .intro { margin-top: 8px; color: var(--ink-2); max-width: 34em; }
.frames { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; margin-top: 28px; }
.frames li { display: grid; gap: 6px; min-width: 0; align-content: start; font-size: 13px; line-height: 18px; font-weight: 600; }
.frames img { width: 100%; height: auto; border: 1px solid var(--rule); }
.drawn .credit { max-width: none; margin-top: 14px; }
@media (min-width: 860px) { .frames { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } }
@media (prefers-color-scheme: dark) { .frames img { filter: brightness(0.85); } }

/* What's in a pack */
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
.facts dt { font-size: 22px; line-height: 1.2; font-weight: 700; margin-bottom: 6px; }
.facts dd { color: var(--ink-2); max-width: 34em; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; } }

.free { font-size: clamp(38px, 8vw, 80px); line-height: 1; letter-spacing: -0.03em; }
.free + p { margin-top: 16px; color: var(--ink-2); font-size: 19px; max-width: 34em; }

/* A plain page: Support, Privacy Policy, Terms of Use */
.topbar { border-bottom: 1px solid var(--rule); }
.topbar .brand img { outline-color: var(--rule); }
.doc { max-width: 640px; margin-inline: auto; padding: 36px 20px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.doc h1 { font-size: 34px; line-height: 41px; font-weight: 700; }
.doc h2 { font-size: 22px; line-height: 28px; letter-spacing: 0; margin-top: 14px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding-block: 28px 40px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.foot .wrap { display: grid; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; font-weight: 600; color: var(--ink); }
.foot nav a { display: flex; align-items: center; min-height: 44px; }

/* Remove before the site goes public */
.draft { background: var(--fill); color: var(--ink); font-size: 13px; line-height: 18px; padding: 8px 20px; text-align: center; }
