/* Lectio Pro's website: one stylesheet for every page.
   The look is Apple's own product pages: the system font, white (black at
   night), Apple's greys and blue, a glass bar on top. No web fonts, no
   scripts, nothing loaded from anywhere else. */

:root {
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --bg: #ffffff;
  --alt: #f5f5f7;
  --tile: #ffffff;
  --link: #0066cc;
  --button: #0071e3;
  --button-hover: #0077ed;
  --hair: rgba(0, 0, 0, 0.08);
  --nav: rgba(255, 255, 255, 0.72);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --bg: #000000;
    --alt: #161617;
    --tile: #1d1d1f;
    --link: #2997ff;
    --hair: rgba(255, 255, 255, 0.14);
    --nav: rgba(22, 22, 23, 0.8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  /* Nothing may push the page wider than the phone: no sideways scroll. */
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
/* A link to a heading lands below the sticky bar, not under it. */
[id] { scroll-margin-top: 64px; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

/* The bar across the top, as on apple.com: glass, the name, a few links. */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.nav-in {
  max-width: 1000px; margin: 0 auto; padding: 0 22px;
  height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 22.5%; }
.nav-links { display: flex; gap: 26px; font-size: 13px; }
.nav-links a { color: var(--text); opacity: 0.85; white-space: nowrap; }
.nav-links a:hover { opacity: 1; text-decoration: none; }

/* Sections */
section { padding: 110px 22px; }
section.alt { background: var(--alt); }
.wrap { max-width: 1000px; margin: 0 auto; }
.center { text-align: center; }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--secondary); margin: 0 0 8px; }
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: 80px; line-height: 1.05; }
h2 { font-size: 56px; line-height: 1.07; }
.lede { font-size: 21px; line-height: 1.38; color: var(--secondary); max-width: 640px; margin: 22px auto 0; }
.lede + .lede { margin-top: 14px; }
.lede.left { margin-left: 0; }
.more { display: inline-block; margin-top: 26px; font-size: 19px; }

/* The call to action: Apple's blue button, the store's words under it. */
.cta { margin-top: 34px; }
.button {
  display: inline-block;
  background: var(--button); color: #fff;
  font-size: 17px; font-weight: 400; line-height: 1.18;
  padding: 12px 24px; border-radius: 980px;
  min-height: 44px;
}
.button:hover { background: var(--button-hover); text-decoration: none; }
.soon { margin: 14px 0 0; font-size: 17px; color: var(--secondary); }

/* App screenshots: the screen's own rounded corners, no drawn phone
   (Apple's rules allow only its own product bezels). */
.shot {
  width: 100%; border-radius: 13.7% / 6.3%;
  box-shadow: 0 0 0 1px var(--hair);
  background: var(--bg);
}

.hero { padding-top: 70px; padding-bottom: 0; overflow: hidden; }
.hero .icon { width: 108px; height: 108px; border-radius: 22.5%; margin: 0 auto 26px; }
.hero-shots { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin-top: 70px; }
.hero-shots .shot { width: 260px; }
.hero-shots .main { width: 310px; }
.hero-shots .side { margin-bottom: -60px; }
.hero-shots .bottom { margin-bottom: -150px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; max-width: 640px; margin: 64px auto 0; }
.pair figure { margin: 0; }
.pair figcaption { margin-top: 18px; font-size: 17px; color: var(--secondary); text-align: center; }
.pair figcaption b { color: var(--text); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split .shot { max-width: 320px; margin: 0 auto; }
.split.flip .text { order: 2; }

/* Everything else, as tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.tile { background: var(--alt); border-radius: 28px; padding: 34px 32px; text-align: left; }
.tile h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.17; font-weight: 700; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--secondary); font-size: 17px; }
.tile.tall { grid-row: span 2; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.tile.tall .shot { width: 78%; margin: 30px auto 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.closing .icon { width: 96px; height: 96px; border-radius: 22.5%; margin: 0 auto 22px; }

/* A page of text: support, and the page that isn't there. */
.page { max-width: 692px; margin: 0 auto; padding: 64px 22px 96px; }
.page h1 { font-size: 48px; line-height: 1.08; margin: 0 0 18px; }
.page h2 { font-size: 24px; line-height: 1.17; margin: 40px 0 8px; letter-spacing: -0.01em; }
.page p { margin: 0 0 12px; }

/* The foot of every page */
.site-foot { background: var(--alt); padding: 0 22px 22px; font-size: 12px; color: var(--secondary); }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 22px; border-top: 1px solid var(--hair); padding-top: 18px; }
.site-foot nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.site-foot a { color: var(--secondary); }
.site-foot .credit { flex-basis: 100%; margin: 0; }

/* Narrow screens */
@media (max-width: 1068px) {
  h1 { font-size: 64px; }
  h2 { font-size: 48px; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 734px) {
  section { padding: 70px 16px; }
  .nav-in { padding: 0 16px; }
  .nav-links { gap: 18px; }
  .nav-links .wide { display: none; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .eyebrow, .lede { font-size: 19px; }
  .hero { padding-top: 46px; }
  .hero-shots { margin-top: 46px; gap: 12px; }
  .hero-shots .side { display: none; }
  .hero-shots .main { width: 72%; }
  .pair { gap: 14px; }
  .split { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .split.flip .text { order: 0; }
  .split .shot { max-width: 260px; }
  .lede.left { margin-left: auto; }
  .tiles { grid-template-columns: 1fr; }
  .tile.tall { grid-row: auto; }
  .tile.tall .shot { width: 70%; }
  .page { padding: 44px 16px 72px; }
  .page h1 { font-size: 34px; }
  .site-foot { padding: 0 16px 22px; }
}
