/* Growing Faith · Exegetica
   The stylesheet of others.growing.faith, with a photo of an old scroll in the
   header instead of the phones on blue and green, and a frame for the Mac
   screenshot and a style for search examples added.
   Look borrowed from growing.faith: Roboto, thin headings, blue and green,
   and the tabbed blue bands. */

@font-face { font-display: swap; font-family: 'Roboto'; font-style: normal; font-weight: 100; src: url('../fonts/roboto-100.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Roboto'; font-style: normal; font-weight: 300; src: url('../fonts/roboto-300.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Roboto'; font-style: normal; font-weight: 400; src: url('../fonts/roboto-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Roboto'; font-style: normal; font-weight: 700; src: url('../fonts/roboto-700.woff2') format('woff2'); }

:root {
  --blue: #0c497a;
  --green: #3fab49;
  --text: #3d3d3d;
  --grey: #a8a8a8;
  --grey-dark: #767676;
  --grey-light: #ededed;
  --white: #ffffff;
  --radius: 12px;
  --page: 1050px;
  --gutter: 24px;
  --nav-height: 60px;
}

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

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

body {
  margin: 0;
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  color: var(--text);
  background: var(--white);
}

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

p { margin: 0 0 16px; }

strong { font-weight: 700; }

a { color: var(--blue); font-weight: 700; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 100; line-height: 1.2; margin: 0; }
h1 { font-size: 48px; text-align: center; }
h2 { font-size: 32px; }
h3 { font-size: 32px; }

.container { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; color: var(--white); }

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 10; height: var(--nav-height); background: var(--white); }

.site-nav {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding-left: 190px;
  padding-right: 150px;
}
.site-nav a {
  padding: 8px 16px;
  font-weight: 300;
  line-height: 28px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a[aria-current="page"] { font-weight: 400; }

/* The logo sits in the nav bar, on the left, at every window size. */
.site-brand {
  position: absolute;
  top: 0;
  left: 0;
  height: var(--nav-height);
  pointer-events: none;
}
.site-brand a {
  pointer-events: auto;
  position: absolute;
  top: 12px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  text-decoration: none;
}
.site-brand img { width: 36px; height: 36px; display: block; }
.site-brand__name {
  font-size: 13px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--blue);
}

.site-cta { position: absolute; top: 40px; right: 75px; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s ease;
}
.button:hover { color: var(--white); filter: brightness(1.08); }
.button--blue { background: var(--blue); }
.button--grey { background: var(--grey-dark); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button-row--center { justify-content: center; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  height: 476px;
  /* A stretch of the Great Isaiah Scroll, one of the Dead Sea Scrolls, on the dark grey it was
     photographed on (photo by Ardon Bar Hama for the Israel Museum; public domain, from
     Wikimedia Commons, File:Great Isaiah Scroll.jpg). */
  background: #333333 url('../img/scroll.webp') center / cover no-repeat;
}
.hero--small { height: 150px; background-position: center 40%; }

.hero__caption {
  position: absolute;
  right: var(--gutter);
  bottom: 10px;
  margin: 0;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(51, 51, 51, 0.8);
  color: #c4c4c4;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.phone {
  flex: 0 0 auto;
  width: 188px;
  border: 5px solid #16181c;
  border-radius: 30px;
  overflow: hidden;
  background: #16181c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.phone img { display: block; width: 100%; border-radius: 25px; }

/* ---------- Sections ---------- */

.section { padding: 64px 0 88px; }
.section > .container > h1 { margin-bottom: 48px; }

.intro { columns: 2; column-gap: 60px; text-align: justify; hyphens: auto; }
.intro p { break-inside: avoid; }
.intro p:first-child { font-weight: 400; }

.lead { max-width: 640px; margin: 0 auto 40px; text-align: center; }

/* Blue band with the little tab on its top edge. */
.band { position: relative; background: var(--blue); color: var(--white); padding: 96px 0 104px; }
.band a { color: var(--white); }
.band__tab {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, 70%);
  height: 45px;
  margin: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 45px;
  text-align: center;
}

/* ---------- App ---------- */

.app { display: grid; grid-template-columns: 128px 1fr; gap: 32px; align-items: start; }
.app__icon { width: 128px; height: 128px; border-radius: 28px; display: block; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3); }
.app__name { font-size: 40px; }
.app__tagline { margin: 4px 0 16px; font-size: 18px; font-weight: 400; }
.app__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.app__meta li { padding: 3px 12px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; font-size: 14px; font-weight: 400; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 60px; margin: 64px 0 0; padding: 0; list-style: none; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.feature svg { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; }

.shots { display: flex; justify-content: space-between; gap: 20px; margin-top: 72px; overflow-x: auto; padding: 4px 4px 28px; scroll-snap-type: x proximity; }
.shots .phone { width: 180px; scroll-snap-align: center; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }

/* A wide screenshot (the Mac), framed like the phones. */
.screen { margin-top: 72px; border: 5px solid #16181c; border-radius: 16px; overflow: hidden; background: #16181c; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }
.screen img { display: block; width: 100%; border-radius: 11px; }

.more { margin: 56px 0 0; text-align: center; font-size: 18px; }

/* ---------- Three columns ---------- */

.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.columns h2 { margin-bottom: 16px; }
.columns p { margin: 0; }

/* ---------- Text pages ---------- */

.prose h2 { margin: 48px 0 14px; }
.prose h3 { margin: 30px 0 6px; font-size: 18px; font-weight: 700; color: var(--blue); line-height: 24px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 4px; }
.prose .date { text-align: center; color: var(--grey-dark); margin: -32px 0 40px; font-weight: 400; }
.prose code { padding: 2px 6px; border-radius: 4px; background: var(--grey-light); font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 14px; white-space: nowrap; }

.note { margin: 0 0 16px; padding: 4px 0 4px 18px; border-left: 2px solid var(--green); }
.note p:last-child { margin-bottom: 0; }

.app-heading { display: flex; align-items: center; gap: 16px; margin: 56px 0 14px; }
.app-heading img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); }
.app-heading h2 { margin: 0; }

.card { margin: 0 0 16px; padding: 28px 32px; border-radius: var(--radius); background: var(--grey-light); }
.card h2 { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--grey-dark); color: var(--white); font-size: 13px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; min-height: 54px; padding-top: 12px; padding-bottom: 12px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav span { margin: 0 8px; opacity: 0.8; }

/* ---------- Smaller screens ---------- */

@media (max-width: 900px) {
  .site-nav { padding-right: 130px; }
  .site-cta { right: var(--gutter); }
  .columns { gap: 36px; }
  .features { gap: 36px 40px; }
}

/* Below 800px only Privacy and Support stay in the nav bar, next to the logo. */
@media (max-width: 799px) {
  .site-nav { justify-content: flex-end; padding: 0 calc(var(--gutter) + 96px) 0 0; }
  .site-nav a { padding: 8px 10px; }
  .site-nav .site-nav__wide { display: none; }
  .site-cta { top: 12px; height: 36px; padding: 0 14px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  h1 { font-size: 36px; }
  h2, h3 { font-size: 28px; }

  /* A phone shows only the middle of the scroll, so it gets only that. */
  .hero { height: 340px; background-image: url('../img/scroll-small.webp'); }
  .hero--small { height: 96px; }
  .hero__caption { right: var(--gutter); bottom: 7px; font-size: 11px; line-height: 16px; }
  .hero__credit { display: none; }

  .section { padding: 48px 0 64px; }
  .section > .container > h1 { margin-bottom: 32px; }
  .intro { columns: 1; text-align: left; hyphens: manual; }
  .band { padding: 72px 0 80px; }
  .app { grid-template-columns: 1fr; gap: 20px; }
  .app__icon { width: 96px; height: 96px; border-radius: 21px; }
  .app__name { font-size: 34px; }
  .features { grid-template-columns: 1fr; margin-top: 48px; }
  .shots { justify-content: flex-start; margin: 56px calc(-1 * var(--gutter)) 0; padding-left: var(--gutter); padding-right: var(--gutter); }
  .shots .phone { width: 168px; }
  .screen { margin-top: 56px; border-width: 3px; border-radius: 10px; }
  .screen img { border-radius: 7px; }
  .columns { grid-template-columns: 1fr; }
  .prose .date { margin-top: -20px; }
  .card { padding: 22px 20px; }
}

@media (max-width: 350px) {
  .site-nav a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
