/* The front page. Same colours and type as the tour (flipbook/tour.css). */
:root {
  --paper: #f5f1e8;
  --paper-2: #ebe5d8;
  --ink: #1c1a16;
  --ink-soft: #46423a;
  --line: rgba(28, 26, 22, 0.14);
  --accent: #9a2f19;
  --accent-ink: #fff;
  --night: #12100e;
  --glass: rgba(16, 14, 12, 0.55);
  --glass-line: rgba(255, 255, 255, 0.28);
  --light: #f6f1e7;
  --light-soft: rgba(246, 241, 231, 0.88);
  --focus: #2f6fde;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --wide: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d1b18;
    --paper-2: #26231f;
    --ink: #f1ece2;
    --ink-soft: #cdc6b8;
    --line: rgba(241, 236, 226, 0.14);
    --accent: #e0754f;
    --accent-ink: #1a0f0a;
    --focus: #7aa7ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1d1b18;
  --paper-2: #26231f;
  --ink: #f1ece2;
  --ink-soft: #cdc6b8;
  --line: rgba(241, 236, 226, 0.14);
  --accent: #e0754f;
  --accent-ink: #1a0f0a;
  --focus: #7aa7ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--paper); color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none; text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-glass { background: var(--glass); color: var(--light); border: 1px solid var(--glass-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(16, 14, 12, 0.7); }
.btn-quiet { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-quiet:hover { background: var(--paper-2); }

/* ---------- hero: the church walk plays behind the words ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 860px);
  display: flex; flex-direction: column;
  background: var(--night); color: var(--light);
}
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(18, 16, 14, 0.55), rgba(18, 16, 14, 0) 30%),
    linear-gradient(to top, rgba(18, 16, 14, 0.92) 8%, rgba(18, 16, 14, 0.35) 60%, rgba(18, 16, 14, 0.15));
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; max-width: var(--wide); margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 0;
}
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; }
.top-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; font-weight: 600; text-underline-offset: 4px; }
.hero-text {
  width: 100%; max-width: var(--wide); margin: auto auto 0;
  padding: 48px var(--gutter) max(40px, env(safe-area-inset-bottom));
}
.kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light-soft); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 6.4vw, 3.6rem); max-width: 17ch; }
.lede { margin-top: 18px; font-size: 1.125rem; color: var(--light-soft); max-width: 40rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 480px) { .hero-btns .btn { flex: 1 1 100%; } }

/* ---------- sections ---------- */
.section { max-width: var(--wide); margin: 0 auto; padding: 72px var(--gutter); }
.section-alt { max-width: none; background: var(--paper-2); }
.section-alt > * { max-width: calc(var(--wide) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
.section-lede { margin-top: 12px; color: var(--ink-soft); max-width: 40rem; }
.section-alt .section-lede, .section-alt h2 { margin-left: auto; margin-right: auto; }

/* ---------- demos ---------- */
.demos { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 860px) { .demos { grid-template-columns: 1fr 1fr; } }
.demo {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px; background: var(--paper);
  text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.demo:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14); }
.demo picture { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.demo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.demo:hover img { transform: scale(1.03); }
.demo-tall img { object-position: 50% 40%; }
.demo-text { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.demo-kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.demo h3 { font-size: 1.45rem; }
.demo p:not(.demo-kicker) { color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.tags li { font-size: 0.85rem; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); }
.demo-go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent); }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 28px; margin-top: 32px; padding: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); }

/* ---------- features ---------- */
.features { display: grid; gap: 28px 32px; margin-top: 36px; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature svg {
  width: 40px; height: 40px; padding: 8px; margin-bottom: 12px; border-radius: 10px;
  background: var(--paper-2); stroke: var(--accent); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); }

/* ---------- for the people who run it ---------- */
.checks { list-style: none; display: grid; gap: 16px; margin-top: 28px; padding: 0; }
@media (min-width: 760px) { .checks { grid-template-columns: repeat(2, 1fr); gap: 20px 40px; } }
.checks li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- end ---------- */
.cta { text-align: center; }
.cta .section-lede { margin-left: auto; margin-right: auto; }
.cta .hero-btns { justify-content: center; }
.foot { border-top: 1px solid var(--line); max-width: var(--wide); margin: 0 auto; padding: 28px var(--gutter) max(36px, env(safe-area-inset-bottom)); font-size: 0.85rem; color: var(--ink-soft); display: grid; gap: 6px; }
.foot strong { color: var(--ink); font-family: var(--serif); font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .btn, .demo, .demo img { transition: none; }
  .demo:hover, .demo:hover img { transform: none; }
}
