/*
Theme Name: The US Daily
Author: Mr. Faheem Shahzad
Author URI: https://rankyourwebsite.site
Description: Straight reporting, updated through the day. A dense, text-forward broadsheet layout for The US Daily — nameplate masthead, an "In Brief" rail, and a multi-column front page.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tradernews
*/

/* ---------------------------------------------
   Design tokens — print, dense, columned
--------------------------------------------- */
:root{
  --bg: #F4F1EA;
  --paper: #FBFAF6;
  --ink: #1A1A1A;
  --ink-soft: #55524A;
  --accent: #2C3E50;
  --rule: #1A1A1A;
  --rule-light: #C9C2AE;
  --font-display: "Playfair Display", "Source Serif 4", Georgia, serif;
  --font-body: "PT Serif", Georgia, "Times New Roman", serif;
  --max: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0; font-weight: 700; }
p{ margin: 0 0 1em; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 24px; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------
   Dateline
--------------------------------------------- */
.dateline{ background: var(--ink); color: #D9D5C6; font-size: 12px; letter-spacing: 0.03em; }
.dateline .wrap{ display: flex; justify-content: space-between; padding: 7px 24px; }
.dateline span:nth-child(2){ text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }

/* ---------------------------------------------
   Nameplate masthead
--------------------------------------------- */
.masthead{ background: var(--paper); }
.nameplate-wrap{ text-align: center; padding: 26px 24px 16px; border-bottom: 4px double var(--rule); }
.logo{ font-size: 46px; letter-spacing: 0.01em; text-transform: uppercase; font-weight: 900; }
.logo span{ font-weight: 400; font-style: italic; }
.tagline{ font-size: 13px; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.main-nav{ border-bottom: 1px solid var(--rule); }
.main-nav ul{ display: flex; justify-content: center; gap: 30px; padding: 11px 0; }
.main-nav a{
  font-family: var(--font-body);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.current{ border-color: var(--accent); }
.nav-toggle{ display: none; margin: 10px auto; background: none; border: 1px solid var(--rule); padding: 8px 14px; text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; }

/* ---------------------------------------------
   Front page grid: brief rail / lead / stat rail
--------------------------------------------- */
.front-grid{
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 0;
  padding: 30px 24px 0;
}
.brief-col, .lead-col, .stat-col{ padding: 0 24px; }
.brief-col{ border-right: 1px solid var(--rule-light); }
.stat-col{ border-left: 1px solid var(--rule-light); }
.lead-col{ padding-top: 0; }

.rail-title{
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 16px;
}
.brief-item{ display: block; padding: 14px 0; border-bottom: 1px solid var(--rule-light); }
.brief-item:first-child{ padding-top: 0; }
.brief-item h3{ font-size: 15.5px; line-height: 1.4; margin-top: 6px; }
.brief-item .category-tag{ font-size: 11px; }

.lead-col .category-tag{ margin-bottom: 10px; }
.lead-col h1{ font-size: 38px; line-height: 1.12; margin-bottom: 12px; }
.lead-col .dek{ font-size: 17px; color: var(--ink-soft); font-style: italic; margin-bottom: 18px; }
.lead-col .thumb{ width: 100%; aspect-ratio: 16/9; background: linear-gradient(160deg, #C9C2AE, #8B8570); margin-bottom: 18px; filter: grayscale(0.4); }
.lead-col blockquote{
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 16px 0; margin: 18px 0; font-family: var(--font-display); font-style: italic; font-size: 19px; text-align: center;
}
.category-tag{
  display: inline-block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--accent);
}

.stat-row{ display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule-light); font-size: 14px; }
.stat-row:first-of-type{ padding-top: 0; }
.pulse-figs{ display: flex; gap: 8px; align-items: baseline; }
.pulse-figs .price{ font-weight: 700; }
.chg.up{ color: #2C5E3F; }
.chg.down{ color: #8B2E28; }

.byline{ font-size: 12.5px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; text-transform: uppercase; letter-spacing: 0.04em; }
.byline .dot{ width: 3px; height: 3px; background: var(--ink-soft); border-radius: 50%; }

/* ---------------------------------------------
   Below the fold
--------------------------------------------- */
.below-fold{ margin-top: 36px; padding-top: 24px; border-top: 4px double var(--rule); padding-bottom: 50px; }
.section-head{ display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head h2{ font-size: 15px; text-transform: uppercase; letter-spacing: 0.07em; }
.section-head .view-all{ font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.story-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.story-card{ padding: 0 22px; border-left: 1px solid var(--rule-light); }
.story-card:first-child{ border-left: none; padding-left: 0; }
.story-card h3{ font-size: 19px; line-height: 1.3; margin: 8px 0 8px; }
.story-card .excerpt{ font-size: 14px; color: var(--ink-soft); }

/* ---------------------------------------------
   Newsletter
--------------------------------------------- */
.newsletter{ background: var(--ink); color: #E7E3D6; padding: 40px 0; border-top: 4px double var(--rule); }
.newsletter .wrap{ display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter h2{ color: #fff; font-size: 22px; max-width: 32ch; }
.newsletter p{ color: #B7B2A0; margin-top: 8px; font-family: var(--font-body); }
.nl-form{ display: flex; gap: 10px; flex-wrap: wrap; }
.nl-form input[type="email"]{ padding: 11px 14px; border: 1px solid #4A4A42; background: #262620; color: #fff; min-width: 250px; font-size: 14px; font-family: var(--font-body); }
.nl-form button{ padding: 11px 22px; background: var(--paper); color: var(--ink); border: none; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; }
.nl-form button:hover{ background: #E7E3D6; }

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer{ background: var(--paper); color: var(--ink-soft); padding: 40px 0 24px; border-top: 1px solid var(--rule); }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--rule-light); }
.footer-grid h4{ color: var(--ink); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; font-family: var(--font-body); }
.footer-grid li{ margin-bottom: 8px; font-size: 13.5px; }
.footer-grid a:hover{ color: var(--accent); }
.footer-brand .logo{ font-size: 22px; }
.footer-brand p{ font-size: 13px; margin-top: 10px; max-width: 40ch; }
.footer-bottom{ padding-top: 16px; display: flex; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------
   Single / page content
--------------------------------------------- */
.content-wrap{ padding: 40px 0 60px; }
.article-header{ max-width: 74ch; margin: 0 auto 26px; text-align: center; }
.article-header h1{ font-size: 34px; line-height: 1.2; margin-bottom: 12px; }
.article-body{ max-width: 68ch; margin: 0 auto; font-size: 18px; }
.article-body blockquote{ border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0; margin: 1.6em 0; font-style: italic; text-align: center; }
.pulse-panel{ border: 1px solid var(--rule-light); }
.pulse-row{ padding: 12px 18px; border-bottom: 1px solid var(--rule-light); display:flex; justify-content:space-between; }
.pulse-head{ padding: 14px 18px; border-bottom: 1px solid var(--rule); }

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 960px){
  .front-grid{ grid-template-columns: 1fr; }
  .brief-col, .stat-col{ border: none; border-top: 1px solid var(--rule-light); padding-top: 20px; margin-top: 20px; }
  .story-grid{ grid-template-columns: 1fr; }
  .story-card{ border-left: none; border-top: 1px solid var(--rule-light); padding: 20px 0 0; margin-top: 20px; }
  .story-card:first-child{ border-top: none; margin-top: 0; padding-top: 0; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .main-nav{ display: none; }
  .main-nav.open{ display: block; }
  .main-nav ul{ flex-direction: column; align-items: center; gap: 10px; }
  .nav-toggle{ display: block; }
  .logo{ font-size: 32px; }
  .lead-col h1{ font-size: 26px; }
  .footer-grid{ grid-template-columns: 1fr; }
  .newsletter .wrap{ flex-direction: column; align-items: flex-start; }
}

.screen-reader-text{
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
