@import url('https://fonts.googleapis.com/css2?family=Hubballi&family=Noto+Sans+Kannada:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --dusk-navy: #0b2a43;
  --horizon-blue: #00aeef;
  --sun-gold: #f7a600;
  --dusk-ember: #e97b1c;
  --paddy-green: #009342;
  --paper: #fbf8f2;
  --ink: #16232d;
  --ink-soft: #4a5a66;
  --line: rgba(11, 42, 67, 0.12);

  --font-display: 'Hubballi', 'Noto Sans Kannada', serif;
  --font-body: 'Noto Sans Kannada', 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--horizon-blue); text-decoration: none; }
a:hover { color: var(--dusk-ember); }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Sun-ray bullet, the signature glyph ---------- */
.sunray {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.45em;
  background: conic-gradient(from -45deg, var(--sun-gold), var(--dusk-ember), var(--sun-gold));
  border-radius: 50%;
  vertical-align: middle;
}

/* ---------- Masthead / Banner ---------- */
.masthead {
  background: linear-gradient(180deg, var(--dusk-navy) 0%, #6b3d1f 68%, var(--dusk-ember) 100%);
  padding: 40px 0 28px;
  position: relative;
  overflow: hidden;
}
.masthead::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--horizon-blue), var(--sun-gold), var(--paddy-green));
}
.masthead .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.masthead .logo-img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35));
}
.masthead .tagline {
  margin-top: 10px;
  color: #ffe8c9;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.masthead nav {
  margin-top: 18px;
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.masthead nav a { color: #f2f6fa; opacity: 0.9; }
.masthead nav a:hover { color: var(--sun-gold); opacity: 1; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--dusk-navy);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-track span {
  font-family: var(--font-body);
  font-size: 14px;
  margin-right: 40px;
  color: #ffe8c9;
}
.ticker-track span::before {
  content: '●';
  color: var(--sun-gold);
  margin-right: 10px;
  font-size: 8px;
  vertical-align: middle;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Filter chips ---------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 28px 0 8px;
}
.filters a {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.filters a.active {
  background: var(--dusk-navy);
  color: #fff;
  border-color: var(--dusk-navy);
}
.filters a:hover:not(.active) {
  border-color: var(--horizon-blue);
  color: var(--horizon-blue);
}

/* ---------- Featured story ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  margin: 24px 0 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.featured .media { aspect-ratio: 4/3; overflow: hidden; background: #eee; }
.featured .media img { width: 100%; height: 100%; object-fit: cover; }
.featured .body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dusk-ember);
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.eyebrow .cat {
  background: rgba(247, 166, 0, 0.14);
  color: var(--dusk-ember);
  padding: 3px 10px;
  border-radius: 4px;
  margin-right: 10px;
  font-weight: 500;
}
.featured h1, .featured h2 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--dusk-navy);
}
.featured p.excerpt { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 56px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(11, 42, 67, 0.1);
}
.card .media { aspect-ratio: 16/10; overflow: hidden; background: #eee; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 22px; }
.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  margin: 8px 0 8px;
  color: var(--dusk-navy);
}
.card h3 a { color: inherit; }
.card p.excerpt { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Post page ---------- */
.post-head { padding: 44px 0 8px; }
.post-head h1 {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.2;
  color: var(--dusk-navy);
  margin: 12px 0 18px;
}
.post-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.post-cover { border-radius: 14px; overflow: hidden; margin-bottom: 32px; aspect-ratio: 16/9; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-content {
  font-size: 18px;
  line-height: 1.85;
  max-width: 720px;
  margin: 0 auto;
}
.post-content p { margin: 0 0 22px; }
.post-content h2 { font-family: var(--font-display); color: var(--dusk-navy); margin-top: 36px; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; max-width: 720px; margin: 32px auto 0; }
.tags a {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.1);
  color: var(--horizon-blue);
}

/* ---------- Share + Follow ---------- */
.share-follow {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.share-follow .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}
.icon-row { display: flex; gap: 10px; }
.icon-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--dusk-navy);
  color: #fff;
}
.icon-row a:hover { background: var(--dusk-ember); color: #fff; }
.icon-row svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Footer ---------- */
footer {
  background: var(--dusk-navy);
  color: #cfe3f0;
  margin-top: 60px;
  padding: 40px 0;
}
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .logo-img { height: 34px; }
footer .foot-links { display: flex; gap: 20px; font-family: var(--font-mono); font-size: 13px; }
footer .foot-links a { color: #cfe3f0; }
footer .foot-links a:hover { color: var(--sun-gold); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .post-head h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .masthead nav { flex-wrap: wrap; gap: 14px; justify-content: center; }
  .post-content { font-size: 17px; }
}

:focus-visible {
  outline: 2px solid var(--horizon-blue);
  outline-offset: 2px;
}
