:root {
  --ink: #3a4247;
  --grey: #687279;
  --grey-dark: #4d565c;
  --orange: #f3994b;
  --orange-dark: #b85e12;
  --bg: #fffff0;
  --card: #ffffff;
  --line: #e6e3d3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Kannada", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.25; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--grey); border-bottom: 4px solid var(--orange); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 56px; height: 56px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.site-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }

/* Hero */
.hero { background: var(--grey-dark); color: #fff; padding: 56px 0; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 0 0 12px; }
.hero p { max-width: 640px; margin: 0; font-size: 1.1rem; opacity: .95; }
.hero .btn { margin-top: 24px; }

.btn { display: inline-block; background: var(--orange); color: #2b2b2b; text-decoration: none; font-weight: 700; padding: 10px 20px; border-radius: 3px; }
.btn:hover { background: #f5aa68; }

/* Sections */
section { padding: 48px 0; }
.section-title { font-size: 1.8rem; margin: 0 0 4px; }
.section-sub { color: var(--grey); margin: 0 0 24px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card h3, .card-title { font-size: 1.1rem; margin: 0 0 8px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--orange-dark); }
.card p { margin: 0 0 12px; }
.card .more { margin-top: auto; font-weight: 600; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.brand-card { border-top: 4px solid var(--orange); }

.meta { color: var(--grey); font-size: .9rem; }

/* About */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; }
.objectives { list-style: none; padding: 0; counter-reset: obj; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.objectives li { counter-increment: obj; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 4px; padding: 12px 16px 12px 52px; position: relative; }
.objectives li::before { content: counter(obj); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--grey); color: #fff; font-size: .85rem; font-weight: 700; display: grid; place-items: center; }

/* Article */
.article { max-width: 760px; }
.article h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 0 0 8px; }
.article img { border-radius: 6px; margin: 24px 0; width: 100%; }
.source { background: var(--card); border-left: 4px solid var(--orange); padding: 12px 16px; word-break: break-word; }

/* Footer */
.site-footer { background: var(--grey); color: #fff; padding: 32px 0; margin-top: 32px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.social { display: flex; gap: 16px; }
.article blockquote { margin: 0; padding: 4px 20px; border-left: 4px solid var(--grey); font-style: italic; }
.social a { display: inline-flex; padding: 4px; border-radius: 4px; } .social a:hover { background: rgba(255,255,255,.12); }

html { scroll-padding-top: 100px; }

/* Narrow: logo + icons on row 1, menu as one scrollable row below */
@media (max-width: 900px) {
  html { scroll-padding-top: 110px; }
  .brand img { width: 40px; height: 40px; }
  .site-header .wrap { padding-top: 8px; padding-bottom: 4px; row-gap: 4px; }
  .site-header .brand { flex: 1; }
  .site-header .social { order: 2; }
  .site-header .site-nav { order: 3; width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; column-gap: 16px; scrollbar-width: none; }
  .site-header .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
}

/* News: 4 across on desktop, 2 on tablet, 1 on phone */
#news .grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { #news .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { #news .grid { grid-template-columns: 1fr; } }

/* Contact page */
.card address { font-style: normal; }
.site-footer small a { color: inherit; }
