/* Gyanbite theme: yellow + black (Instagram-post style) */
:root {
  --yellow: #FFD21F;       /* brand yellow: headline bands, buttons, highlights */
  --yellow-deep: #F2BE00;  /* hover */
  --black: #0D0D0D;        /* brand black: header, footer, text */
  --cream: #FFF8D9;        /* pale yellow tint for reading backgrounds */
  --paper: #FFFFFF;
  --muted: #4A4A4A;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--black); background: var(--paper); line-height: 1.7; font-size: 18px; }
img, svg { max-width: 100%; height: auto; }

/* Links: black text with a yellow highlighter underline */
a { color: var(--black); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--yellow); text-decoration-color: var(--black); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; border-radius: 4px; }
.site-header a:focus-visible, .site-footer a:focus-visible { outline-color: var(--yellow); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--black); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; margin: 0 auto; padding: 0 20px; }

/* Header: black bar with a yellow edge */
.site-header { background: var(--black); border-bottom: 5px solid var(--yellow); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 26px; letter-spacing: -0.5px; color: #fff; }
.brand:hover { background: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--yellow); display: inline-flex; align-items: center; justify-content: center; }
.brand-mark::after { content: ""; border-left: 11px solid var(--black); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.brand-text span { color: var(--yellow); }
.site-header nav a { margin-left: 18px; text-decoration: none; color: #fff; font-weight: 600; font-size: 16px; }
.site-header nav a:hover { background: none; color: var(--yellow); }

/* Hero: big yellow band like the Instagram headlines */
.hero { background: var(--yellow); color: var(--black); padding: 56px 0 60px; }
.hero h1 { font-size: clamp(32px, 5.6vw, 54px); line-height: 1.08; margin: 0 0 14px; text-transform: uppercase; font-weight: 900; letter-spacing: -0.5px; }
.hero h1 mark { background: var(--black); color: var(--yellow); padding: 0 10px; }
.hero p { font-size: 20px; max-width: 640px; margin: 0 0 24px; font-weight: 500; }
.btn { display: inline-block; background: var(--black); color: var(--yellow); padding: 13px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid var(--black); }
.btn:hover { background: var(--paper); color: var(--black); }

/* Sections */
section.block { padding: 44px 0; }
section.tint { background: var(--cream); }
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 28px; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { background: var(--paper); border: 2px solid var(--black); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 16px; }
.chips li:hover { background: var(--yellow); }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--paper); border: 3px solid var(--black); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--black); display: block; font-weight: 400; }
.card:hover { background: var(--paper); box-shadow: 7px 7px 0 var(--black); transform: translate(-2px, -2px); }
.card .card-body { padding: 16px 18px 20px; }
.card h3 { margin: 8px 0 6px; font-size: 20px; }
.tag { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--black); color: var(--yellow); padding: 2px 10px; border-radius: 6px; }

/* Article */
.page-title { padding: 40px 0 8px; }
.page-title h1 { font-size: clamp(28px, 4.6vw, 42px); margin: 8px 0 10px; font-weight: 900; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
article h2 { margin-top: 36px; border-left: 10px solid var(--yellow); padding-left: 12px; }
article p, article li { max-width: 68ch; }
.takeaway { background: var(--yellow); border: 3px solid var(--black); padding: 14px 18px; border-radius: var(--radius); margin: 20px 0; font-weight: 500; }
.takeaway strong { background: var(--black); color: var(--yellow); padding: 1px 8px; border-radius: 4px; }
figure.infographic { margin: 22px 0; }
figure.infographic img { border-radius: var(--radius); border: 3px solid var(--black); width: 100%; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.sources { font-size: 16px; }
.author-box { border: 3px solid var(--black); border-radius: var(--radius); padding: 16px 18px; margin: 34px 0; background: var(--cream); font-size: 16px; }
.notice { background: var(--cream); border: 3px solid var(--black); border-radius: var(--radius); padding: 12px 16px; font-size: 16px; }

/* Ad slots: hidden while empty, reserved space once an ad unit is pasted in */
.ad-slot { margin: 28px auto; text-align: center; min-height: 100px; }
.ad-slot:empty { display: none; }
.ad-slot::before { content: "Advertisement"; display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-slot:empty::before { content: none; }

/* Footer */
.site-footer { background: var(--black); color: #fff; padding: 34px 0; margin-top: 40px; border-top: 5px solid var(--yellow); font-size: 15px; }
.site-footer a { color: var(--yellow); margin-right: 16px; }
.site-footer a:hover { background: none; color: #fff; }
.site-footer p { margin: 10px 0 0; color: #D6D6D6; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-header nav a { margin-left: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card:hover { transform: none; } }
