/* BibleReset website — "Dawn" direction. Source of truth: Paper page "Website · Prototypes". */

:root {
  --pearl: #FBF8F3;
  --ink: #1E1B33;
  --ink-body: #4A4462;
  --ink-soft: #3E3858;
  --lavender: #EFEAF7;
  --lavender-label: #6B5E9E;
  --gold: #E9BC59;
  --gold-deep: #A67C2A;
  --gold-number: #C99A3A;
  --hairline: rgb(30 27 51 / 14%);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--pearl); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow { font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 30px; border-radius: 999px; background: var(--ink); color: var(--pearl); font-weight: 600; font-size: 18px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgb(30 27 51 / 22%); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-small { height: 44px; padding: 0 22px; font-size: 15px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cta-note { font-size: 16px; color: var(--ink-body); }

/* Nav */
.nav { position: absolute; top: 28px; left: 48px; right: 48px; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 20px; border-radius: 999px; background: rgb(255 255 255 / 55%); border: 1px solid rgb(255 255 255 / 70%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav-links { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Sky backgrounds */
.sky { position: relative; overflow: hidden; background: #E9E4F2; }
.sky > picture img, .sky > img.sky-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Home hero */
.hero { height: 1000px; }
.hero .sky-art { object-position: center 30%; }
.hero-copy { position: absolute; top: 170px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 0 24px; text-align: center; }
.pill { padding: 8px 16px; border-radius: 999px; background: rgb(255 255 255 / 60%); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #5B5478; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: 132px; line-height: 0.9; letter-spacing: -0.025em; max-width: 1100px; }
.hero .lede { font-size: 21px; line-height: 1.52; color: var(--ink-body); max-width: 600px; }
.hero .cta-row { padding-top: 8px; }
.hero-phones { position: absolute; left: 50%; top: 700px; width: 900px; height: 720px; transform: translateX(-50%); }

/* Phone frame */
.phone { position: absolute; padding: 9px; border-radius: 52px; background: var(--ink); box-shadow: 0 40px 80px rgb(30 27 51 / 28%); }
.phone img { width: 100%; height: 100%; border-radius: 44px; object-fit: cover; object-position: top; }
.hero-phones .phone { width: 300px; height: 631px; }
.hero-phones .left { left: 30px; top: 60px; transform: rotate(-7deg); }
.hero-phones .right { right: 30px; top: 60px; transform: rotate(7deg); }
.hero-phones .center { left: 280px; top: 0; width: 340px; height: 715px; padding: 10px; border-radius: 58px; box-shadow: 0 50px 100px rgb(30 27 51 / 35%); z-index: 2; }
.hero-phones .center img { border-radius: 48px; }

/* Sections */
.section { padding: 160px var(--gutter); }
.why { display: flex; flex-direction: column; align-items: center; gap: 72px; padding-bottom: 140px; }
.why h2 { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1.06; letter-spacing: -0.015em; text-align: center; max-width: 980px; }
.why h2 em { font-style: italic; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 1000px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--hairline); }
.stat strong { font-family: var(--serif); font-weight: 400; font-size: 120px; line-height: 0.92; color: var(--gold-number); }
.stat span { font-size: 18px; line-height: 1.45; color: var(--ink-body); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: 72px; line-height: 1; letter-spacing: -0.02em; margin-top: 16px; }
.section-head p { font-size: 19px; line-height: 1.58; color: var(--ink-body); max-width: 440px; }

.rhythms { padding-top: 40px; }
.rhythm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.rhythm:nth-child(even) { padding-top: 48px; }
.rhythm img { width: 100%; aspect-ratio: 282 / 380; object-fit: cover; border-radius: 20px; }
.rhythm h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.06; margin-top: 20px; }
.rhythm p { font-size: 16px; line-height: 1.56; color: var(--ink-body); margin-top: 6px; }

.progress-wrap { padding: 0 48px; }
.progress { height: 780px; border-radius: 40px; }
.progress .sky-art { object-position: center 60%; }
.progress-copy { position: absolute; left: 96px; top: 140px; width: 480px; display: flex; flex-direction: column; gap: 24px; }
.progress-copy .eyebrow { color: var(--lavender-label); }
.progress-copy h2 { font-family: var(--serif); font-weight: 400; font-size: 76px; line-height: 0.97; letter-spacing: -0.02em; }
.progress-copy p { font-size: 19px; line-height: 1.58; color: var(--ink-soft); }
.progress .phone.a { left: 700px; top: 150px; width: 280px; height: 589px; border-radius: 50px; transform: rotate(-5deg); }
.progress .phone.a img { border-radius: 42px; }
.progress .phone.b { left: 960px; top: 90px; width: 300px; height: 631px; transform: rotate(4deg); }

/* FAQ */
.faq { display: flex; gap: 120px; }
.faq-intro { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.faq-intro h2 { font-family: var(--serif); font-weight: 400; font-size: 72px; line-height: 1; letter-spacing: -0.02em; }
.faq-intro p { font-size: 18px; color: var(--ink-body); }
.faq-list { flex: 1; border-bottom: 1px solid var(--hairline); }
.faq-list details { border-top: 1px solid var(--hairline); padding: 26px 0; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; list-style: none; font-weight: 600; font-size: 21px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-weight: 400; font-size: 28px; line-height: 1; color: var(--gold-deep); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-top: 12px; font-size: 17px; line-height: 1.6; color: var(--ink-body); max-width: 680px; }

/* Closing */
.closing { height: 820px; background: #F2C98F; }
.closing .sky-art { object-position: center 70%; }
.closing-copy { position: absolute; top: 150px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 0 24px; text-align: center; }
.closing blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.33; color: var(--ink-soft); max-width: 760px; }
.closing h2 { font-family: var(--serif); font-weight: 400; font-size: 120px; line-height: 0.92; letter-spacing: -0.025em; }
.closing .cta-note { color: var(--ink-soft); }

/* Footer */
.footer { background: var(--ink); color: var(--pearl); padding: 80px var(--gutter) 48px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; }
.footer-brand { max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand .serif { font-size: 44px; line-height: 1; }
.footer-brand p { font-size: 16px; color: rgb(251 248 243 / 65%); }
.footer-cols { display: flex; gap: 96px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.footer-col h3 { font-weight: 600; font-size: 13px; letter-spacing: 0.14em; color: var(--gold); }
.footer-col a { color: rgb(251 248 243 / 85%); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid rgb(251 248 243 / 14%); font-size: 14px; color: rgb(251 248 243 / 50%); }

/* Legal / support pages */
.page-head { height: 440px; }
.page-head .sky-art { object-position: center 25%; }
.page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(180deg, rgb(251 248 243 / 0%), var(--pearl)); }
.page-title { position: absolute; left: 160px; top: 170px; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.page-title .eyebrow { color: #5B5478; }
.page-title h1 { font-family: var(--serif); font-weight: 400; font-size: 96px; line-height: 0.96; letter-spacing: -0.02em; }
.page-title p { font-size: 17px; color: var(--ink-body); }
.doc { display: flex; gap: 120px; padding: 40px 160px 160px; }
.toc { width: 240px; flex-shrink: 0; }
.toc nav { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--ink-body); }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.toc .eyebrow { font-size: 12px; padding-bottom: 4px; }
.article { flex: 1; max-width: 720px; display: flex; flex-direction: column; gap: 48px; }
.article section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 32px; }
.article h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; }
.article p, .article li { font-size: 18px; line-height: 1.67; color: var(--ink-soft); }
.article a { color: var(--ink); text-underline-offset: 3px; }
.summary { padding: 32px 36px; border-radius: 20px; background: var(--lavender); }
.summary h2 { font-size: 36px; }
.summary ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.article .btn { color: var(--pearl); text-decoration: none; }
.article .contact-card { flex-direction: row; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: 20px; border: 1px solid var(--hairline); background: #fff; }
.contact-card h2 { font-size: 32px; }
.contact-card p { font-size: 17px; color: var(--ink-body); }
.contact-card .btn { height: 52px; padding: 0 24px; font-size: 16px; flex-shrink: 0; }

/* Tablet */
@media (max-width: 1180px) {
  :root { --gutter: 64px; }
  .hero h1 { font-size: 104px; }
  .nav-links { gap: 24px; }
  .progress-copy { left: 56px; width: 420px; }
  .progress .phone.a { left: auto; right: 260px; }
  .progress .phone.b { left: auto; right: 40px; }
  .faq { gap: 64px; }
  .faq-intro { width: 300px; }
  .doc { padding-left: 64px; padding-right: 64px; gap: 64px; }
  .page-title { left: 64px; }
  .footer-cols { gap: 48px; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --gutter: 24px; }
  body { font-size: 17px; }
  .nav { top: 14px; left: 12px; right: 12px; height: 52px; padding: 0 6px 0 14px; }
  .nav-links { display: none; }
  .brand { font-size: 17px; }
  .brand img { width: 28px; height: 28px; }
  .btn-small { height: 40px; padding: 0 16px; font-size: 14px; }

  .hero { height: 820px; }
  .hero-copy { top: 112px; gap: 18px; padding: 0 20px; }
  .pill { font-size: 11px; padding: 6px 12px; }
  .hero h1 { font-size: 60px; line-height: 0.94; }
  .hero .lede { font-size: 17px; }
  .hero .cta-row { flex-direction: column; gap: 10px; width: 100%; }
  .hero .cta-row .btn, .closing .btn { width: 100%; height: 56px; font-size: 17px; }
  .cta-note { font-size: 14px; }
  .hero-phones { top: 560px; width: 240px; }
  .hero-phones .left, .hero-phones .right { display: none; }
  .hero-phones .center { left: 0; width: 240px; height: 503px; padding: 7px; border-radius: 42px; }
  .hero-phones .center img { border-radius: 35px; }

  .section { padding: 72px var(--gutter); }
  .why { gap: 36px; padding-bottom: 56px; }
  .why h2 { font-size: 38px; }
  .stats { grid-template-columns: 1fr; border-bottom: 0; }
  .stat { flex-direction: row; align-items: center; gap: 18px; padding: 18px 0; text-align: left; border-bottom: 1px solid var(--hairline); }
  .stat + .stat { border-left: 0; }
  .stat strong { width: 84px; flex-shrink: 0; font-size: 64px; }
  .stat span { font-size: 16px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
  .section-head h2 { font-size: 44px; margin-top: 10px; }
  .section-head p { font-size: 16px; }
  .rhythms { padding-top: 24px; }
  .rhythm-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .rhythm:nth-child(even) { padding-top: 0; }
  .rhythm img { border-radius: 14px; aspect-ratio: 164 / 210; }
  .rhythm h3 { font-size: 26px; margin-top: 10px; }
  .rhythm p { font-size: 14px; }

  .progress-wrap { padding: 0 12px; }
  .progress { height: 720px; border-radius: 28px; }
  .progress-copy { left: 24px; right: 24px; top: 36px; width: auto; gap: 12px; }
  .progress-copy h2 { font-size: 44px; }
  .progress-copy p { font-size: 16px; }
  .progress .phone.a { display: none; }
  .progress .phone.b { left: 50%; right: auto; top: 300px; width: 240px; height: 503px; padding: 7px; border-radius: 42px; transform: translateX(-50%) rotate(4deg); }
  .progress .phone.b img { border-radius: 35px; }

  .faq { flex-direction: column; gap: 20px; }
  .faq-intro { width: auto; }
  .faq-intro h2 { font-size: 44px; }
  .faq-list summary { font-size: 17px; }
  .faq-list details { padding: 20px 0; }
  .faq-list details p { font-size: 16px; }

  .closing { height: 560px; }
  .closing-copy { top: 88px; gap: 20px; }
  .closing blockquote { font-size: 20px; }
  .closing h2 { font-size: 60px; }

  .footer { padding: 48px var(--gutter) 36px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-brand .serif { font-size: 34px; }
  .footer-cols { gap: 40px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; margin-top: 28px; padding-top: 20px; font-size: 13px; }

  .page-head { height: 300px; }
  .page-title { left: 24px; right: 24px; top: 104px; gap: 10px; }
  .page-title h1 { font-size: 56px; }
  .page-title p { font-size: 15px; }
  .doc { flex-direction: column; gap: 32px; padding: 16px 24px 72px; }
  .toc { display: none; }
  .article { gap: 36px; }
  .article h2 { font-size: 32px; }
  .article p, .article li { font-size: 17px; }
  .summary { padding: 24px 22px; }
  .summary h2 { font-size: 30px; }
  .article .contact-card { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .contact-card .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq-list summary::after { transition: none; }
}
