/*
Theme Name: Audioledger
Author: Corwin Ives
Description: Audio paper: dateline bar, serif nameplate, lead plus digest strip.
Version: 3.2.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: audioledger
Tags: blog, news, magazine, newspaper, two-columns, custom-logo, featured-images
*/

/* ==========================================================================
   Design tokens — red/gold/navy taken from the archived 2014 stylesheet
   ========================================================================== */
:root{
  --red:#b91c1c;
  --red-deep:#851414;
  --gold:#c54444;
  --navy:#851414;
  --ink:#16171a;
  --muted:#6d7078;
  --paper:#fbfaf7;
  --surface:#ffffff;
  --line:#dcd8d0;
  --rule:#16171a;
  --footer:#041e42;

  --f-masthead:'Playfair Display',Georgia,'Times New Roman',serif;
  --f-head:'Libre Baskerville','Helvetica Neue',Arial,sans-serif;
  --f-body:Georgia,'Times New Roman',serif;

  --maxw:1240px;
  --gutter:22px;
}

*,*::before,*::after{box-sizing:border-box}

body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--f-body);font-size:17px;line-height:1.66;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{font-family:var(--f-head);font-weight:700;line-height:1.2;margin:0 0 .45em;letter-spacing:-.01em}
h1{font-size:clamp(1.85rem,3.8vw,2.9rem)}
h2{font-size:clamp(1.35rem,2.4vw,1.9rem)}
h3{font-size:1.12rem}

a{color:var(--red-deep);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:8px;top:8px;background:#fff;padding:10px 16px;z-index:999;border:2px solid var(--red)}

/* ==========================================================================
   Utility bar — the dateline. Small, but it is what makes a page read
   "newspaper" before you have processed anything else on it.
   ========================================================================== */
.util-bar{background:var(--navy);color:rgba(255,255,255,.82);font-family:var(--f-head);font-size:.74rem;letter-spacing:.05em}
.util-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:7px 0;flex-wrap:wrap}
.util-date{text-transform:uppercase}
.util-links ul{list-style:none;display:flex;gap:18px;margin:0;padding:0;flex-wrap:wrap}
.util-links a{color:rgba(255,255,255,.82)}
.util-links a:hover{color:var(--gold);text-decoration:none}

/* ==========================================================================
   Masthead — centred serif nameplate between two rules
   ========================================================================== */
/* The recovered Adirondack Flames wordmark is white-on-transparent, so the
   masthead carries a dark plate behind it. This also suits a sports paper. */
.masthead{
  text-align:center;padding:26px 0 20px;
  background:var(--navy);border-bottom:4px solid var(--red);
}
.masthead .brand-text .name{color:#fff}
.masthead .brand-text .tagline{color:rgba(255,255,255,.7)}
.site-brand{display:inline-block;text-decoration:none}
.site-brand img{max-height:96px;width:auto;margin:0 auto}
.brand-text .name{
  font-family:var(--f-masthead);font-size:clamp(2.1rem,5.4vw,3.7rem);
  font-weight:700;color:var(--ink);display:block;line-height:1.05;letter-spacing:-.02em;
}
.brand-text .tagline{
  font-family:var(--f-head);font-size:.72rem;letter-spacing:.24em;
  text-transform:uppercase;color:var(--muted);display:block;margin-top:8px;
}

/* Navigation — heavy top/bottom rules, the classic broadsheet treatment */
.nav-bar{border-top:3px solid var(--rule);border-bottom:1px solid var(--rule);background:var(--surface);position:sticky;top:0;z-index:50}
.nav-bar-inner{display:flex;align-items:center;justify-content:center;gap:10px;position:relative}
.nav-toggle{display:none;background:none;border:0;padding:12px;font-size:1.1rem;cursor:pointer}

.main-nav ul{list-style:none;display:flex;margin:0;padding:0;flex-wrap:wrap;justify-content:center}
.main-nav a{
  display:block;color:var(--ink);font-family:var(--f-head);font-size:.84rem;
  font-weight:600;letter-spacing:.1em;text-transform:uppercase;padding:13px 17px;
}
.main-nav a:hover,
.main-nav .current-menu-item > a{color:var(--red);text-decoration:none}

/* ==========================================================================
   Lead block — one dominant story beside a stack of two. Dense, no gutters
   of whitespace, the way a front page actually packs.
   ========================================================================== */
.lead-block{display:grid;grid-template-columns:1.9fr 1fr;gap:30px;padding:30px 0;border-bottom:1px solid var(--line)}
.lead-main .thumb{margin-bottom:16px;overflow:hidden}
.lead-main .thumb img{width:100%;aspect-ratio:16/9;object-fit:cover}
.lead-main h2{font-size:clamp(1.6rem,3.2vw,2.5rem);margin-bottom:12px}
.lead-main h2 a{color:var(--ink)}
.lead-main h2 a:hover{color:var(--red);text-decoration:none}
.lead-main .standfirst{color:var(--muted);font-size:1.04rem}

.lead-side{display:flex;flex-direction:column;gap:20px;border-left:1px solid var(--line);padding-left:30px}
.lead-side article{padding-bottom:18px;border-bottom:1px solid var(--line)}
.lead-side article:last-child{border-bottom:0;padding-bottom:0}
.lead-side .thumb img{width:100%;aspect-ratio:16/10;object-fit:cover;margin-bottom:10px}
.lead-side h3{font-size:1.06rem;margin-bottom:6px}
.lead-side h3 a{color:var(--ink)}
.lead-side h3 a:hover{color:var(--red);text-decoration:none}

.kicker{
  font-family:var(--f-head);font-size:.68rem;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--red);
  display:inline-block;margin-bottom:7px;
}
.byline{font-family:var(--f-head);font-size:.76rem;color:var(--muted);margin-top:7px}

