/*
Theme Name: Globe News Report
Theme URI: https://globenewsreport.com
Author: Globe News Report
Description: A modern, minimal news/blog theme with a featured story, latest headlines list, category archives, and single post view.
Version: 1.1
Requires at least: 5.9
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: globenewsreport
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,450;0,9..144,600;1,9..144,450&family=Work+Sans:wght@300;400;500;600&display=swap');

:root{
  --paper: #F7F6F1;
  --paper-deep: #EDEBE1;
  --ink: #14202B;
  --ink-soft: #57626C;
  --red: #C23B22;
  --line: rgba(20,32,43,0.14);
  --max: 1180px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Work Sans', sans-serif;
  font-weight:400;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:'Fraunces', serif;
  font-weight:450;
  margin:0;
  color:var(--ink);
  letter-spacing:-0.01em;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 40px; }

a:focus-visible, button:focus-visible{
  outline:2px solid var(--red);
  outline-offset:3px;
}

/* ---------- Header / Masthead ---------- */
header.site-header{
  position:sticky; top:0; z-index:20;
  background:var(--paper);
  border-bottom:3px solid var(--ink);
}
.masthead-strip{
  display:flex; justify-content:space-between;
  padding:10px 40px;
  font-size:0.78rem;
  color:var(--ink-soft);
  border-bottom:1px solid var(--line);
  letter-spacing:0.02em;
}
.masthead{
  padding:26px 40px 22px;
  display:flex;
  justify-content:center;
}
.masthead-logo{
  display:flex; align-items:center; gap:16px;
}
.masthead-logo svg{ width:56px; height:56px; flex-shrink:0; }
.masthead-wordmark{
  font-family:'Fraunces', serif;
  line-height:1.05;
  display:flex; flex-direction:column;
}
.masthead-wordmark strong{
  font-size:2.6rem;
  font-weight:600;
  color:var(--ink);
}
.masthead-wordmark em{
  font-style:normal;
  font-size:1rem;
  letter-spacing:0.16em;
  color:var(--red);
  font-weight:600;
  margin-top:2px;
}
nav.wrap{
  display:flex; align-items:center; justify-content:center;
  padding-top:14px; padding-bottom:14px;
  border-top:1px solid var(--line);
}
.nav-links{ display:flex; gap:36px; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-size:0.9rem;
  font-weight:500;
  color:var(--ink-soft);
  border-bottom:2px solid transparent;
  padding-bottom:4px;
  transition:border-color .2s ease, color .2s ease;
}
.nav-links a:hover{ color:var(--ink); border-color:var(--red); }

@media (max-width: 700px){
  .masthead-strip{ padding:10px 22px; font-size:0.7rem; }
  .masthead{ padding:20px 22px 16px; }
  .masthead-wordmark strong{ font-size:1.8rem; }
  .masthead-logo svg{ width:40px; height:40px; }
  .nav-links{ gap:16px; flex-wrap:wrap; justify-content:center; }
}

/* ---------- Featured story ---------- */
.featured{ padding:56px 0 64px; }
.featured .wrap{
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:56px;
  align-items:start;
}
.featured-media{
  aspect-ratio:16/10;
  border-radius:2px;
  background:linear-gradient(150deg, #1F3540, var(--ink));
  margin-bottom:22px;
  overflow:hidden;
}
.featured-media img{ width:100%; height:100%; object-fit:cover; }
.eyebrow{
  font-size:0.85rem;
  color:var(--red);
  font-weight:600;
  margin-bottom:10px;
  display:block;
}
.featured h1, .featured h2.entry-title{
  font-size:clamp(2.1rem, 4.2vw, 3.4rem);
  line-height:1.05;
  margin-bottom:16px;
  opacity:0;
  animation: rise .8s cubic-bezier(.2,.7,.2,1) .1s forwards;
}
@keyframes rise{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .featured h1, .featured h2.entry-title{ animation:none; opacity:1; }
}
.featured h1 a, .featured h2.entry-title a{ transition:opacity .15s ease; }
.featured h1 a:hover, .featured h2.entry-title a:hover{ opacity:0.7; }
.featured .excerpt{ color:var(--ink-soft); max-width:60ch; margin-bottom:14px; }
.meta{ font-size:0.85rem; color:var(--ink-soft); }
.meta .sep{ margin:0 8px; opacity:0.5; }

/* Side list of latest headlines */
.side-list{ border-top:2px solid var(--ink); }
.side-list h3.side-heading{
  font-family:'Work Sans', sans-serif;
  font-size:0.8rem;
  font-weight:600;
  letter-spacing:0.06em;
  color:var(--red);
  padding:16px 0 0;
}
.side-item{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:14px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
}
.side-item .rank{
  font-family:'Fraunces', serif;
  font-size:1.6rem;
  color:var(--line);
  -webkit-text-stroke:1px var(--ink-soft);
  color:transparent;
  line-height:1;
}
.side-item h4{
  font-family:'Fraunces', serif;
  font-weight:450;
  font-size:1.08rem;
  line-height:1.3;
  margin:0 0 6px;
}
.side-item h4 a:hover{ color:var(--red); }
.side-item .meta{ font-size:0.78rem; }

/* Stats strip */
.stats-strip{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:28px 0;
}
.stats-strip .wrap{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
}
.stats-strip .stat b{
  display:block;
  font-family:'Fraunces', serif;
  font-size:2.1rem;
  font-weight:450;
  color:var(--red);
}
.stats-strip .stat span{
  font-size:0.82rem;
  color:var(--ink-soft);
}
@media (max-width:700px){
  .stats-strip .wrap{ grid-template-columns:repeat(2,1fr); }
}

/* ---------- Latest section (main loop list) ---------- */
.latest{ padding:20px 0 88px; }
.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding-bottom:16px;
  margin-bottom:8px;
}
.section-head h2{ font-size:1.5rem; }

