@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0d0b08;
  --bg2: #17120c;
  --paper: #f4efe4;
  --paper2: #e8ddca;
  --fg: #f8f0df;
  --ink: #17120c;
  --muted: #b9aa91;
  --muted2: #7f725f;
  --line: rgba(244, 239, 228, .16);
  --paper-line: rgba(23, 18, 12, .14);
  --accent: #d97706;
  --gold: #e7c47a;
  --red: #a43f21;
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(217,119,6,.18), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(231,196,122,.10), transparent 34rem),
    linear-gradient(135deg, #0d0b08 0%, #17120c 48%, #080706 100%);
  color: var(--fg);
  font-family: var(--font-body);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  background: rgba(13,11,8,.76);
}
.topbar__inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 24px; letter-spacing: -.04em; }
.brand__mark { width: 42px; height: 42px; border: 1px solid var(--gold); display: grid; place-items: center; background: var(--paper); color: var(--ink); transform: rotate(-4deg); }
.brand__mark span { transform: rotate(4deg); font-family: var(--font-mono); font-size: 11px; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; font-weight: 600; }
.nav a { transition: color .18s var(--ease); }
.nav a:hover { color: var(--fg); }
.nav__pill { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); background: rgba(244,239,228,.06); }

.hero { padding: 72px 0 46px; }
.issue-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.issue-badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.issue-badge::before { content: ''; width: 9px; height: 9px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 24px rgba(217,119,6,.8); }
.issue-date { color: var(--muted); font-size: 13px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .72fr); gap: 26px; align-items: stretch; }
.hero-copy { min-height: 560px; border: 1px solid var(--line); padding: clamp(28px, 5vw, 62px); background: linear-gradient(145deg, rgba(244,239,228,.08), rgba(244,239,228,.025)); position: relative; overflow: hidden; }
.hero-copy::after { content: 'ZORIA NEWS'; position: absolute; right: -18px; bottom: -18px; font-family: var(--font-display); font-size: clamp(58px, 10vw, 142px); font-weight: 800; letter-spacing: -.08em; color: rgba(244,239,228,.045); line-height: .8; }
.kicker { font-family: var(--font-mono); color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
h1 { position: relative; z-index: 1; margin: 0; max-width: 850px; font-family: var(--font-display); font-size: clamp(56px, 8vw, 116px); line-height: .84; letter-spacing: -.075em; font-weight: 760; }
h1 em { color: var(--gold); font-style: italic; font-weight: 520; }
.hero-lead { position: relative; z-index: 1; margin: 28px 0 0; max-width: 660px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.45; }
.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: transform .16s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--paper); color: var(--ink); }
.btn--ghost { border: 1px solid var(--line); color: var(--fg); background: rgba(244,239,228,.05); }
.btn--ghost:hover { border-color: rgba(231,196,122,.45); }

.lead-card { background: var(--paper); color: var(--ink); border: 1px solid rgba(255,255,255,.2); padding: 22px; min-height: 560px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 28px 80px rgba(0,0,0,.34); }
.lead-card__top { display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted2); border-bottom: 1px solid var(--paper-line); padding-bottom: 16px; }
.lead-card h2 { margin: 22px 0 14px; font-family: var(--font-display); font-size: clamp(30px, 3vw, 48px); line-height: .98; letter-spacing: -.055em; }
.lead-card p { color: #5b5044; line-height: 1.55; font-size: 16px; }
.lead-card__source { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--paper-line); padding-top: 16px; color: #5b5044; font-size: 13px; }
.source-pill { display: inline-flex; padding: 7px 9px; border: 1px solid var(--paper-line); border-radius: 999px; font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; }

.section { padding: 44px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 24px; }
.section-label { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; }
.section-title { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(34px, 4.2vw, 62px); line-height: .9; letter-spacing: -.055em; }
.section-copy { max-width: 420px; color: var(--muted); line-height: 1.5; }

.category-rail { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 22px; }
.category-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); color: var(--fg); background: rgba(244,239,228,.055); padding: 10px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.category-pill span { color: var(--gold); font-family: var(--font-mono); font-size: 11px; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-right: 0; border-bottom: 0; }
.card { min-height: 270px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(244,239,228,.04); display: flex; flex-direction: column; justify-content: space-between; transition: background .2s var(--ease), transform .2s var(--ease); }
.card:hover { background: rgba(244,239,228,.075); transform: translateY(-2px); }
.card__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.card h3 { margin: 22px 0 10px; font-family: var(--font-display); font-size: 28px; line-height: 1.02; letter-spacing: -.045em; font-weight: 720; }
.card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.card__footer { margin-top: 22px; display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--gold); font-size: 13px; font-weight: 700; }
.card--feature { grid-column: span 2; background: linear-gradient(145deg, rgba(217,119,6,.16), rgba(244,239,228,.045)); }
.card--feature h3 { font-size: clamp(34px, 4vw, 54px); max-width: 720px; }

