/* The Holier blog, in the site's watercolor look: Montserrat headlines, Inter text, Libre Caslon for
   prayers and quotes, painted gold accents from the Creative Lab. Image URLs are versioned by
   scripts/build_blog.py. */
@font-face { font-family: Inter; src: url(/fonts/inter-var.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/fonts/montserrat-var.woff2) format('woff2'); font-weight: 600 900; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(/fonts/libre-caslon-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(/fonts/libre-caslon-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(/fonts/libre-caslon-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

/* --paper is the homepage's color: the watercolor paper of the hero art. Boxes sit on it as white cards. */
:root { --paper: #F7F5F4; --ink: #0D1B3E; --ink-soft: #33405f; --gold: #C9A03F; --gold-ink: #8a6418; --mist: #FFFFFF; --line: rgba(13,27,62,.12); }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 18px/1.65 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: Montserrat, Inter, sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; color: var(--ink); }

/* Header and footer */
.bnav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
.wordmark { font-family: 'Libre Caslon Text', Georgia, serif; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; text-decoration: none; letter-spacing: -.02em; }
.bnav nav { display: flex; align-items: center; gap: 22px; }
.bnav nav a { font-family: Montserrat, Inter, sans-serif; font-weight: 700; font-size: 15px; text-decoration: none; }
.bnav nav a.cta { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
footer { padding: 30px 0 40px; font-size: 15px; border-top: 1px solid var(--line); margin-top: 20px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; opacity: .8; } footer a:hover { opacity: 1; }

/* Accent word: the painted gold loop */
.mk { position: relative; white-space: nowrap; z-index: 0; }
.mk::before { content: ''; position: absolute; z-index: -1; inset: -.24em -.3em -.16em -.3em; background: url(/img/watercolor/orn-loop.webp?v=3220f18c9c) center / 100% 100% no-repeat; }

/* Article */
.post { max-width: 760px; margin: 0 auto; padding: 18px 24px 40px; }
.crumbs { font-size: 14px; color: var(--ink-soft); display: flex; gap: 8px; margin-bottom: 22px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.post h1 { font-size: clamp(34px, 5.4vw, 54px); }
.post .meta { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
.lead-art { margin: 28px -6% 6px; }
.lead-art img { width: 100%; -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 62%, transparent 100%); }
.body { font-size: 19px; line-height: 1.72; color: var(--ink-soft); }
.body > * + * { margin-top: 1.05em; }
.body .lede { font-size: 22px; line-height: 1.6; color: var(--ink); }
.body h2 { font-size: clamp(26px, 3.2vw, 34px); margin-top: 1.9em; position: relative; padding-bottom: .38em; }
.body h2::after { content: ''; position: absolute; left: -.1em; bottom: -.12em; width: 5.2em; height: .52em; background: url(/img/watercolor/orn-swash.webp?v=6e3e26b6ea) left center / 100% 100% no-repeat; }
.body h3 { font-size: 21px; margin-top: 1.5em; }
.body h2 + p, .body h3 + p, .body h3 + ul { margin-top: .6em; }
.body a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.body strong { color: var(--ink); }
.body ul { list-style: none; padding-left: 0; }
.body ul li { position: relative; padding-left: 30px; }
.body ul li + li { margin-top: .45em; }
.body ul li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(201,160,63,.18); }
.body ol.steps { list-style: none; counter-reset: s; padding-left: 0; }
.body ol.steps li { position: relative; padding-left: 58px; counter-increment: s; min-height: 42px; }
.body ol.steps li + li { margin-top: 1em; }
.body ol.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1em; width: 42px; height: 42px; display: grid; place-items: center; font-family: 'Libre Caslon Text', Georgia, serif; font-size: 22px; color: var(--gold-ink); border: 2px solid var(--gold); border-radius: 50%; background: #fff; }

/* The conversation in "What to say" */
.body .script { background: var(--mist); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.body .script p + p { margin-top: .6em; }
.body .script .who { display: inline-block; min-width: 64px; margin-right: 10px; font: 700 12px/1 Montserrat, Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }

/* Comparison tables (pages for AI assistants): scroll sideways on phones instead of overflowing the page */
.body table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; font-size: 15px; line-height: 1.45; background: var(--mist); border: 1px solid var(--line); border-radius: 14px; }
.body th, .body td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 120px; }
.body th { font: 700 12px/1.3 Montserrat, Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); background: var(--paper); }
.body td:first-child { font-weight: 600; color: var(--ink); min-width: 110px; }
.body tbody tr:last-child td { border-bottom: 0; }
.body table.facts { display: table; width: 100%; table-layout: fixed; }
.body table.facts td { min-width: 0; overflow-wrap: anywhere; }
.body table.facts td:first-child { width: 34%; }

/* A prayer on parchment held by two cherubs */
.body .prayer { margin: 1.6em -5% 1.4em; }
.body .prayer::before { content: ''; display: block; aspect-ratio: 1200 / 270; background: url(/img/watercolor/orn-parchment-top.webp?v=c8f15ec9b8) center top / 100% 100% no-repeat; }
.body .prayer p { margin: -1px 0 0; padding: 1% 15% 11% 16%; background: url(/img/watercolor/orn-parchment-body.webp?v=3a31e98e3d) center top / 100% 100% no-repeat; font: italic 400 21px/1.6 'Libre Caslon Text', Georgia, serif; color: var(--ink); text-align: center; }

/* "How Holier helps" */
.body aside.holier { margin-top: 2.2em; padding: 26px 28px 26px 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--mist) url(/img/watercolor/orn-check.webp?v=2fe47378a1) right 22px top 22px / 46px no-repeat; color: var(--ink); }
.body aside.holier h2 { margin-top: 0; font-size: 26px; padding-right: 60px; }
.body aside.holier p { margin-top: .8em; font-size: 18px; }
.body aside.holier .get { justify-content: flex-start; margin-top: 18px; }

/* Get the app */
.get-app { margin-top: 48px; text-align: center; padding: 34px 20px 10px; border-top: 1px solid var(--line); }
.get-app h2 { font-size: clamp(28px, 3.6vw, 38px); }
.get-app p { max-width: 32em; margin: 12px auto 0; color: var(--ink-soft); }
.get { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; padding: 10px 20px 10px 16px; border-radius: 13px; border: 1px solid #a6a6a6; }
.badge svg { width: 30px; height: 30px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.badge small { font-size: 12px; } .badge b { font-size: 24px; font-weight: 600; }
.rating-badge { width: 190px; }
.disclaimer { margin-top: 28px; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* Cards */
.cards { display: grid; gap: 26px; margin-top: 26px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .more .cards { grid-template-columns: repeat(4, 1fr); } .blog-home .cards { grid-template-columns: repeat(2, 1fr); } }
.card { display: flex; flex-direction: column; text-decoration: none; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.card h2, .card h3 { font-size: 21px; margin-top: 14px; }
.card p { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.card .min, .feature .min { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.card:hover h2, .card:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); }
.more { padding: 50px 0 30px; border-top: 1px solid var(--line); }
.more h2 { font-size: 30px; }

/* Blog home */
.blog-home { padding: 20px 0 60px; }
.blog-home .eyebrow { font: 700 14px Montserrat, Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.blog-home h1 { font-size: clamp(42px, 6.4vw, 80px); margin-top: 14px; }
.blog-home .intro { margin-top: 20px; max-width: 36em; font-size: 20px; color: var(--ink-soft); }
.feature { display: grid; gap: 22px; align-items: center; margin-top: 40px; text-decoration: none; }
.feature img { border-radius: 22px; }
.feature h2 { font-size: clamp(28px, 3.4vw, 40px); }
.feature p { margin-top: 12px; color: var(--ink-soft); font-size: 18px; }
.feature div { display: flex; flex-direction: column; }
.feature:hover h2 { text-decoration: underline; text-decoration-color: var(--gold); }
@media (min-width: 900px) { .feature { grid-template-columns: 1.15fr 1fr; gap: 48px; } }
.blog-home .cards { margin-top: 48px; }

@media (max-width: 430px) {
    .wordmark { font-size: 44px; }
    .bnav nav a.cta { padding: 9px 14px; font-size: 14px; }
}
@media (max-width: 350px) {
    .wordmark { font-size: 38px; }
    .bnav nav a:not(.cta) { display: none; }
}
@media (max-width: 600px) {
    .bnav nav { gap: 14px; }
    .body { font-size: 18px; }
    .body .lede { font-size: 20px; }
    .lead-art { margin: 22px -24px 0; }
    .body .prayer { margin: 1.4em -14px; }
    .body .prayer p { font-size: 18px; padding: 1% 14% 13% 15%; }
}

/* App plugs (scripts/build_blog.py, <!--plug {...}-->): painted art from the Creative Lab with the real
   app screen in the phone; every word is HTML. */
.body .plug { margin: 2.4em 0 2.2em; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; color: var(--ink); box-shadow: 0 18px 40px -28px rgba(13,27,62,.35); }
.plug .plug-art { width: 100%; }
.plug .plug-copy { padding: 22px 26px 26px; }
.plug h2 { font-size: clamp(25px, 3vw, 32px); margin: 0; padding: 0; }
.body .plug h2::after { display: none; }
.plug p { margin-top: .6em; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.plug-get { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.plug-rating { display: inline-flex; flex-direction: column; gap: 4px; font: 600 13px/1.2 Inter, sans-serif; color: var(--ink-soft); }
.plug-rating img { width: 112px; }
.plug .plug-note, .plug-banner .plug-note { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.body .badge, .body .badge:hover { color: #fff; text-decoration: none; }

/* Cherubs: the art is the hero, the words sit centered under it, like the prayer cards */
.body .plug-cherubs { background: transparent; border: 0; box-shadow: none; text-align: center; }
.plug-cherubs .plug-art { width: 92%; margin: 0 auto; -webkit-mask-image: radial-gradient(ellipse 70% 66% at 50% 48%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 70% 66% at 50% 48%, #000 60%, transparent 100%); }
.plug-cherubs .plug-copy { padding-top: 0; }
.plug-cherubs .plug-get { justify-content: center; }

/* Steps: the cycle's medallions in a row */
.body .plug-steps { padding: 26px; text-align: center; }
.plug-steps ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 4px; padding: 0; }
.plug-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 15px; line-height: 1.35; color: var(--ink-soft); }
.plug-steps li img { width: min(120px, 100%); margin-bottom: 6px; }
.plug-steps li b { font: 800 18px Montserrat, Inter, sans-serif; color: var(--ink); }
.plug-steps .plug-get { justify-content: center; }

/* Closing banner: wide art with an open left side; the words sit there on wide screens */
.get-app.plug-banner { position: relative; margin: 56px -6% 0; padding: 0; border-top: 0; text-align: left; border-radius: 28px; overflow: hidden; background: var(--paper); }
.get-app.plug-banner p { max-width: none; margin: 12px 0 0; }
.plug-banner .plug-art { width: 100%; }
.plug-banner .plug-copy { padding: 22px 6% 10px; }
.plug-banner h2 { font-size: clamp(30px, 4vw, 44px); }
.plug-banner p { color: var(--ink-soft); font-size: 18px; }
@media (min-width: 820px) {
    .plug-banner .plug-copy { position: absolute; left: 0; top: 0; bottom: 0; width: 43%; display: flex; flex-direction: column; justify-content: center; padding: 0 0 0 6%; }
    .plug-banner h2 { font-size: 36px; }
    .plug-banner p { font-size: 16px; }
}
@media (max-width: 819px) {
    .get-app.plug-banner { margin: 48px -24px 0; border-radius: 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
    .plug-banner .plug-art { width: 175%; max-width: none; margin-left: -75%; }
    .plug-banner .plug-copy { padding: 26px 24px 6px; }
}

/* Phone bar pinned to the bottom of the screen */
.appbar { display: none; }
@media (max-width: 700px) {
    .appbar:not([hidden]) { display: flex; align-items: center; gap: 10px; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 20; padding: 10px 10px 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px -10px rgba(13,27,62,.35); }
    .appbar-name { font: 400 22px/1 'Libre Caslon Text', Georgia, serif; color: var(--ink); }
    .appbar-text { flex: 1; font-size: 13px; line-height: 1.25; color: var(--ink-soft); }
    .appbar-get { background: var(--ink); color: #fff; text-decoration: none; font: 700 15px Montserrat, Inter, sans-serif; padding: 9px 18px; border-radius: 999px; }
    .appbar-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-soft); padding: 4px 6px; cursor: pointer; }
}

/* /blog index: category sections */
.topics { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 40px; }
.topics a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); }
.topics a:hover { border-color: var(--gold); }
.topic { margin-top: 56px; scroll-margin-top: 90px; }
.topic h2 { font-size: clamp(26px, 3vw, 34px); }
.blog-home .topic .cards { margin-top: 22px; }
@media (min-width: 1040px) { .blog-home .topic .cards { grid-template-columns: repeat(3, 1fr); } }
