/* The Daily Ledger: broadsheet news */
:root {
  --paper: #f8f5ee;
  --ink: #141414;
  --ink-2: #3b3a36;
  --muted: #6f6a60;
  --rule: #d8d2c4;
  --red: #b3261e;
  --navy: #1c2a3a;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --display: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--serif);
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Utility bar */
.utility {
  font: 12px/1 var(--sans); letter-spacing: .02em; color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.utility .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 12px; }
.utility .sub { background: var(--navy); color: #fff; padding: 7px 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.utility .sub:hover { text-decoration: none; background: #2b3f56; }

/* Masthead */
.masthead { text-align: center; padding: 22px 0 12px; }
.masthead .brand {
  font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -1px;
  display: inline-block;
}
.masthead .brand:hover { text-decoration: none; }
.masthead .brand .the { font-style: italic; font-weight: 400; font-size: .55em; vertical-align: .35em; margin-right: .1em; }
.masthead-meta {
  display: flex; justify-content: space-between; align-items: center;
  font: 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2);
  border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink);
  padding: 9px 0; margin-top: 16px;
}
.masthead .tagline { font-style: italic; color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Section nav */
.sections {
  font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 1px solid var(--rule);
}
.sections .wrap { display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sections a { padding: 13px 12px; white-space: nowrap; border-bottom: 3px solid transparent; }
.sections a:hover { text-decoration: none; border-color: var(--rule); }
.sections a.on { border-color: var(--red); color: var(--red); }

/* Breaking ticker */
.ticker { background: var(--ink); color: #f1ece0; font: 14px/1.4 var(--sans); }
.ticker .wrap { display: flex; gap: 14px; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.ticker b { background: var(--red); color: #fff; padding: 3px 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; flex: none; }
.ticker span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Ads */
.ad-wrap { text-align: center; }
.ad-label {
  display: block; font: 10px/1 var(--sans); text-transform: uppercase; letter-spacing: .18em;
  color: #9c968a; margin-bottom: 7px;
}
.ad-billboard { padding: 18px 0 20px; min-height: 290px; border-bottom: 1px solid var(--rule); }
.ad-leaderboard { padding: 16px 0; min-height: 124px; border-bottom: 1px solid var(--rule); }
.ad-sidebar { position: sticky; top: 16px; min-height: 630px; padding: 14px 0; }
.ad-inline {
  margin: 30px 0; padding: 12px 0 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center;
}
.ad-inline.mr { min-height: 290px; }
.ad-inline.lr { min-height: 320px; }
.ad-mobile { display: none; padding: 10px 0; min-height: 70px; border-bottom: 1px solid var(--rule); }

/* Front page grid */
.front { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding: 28px 0 40px; }
.col-main { min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 26px; }

.kicker {
  font: 700 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--red);
  display: inline-block; margin-bottom: 8px;
}
.lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--ink); }
.lead h2 { font-family: var(--display); font-size: 40px; line-height: 1.08; margin: 0 0 12px; letter-spacing: -.5px; }
.lead .dek { font-size: 18px; color: var(--ink-2); margin: 0 0 12px; }
.byline { font: 12.5px/1.4 var(--sans); color: var(--muted); }
.byline b { color: var(--ink); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }

.figure { position: relative; overflow: hidden; background: #ddd; }
.figure svg { display: block; width: 100%; height: auto; }
.figcap { font: 12px/1.45 var(--sans); color: var(--muted); margin-top: 7px; }

.lead-side { display: flex; flex-direction: column; gap: 16px; }
.lead-side .item { padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.lead-side .item:last-child { border-bottom: 0; }
.lead-side h3 { font-size: 21px; line-height: 1.2; margin: 0 0 6px; }
.lead-side p { margin: 0; font-size: 15px; color: var(--ink-2); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 3px solid var(--ink); margin-top: 28px; padding-top: 8px; margin-bottom: 16px;
}
.section-head h2 { font: 800 14px/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; margin: 0; }
.section-head a { font: 12px var(--sans); color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story h3 { font-size: 20px; line-height: 1.2; margin: 10px 0 6px; }
.story p { margin: 0 0 6px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.story .thumb { aspect-ratio: 3 / 2; }
.story + .story { position: relative; }

.brief-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.brief { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.brief h4 { margin: 0 0 3px; font-size: 17px; line-height: 1.25; }
.brief p { margin: 0; font-size: 14px; color: var(--muted); }

.opinion { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.opinion .op { display: flex; gap: 12px; }
.opinion .face { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--sans); color: #fff; }
.opinion h4 { margin: 0 0 4px; font-size: 17px; line-height: 1.25; font-style: italic; }
.opinion small { font: 12px var(--sans); color: var(--muted); }

/* Sidebar widgets */
.box h3 {
  font: 800 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .14em;
  border-top: 3px solid var(--ink); padding-top: 9px; margin: 0 0 6px;
}
.mostread { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.mostread li { counter-increment: mr; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.3; }
.mostread li::before {
  content: counter(mr); font-family: var(--display); font-size: 34px; line-height: .9; color: var(--red); min-width: 22px;
}
.markets { font: 13px/1.3 var(--sans); width: 100%; border-collapse: collapse; }
.markets td { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.markets td:last-child { text-align: right; font-weight: 700; }
.up { color: #1f7a3a; }
.down { color: var(--red); }
.weather { display: flex; align-items: center; gap: 14px; font: 14px/1.4 var(--sans); }
.weather .temp { font: 400 44px/1 var(--display); }
.newsletter { background: var(--navy); color: #eef1f5; padding: 18px; }
.newsletter h3 { border-color: #eef1f5; }
.newsletter p { font-size: 15px; margin: 8px 0 12px; }
.newsletter a { display: inline-block; background: #fff; color: var(--navy); font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; padding: 10px 14px; }

/* Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 30px 0 48px; }
.article { max-width: 700px; }
.article .crumbs { font: 12px var(--sans); color: var(--muted); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.article .crumbs a { color: var(--red); font-weight: 700; }
.article h1 { font-family: var(--display); font-size: 46px; line-height: 1.06; letter-spacing: -.6px; margin: 0 0 14px; }
.article .dek { font-size: 21px; line-height: 1.4; color: var(--ink-2); margin: 0 0 18px; }
.article .meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 11px 0; margin-bottom: 22px;
}
.article .share { font: 12px var(--sans); color: var(--muted); display: flex; gap: 12px; }
.article .body p { margin: 0 0 1.1em; font-size: 19px; line-height: 1.65; }
.article .body p.first::first-letter {
  float: left; font-family: var(--display); font-size: 4.1em; line-height: .82; padding: 6px 8px 0 0; color: var(--ink);
}
.dateline { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.article .body h2 { font: 800 15px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .08em; margin: 30px 0 12px; }
.pull {
  margin: 30px 0; padding: 18px 0 18px 22px; border-left: 4px solid var(--red);
  font-family: var(--display); font-size: 26px; line-height: 1.3; font-style: italic;
}
.pull cite { display: block; font: normal 12px var(--sans); color: var(--muted); margin-top: 8px; text-transform: uppercase; letter-spacing: .08em; }
.factbox { background: #efeadf; padding: 18px 22px; margin: 26px 0; font: 15px/1.55 var(--sans); }
.factbox h3 { margin: 0 0 8px; font: 800 12px var(--sans); text-transform: uppercase; letter-spacing: .14em; }
.factbox ul { margin: 0; padding-left: 18px; }
.correction { font: italic 14px/1.5 var(--serif); color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 28px; }
.author-box { display: flex; gap: 14px; align-items: center; border-top: 3px solid var(--ink); padding-top: 14px; margin-top: 30px; font: 14px/1.45 var(--sans); color: var(--ink-2); }
.author-box .face { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 700 18px var(--sans); color: #fff; }
.related { margin-top: 34px; }
.related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related .story h3 { font-size: 17px; }

/* Footer */
.footer { background: var(--ink); color: #c9c3b6; font: 13px/1.7 var(--sans); padding: 34px 0 30px; }
.footer .brand { font-family: var(--display); font-size: 30px; color: #fff; }
.footer .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 24px; }
.footer h4 { color: #fff; margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.footer a { display: block; }
.footer .legal { border-top: 1px solid #333; margin-top: 24px; padding-top: 14px; font-size: 12px; color: #8d877b; }

/* Responsive */
@media (max-width: 1040px) {
  .front, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .col-side, .article-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .ad-sidebar { position: static; }
  .article { max-width: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .ad-desktop { display: none !important; }
  .ad-mobile { display: block; }
  .masthead .brand { font-size: 40px; }
  .masthead-meta { font-size: 10px; letter-spacing: .06em; }
  .masthead-meta .hide-sm, .utility .hide-sm { display: none; }
  .sections .wrap { justify-content: flex-start; }
  .lead { grid-template-columns: 1fr; }
  .lead h2 { font-size: 30px; }
  .grid, .brief-list, .opinion, .related .grid { grid-template-columns: 1fr; }
  .col-side, .article-side { grid-template-columns: 1fr; }
  .article h1 { font-size: 32px; }
  .article .dek { font-size: 18px; }
  .article .body p { font-size: 18px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .front, .article-layout { padding-top: 18px; }
}
