/* Bibleca – bibleca.com. Calm, white, the system's own type, the app's own colors. */

:root {
  --bg: #ffffff;
  --soft: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --rule: #d2d2d7;
  --link: #0066cc;
  --bezel: #1d1d1f;
  --bezel-edge: rgba(0, 0, 0, 0.06);
  --nav: rgba(255, 255, 255, 0.78);
  --shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.28);
  /* The colors the read books take on in the ring, red to purple. */
  --red: #da574d;
  --orange: #e68c3e;
  --yellow: #e1b83a;
  --green: #4d9a62;
  --teal: #2e9697;
  --blue: #407cc4;
  --purple: #7c5eb8;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --soft: #161617;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --rule: #424245;
    --link: #2997ff;
    --bezel: #2c2c2e;
    --bezel-edge: rgba(255, 255, 255, 0.14);
    --nav: rgba(0, 0, 0, 0.72);
    --shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.9);
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --soft: #161617;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --rule: #424245;
  --link: #2997ff;
  --bezel: #2c2c2e;
  --bezel-edge: rgba(255, 255, 255, 0.14);
  --nav: rgba(0, 0, 0, 0.72);
  --shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.9);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { top: 8px; }

/* Navigation: thin, translucent, like Apple's local nav. */

.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 color-mix(in srgb, var(--rule) 60%, transparent);
}
.nav-in {
  max-width: 1024px; margin: 0 auto; padding: 0 16px;
  height: 52px; display: flex; align-items: center; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--ink); font-weight: 600; font-size: 19px; letter-spacing: -0.02em;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 22.5%; box-shadow: 0 0 0 0.5px var(--rule); }
.nav a:not(.brand) { color: var(--ink); font-size: 14px; opacity: 0.8; }
.nav a:not(.brand):hover { opacity: 1; text-decoration: none; }
.nav a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* Type */

.eyebrow {
  margin: 0 0 12px; color: var(--muted);
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
h1, h2 {
  font-family: var(--serif); font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.08; margin: 0;
}
h1 { font-size: clamp(44px, 8vw, 80px); }
h2 { font-size: clamp(34px, 5.4vw, 56px); }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; }
.lead {
  font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; color: var(--muted);
  margin: 20px auto 0; max-width: 34em; letter-spacing: -0.015em;
}
p { margin: 0 0 14px; }
h1, h2, .lead, .note { text-wrap: balance; }
.small { font-size: 15px; color: var(--muted); }

.spectrum {
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--teal), var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* App Store badge: Apple's artwork, unchanged, with a quarter of its height clear all round. */

.badge { display: inline-block; margin: 32px 0 0; padding: 0; line-height: 0; }
.badge img { height: 54px; width: auto; }
.badge.small img { height: 44px; }
.badge:hover { text-decoration: none; opacity: 0.85; }

/* An iPhone, drawn: the screen inside a thin bezel, the Dynamic Island on top. */

.phone {
  --w: min(300px, 72vw);
  position: relative; flex: none;
  width: var(--w);
  padding: calc(var(--w) * 0.028);
  border-radius: calc(var(--w) * 0.165);
  background: var(--bezel);
  box-shadow: inset 0 0 0 1px var(--bezel-edge), var(--shadow);
  margin: 0;
}
.phone .screen {
  position: relative; overflow: hidden;
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * 0.138);
  background: #ffffff;
  transform: translateZ(0);
}
.phone .screen img, .phone .screen video {
  width: 100%; height: 100%; object-fit: cover;
}
.phone::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(var(--w) * 0.053);
  width: calc(var(--w) * 0.29); height: calc(var(--w) * 0.086);
  border-radius: 999px; background: #000;
}
.phone.small { --w: min(220px, 40vw); }
.media { container-type: inline-size; }
.media .phone { --w: min(300px, 72vw, 86cqi); }
.media .phone.small { --w: min(220px, 46cqi); }

/* Three phones side by side, the middle one in front. */
.trio { display: flex; justify-content: center; align-items: flex-end; margin: 64px auto 0; }
.trio .phone { margin: 0; }
.trio .side { --w: min(240px, 27vw); margin-bottom: 40px; z-index: 0; }
.trio .side:first-child { margin-right: calc(var(--w) * -0.12); }
.trio .side:last-child { margin-left: calc(var(--w) * -0.12); }
.trio .front { --w: min(300px, 40vw); z-index: 1; }

