/*
Theme Name: Reformed Wretch
Description: A Scripture-centered reading theme with a devotional library and resource directory.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: reformed-wretch
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root{color-scheme:light;--forest:#172e27;--paper:#f8f5ed;--ink:#202923;--brass:#a7743d;--muted:#4e5a4f;--line:#d8d0bd;--white:#fffdf7;--serif:Georgia,"Times New Roman",serif;--sans:system-ui,-apple-system,BlinkMacSystemFont,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.65 var(--sans)}img{display:block;max-width:100%;height:auto}a{color:var(--forest);text-underline-offset:.22em}a:hover{text-decoration-thickness:2px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #925722;outline-offset:4px}.skip{position:absolute;left:1rem;top:1rem;transform:translateY(-200%);background:white;padding:.65rem;z-index:3}.skip:focus{transform:none}main:focus{outline:none}main{min-height:54vh}.wrap{width:min(1200px,calc(100% - 96px));margin-inline:auto}
.masthead{border-bottom:1px solid var(--line)}.mast-inner,.foot-inner{display:flex;justify-content:space-between;align-items:center;gap:1.25rem;min-height:83px}.identity{display:inline-flex;align-items:center;gap:.65rem;font:1.55rem/1.1 var(--serif);letter-spacing:-.045em;text-decoration:none;white-space:nowrap}.masthead nav{display:flex;gap:clamp(1rem,2.5vw,2.25rem)}.masthead nav a{padding:.7rem 0;font-size:.925rem;text-decoration:none}.masthead nav a:hover,.masthead nav a[aria-current]{text-decoration:underline;text-decoration-color:var(--brass);text-decoration-thickness:2px;text-underline-offset:.5em}
h1,h2,h3{margin:0;color:var(--forest);font-family:var(--serif);font-weight:400;letter-spacing:-.045em;line-height:1.06}h1{font-size:clamp(3.1rem,6.15vw,5.8rem)}h2{font-size:clamp(2rem,3.4vw,3.25rem)}h3{font-size:clamp(1.8rem,3vw,2.7rem)}p{margin:0 0 1rem}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-weight:700;font-size:.8125rem;color:#71512e;margin-bottom:1.1rem}.hero{display:grid;grid-template-columns:1.13fr 1fr;gap:clamp(2rem,5vw,5rem);padding-block:clamp(3rem,6.5vw,6rem);align-items:center}.hero h1{font-size:clamp(3rem,5.6vw,5.55rem);text-wrap:balance}.hero-phrase{white-space:nowrap}.hero h1 em{color:#395849}.hero-copy>p:not(.eyebrow){font-size:1.12rem;color:var(--muted);max-width:28rem;margin:1.55rem 0 1.65rem}.hero-art{height:100%;max-height:530px;min-height:440px;width:100%;object-fit:cover;object-position:56% 50%;border-radius:47% 47% 3px 3px / 18% 18% 3px 3px}
.actions{display:flex;flex-wrap:wrap;gap:.65rem}.button{font:inherit;font-size:.92rem;font-weight:650;cursor:pointer;display:inline-block;text-align:center;text-decoration:none;border:1px solid var(--forest);background:transparent;border-radius:3px;padding:.7rem 1rem;color:var(--forest)}.button:hover{background:#e9e5d8}.button.primary{background:var(--forest);color:var(--white)}.button.primary:hover{background:#314c3f}
.home-reading{background:#ece9db;border-block:1px solid var(--line)}.feature{display:grid;grid-template-columns:.8fr 1fr;align-items:center;gap:2rem;padding-block:2.85rem}.feature h2,.home-note h2{margin-bottom:.65rem}.feature p,.home-note p{color:var(--muted)}.text-link{font-size:.95rem;font-weight:650}.reading-card{border:1px solid var(--line);border-left:3px solid var(--brass);background:var(--white);padding:clamp(1.3rem,3vw,2.2rem)}.reading-card .eyebrow{margin-bottom:.55rem}.reading-card h3 a,.resource h2 a{text-decoration-thickness:1px}.reading-card p:last-child,.resource p:last-child{margin:.65rem 0 0}.home-note{display:flex;gap:1.2rem;align-items:center;padding-block:3rem}.home-note h2{font-size:2rem}.home-note p{margin:0}
.footer{background:var(--forest);color:#f3ead6}.footer a{color:inherit}.footer .foot-inner{padding-block:1.2rem}.foot-inner>span,.foot-inner>div{font-size:.875rem}.foot-inner>div{display:flex;flex-wrap:wrap;gap:1rem}
.page-head{padding-top:clamp(3rem,8vw,6rem);padding-bottom:2.75rem}.lede{font:1.18rem/1.65 var(--sans);color:var(--muted);max-width:38rem;margin:1rem 0 0}.listing,.directory,.brand-grid{padding-bottom:4rem}.listing{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr))}
.article{max-width:720px;width:calc(100% - 48px);margin:auto;padding:3rem 0 4rem;font:1.23rem/1.74 var(--serif)}.article header{margin:1.8rem 0}.article header:first-child{margin-top:0}.article h1{font-size:clamp(2.8rem,7vw,5.4rem)}.article .eyebrow,.article .text-link{font-family:var(--sans)}.article h2{font-size:clamp(1.8rem,4vw,2.45rem);margin:1.65rem 0 .7rem}.article blockquote,.article-next{margin:2rem 0;background:#eeeadc;border-left:3px solid var(--brass);padding:1.1rem 1.4rem}.article blockquote p{font-style:italic;margin:0}.article cite{display:block;font:700 .85rem/1.5 var(--sans);margin-top:.55rem}.article-next h2{margin:0 0 .5rem}.article-next p{margin-bottom:0}
.filter{display:flex;align-items:center;flex-wrap:wrap;gap:.7rem 1rem;padding-bottom:1.2rem}.filter label{font-weight:650}.filter span{color:var(--muted)}select,input,textarea{font:inherit;color:var(--ink);background:var(--white);border:1px solid #837b68;border-radius:3px;padding:.55rem .75rem}.resource{display:grid;grid-template-columns:12rem 1fr;gap:1.4rem;padding:1.5rem 0;border-top:1px solid var(--line)}.resource[hidden]{display:none}.resource h2{font-size:clamp(1.65rem,3vw,2.25rem)}.resource .eyebrow{margin:.35rem 0 0}.source{font-weight:650;color:var(--muted);margin:.35rem 0 0}
.brand-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.brand-panel{background:var(--white);border:1px solid var(--line);padding:1.5rem}.brand-panel h2{font-size:1.85rem;margin-bottom:1rem}.brand-sample{display:flex;align-items:center;gap:.8rem;margin-bottom:1rem}.brand-sample img+img{min-width:0}.brand-photo{max-height:185px;width:100%;object-fit:cover;margin-bottom:.75rem}.type-sample{font:2.6rem var(--serif)}.swatches{list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;padding:0}.swatches li::before{content:"";display:block;height:2rem;background:var(--swatch);border:1px solid var(--line);margin-bottom:.2rem}
@media(max-width:920px){.wrap{width:calc(100% - 56px)}.hero{gap:1.6rem}.hero-art{min-height:370px}.hero h1{text-wrap:initial}}
@media(max-width:700px){.wrap{width:calc(100% - 40px)}.mast-inner{display:grid;justify-content:stretch;gap:.35rem;padding:1rem 0 .3rem}.masthead nav{justify-content:space-between;gap:.5rem}.masthead nav a{font-size:.9rem}.hero,.feature,.brand-grid{grid-template-columns:1fr}.hero{padding-block:2.3rem;gap:1.6rem}.hero h1{font-size:clamp(2.65rem,9vw,4rem)}.hero-copy>p:not(.eyebrow){margin:1rem 0 1.2rem}.hero-art{min-height:0;height:auto;aspect-ratio:1.48;object-position:center 58%}.feature{gap:1.2rem;padding-block:2rem}.home-note{align-items:flex-start}.resource{grid-template-columns:1fr;gap:.4rem}.foot-inner{align-items:flex-start;flex-direction:column;gap:.7rem}.article{padding-top:2rem;font-size:1.175rem}}
@media(max-width:340px){.actions .button{width:100%}.masthead nav a{font-size:.82rem}}
.reading-card h2,.reading-card h3{font-size:clamp(1.8rem,3vw,2.7rem)}
.reading-card h2 a,.reading-card h3 a{text-decoration-thickness:1px}
.empty{padding:1.5rem 0;border-top:1px solid var(--line)}
.empty p{margin:0;color:var(--muted)}
.pagination{margin-top:2rem}.nav-links{display:flex;gap:.75rem;flex-wrap:wrap}
.page-numbers{padding:.3rem .65rem;border:1px solid var(--line)}
.article-content{overflow-wrap:anywhere}.article-content img{height:auto}
.article-content figure{margin:1.5rem 0}.article-content iframe{max-width:100%}
.article-content h3{font-size:1.65rem;margin:1.4rem 0 .6rem}
.article-content li{margin-bottom:.35rem}.article-content table{width:100%;border-collapse:collapse}
.article-content th,.article-content td{border:1px solid var(--line);padding:.5rem}
.article-content .wp-block-table{overflow-x:auto}
.resource h2,.source{overflow-wrap:anywhere}
.topic-help{font-size:.875rem;color:var(--muted)}
@media(max-width:700px){.filter select{max-width:100%}}