.article-page { padding: 74px 0; }
.article-shell { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 56px; align-items: start; }
.article-aside { position: sticky; top: 110px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.article { background: var(--paper); color: var(--ink); padding: clamp(26px, 5vw, 62px); box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.article h1 { color: var(--ink); font-size: clamp(42px, 6vw, 82px); }
.article .hero-lead { color: #5b5044; }
.article-body { margin-top: 36px; border-top: 1px solid var(--paper-line); padding-top: 28px; color: #362d25; font-size: 20px; line-height: 1.75; }
.article-body p { margin: 0 0 20px; }
.article-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.article-actions .btn--primary { background: var(--ink); color: var(--paper); }
.article-actions .btn--ghost { color: var(--ink); border-color: var(--paper-line); }

.footer { margin-top: 48px; border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer a { color: var(--fg); }

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pager a {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255,253,248,.7);
  text-decoration: none;
  color: var(--fg);
  transition: .18s ease;
}
.pager a:last-child { justify-self: end; }
.pager a:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent2);
}
.pager span { text-align: center; }

.hero-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px;color:var(--muted);font-family:var(--font-mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.hero-meta span{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.hero-meta i{width:9px;height:9px;border-radius:50%;background:var(--accent);display:inline-block}

@media (max-width: 900px) {
  .nav { display: none; }
  .hero { padding-top: 42px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy, .lead-card { min-height: auto; }
  .news-grid { grid-template-columns: 1fr; }
  .card--feature { grid-column: span 1; }
  .article-shell { grid-template-columns: 1fr; gap: 22px; }
  .article-aside { position: static; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1180px); }
  h1 { font-size: 58px; }
  .hero-copy, .lead-card, .article { padding: 22px; }
  .card { min-height: auto; }
}

@media(max-width:700px){
  body { font-size: 15px; }
  .site-header { padding: 16px 14px; }
  .topbar { position: relative; }
  .topbar__inner { height: 74px; }
  .brand { font-size: 23px; }
  .brand__mark { width: 44px; height: 44px; transform: rotate(-3deg); }
  .nav { display: none; }
  .wrap { padding: 44px 14px; }
  .hero-meta { align-items: flex-start; justify-content: flex-start; gap: 10px 16px; font-size: 11px; line-height: 1.5; letter-spacing: .11em; margin-bottom: 18px; }
  .hero-meta span { white-space: normal; }
  .hero-panel { grid-template-columns: 1fr; padding: 22px; border-radius: 0; min-height: auto; overflow: hidden; }
  .hero-copy h1 {
    font-size: 44px;
    line-height: .94;
    letter-spacing: -.04em;
    margin: 24px 0 18px;
    max-width: 320px;
  }
  .kicker { letter-spacing: .15em; line-height: 1.7; font-size: 11px; }
  .hero-copy p { font-size: 17px; line-height: 1.55; }
  .hero-actions { display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 10px; }
  .btn { justify-content: center; text-align: center; width: 100%; padding: 14px 16px; }
  .hero-word { position: relative; right: auto; bottom: auto; margin-top: 18px; font-size: 48px; line-height: .83; opacity: .08; letter-spacing: -.08em; }
  .lead-card { padding: 24px; }
  .lead-card h2 { font-size: 32px; line-height: 1.02; }
  .grid-news { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .card h3 { font-size: 28px; line-height: 1.04; }
  .card p { -webkit-line-clamp: 4; }
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-top: 54px; }
  .section-head h2 { font-size: 38px; }
  .pager { grid-template-columns: 1fr; gap: 12px; }
  .pager a, .pager a:last-child { justify-self: stretch; text-align: center; }
  .article { padding: 24px; }
  .article h1 { font-size: 42px; }
  .article p { font-size: 18px; }
  .site-footer { grid-template-columns: 1fr; }
}

/* mobile readability patch */
.hero-panel span,
.lead-kicker span,
.card__meta span,
.card__footer span,
.byline span { display: inline-flex; align-items: center; }
.hero-panel { gap: 14px; }
.hero-panel span + span::before { content: ""; display: none; }
.lead-kicker, .card__meta, .card__footer, .byline { column-gap: 14px; row-gap: 6px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .hero-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; padding: 18px 0 0; border: 0; background: transparent; color: var(--muted); }
  .hero-panel span { font-size: 14px; }
  .hero-panel span:not(:last-child)::after,
  .lead-kicker span:not(:last-child)::after,
  .card__meta span:not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--accent); }
  .lead-card { padding: 28px 26px; }
}
