/* The Sabbath App — site styles */
:root {
  --orange: #f26522;
  --orange-deep: #c2410c;
  --orange-soft: #fff4ec;
  --ink: #1f2328;
  --ink-soft: #4b5563;
  --line: #ece4dc;
  --paper: #ffffff;
  --night: #1b1f2a;
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-deep); }
a:hover { color: var(--orange); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: var(--night) url("/images/hero-sky.webp") center 30% / cover no-repeat;
  color: #fff;
}
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 20, .55) 0%, rgba(10, 12, 20, .25) 100%);
}
.site-header .bar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.brand span { font-weight: 700; font-size: 1.1rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.nav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }
.nav svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 72px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p { color: rgba(255,255,255,.95); text-shadow: 0 1px 8px rgba(0,0,0,.45); max-width: 62ch; }
.hero .audience { font-weight: 600; }
.hero .phone { justify-self: center; }

.page-hero { position: relative; padding: 24px 0 56px; }
.page-hero h1 { position: relative; color: #fff; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.35); }

/* ---------- Store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }
.badges a { display: inline-block; border-radius: 9px; transition: transform .15s ease; }
.badges a:hover { transform: translateY(-2px); }
.badges img { height: 48px; width: auto; }

/* ---------- Phone screenshot ---------- */
.phone img {
  width: 256px; max-width: 100%;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.28));
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section + .section { padding-top: 0; }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.split.reverse { grid-template-columns: 1fr 300px; }
.split .phone { justify-self: center; position: sticky; top: 24px; }
.read-more { display: inline-block; margin-top: 8px; font-weight: 600; text-decoration: none; }
.read-more::after { content: " →"; }

/* Bible Q&A */
.qa { list-style: none; counter-reset: q; margin: 0; padding: 0; }
.qa li { counter-increment: q; padding: 18px 0 18px 52px; border-bottom: 1px solid var(--line); position: relative; }
.qa li:last-child { border-bottom: 0; }
.qa li::before {
  content: counter(q);
  position: absolute; left: 0; top: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-deep);
  font-weight: 700; font-size: .95rem;
  display: grid; place-items: center;
}
.qa .q { font-weight: 600; margin: 0 0 6px; }
.qa blockquote { margin: 0 0 6px; color: var(--ink-soft); }
.qa blockquote cite { font-style: normal; font-weight: 600; color: var(--ink); white-space: nowrap; }
.qa .note { font-size: .95rem; color: var(--ink-soft); font-style: italic; margin: 8px 0 0; }

/* Ideas */
.ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.idea {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: 0 2px 10px rgba(60, 30, 10, .04);
}
.idea h3 { display: flex; align-items: center; gap: 10px; }
.idea h3 .emoji { font-size: 1.4rem; line-height: 1; }
.idea ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.idea li { margin: 4px 0; }
.idea li::marker { color: var(--orange); }

/* Get the app band */
.get-app { background: var(--orange-soft); padding: 48px 0; text-align: center; }
.get-app h2 { font-size: 1.6rem; }
.get-app .badges { justify-content: center; margin-top: 18px; }

/* Privacy / prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose .updated { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--orange); color: #fff; padding: 22px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.site-footer p { margin: 0; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split .phone { position: static; order: -1; }
  .split.reverse .phone { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .brand img { width: 52px; height: 52px; }
  .nav ul { gap: 2px 18px; }
  .nav a { font-size: .95rem; }
  .hero { padding: 16px 0 48px; }
  .section { padding: 56px 0; }
  .qa li { padding-left: 46px; }
  .phone img { width: 220px; }
  .badges img { height: 44px; }
  .site-footer .wrap { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badges a { transition: none; }
}

/* Home page: three idea cards beside the phone */
.ideas.compact { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.ideas.compact .idea { padding: 18px 18px; }
.ideas.compact .idea li { font-size: .95rem; }

/* Nav: page links and contact links as two groups */
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
@media (max-width: 640px) {
  .site-header .bar { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .brand img { width: 56px; height: 56px; }
  .nav { flex-direction: column; align-items: flex-end; gap: 0; }
  .nav ul { justify-content: flex-end; gap: 0 18px; }
  .nav a { padding: 3px 0; }
  .page-hero { padding: 8px 0 36px; }
}
