/* ══════════════════════════════════════
   News Center — styles.css
   Light, editorial, broadsheet-clean
   ══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #fafaf7;
  --surface:  #ffffff;
  --ink:      #14181f;
  --ink-soft: #3b4250;
  --muted:    #6b7280;
  --line:     #e6e3dc;
  --accent:   #b3001b;
  --accent-2: #1a3a8a;
  --serif:    'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --sans:     'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
}

html, body { overflow-x: hidden; max-width: 100vw; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* ── MASTHEAD ─────────────────────────────────────── */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.4rem 1.25rem 1rem;
}
.brand-block { display: flex; flex-direction: column; gap: .25rem; }
.brand {
  font-family: var(--serif); font-size: 1.95rem; font-weight: 700;
  color: var(--ink); text-decoration: none; line-height: 1; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: .55rem;
}
.brand strong { color: var(--accent); font-weight: 700; }
.brand-mark {
  color: var(--accent); font-size: 1.25rem;
}
.brand-tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); font-weight: 500;
}
.date-block { text-align: right; }
.date-line { font-family: var(--serif); font-size: 1rem; color: var(--ink-soft); }
.time-line { font-size: 12px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }

.topnav { border-top: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 30; }
.topnav-inner {
  display: flex; align-items: center; gap: .25rem;
  padding: .55rem 1.25rem; overflow-x: auto;
}
.navlink {
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 13.5px;
  color: var(--ink); padding: .45rem .85rem; border-radius: 6px;
  text-transform: none; white-space: nowrap; letter-spacing: .01em;
  transition: background .15s, color .15s;
}
.navlink:hover { background: #f1efe9; }
.navlink.active { color: var(--accent); }
.navlink.subtle { color: var(--muted); font-weight: 500; }
.topnav-sep { width: 1px; height: 18px; background: var(--line); margin: 0 .35rem; flex-shrink: 0; }

/* ── PAGE VISIBILITY ─────────────────────────────── */
.page { display: none; padding: 2rem 0 4rem; }
.page.active { display: block; }

/* ── HERO ARTICLE ────────────────────────────────── */
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 2rem 2rem 1.75rem; margin-bottom: 1.5rem; cursor: pointer;
  transition: border-color .15s;
}
.hero-card:hover { border-color: #cfc9bd; }
.hero-meta {
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); margin-bottom: .75rem;
}
.hero-meta .dot { color: #bbb; }
.hero-title {
  font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1.12; color: var(--ink);
  letter-spacing: -.01em; margin-bottom: .85rem;
}
.hero-excerpt {
  font-family: var(--serif); font-size: 1.1rem; color: var(--ink-soft);
  line-height: 1.5; margin-bottom: 1rem;
}
.readmore { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ── GRID ────────────────────────────────────────── */
.grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.1rem 1.2rem 1rem; cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: #cfc9bd; transform: translateY(-1px); }
.card h2 {
  font-family: var(--serif); font-size: 1.18rem; line-height: 1.25;
  color: var(--ink); margin: .55rem 0 .55rem; letter-spacing: -.005em; font-weight: 700;
}
.card p {
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.5;
}
.card p.meta {
  font-size: 11.5px; color: var(--muted); margin-top: .75rem;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 500;
}

/* ── CATEGORY PILLS ──────────────────────────────── */
.cat-pill {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 3px; color: #fff;
}
.cat-world     { background: #1a3a8a; }
.cat-business  { background: #2b6e4f; }
.cat-tech      { background: #4f3a8a; }
.cat-sports    { background: #b3001b; }
.cat-travel    { background: #b9750f; }
.cat-lifestyle { background: #6b5237; }

/* ── STATIC PAGES (About, Contact, Privacy) ─────── */
.static-page { max-width: 760px; margin: 0 auto; padding-top: 1.5rem; }
.static-page h1 {
  font-family: var(--serif); font-size: 2.2rem; color: var(--ink);
  letter-spacing: -.01em; margin-bottom: .35rem;
}
.static-page .page-date {
  font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line); padding-bottom: 1rem;
}
.static-page h2 {
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink);
  margin: 1.8rem 0 .55rem; font-weight: 700;
}
.static-page h3 {
  font-size: 1rem; color: var(--ink); margin: 1.2rem 0 .4rem; font-weight: 600;
}
.static-page p, .static-page ul, .static-page ol {
  font-family: var(--serif); font-size: 1.025rem; line-height: 1.65;
  color: var(--ink-soft); margin-bottom: .9rem;
}
.static-page ul, .static-page ol { padding-left: 1.4rem; }
.static-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.static-page a:hover { color: var(--accent-2); }
.static-page code {
  font-family: 'SF Mono', 'Consolas', monospace; font-size: .9em;
  background: #f1efe9; padding: 1px 5px; border-radius: 3px;
}

/* ── COOKIE BANNER ───────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ink); color: #f1efe9;
  border-top: 1px solid #2d3340; padding: 1rem 1.25rem;
  display: none; align-items: center; justify-content: space-between;
  gap: 1rem; z-index: 9000; flex-wrap: wrap;
}
.cookie-banner p { font-size: 13.5px; flex: 1; min-width: 240px; line-height: 1.55; }
.cookie-banner a { color: #ffb84d; text-decoration: underline; }
.cookie-btns { display: flex; gap: .5rem; flex-shrink: 0; }
.cookie-btn-accept {
  background: #fff; color: var(--ink); border: 0; cursor: pointer;
  padding: 8px 18px; border-radius: 4px; font-size: 13px; font-weight: 600;
  font-family: var(--sans);
}
.cookie-btn-decline {
  background: transparent; color: #d4d2cd; border: 1px solid #4a5260;
  padding: 8px 16px; border-radius: 4px; font-size: 13px; cursor: pointer;
  font-family: var(--sans);
}
.cookie-btn-decline:hover { color: #fff; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem; margin-top: 2rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-top h4 {
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink);
  margin-bottom: .55rem; font-weight: 700;
}
.footer-top p, .footer-top a, .footer-top button {
  display: block; font-size: 13px; color: var(--ink-soft); text-decoration: none;
  background: transparent; border: 0; padding: 0; margin-bottom: .3rem;
  cursor: pointer; font-family: var(--sans); text-align: left;
}
.footer-top a:hover, .footer-top button:hover { color: var(--accent); }
.copyright {
  font-size: 12px; color: var(--muted); padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@supports (padding: max(0px)) {
  .container, .topnav-inner {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
}

@media (max-width: 760px) {
  .masthead-inner { flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1rem 1rem .8rem; }
  .date-block { text-align: left; }
  .brand { font-size: 1.65rem; }
  .topnav-inner { padding: .45rem .75rem; gap: .15rem; }
  .navlink { font-size: 12.5px; padding: .35rem .55rem; }
  .topnav-sep { display: none; }
  .navlink.subtle { display: none; }
  .hero-card { padding: 1.25rem 1.1rem 1.1rem; border-radius: 0; border-left: 0; border-right: 0; }
  .hero-title { font-size: clamp(1.4rem, 6vw, 1.85rem); }
  .hero-excerpt { font-size: .98rem; }
  .grid { grid-template-columns: 1fr; gap: 0; }
  .card { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 1.2rem; }
  .static-page { padding: 0 .25rem; }
}