.story-row{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:30px;
  padding:32px 0;
  border-bottom:1px solid var(--line);
  align-items:start;
}
.story-row .thumb{
  aspect-ratio:4/3;
  border-radius:2px;
  background:linear-gradient(150deg, #D7D2C2, var(--paper-deep));
  overflow:hidden;
}
.story-row .thumb img{ width:100%; height:100%; object-fit:cover; }
.story-row h3{ font-size:1.35rem; line-height:1.25; margin-bottom:8px; }
.story-row h3 a:hover{ color:var(--red); }
.story-row .excerpt{ color:var(--ink-soft); max-width:66ch; margin-bottom:10px; }

/* Pagination */
.pagination{
  display:flex; justify-content:space-between;
  margin-top:20px;
  font-size:0.92rem;
}
.pagination a{ color:var(--ink); border-bottom:1px solid var(--ink); padding-bottom:2px; }
.pagination a:hover{ color:var(--red); border-color:var(--red); }

/* ---------- Archive heading ---------- */
.archive-header{ padding:56px 0 24px; border-bottom:1px solid var(--line); }
.archive-header h1{ font-size:clamp(1.8rem, 3.2vw, 2.6rem); }
.archive-header p{ color:var(--ink-soft); margin-top:8px; }

/* ---------- Single post ---------- */
.single-post{ padding:56px 0 88px; }
.single-post .post-header{ max-width:74ch; margin:0 auto 32px; text-align:left; }
.single-post h1{ font-size:clamp(2rem, 4vw, 3.2rem); line-height:1.08; margin-bottom:14px; }
.single-post .post-media{
  aspect-ratio:16/9;
  border-radius:2px;
  background:linear-gradient(150deg, #1F3540, var(--ink));
  margin-bottom:36px;
  overflow:hidden;
}
.single-post .post-media img{ width:100%; height:100%; object-fit:cover; }
.single-post .post-body{
  max-width:70ch;
  margin:0 auto;
  font-size:1.08rem;
}
.single-post .post-body p{ margin:0 0 22px; }
.single-post .post-body h2{ font-size:1.5rem; margin:40px 0 16px; }
.single-post .post-body blockquote{
  border-left:3px solid var(--red);
  padding-left:20px;
  margin:32px 0;
  font-family:'Fraunces', serif;
  font-style:italic;
  font-size:1.2rem;
  color:var(--ink-soft);
}
.single-post .post-body img{ border-radius:2px; margin:24px 0; }
.back-link{ display:block; max-width:70ch; margin:0 auto 24px; font-size:0.92rem; color:var(--ink-soft); }
.back-link:hover{ color:var(--red); }

/* ---------- Footer ---------- */
footer.site-footer{ background:var(--ink); color:var(--paper); margin-top:40px; }
footer.site-footer .wrap{ padding:64px 40px 40px; }
footer.site-footer h2{ color:var(--paper); font-size:clamp(1.6rem,3vw,2.2rem); max-width:20ch; }
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:40px;
  margin-top:40px;
  padding-top:28px;
  border-top:1px solid rgba(247,246,241,0.18);
}
.footer-grid h4{
  font-family:'Work Sans', sans-serif;
  font-weight:500;
  font-size:0.9rem;
  color:rgba(247,246,241,0.6);
  margin:0 0 14px;
}
.footer-grid ul{ list-style:none; margin:0; padding:0; }
.footer-grid li{ margin-bottom:8px; }
.footer-grid a{ color:rgba(247,246,241,0.82); font-size:0.95rem; }
.footer-grid a:hover{ color:var(--paper); }
.footer-bottom{ margin-top:44px; font-size:0.82rem; color:rgba(247,246,241,0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .wrap{ padding:0 22px; }
  .nav-links{ gap:18px; }
  .featured .wrap{ grid-template-columns:1fr; }
  .story-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:26px; }
}
