/* The look every project page shares: the bar along the top with the way home, a centred hero (icon, name,
   tagline, what it is, how to get it), a showcase, and the footer. Each page sets its own colours on :root
   (these are the fallbacks) and adds the one or two things that are its own. */
:root {
  --bg: #f7f9fb;
  --text: #1d2b3a;
  --muted: #5d6b79;
  --line: rgba(29, 43, 58, .12);
  --accent: #2f63d6;
  --accent-text: #fff;
  --shadow: rgba(29, 43, 58, .22);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }

/* ------- The bar: the Frozen Penguin icon home, then the project's own links ------- */
.bar {
  position: relative; z-index: 2;
  max-width: 920px; margin: 0 auto; padding: 16px 16px 0;
  display: flex; align-items: center; gap: 22px;
  font-size: 15px; font-weight: 700;
}
.bar .link { color: var(--muted); text-decoration: none; }
.bar .link:hover, .bar .link[aria-current] { color: var(--text); }
/* On a project's other pages: its icon and name, back to its main page. */
.bar .crumb { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; font-weight: 800; }
.bar .crumb img { width: 26px; height: 26px; border-radius: 23%; }
@media (max-width: 420px) {
  .bar { gap: 16px; }
  .bar .crumb span { display: none; }
}

.fp-home {
  flex: none; display: block; width: 38px; height: 38px; margin-right: auto;
  border-radius: 50%; transition: transform .2s ease;
}
.fp-home + .crumb { margin-left: -6px; }
.fp-home:has(+ .crumb) { margin-right: 0; }
.fp-home img {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  border: 2.5px solid #fff; box-shadow: 0 3px 10px var(--shadow); object-fit: cover;
}
.fp-home:hover { transform: scale(1.08) rotate(-4deg); }
.fp-home:focus-visible, .bar a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ------- The hero ------- */
main { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 0 16px; }
.hero { text-align: center; padding-top: 28px; }
.app-icon {
  display: block; width: 104px; height: 104px; margin: 0 auto;
  border-radius: 23%; box-shadow: 0 16px 30px -12px var(--shadow);
}
.hero h1 { font-size: clamp(46px, 9vw, 74px); font-weight: 800; line-height: 1; letter-spacing: -.025em; margin: 22px 0 14px; }
.tagline { font-size: clamp(21px, 3.4vw, 28px); font-weight: 800; line-height: 1.25; max-width: 640px; margin: 0 auto; text-wrap: balance; }
.lede { color: var(--muted); font-size: clamp(17px, 2.2vw, 19px); max-width: 540px; margin: 14px auto 0; text-wrap: balance; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 30px 0 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-width: 210px;
  padding: 11px 24px 11px 18px; border-radius: 16px;
  background: var(--accent); color: var(--accent-text); text-decoration: none; text-align: left; line-height: 1.15;
  box-shadow: 0 3px 0 var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--shadow); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.btn svg { width: 30px; height: 30px; flex: none; }
.btn small { display: block; font-size: .78rem; font-weight: 700; opacity: .85; }
.btn strong { display: block; font-size: 1.3rem; font-weight: 800; }
/* Not out yet */
.btn.soon { background: none; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); cursor: default; }
.btn.soon:hover { transform: none; box-shadow: inset 0 0 0 2px var(--line); }
.meta { color: var(--muted); font-size: 14px; margin: 0; }

/* ------- The showcase ------- */
.show { margin: 72px 0 0; }
.caption { color: var(--muted); font-size: 15px; margin: 16px 0 0; text-align: center; text-wrap: balance; }

/* Phone screenshots, in a row that scrolls sideways on a phone */
.phones {
  display: flex; gap: 24px; justify-content: safe center; overflow-x: auto;
  margin: 0 -16px; padding: 8px 16px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.phones figure { flex: 0 0 auto; margin: 0; text-align: center; scroll-snap-align: center; }
.phone {
  display: block; width: 190px; height: auto;
  border-radius: 30px; border: 6px solid #15171c; background: #15171c;
  box-shadow: 0 26px 40px -24px var(--shadow);
}
.phones figcaption { max-width: 190px; margin: 12px auto 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* A few short points on what it does */
.points {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px 32px;
  margin: 72px 0 0; padding: 0; list-style: none;
}
.points h2 { font-size: 19px; line-height: 1.3; font-weight: 800; margin: 0 0 6px; }
.points p { margin: 0; color: var(--muted); text-wrap: pretty; }
.points .n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px;
  border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; font-size: 15px;
}

/* ------- The footer ------- */
.foot {
  position: relative; z-index: 1;
  margin: 88px 16px 0; padding: 22px 0 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; text-align: center;
}
@media (min-width: 952px) { .foot { max-width: 888px; margin-inline: auto; } }
.foot p { max-width: 640px; margin: 0 auto 8px; text-wrap: balance; }
.foot a { font-weight: 800; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .app-icon { width: 88px; height: 88px; }
  .btn { flex: 1 1 100%; }
  .show, .points { margin-top: 56px; }
  .phone { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-home, .btn { transition: none; }
  .fp-home:hover, .btn:hover { transform: none; }
}
