/* Southwood Baptist Church Archive — "Archival Ledger"
   Palette derived from the original Serif WebPlus site:
   navy #002435, cerulean #2592c8/#119ee4, gold #f8df9a/#ffd02a. */
:root{
  --ink:#0d2b36;
  --ink-soft:#365260;
  --rule:#d8cfbe;
  --paper:#f7f3ea;
  --paper-2:#fffdf8;
  --cerulean:#2f8fc4;
  --cerulean-dk:#1d6a97;
  --gold:#c99a3d;
  --gold-lt:#e8cf96;
  --measure:44rem;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:"Source Sans 3","Segoe UI",Helvetica,Arial,sans-serif;
  font-size:1.0625rem;line-height:1.72;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--cerulean-dk);text-decoration:none;border-bottom:1px solid rgba(47,143,196,.38)}
a:hover,a:focus{color:var(--ink);border-bottom-color:var(--gold)}
.sw-wrap{width:100%;max-width:76rem;margin:0 auto;padding:0 1.25rem}
.sw-measure{max-width:calc(var(--measure) + 2.5rem)}
.sw-skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;padding:.6rem 1rem;z-index:100}
.sw-skip:focus{left:0}

/* ---------- header ---------- */
.sw-header{background:var(--ink);color:var(--paper-2);border-bottom:3px solid var(--gold)}
.sw-head-inner{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding-top:.9rem;padding-bottom:.9rem}
.sw-brand{display:flex;align-items:center;gap:.75rem;color:inherit;border:0;min-width:0;flex:1 1 auto}
.sw-brand:hover,.sw-brand:focus{color:inherit}
.sw-brand-mark{flex:0 0 auto;width:26px;height:34px;position:relative;display:block}
.sw-brand-mark::before,.sw-brand-mark::after{content:"";position:absolute;background:var(--gold)}
.sw-brand-mark::before{left:11px;top:0;width:4px;height:34px}
.sw-brand-mark::after{left:3px;top:9px;width:20px;height:4px}
.sw-brand-text{display:flex;flex-direction:column;min-width:0}
.sw-brand-name{font-family:"Cormorant Garamond",Georgia,serif;font-size:1.4rem;font-weight:600;line-height:1.15;letter-spacing:.01em}
.sw-brand-sub{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-lt)}
.sw-nav{flex:1 1 auto;min-width:0}
.sw-nav ul{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.25rem 1.15rem;list-style:none;margin:0;padding:0;min-width:0}
.sw-nav a{color:var(--paper-2);border:0;font-size:.82rem;letter-spacing:.11em;text-transform:uppercase;padding:.3rem 0;display:inline-block;border-bottom:2px solid transparent}
.sw-nav a:hover,.sw-nav a:focus{color:#fff;border-bottom-color:var(--gold)}
.sw-nav a.sw-nav-active{border-bottom-color:var(--gold);color:#fff}
.sw-burger{display:none;background:none;border:1px solid rgba(247,243,234,.4);padding:.5rem .55rem;cursor:pointer;flex:0 0 auto}
.sw-burger span{display:block;width:20px;height:2px;background:var(--paper-2);margin:4px 0}

/* ---------- main ---------- */
.sw-main{padding:3rem 0 3.5rem;background:var(--paper)}
.sw-measure h1{
  font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;
  font-size:clamp(2rem,5.2vw,2.9rem);line-height:1.14;margin:0 0 1.4rem;
  padding-bottom:.85rem;border-bottom:3px double var(--rule);letter-spacing:.005em;
}
.sw-measure h2{
  font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;
  font-size:clamp(1.45rem,3.4vw,1.85rem);line-height:1.24;margin:2.6rem 0 .85rem;color:var(--ink);
  position:relative;padding-left:1.1rem;
}
.sw-measure h2::before{content:"";position:absolute;left:0;top:.34em;width:4px;height:1em;background:var(--gold)}
.sw-measure h3{
  font-family:"Source Sans 3",sans-serif;font-weight:700;
  font-size:1.02rem;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-soft);
  margin:1.9rem 0 .55rem;
}
.sw-measure p{margin:0 0 1.15rem}
.sw-measure > p:first-of-type{font-size:1.14rem;line-height:1.66;color:var(--ink-soft)}
.sw-measure ul,.sw-measure ol{margin:0 0 1.3rem;padding-left:1.3rem}
.sw-measure li{margin-bottom:.45rem}
.sw-measure ul{list-style:none;padding-left:1.15rem}
.sw-measure ul > li{position:relative}
.sw-measure ul > li::before{content:"";position:absolute;left:-1.15rem;top:.62em;width:6px;height:6px;background:var(--gold-lt);border:1px solid var(--gold)}
.sw-measure ol > li::marker{color:var(--gold);font-weight:700}
.sw-measure strong{font-weight:700;color:var(--ink)}
.sw-measure blockquote{
  margin:1.7rem 0;padding:1.15rem 1.35rem;background:var(--paper-2);
  border-left:4px solid var(--gold);
  font-family:"Cormorant Garamond",Georgia,serif;font-size:1.2rem;line-height:1.6;font-style:italic;color:var(--ink);
}
.sw-measure blockquote p:last-child{margin-bottom:0}
.sw-measure hr{border:0;border-top:1px solid var(--rule);margin:2.4rem 0}
.sw-fig{margin:0 0 1.9rem}
.sw-fig img{width:100%;border:1px solid var(--rule);background:var(--paper-2)}
.sw-fig-lead{margin-bottom:2.1rem}

/* ---------- footer ---------- */
.sw-footer{background:var(--ink);color:#cfdbe1;padding:3rem 0 2rem;border-top:3px solid var(--gold);margin-top:1rem}
.sw-foot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:1.9rem 2rem}
.sw-foot-h{
  font-family:"Source Sans 3",sans-serif;font-size:.72rem;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--gold-lt);margin:0 0 .75rem;padding-bottom:.5rem;
  border-bottom:1px solid rgba(232,207,150,.28);
}
.sw-foot-list{list-style:none;margin:0;padding:0;font-size:.94rem}
.sw-foot-list li{margin-bottom:.42rem}
.sw-foot-list a{color:#cfdbe1;border:0}
.sw-foot-list a:hover,.sw-foot-list a:focus{color:#fff;border-bottom:1px solid var(--gold)}
.sw-foot-note{
  margin:2.4rem 0 .9rem;padding-top:1.4rem;border-top:1px solid rgba(207,219,225,.18);
  font-size:.88rem;line-height:1.65;color:#a9bcc6;max-width:52rem;
}
.sw-foot-copy{margin:0;font-size:.82rem;letter-spacing:.06em;color:#8ba1ac}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .sw-nav ul{gap:.2rem .85rem}
  .sw-nav a{font-size:.76rem;letter-spacing:.08em}
}
@media (max-width:760px){
  .sw-burger{display:block;order:3}
  .sw-nav{display:none}
  .sw-brand-name{font-size:1.18rem}
  .sw-main{padding:2.2rem 0 2.6rem}
}
@media (max-width:420px){
  body{font-size:1rem}
  .sw-brand-sub{font-size:.64rem;letter-spacing:.1em}
}

/* Safeguard: content is never hidden waiting on JS. */
[data-aos],[hidden].sw-never{opacity:1 !important;transform:none !important}
