/*
Theme Name: The Annotated Bill
Theme URI: https://theannotatedbill.com
Author: Optimistic Web
Description: Plain-English legislation, with the receipts. Custom homepage theme for The Annotated Bill.
Version: 1.2
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: annotated-bill
*/

:root{
  --navy:#1E2A50; --navyd:#16203C; --red:#9E2B3A; --parch:#F4ECD8; --parch2:#EBE0C6;
  --gold:#C6A15B; --goldhi:#E7C55A; --ink:#1A1A17; --slate:#6E6A5E; --line:#DACEAC;
  --disp:'Libre Caslon Display',Georgia,serif; --serif:'Libre Caslon Text',Georgia,serif;
  --mono:'Space Mono',ui-monospace,Menlo,monospace; --sans:'Public Sans',system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{background:#FFFFFF;color:#20202B;font-family:var(--sans);line-height:1.5;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
:focus-visible{outline:3px solid var(--goldhi);outline-offset:2px}

.wrap{max-width:1180px;margin:0 auto;padding:0 22px}

/* buttons */
.btn-solid,.btn-outline,.btn-ghost,.btn-primary,.btn-gold,.btn-outline-light{
  display:inline-flex;align-items:center;gap:9px;font-weight:700;font-family:var(--sans);
}
.btn-solid i,.btn-outline i{width:0;height:0;border-left:10px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent}

/* site header */
.site-header{padding:18px 0}
.site-header .wrap{display:flex;align-items:center;gap:26px}
.site-header .logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px;color:var(--navyd);white-space:nowrap}
.site-header .site-nav{display:flex;gap:2px}
.site-header .site-nav a{font-weight:600;font-size:14.5px;color:#3A3A46;padding:9px 13px;border-radius:10px}
.site-header .site-nav a:hover{background:#F4F2E9;color:var(--navyd)}
.site-header .grow{flex:1}
.site-header .btn-ghost{font-weight:700;font-size:14.5px;color:var(--navyd);padding:11px 18px;border-radius:12px;border:2px solid #E3DFCE}
.site-header .btn-ghost:hover{border-color:var(--navy)}
.site-header .btn-primary{background:var(--navy);color:#fff;font-size:14.5px;padding:12px 20px;border-radius:12px}
.site-header .btn-primary:hover{background:var(--navyd)}
@media(max-width:880px){.site-header .site-nav,.site-header .btn-ghost{display:none}}

/* hero */
.hero{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);gap:46px;align-items:center;padding:44px 0 30px}
@media(max-width:940px){.hero{grid-template-columns:1fr;gap:36px}}
.hero h1{font-weight:800;font-size:clamp(36px,4.8vw,58px);line-height:1.02;letter-spacing:-.015em;color:#191922;text-wrap:balance}
.hero h1 .mk{position:relative;z-index:1;white-space:nowrap}
.hero h1 .mk::after{content:"";position:absolute;left:-4px;right:-4px;bottom:.05em;height:.34em;background:var(--goldhi);z-index:-1;border-radius:4px}
.hero .dek{font-size:17.5px;line-height:1.6;color:#4A4A56;margin-top:18px;max-width:52ch}
.hero .cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.hero .cta a{font-size:15.5px;padding:15px 26px;border-radius:14px}
.hero .cta .btn-solid{background:var(--navy);color:#fff;box-shadow:0 10px 22px rgba(30,42,80,.28)}
.hero .cta .btn-solid:hover{background:var(--navyd);transform:translateY(-1px)}
.hero .cta .btn-outline{border:2px solid #E3DFCE;color:var(--navyd)}
.hero .cta .btn-outline:hover{border-color:var(--navy)}
.hero .trust{font-family:var(--mono);font-size:11px;color:#8A867A;margin-top:18px}

/* demo card (the annotation product shot) */
.demo-card{position:relative}
.demo-card .doc{background:#FFFDF6;border:1px solid #EAE4D0;border-radius:20px;box-shadow:0 24px 54px rgba(30,42,80,.16);padding:26px 28px;position:relative}
.demo-card .doc .hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.demo-card .doc .hd .t{font-family:var(--mono);font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--slate)}
.demo-card .doc .hd .cn{font-family:var(--mono);font-size:10.5px;color:var(--navy);background:var(--parch2);border:1px solid var(--line);padding:2px 8px;border-radius:6px}
.demo-card .doc .tx{font-family:var(--serif);font-size:16.5px;line-height:2;color:var(--ink)}
.demo-card .doc .tx .mk{background:var(--goldhi);padding:0 .12em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.demo-card .doc .tx .cite{font-family:var(--mono);font-size:11px;color:var(--navy);background:var(--parch2);border:1px solid var(--line);padding:1px 7px;border-radius:5px;white-space:nowrap}
.demo-card .doc .note{font-family:var(--mono);font-size:11.5px;color:var(--red);border-left:3px solid var(--red);padding-left:10px;margin-top:14px;line-height:1.6}
.demo-card .chip{position:absolute;background:#fff;border:1px solid #EAE4D0;border-radius:14px;box-shadow:0 14px 30px rgba(30,42,80,.16);padding:12px 15px;display:flex;align-items:center;gap:10px}
.demo-card .chip-a{top:-22px;right:-14px;animation:chipFloat 5.5s ease-in-out infinite}
.demo-card .chip-b{bottom:-20px;left:-16px;animation:chipFloat 6.5s ease-in-out .8s infinite}
@media(max-width:560px){.demo-card .chip-a{right:-4px}.demo-card .chip-b{left:-4px}}
@keyframes chipFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.demo-card .chip .ic{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:none}
.demo-card .chip-a .ic{background:var(--red)}
.demo-card .chip-b .ic{background:var(--navy)}
.demo-card .chip .ic i{width:0;height:0;border-left:11px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent;margin-left:3px}
.demo-card .chip .tt{display:block;font-weight:700;font-size:12.5px;color:#20202B}
.demo-card .chip .ss{display:block;font-family:var(--mono);font-size:10px;color:#8A867A;margin-top:2px}
.demo-card .chip .bars{display:flex;gap:2.5px;align-items:flex-end;height:18px}
.demo-card .chip .bars i{width:3px;background:var(--navy);border-radius:2px;animation:barWave 1.2s ease-in-out infinite}
@keyframes barWave{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}

/* sources strip */
.sources-strip{border-top:1px solid #EFEBDD;border-bottom:1px solid #EFEBDD;padding:18px 0}
.sources-strip .wrap{display:flex;flex-wrap:wrap;gap:10px 26px;align-items:center;justify-content:center;font-family:var(--mono);font-size:11.5px;color:#8A867A}
.sources-strip b{color:#4A4A56;font-weight:700}

/* stats */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:40px 0 8px}
@media(max-width:700px){.stats{grid-template-columns:1fr}}
.stats .stat{background:#FAF8F0;border:1px solid #EFEBDD;border-radius:18px;padding:22px;text-align:center}
.stats .stat .num{font-family:var(--disp);font-size:42px;color:var(--navyd);line-height:1}
.stats .stat .label{font-size:13.5px;font-weight:600;color:#4A4A56;margin-top:8px}

/* how we verify */
.how-section{padding:40px 0 8px}
.how-section .section-head{text-align:center;max-width:640px;margin:0 auto 26px}
.how-section .section-head h2{font-weight:800;font-size:clamp(26px,3.4vw,38px);letter-spacing:-.01em;color:#191922;text-wrap:balance}
.how-section .section-head p{font-size:15.5px;color:#4A4A56;margin-top:10px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:880px){.steps{grid-template-columns:1fr}}
.steps .step{border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:10px}
.steps .step .num-badge{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-weight:700;font-size:15px}
.steps .step h3{font-weight:800;font-size:19px}
.steps .step p{font-size:14px;line-height:1.6}
.steps .step-1{background:#FAF8F0;border:1px solid #EFEBDD;color:#33313F}
.steps .step-1 .num-badge{background:var(--navy);color:#fff}
.steps .step-2{background:#FBF3D9;border:1px solid #EFE3B7;color:#453A12}
.steps .step-2 .num-badge{background:var(--goldhi);color:#453A12}
.steps .step-3{background:var(--navyd);color:#E7E1CC}
.steps .step-3 h3{color:#fff}
.steps .step-3 .num-badge{background:var(--red);color:#fff}

/* episodes */
.episodes{padding:44px 0 8px}
.episodes .section-head{display:flex;align-items:baseline;gap:14px;margin-bottom:20px}
.episodes .section-head h2{font-weight:800;font-size:28px;color:#191922}
.episodes .section-head a{margin-left:auto;font-weight:700;font-size:14px;color:var(--navy);white-space:nowrap}
.episodes .section-head a:hover{text-decoration:underline;text-underline-offset:3px}
.episode-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:0;background:#FAF8F0;border:1px solid #EFEBDD;border-radius:22px;overflow:hidden;margin-bottom:18px}
@media(max-width:760px){.episode-card{grid-template-columns:1fr}}
.episode-card .thumb{position:relative}
.episode-card .thumb img{width:100%;height:100%;min-height:220px;object-fit:cover}
.episode-card .thumb .duration{position:absolute;right:12px;bottom:12px;background:rgba(16,17,22,.85);color:#fff;font-family:var(--mono);font-size:10.5px;padding:3px 8px;border-radius:6px}
.episode-card .info{padding:24px 28px;display:flex;flex-direction:column;gap:10px}
.episode-card .info .tag{font-family:var(--mono);font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--red)}
.episode-card .info h3{font-family:var(--disp);font-size:25px;line-height:1.15;color:var(--navyd)}
.episode-card .info h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.episode-card .info p{font-size:14.5px;line-height:1.6;color:#4A4A56}
.episode-card .info-foot{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:auto;padding-top:8px}
.episode-card .info-foot .btn-solid{background:var(--navy);color:#fff;font-size:13px;padding:9px 15px;border-radius:11px}
.episode-card .info-foot .btn-solid:hover{background:var(--navyd)}
.episode-card .info-foot .btn-link{font-weight:700;font-size:13px;color:var(--navy);padding:9px 4px;border-bottom:2px solid transparent}
.episode-card .info-foot .btn-link:hover{border-bottom-color:var(--gold)}
.episode-card .info-foot .soon{font-family:var(--mono);font-size:11px;color:#A39C86}

/* provisions feed */
.feed-section{padding:50px 0 8px}
.feed-section .section-head{display:flex;align-items:baseline;gap:14px;margin-bottom:10px}
.feed-section .section-head h2{font-weight:800;font-size:28px;color:#191922}
.feed-section .section-head a{margin-left:auto;font-weight:700;font-size:14px;color:var(--navy);white-space:nowrap}
.feed-section .section-head a:hover{text-decoration:underline;text-underline-offset:3px}
.feed-intro{font-size:15.5px;line-height:1.6;color:#57544A;max-width:68ch;margin-bottom:24px}

.feed-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media(max-width:900px){.feed-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.feed-grid{grid-template-columns:1fr}}

.feed-card{background:#FAF8F0;border:1px solid #EFEBDD;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.feed-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(30,42,80,.13);border-color:#E3DCC4}
.feed-card .fc-thumb{display:block;overflow:hidden;background:var(--navyd)}
/* the featured images are purpose-built square cards with headline, tag and handle
   baked in — crop them and you cut the type off, so show them at native 1:1 */
/* height:auto is required — WordPress prints height="768" on the <img>, which
   otherwise beats aspect-ratio and renders a portrait box that crops the type */
.feed-card .fc-thumb img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;display:block;transition:transform .25s ease}
.feed-card:hover .fc-thumb img{transform:scale(1.035)}
.feed-card .fc-body{padding:17px 20px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.feed-card .fc-kicker{display:flex;align-items:center;gap:9px;font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase}
.feed-card .fc-tag{color:var(--red);font-weight:700}
.feed-card .fc-kicker time{color:var(--slate)}
.feed-card h3{font-family:var(--disp);font-size:19px;line-height:1.2;color:var(--navyd)}
.feed-card h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.feed-card .fc-dek{font-size:13.5px;line-height:1.6;color:#57544A;margin-top:auto;padding-top:2px}

/* annotations archive */
.archive-head{padding:48px 0 30px;border-bottom:1px solid #EFEBDD;margin-bottom:30px}
.archive-head .kicker{font-family:var(--mono);font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--red)}
.archive-head h1{font-family:var(--disp);font-size:clamp(30px,4.4vw,48px);line-height:1.08;color:var(--navyd);margin:12px 0 0;text-wrap:balance;max-width:20ch}
.archive-head h1 .mk{position:relative;z-index:1;white-space:nowrap}
.archive-head h1 .mk::after{content:"";position:absolute;left:-4px;right:-4px;bottom:.06em;height:.3em;background:var(--goldhi);z-index:-1;border-radius:3px}
.archive-head .dek{font-size:16px;line-height:1.6;color:#57544A;margin-top:14px;max-width:62ch}

.pager{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:40px 0 10px}
.pager .page-numbers{font-family:var(--mono);font-size:12.5px;padding:10px 15px;border-radius:11px;border:1px solid #E3DFCE;color:var(--navyd)}
.pager .page-numbers:hover{border-color:var(--navy)}
.pager .page-numbers.current{background:var(--navy);border-color:var(--navy);color:#fff;font-weight:700}
.pager .page-numbers.dots{border:0}

/* cta band */
.cta-band{margin:48px 0 0;background:var(--navyd);border-radius:28px;padding:52px 30px;text-align:center;color:var(--parch);position:relative;overflow:hidden}
.cta-band .stars{color:var(--gold);letter-spacing:.6em;font-size:13px}
.cta-band h2{font-weight:800;font-size:clamp(28px,4vw,44px);letter-spacing:-.01em;color:#fff;text-wrap:balance;max-width:20ch;margin:14px auto 0}
.cta-band h2 .mk{position:relative;z-index:1;white-space:nowrap;color:var(--ink)}
.cta-band h2 .mk::after{content:"";position:absolute;left:-4px;right:-4px;top:.08em;bottom:.02em;background:var(--goldhi);z-index:-1;border-radius:4px}
.cta-band p{font-size:15.5px;color:#CFC8AE;margin-top:14px;max-width:52ch;margin-left:auto;margin-right:auto}
.cta-band .row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:26px}
.cta-band .row a{font-weight:700;font-size:15px;padding:14px 26px;border-radius:14px}
.cta-band .btn-gold{background:var(--goldhi);color:#33280A}
.cta-band .btn-gold:hover{background:#F0D170}
.cta-band .btn-outline-light{border:2px solid rgba(244,236,216,.5);color:var(--parch)}
.cta-band .btn-outline-light:hover{border-color:var(--parch)}

/* footer */
.site-footer{padding:34px 0 44px;font-size:13px;color:#8A867A}
.site-footer .row{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center}
.site-footer .fine{font-family:var(--mono);font-size:11px}

@media (prefers-reduced-motion: reduce){
  .demo-card .chip-a,.demo-card .chip-b{animation:none}
  .demo-card .chip .bars i{animation:none;transform:scaleY(.7)}
  *{transition:none!important}
}
