:root {
  --orange: #f26a2e;
  --orange-dark: #d9531a;
  --green: #5aa82c;
  --ink: #1d2433;
  --ink-2: #4a5263;
  --muted: #7a8292;
  --line: #e5e7ec;
  --bg: #ffffff;
  --bg-soft: #f6f6f3;
  --serif: "Merriweather", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Demo banner + topbar */
.demo-banner { background: var(--ink); color: #fff; text-align: center; font-size: 12px; padding: 6px 16px; letter-spacing: .02em; }.topbar { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.demo-tag { background: var(--orange); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .14em; padding: 2px 10px; border-radius: 3px; }
#today::first-letter { text-transform: uppercase; }

/* Masthead */
.masthead { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--line); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo img { height: 52px; width: auto; }
.masthead-actions { display: flex; align-items: center; gap: 10px; }
.btn-tilaa { display: inline-block; background: var(--orange); color: #fff; font-weight: 700; padding: 11px 26px; border-radius: 999px; font-size: 15px; letter-spacing: .02em; transition: background .15s, transform .15s; box-shadow: 0 2px 8px rgba(242,106,46,.35); }
.btn-tilaa:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-login { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 10px 12px; }
.btn-login:hover { color: var(--orange); }

.mainnav { border-top: 1px solid var(--line); }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a { white-space: nowrap; font-size: 14px; font-weight: 600; padding: 12px 14px; color: var(--ink-2); border-bottom: 3px solid transparent; }
.nav-inner a:hover { color: var(--ink); }
.nav-inner a.active { color: var(--ink); border-bottom-color: var(--green); }

/* Ticker */
.ticker { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.ticker-inner { display: flex; align-items: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; }
.ticker-label { flex: none; background: var(--green); color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 3px; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 40px; white-space: nowrap; animation: tick 60s linear infinite; }
.ticker-move a:hover { color: var(--orange); }
.ticker-move b { color: var(--orange); margin-right: 6px; }
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; } }

/* Common */
main.wrap { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }
.meta { font-size: 13px; color: var(--muted); }
.plus { display: inline-block; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 3px; margin-right: 6px; vertical-align: 2px; letter-spacing: .04em; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.22; margin: 0; }
.section-title { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; }
.section-title::after { content: ""; flex: 1; height: 2px; background: var(--ink); }

/* Art placeholder for stories without photo */
.art { position: relative; overflow: hidden; background: var(--c1, #f26a2e); }
.art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.35), transparent 45%), linear-gradient(135deg, var(--c1), var(--c2)); }
.art svg { position: absolute; right: 8%; bottom: 10%; width: 38%; height: auto; opacity: .9; }
.thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: 6px; }

/* Front page */
.front-top { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.lead a:hover h2, .card a:hover h3, .side-list a:hover h3 { color: var(--orange-dark); }
.lead .thumb { border-radius: 8px; }
.lead h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; margin: 14px 0 10px; }
.lead p { font-size: 17px; color: var(--ink-2); margin: 0 0 10px; }

.side-list { display: flex; flex-direction: column; gap: 18px; }
.side-list article { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.side-list article:last-child { border-bottom: 0; }
.side-list .thumb { aspect-ratio: 4 / 3; border-radius: 4px; }
.side-list h3 { font-size: 16px; margin: 4px 0 4px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card h3 { font-size: 20px; margin: 12px 0 8px; }
.card p { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }

.band { margin-top: 44px; }

.layout-2 { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 44px; }

.most-read ol { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.most-read li { counter-increment: mr; display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.most-read li::before { content: counter(mr); font-family: var(--serif); font-weight: 900; font-size: 26px; color: var(--orange); line-height: 1; }
.most-read a { font-weight: 600; font-size: 15px; line-height: 1.35; }
.most-read a:hover { color: var(--orange-dark); }

.promo { background: linear-gradient(150deg, #fff4ee, #f1f8ea); border: 1px solid #f6d7c6; border-radius: 10px; padding: 24px; margin-bottom: 32px; }
.promo img { width: 56px; height: 56px; margin-bottom: 12px; }
.promo h3 { font-size: 21px; margin-bottom: 8px; }
.promo p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.promo .price { font-size: 30px; font-weight: 800; color: var(--ink); font-family: var(--serif); }
.promo .price small { font-size: 14px; font-weight: 500; color: var(--muted); font-family: var(--sans); }

.list-stories article { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.list-stories h3 { font-size: 21px; margin: 6px 0 8px; }
.list-stories p { margin: 0 0 6px; color: var(--ink-2); }
.list-stories a:hover h3 { color: var(--orange-dark); }

.subscribe-band { margin-top: 52px; background: var(--ink); color: #fff; border-radius: 12px; padding: 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.subscribe-band h2 { font-size: 28px; margin-bottom: 8px; }
.subscribe-band p { margin: 0; color: #c9cfdb; }
.subscribe-band .btn-tilaa { font-size: 17px; padding: 14px 34px; }

/* Article page */
.article { max-width: 760px; margin: 0 auto; }
.article .back { display: inline-block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.article .back:hover { color: var(--orange); }
.article h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 900; margin: 10px 0 16px; }
.article .ingress { font-size: 20px; color: var(--ink-2); margin: 0 0 18px; font-weight: 500; }
.article .byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.byline strong { display: block; font-size: 15px; }
.article .thumb { border-radius: 8px; margin-bottom: 8px; }
.caption { font-size: 13px; color: var(--muted); margin: 0 0 26px; }
.body p { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.7; margin: 0 0 20px; }
.body blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--orange); font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.4; }

.paywall { position: relative; margin-top: -120px; padding-top: 120px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 120px); }
.paywall-box { text-align: center; border: 2px solid var(--orange); border-radius: 12px; padding: 32px 24px; background: #fff; }
.paywall-box img { width: 52px; height: 52px; margin: 0 auto 12px; }
.paywall-box h3 { font-size: 24px; margin-bottom: 8px; }
.paywall-box p { color: var(--ink-2); margin: 0 auto 20px; max-width: 460px; }
.paywall-box .btn-tilaa { font-size: 17px; padding: 14px 40px; }
.paywall-box .small { margin-top: 14px; font-size: 14px; color: var(--muted); }
.paywall-box .small a { color: var(--orange-dark); font-weight: 600; }

.related { max-width: 1200px; margin: 52px auto 0; }

/* Footer */
.footer { background: var(--bg-soft); border-top: 4px solid var(--orange); padding-top: 40px; font-size: 14px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 32px; width: auto; margin-bottom: 12px; }
.footer h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.footer p { margin: 0; }
.footer a:hover { color: var(--orange); }
.footer-cta .btn-tilaa { margin-top: 12px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .front-top, .layout-2 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .logo img { height: 34px; }
  .masthead-inner { padding-top: 12px; padding-bottom: 12px; }
  .btn-login { display: none; }
  .masthead .btn-tilaa { padding: 9px 18px; font-size: 14px; }
  .grid { grid-template-columns: 1fr; }
  .list-stories article { grid-template-columns: 1fr; gap: 10px; }
  .side-list article { grid-template-columns: 96px 1fr; }
  .subscribe-band { grid-template-columns: 1fr; padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .weather { display: none; }
  .body p { font-size: 18px; }
}
