/*
Theme Name: Hope Church
Description: An independent Christian publication theme with an editorial homepage, Scripture guides, and guided launch setup.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: hope-church
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face{font-family:Instrument Serif;src:url('assets/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Instrument Serif;src:url('assets/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:DM Sans;src:url('assets/fonts/dm-sans-latin-wght-normal.woff2') format('woff2');font-weight:100 1000;font-style:normal;font-display:swap}

:root {
  color-scheme: light;
  --bg: #faf9f5;
  --paper: #fffdf8;
  --ink: #23382f;
  --muted: #56635a;
  --green: #1c4133;
  --deep: #17352a;
  --line: #dfdfd4;
  --pale: #ecefe5;
  --sand: #ebe5d7;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); }
::selection { background: #cedbc8; color: var(--deep); }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1.45em; height: 1.45em; flex: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; }
h1 { font-size: clamp(3.3rem, 7vw, 6.45rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2.5rem, 4vw, 3.8rem); letter-spacing: -.015em; }
h3 { font-size: 2rem; }
.wrap { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.measure { width: min(100%, 740px); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) {
  width: 1px; height: 1px; overflow: hidden; position: absolute;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 200; background: white; padding: .6rem 1rem; }
:focus-visible { outline: 2px solid #805420; outline-offset: 3px; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 79px; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; justify-self: start; text-decoration: none; color: var(--deep); font: 2rem/1 var(--serif); white-space: nowrap; }
.brand-mark { width: 39px; height: 39px; border-radius: 9px; }
.site-nav, .footer-nav, .site-nav ul, .footer-nav ul { display: flex; align-items: center; gap: 2rem; }
.site-nav ul, .footer-nav ul { padding: 0; margin: 0; list-style: none; }
.site-nav a, .footer-nav a { font-size: .91rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .footer-nav a:hover, a[aria-current=page] { text-decoration: underline; }
.search-button { place-self: center end; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 1px solid var(--line); border-radius: 50%; }
.search-button:hover { background: var(--pale); }
.search-button svg { width: 1.12rem; height: 1.12rem; }

.hero { background: var(--sand); padding-block: 42px; }
.hero-inner { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 26px; align-items: stretch; }
.hero-copy { align-self: center; padding: 32px 20px 38px 0; }
.hero-copy h1 { max-width: 500px; color: var(--deep); text-wrap: balance; text-align: left; }
.hero-copy p { font-size: 1.12rem; max-width: 360px; color: #414c42; line-height: 1.6; margin-block: 20px 27px; }
.hero-visual { overflow: hidden; border-radius: 10px; min-height: 413px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .68rem;
  background: var(--green); color: white; border: 1px solid var(--green);
  padding: .76rem 1.12rem; min-height: 46px; border-radius: 5px; font: 650 .91rem/1.4 var(--sans);
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--deep); text-decoration: none; }
.button svg { width: 1.12em; height: 1.12em; }

.section { padding-block: 55px 61px; }
.section h2 { margin-bottom: 24px; }
.topic-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topic {
  display: block; padding: 19px 19px 21px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); text-decoration: none; transition: background .16s;
}
.topic:hover { background: var(--pale); }
.topic-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 15px; background: var(--pale); }
.topic-icon svg { width: 20px; height: 20px; }
.topic h3 { margin-bottom: 6px; }
.topic p { color: var(--muted); line-height: 1.5; font-size: .9rem; max-width: 220px; }
.verse-band { padding-block: 36px 40px; text-align: center; background: var(--deep); color: #fffdf4; }
.verse-band blockquote { margin: 0; }
.verse-band p { font: 400 italic clamp(1.9rem, 3.45vw, 3.5rem)/1.08 var(--serif); }
.verse-band cite { display: block; font-style: normal; font-size: .82rem; margin-top: 12px; color: #dce7d9; }
.verse-band a { text-decoration: none; }
.verse-band a:hover { text-decoration: underline; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 25px; }
.section-heading h2 { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--green); font-weight: 650; font-size: .93rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.latest .post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-card { border: 1px solid var(--line); background: var(--paper); border-radius: 9px; overflow: hidden; min-width: 0; }
.card-media { display: block; background-color: var(--sand); }
.card-media img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.card-content { padding: 18px 18px 21px; }
.category-label { color: #345644; text-transform: uppercase; letter-spacing: .075em; font-size: .73rem; font-weight: 750; text-decoration: none; }
.category-label:hover { text-decoration: underline; }
.card-content :is(h2, h3) { margin: 7px 0 9px; font-size: clamp(1.7rem, 2.35vw, 2.45rem); line-height: 1.04; }
.card-content :is(h2, h3) a { text-decoration: none; }
.card-content :is(h2, h3) a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.card-content p { color: var(--muted); font-size: .9rem; line-height: 1.55; }

.collection { min-height: 62vh; padding-block: 58px 76px; }
.collection h1, .page-reading h1, .article-heading h1 { font-size: clamp(3rem, 6vw, 5.6rem); line-height: .99; }
.collection-heading p { margin-top: .85rem; color: var(--muted); font-size: 1.08rem; }
.search-form { display: flex; gap: .6rem; max-width: 490px; margin-top: 1.35rem; }
.search-form input { width: 100%; min-width: 0; }
input[type=text], input[type=email], input[type=search], textarea {
  background: var(--paper); border: 1px solid #aeb9ae; border-radius: 5px;
  color: var(--ink); padding: .68rem .77rem; font: 1rem/1.45 var(--sans);
}
.topic-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.topic-nav a, .page-numbers { border: 1px solid var(--line); padding: .36rem .8rem; border-radius: 5px; font-size: .91rem; font-weight: 600; text-decoration: none; }
.topic-nav a:hover, .topic-nav [aria-current=page], .page-numbers.current { color: white; background: var(--green); text-decoration: none; }
.collection-heading + .post-grid { margin-top: 27px; }
.pagination { margin-top: 32px; }
.nav-links { display: flex; gap: .45rem; flex-wrap: wrap; }

.reading { padding-block: 48px 73px; min-height: 60vh; }
.article-heading { margin-bottom: 25px; }
.back-link { display: block; width: fit-content; font-size: .9rem; color: var(--muted); margin-bottom: 23px; }
.article-heading h1 { margin-top: .55rem; }
.article-byline { margin-top: 15px; color: var(--muted); font-size: .92rem; }
.article-byline span { margin-inline: 3px; }
.article-media { width: min(100%, 960px); margin: 0 auto 32px; }
.article-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.prose { font-size: 1.105rem; line-height: 1.78; overflow-wrap: anywhere; }
.prose h2 { margin: 1.25em 0 .35em; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.04; }
.prose h3 { margin: 1em 0 .3em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { padding-left: .2em; margin-bottom: .32em; }
.prose a { color: #23513d; }
.prose blockquote { border-left: 3px solid #9aab90; background: var(--pale); margin: 1.15rem 0; padding: 1.2rem 1.4rem; }
.prose blockquote p:last-child { margin: 0; }
.page-reading h1 { margin-bottom: 1.4rem; }
.related { border-top: 1px solid var(--line); margin-top: 45px; padding-bottom: 0; }
.contact-form label, .contact-form input, .contact-form textarea { display: block; width: 100%; }
.contact-form label { font-weight: 650; font-size: .94rem; margin-bottom: .2rem; }
.contact-form { margin-top: 27px; }
.contact-form textarea { resize: vertical; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { background: var(--pale); border: 1px solid var(--line); padding: .6rem .85rem; }

.site-footer { background: var(--pale); border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 22px; grid-template-columns: auto 1fr auto; align-items: center; padding-block: 27px; }
.footer-nav, .footer-nav ul { justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.copyright { color: var(--muted); font-size: .84rem; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 54px); }
  .hero-visual { min-height: 320px; }
  .topic h3 { font-size: 1.75rem; }
  .latest .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: auto 1fr; }
  .copyright { grid-column: 1 / -1; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: auto; padding-block: 12px 0; grid-template-columns: 1fr auto; row-gap: 10px; }
  .site-nav { grid-row: 2; grid-column: 1/-1; border-top: 1px solid var(--line); padding-block: .6rem; }
  .site-nav, .site-nav ul { gap: 1.35rem; flex-wrap: wrap; }
  .search-button { grid-column: 2; grid-row: 1; }
  .hero { padding-block: 27px 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { padding: 6px 2px 0; }
  .hero-copy h1 { max-width: 390px; }
  .hero-copy p { margin-block: 12px 18px; }
  .hero-visual { min-height: 0; aspect-ratio: 16/9; }
  .section { padding-block: 38px 42px; }
  .topic-grid, .post-grid, .latest .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .topic { padding: 14px 12px; }
  .topic p { font-size: .84rem; }
  .reading, .collection { padding-block: 34px 53px; }
  .footer-inner { grid-template-columns: 1fr; gap: 15px; }
  .footer-nav, .footer-nav ul { justify-content: flex-start; gap: .6rem 1.05rem; }
}
@media (max-width: 450px) {
  .post-grid, .latest .post-grid { grid-template-columns: 1fr; gap: 15px; }
  .site-nav, .site-nav ul { gap: 1rem; }
  .topic-icon { margin-bottom: 9px; }
  .topic h3 { font-size: 1.61rem; }
}