/* Sections */

main { display: block; }
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 16px; }

.hero { text-align: center; padding: 72px 0 0; }

.feature { padding: 120px 0 0; }
.feature .wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.feature .text { max-width: 30em; }
.feature .text p { font-size: 19px; color: var(--muted); margin-top: 18px; letter-spacing: -0.015em; }
.feature .media { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.feature.flip .text { order: 2; }
.feature .media .phone + .phone { margin-top: 56px; }

.band {
  margin: 120px 0 0; padding: 104px 0; background: var(--soft); text-align: center;
}
.band .lead { max-width: 30em; }
.band .note { max-width: 36em; margin: 28px auto 0; font-size: 15px; color: var(--muted); }

.languages {
  list-style: none; margin: 44px auto 0; padding: 0; max-width: 820px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  font-size: clamp(19px, 2.6vw, 26px); color: var(--ink); line-height: 1.35;
}
.languages li { white-space: nowrap; }

.promise { padding: 120px 0 0; text-align: center; }
.promise .points {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 880px; margin: 56px auto 0; padding: 0; list-style: none; text-align: left;
}
.promise .points li { border-top: 1px solid var(--rule); padding-top: 16px; }
.promise .points p { color: var(--muted); font-size: 15px; margin: 0; }

.cta { padding: 128px 0 112px; text-align: center; }
.cta .icon {
  width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 22.5%;
  box-shadow: 0 0 0 0.5px var(--rule), 0 12px 32px -8px rgba(0, 0, 0, 0.18);
}
.cta .contact { margin: 36px 0 0; color: var(--muted); }

/* Text pages: press, support, privacy, imprint */

.page { max-width: 720px; margin: 0 auto; padding: 72px 16px 32px; }
.page h1 { font-size: clamp(40px, 7vw, 64px); }
.page h2 { font-size: clamp(28px, 4vw, 36px); margin: 64px 0 16px; }
.page h3 { margin: 32px 0 6px; }
.page .lead { margin: 16px 0 0; }
.page .switch { margin: 24px 0 0; font-size: 15px; }
.page address { font-style: normal; margin: 0 0 14px; }
.page ul { padding-left: 20px; margin: 0 0 14px; }
.page li { margin: 0 0 8px; }
.page hr { border: 0; border-top: 1px solid var(--rule); margin: 72px 0; }

.facts {
  display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px;
  margin: 40px 0 0; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.kit { display: grid; gap: 16px; margin: 20px 0 12px; }
.kit figure { margin: 0; }
.kit figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.kit img, .kit video { width: 100%; height: auto; border-radius: 12px; }
.kit.clips { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kit.clips video { background: #fff; border: 1px solid var(--rule); }
.kit.shots { grid-template-columns: repeat(4, 1fr); }
.kit.icons { grid-template-columns: repeat(4, 1fr); }
.kit.icons a { display: block; background: var(--soft); padding: 18%; border-radius: 20px; }
.kit.icons img { border-radius: 22.5%; box-shadow: 0 0 0 0.5px var(--rule), 0 12px 32px -8px rgba(0, 0, 0, 0.18); }

.faq h3 { margin-top: 36px; }

/* Footer */

footer {
  border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; line-height: 1.6;
}
footer .wrap { padding-top: 24px; padding-bottom: 48px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 12px; }
footer nav a { color: var(--ink); opacity: 0.8; }
footer p { margin: 0 0 6px; }

/* Phone width */

@media (max-width: 760px) {
  .nav-in { gap: 16px; }
  .nav .hide-small { display: none; }
  .hero { padding-top: 48px; }
  .trio { margin-top: 48px; }
  .trio .side { margin-bottom: 24px; }
  .feature { padding-top: 88px; }
  .feature .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feature .text { margin: 0 auto; }
  .feature.flip .text { order: 0; }
  .feature .media .phone.small { --w: min(200px, 43vw); }
  .feature .media { gap: 14px; }
  .feature .media .phone + .phone { margin-top: 40px; }
  .band { margin-top: 88px; padding: 72px 0; }
  .promise { padding-top: 88px; }
  .promise .points { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .cta { padding: 96px 0 80px; }
  .page { padding-top: 48px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 12px; }
  .kit.clips { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .kit.shots { grid-template-columns: repeat(2, 1fr); }
  .kit.icons { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
