/* lampbiblestudy.com — the app's Lamplight look (App/Lamp/Support/Theme.swift): a dark oxblood
   spine beside white, typographic pages; gold only for what is lit. No web fonts: ui-serif is
   New York on Apple devices, the app's own serif. */

:root {
  --spine: #2A1215;
  --spine-lit: #4A1F23;
  --spine-text: #F4E9E4;
  --spine-2: #C9B4AC;
  --gold: #E9B872;
  --gold-ink: #8A5A14;
  --lamp: #8A2A2B;
  --lamp-hover: #5E1A1B;
  --lit: #F8EEDA;
  --hair: #E7E2DD;
  --paper: #FFFFFF;
  --control: #F3F0ED;
  --answer: #FAF6EE;
  --answer-line: #EADBC2;
  --ink: #1F1517;
  --ink-2: #4A3F3D;
  --ink-3: #6B5F5C;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --spine: #1F0E10;
    --paper: #161112;
    --hair: #3A3032;
    --lit: #3A2E1A;
    --control: #2A2223;
    --answer: #2A2218;
    --answer-line: #4A3A22;
    --ink: #F4E9E4;
    --ink-2: #D6C9C4;
    --ink-3: #B3A5A0;
    --gold-ink: #E9B872;
    --lamp: #E9B872;
    --lamp-hover: #F4D6A4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: var(--lamp); }
a:hover { color: var(--lamp-hover); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
svg { flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--gold); color: #2A1215; padding: 10px 16px; border-radius: 999px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* The spine */
.site-header { background: var(--spine); color: var(--spine-text); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--spine-text); text-decoration: none; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.brand:hover { color: var(--spine-text); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav .link { color: var(--spine-text); text-decoration: none; font-size: 15px; padding: 12px; }
.nav .link:hover { color: var(--gold); }
.nav .link[aria-current="page"] { color: var(--gold); font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; }
.btn-gold, .btn-gold:hover { background: var(--gold); color: #2A1215; }
.btn-gold:hover { background: #F0C98D; }
.btn-lamp, .btn-lamp:hover { background: #8A2A2B; color: #FFFFFF; }
.btn-lamp:hover { background: #6E2122; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 17px; }
.nav .btn { margin-left: 8px; }

/* Home: the hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 56px 0 96px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.05; letter-spacing: -0.5px; color: #FFFFFF; }
.lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--spine-2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 8px; }
.cta-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--spine-2); }

/* The reader, as in the app (always a light page here, on the spine) */
.reader { flex: 1 1 380px; min-width: 0; max-width: 480px; margin: 0; background: #FFFFFF; color: #1F1517; border-radius: 28px; padding: 22px 26px 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.reader-bar { display: flex; align-items: center; justify-content: space-between; color: #8A2A2B; font-size: 17px; }
.reader-book { font-family: var(--serif); color: #1F1517; }
.chapter { display: flex; align-items: baseline; gap: 14px; margin-top: 26px; padding-bottom: 16px; border-bottom: 1px solid #E7E2DD; }
.chapter-num { font-family: var(--serif); font-size: 64px; line-height: 0.9; color: #C55A5C; font-weight: 500; }
.chapter-name { display: flex; flex-direction: column; }
.chapter-name b { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.chapter-name small { font-size: 13px; color: #6B5F5C; }
.verses { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.verse { margin: 0; padding: 0 10px; display: flex; gap: 12px; }
.verse.lit { background: #F8EEDA; border-radius: 12px; padding: 8px 10px; }
.vn { font-family: var(--sans); font-size: 12px; color: #8A5A14; padding-top: 6px; min-width: 22px; }
.actionbar { display: flex; align-items: center; gap: 12px; background: #2A1215; border-radius: 999px; padding: 8px 8px 8px 14px; margin: 2px 0; }
.dot { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.dot.y { background: #FFD60A; } .dot.g { background: #34C759; } .dot.b { background: #0A84FF; } .dot.p { background: #FF375F; }
.sep { width: 1px; height: 20px; background: #4A1F23; }
.study { margin-left: auto; padding: 7px 16px; border-radius: 999px; background: #E9B872; color: #2A1215; font-family: var(--sans); font-size: 15px; font-weight: 600; }

/* Sections: small caps over a hairline */
.section { padding: 72px 0 24px; }
.section:first-child { padding-top: 88px; }
.label { margin: 0 0 28px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); font-size: 13px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--lamp); }
.label.flush { margin-bottom: 0; }
.serif { font-family: var(--serif); }
.body { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; }
.principle { padding: 28px 0; border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 8px; }
.principle h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.feature { border: 1px solid var(--hair); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.feature h3 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.feature .body { font-size: 15px; }
.feature-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tile { width: 44px; height: 44px; border-radius: 12px; background: #2A1215; display: flex; align-items: center; justify-content: center; flex: none; }

/* Ask Lamp */
.ask { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.ask-text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ask-lead { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1.2; font-weight: 500; }
.small { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.ask-demo { flex: 1 1 520px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.question { align-self: flex-end; max-width: 80%; background: var(--control); border-radius: 18px 18px 4px 18px; padding: 12px 16px; font-size: 16px; }
.answer { background: var(--answer); border: 1px solid var(--answer-line); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.answer-head { display: flex; align-items: center; gap: 10px; }
.mascot-chip { width: 32px; height: 32px; border-radius: 50%; background: #2A1215; display: flex; align-items: center; justify-content: center; flex: none; }
.answer-label { font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-ink); }
.answer p { margin: 0; font-size: 17px; line-height: 1.6; }
.cite { display: inline-block; padding: 1px 8px; border-radius: 6px; background: rgba(138, 42, 43, 0.10); color: var(--lamp); font-size: 14px; font-weight: 600; }
.sources { border: 1px solid var(--hair); border-radius: 18px; padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.sources-label { font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--lamp); }
.sources p { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.6; }
.sources .vn { font-size: 12px; padding: 0; }
.sources mark { background: var(--lit); color: inherit; }
figcaption { font-size: 13px; color: var(--ink-3); }

/* The privacy panel echoes the spine */
.panel { background: #2A1215; color: var(--spine-text); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.panel-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.panel-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); }
.panel-lead { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; font-weight: 500; color: #FFFFFF; }
.panel-body { margin: 0; font-size: 16px; line-height: 1.6; color: var(--spine-2); }

/* Privacy and Support */
.doc-head { padding: 40px 0 56px; display: flex; flex-direction: column; gap: 10px; }
.doc-head h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; color: #FFFFFF; }
.doc-head p { margin: 0; font-size: 16px; color: var(--spine-2); }
.doc { padding: 48px 24px 96px; display: flex; flex-direction: column; gap: 40px; font-size: 17px; line-height: 1.65; color: var(--ink); }
.doc section { display: flex; flex-direction: column; gap: 12px; }
.doc h2 { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--hair); font-size: 13px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--lamp); }
.doc h3 { margin: 8px 0 0; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.doc p { margin: 0; }
.doc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.card { border: 1px solid var(--hair); border-radius: 18px; padding: 24px 26px; }
.card h2 { border: 0; padding: 0; }
.doc section.contact { flex-direction: row; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.contact > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.faq { padding: 20px 0; border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 6px; }
.faq h3 { margin: 0; }
.doc section.faqs { gap: 0; }

.site-footer { border-top: 1px solid var(--hair); }
.footer-row { padding: 32px 0 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-3); }
.footer-row p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { padding: 12px 0; }

/* The floating tab bar, phone only (as the app's on iPhone) */
.tabbar { display: none; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .bar { padding: 12px 0; flex-wrap: nowrap; }
  .brand { font-size: 23px; }
  .nav .link { display: none; }
  .nav .btn { margin-left: 0; padding: 0 16px; }

  .hero { padding: 28px 0 40px; gap: 32px; }
  .hero-text { gap: 18px; }
  .eyebrow .more { display: none; }
  .hero h1 { font-size: 40px; line-height: 1.08; }
  .lede { font-size: 17px; }
  .cta .btn { width: 100%; }
  .cta-note { width: 100%; text-align: center; font-size: 13px; }
  .reader { border-radius: 24px; padding: 16px 16px 22px; }
  .chapter { margin-top: 18px; }
  .chapter-num { font-size: 48px; }
  .chapter-name b { font-size: 20px; }
  .verses { font-size: 17px; gap: 8px; }
  .verse { padding: 0 6px; gap: 10px; }
  .verse.lit { padding: 6px; }
  .verse.extra { display: none; }
  .actionbar { gap: 9px; padding: 7px 7px 7px 12px; }
  .dot { width: 15px; height: 15px; }
  .actionbar .share { display: none; }
  .study { padding: 6px 13px; font-size: 14px; }

  .section { padding: 40px 0 8px; }
  .section:first-child { padding-top: 48px; }
  .label { font-size: 12px; letter-spacing: 2px; margin-bottom: 4px; }
  .principle { padding: 20px 0; }
  .principle h3 { font-size: 22px; }
  .features { grid-template-columns: 1fr; gap: 0; }
  .feature { flex-direction: row; align-items: flex-start; gap: 14px; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; padding: 18px 0; }
  .feature-text { gap: 4px; }
  .feature h3 { font-size: 20px; }
  .tile { width: 40px; height: 40px; border-radius: 11px; }
  .ask-lead { font-size: 28px; }
  .question { max-width: 85%; }
  .answer, .sources { padding: 16px 18px; }
  .answer p { font-size: 16px; }
  .sources p { font-size: 17px; }
  .panel { border-radius: 24px; padding: 26px 22px; }
  .panel .btn { width: 100%; }
  .panel-lead { font-size: 26px; }

  .doc-head { padding: 20px 0 32px; }
  .doc { padding: 28px 16px 24px; gap: 32px; font-size: 16px; }
  .doc h2 { font-size: 12px; letter-spacing: 2px; }
  .doc h3 { font-size: 20px; }
  .card { padding: 18px; }
  .doc section.contact { flex-direction: column; align-items: stretch; }
  .contact > div { flex: none; }
  .contact .btn { width: 100%; }

  .footer-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 0 120px; }

  .tabbar { display: flex; position: fixed; z-index: 5; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); gap: 4px; padding: 6px; border-radius: 999px; background: rgba(42, 18, 21, 0.94); box-shadow: 0 10px 30px rgba(42, 18, 21, 0.35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .tabbar a { flex: 1 1 0; min-height: 52px; border-radius: 999px; color: #F4E9E4; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 500; }
  .tabbar a[aria-current="page"] { background: #4A1F23; color: #E9B872; font-weight: 600; }
}