/* ==========================================================================
   Section rule — label sitting on a full-width hairline
   ========================================================================== */
.section{padding:28px 0}
.section-head{
  display:flex;align-items:baseline;gap:14px;
  border-bottom:2px solid var(--rule);margin-bottom:20px;padding-bottom:7px;
}
.section-head h2{
  margin:0;font-size:.98rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ink);
}
.section-head .rule{flex:1}
.section-head .more{font-family:var(--f-head);font-size:.74rem;letter-spacing:.1em;text-transform:uppercase}

/* Four-across digest strip */
.digest{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.digest article .thumb img{width:100%;aspect-ratio:4/3;object-fit:cover;margin-bottom:10px}
.digest h3{font-size:1rem;margin-bottom:5px}
.digest h3 a{color:var(--ink)}
.digest h3 a:hover{color:var(--red);text-decoration:none}
.digest .byline{font-size:.73rem}

/* ==========================================================================
   Layout + river of stories
   ========================================================================== */
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:42px;padding:26px 0 40px}

.river article{display:grid;grid-template-columns:1fr 200px;gap:22px;padding:22px 0;border-bottom:1px solid var(--line)}
.river article:first-child{padding-top:0}
.river .thumb img{width:100%;aspect-ratio:4/3;object-fit:cover}
.river h3{font-size:1.32rem;margin-bottom:8px}
.river h3 a{color:var(--ink)}
.river h3 a:hover{color:var(--red);text-decoration:none}
.river .excerpt{color:var(--muted);font-size:.97rem}

/* ==========================================================================
   Entry
   ========================================================================== */
.entry-header{margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.entry-header h1{margin:8px 0 12px}
.entry-meta{font-family:var(--f-head);font-size:.82rem;color:var(--muted)}
.entry-thumb{margin-bottom:26px}
.entry-content{font-size:1.08rem}
.entry-content p{margin:0 0 1.45em}
.entry-content p:first-of-type::first-letter{
  float:left;font-family:var(--f-masthead);font-size:3.6rem;line-height:.84;
  padding:5px 10px 0 0;color:var(--red);
}
.entry-content h2,.entry-content h3{margin-top:1.7em}
.entry-content blockquote{
  margin:1.8em 0;padding:4px 0 4px 24px;border-left:4px solid var(--gold);
  font-family:var(--f-head);font-size:1.16rem;font-weight:600;color:var(--navy);
}
.entry-content ul,.entry-content ol{margin:0 0 1.45em;padding-left:1.35em}
.entry-content a{text-decoration:underline}

/* Sidebar */
.sidebar .widget{margin-bottom:30px}
.sidebar .widget-title{
  font-family:var(--f-head);font-size:.78rem;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--ink);
  border-bottom:2px solid var(--rule);padding-bottom:7px;margin-bottom:14px;
}
.sidebar ul{list-style:none;margin:0;padding:0}
.sidebar li{padding:8px 0;border-bottom:1px solid var(--line)}
.sidebar li a{color:var(--ink);font-family:var(--f-head);font-size:.9rem}
.sidebar li a:hover{color:var(--red)}

/* Pagination */
.pagination{display:flex;gap:6px;justify-content:center;padding:30px 0;flex-wrap:wrap}
.pagination .page-numbers{
  padding:9px 15px;border:1px solid var(--line);background:var(--surface);
  color:var(--ink);font-family:var(--f-head);font-size:.85rem;font-weight:600;
}
.pagination .page-numbers:hover{border-color:var(--red);text-decoration:none}
.pagination .current{background:var(--red);border-color:var(--red);color:#fff}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{background:var(--footer);color:rgba(255,255,255,.72);padding:44px 0 22px;margin-top:40px}
.footer-top{display:flex;justify-content:space-between;align-items:center;gap:22px;flex-wrap:wrap;padding-bottom:22px;border-bottom:1px solid rgba(255,255,255,.14)}
.site-footer .brand-text .name{color:#fff;font-size:1.7rem}
.site-footer a{color:rgba(255,255,255,.8)}
.site-footer a:hover{color:var(--gold)}
.footer-nav ul{list-style:none;display:flex;gap:22px;margin:0;padding:0;flex-wrap:wrap}
.footer-bottom{padding-top:20px;font-family:var(--f-head);font-size:.82rem;text-align:center}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media(max-width:1000px){
  .content-layout{grid-template-columns:1fr;gap:32px}
  .digest{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:820px){
  .lead-block{grid-template-columns:1fr;gap:24px}
  .lead-side{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:20px}
}
@media(max-width:700px){
  .nav-toggle{display:block}
  .main-nav{display:none;width:100%}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column}
  .main-nav a{padding:12px 0;border-top:1px solid var(--line);text-align:center}
  .river article{grid-template-columns:1fr}
  .river .thumb{order:-1}
  .digest{grid-template-columns:1fr}
  .util-inner{justify-content:center}
  .footer-top{flex-direction:column;text-align:center}
}
