/* The Indian Insider — layout after time.com: cream page, centred logo, thin section nav,
   three-column hero, rows of four headlines with outlined section tags. */

:root {
  --bg: #fffcf6;
  --paper: #ffffff;
  --tint: #f7efe6;
  --ink: #141414;
  --ink-2: #3d3d3d;
  --muted: #6b665f;
  --rule: #e4ddd1;
  --rule-strong: #cfc6b8;
  --accent: #db0808;   /* the logo's red */
  --accent-ink: #a80606;
  --footer: #141414;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }
.hide-sm { display: inline; }
.noscript { padding-block: 48px; }

/* ---------- Announcement bar ---------- */
.banner {
  background: var(--tint);
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  text-align: center;
  padding: 11px var(--gutter);
}
.banner strong { font-weight: 600; }
.banner a { margin-left: 14px; text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; color: var(--ink-2); }
.banner a:hover { color: var(--accent); }

/* ---------- Masthead ---------- */
.masthead { background: var(--bg); border-bottom: 1px solid var(--rule); }
.masthead__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 8px;
}
.masthead__bar > :last-child { justify-self: end; }
.textbtn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.textbtn:hover { color: var(--accent); }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.iconbtn:hover { background: var(--tint); }

.logo { display: block; line-height: 0; }
.logo img { display: block; width: 360px; max-width: 100%; height: auto; }

.sections {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px;
  padding-top: 10px; padding-bottom: 14px;
}
.sections a {
  font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.sections a:hover, .sections a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Date and weather, beside Menu ---------- */
.masthead__left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.wx { display: flex; flex-direction: column; gap: 1px; padding-left: 18px; border-left: 1px solid var(--rule); font-size: 11.5px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; }
.wx__date { font-weight: 500; color: var(--ink); }
.wx__now { display: flex; align-items: center; gap: 5px; }
.wx__now svg { flex: none; color: var(--accent); }
.wx__temp { font-weight: 600; color: var(--ink); }
.wx__city {
  font: inherit; color: inherit; background: transparent; border: 0; padding: 0 12px 0 0; margin: 0; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 4px top 55%, right 0 top 55%; background-size: 4px 4px; background-repeat: no-repeat;
}
.wx__city:hover { color: var(--accent); }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(20, 20, 20, .35); }
.drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(380px, 88vw);
  background: var(--bg); padding: 20px 24px 32px; overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, .12);
  animation: slidein .22s ease-out;
}
@keyframes slidein { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer__title { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer__search input {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 12px;
  border: 1px solid var(--rule-strong); background: var(--paper); border-radius: 2px;
}
.drawer__list { list-style: none; margin: 20px 0 0; padding: 0; }
.drawer__list a {
  display: block; padding: 10px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-size: 22px; font-weight: 500;
}
.drawer__list a:hover { color: var(--accent); }
.drawer__list--small a { font-family: var(--sans); font-size: 14px; color: var(--ink-2); border: 0; padding: 6px 0; }

/* ---------- Loading / empty ---------- */
.loading { padding-block: 80px; }
.loading__bar { display: block; height: 2px; width: 120px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 200% 100%; animation: shimmer 1s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty { text-align: center; padding-block: 96px 120px; }
.empty h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin: 0 0 12px; }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.empty .btn { margin-top: 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 12px 22px; border: 1px solid var(--ink); border-radius: 2px;
}
.btn:hover { background: var(--ink); color: var(--bg); }

/* ---------- Shared story bits ---------- */
.tag {
  display: inline-block; font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--rule-strong); padding: 3px 7px 2px; line-height: 1.3; color: var(--ink-2); background: transparent;
}
a.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag--sponsored { border-color: var(--accent); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.hl { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.005em; margin: 0; font-variation-settings: "opsz" 48; }
.hl a:hover { color: var(--accent); }
.hl--xl { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.04; font-weight: 500; }
.hl--lg { font-size: clamp(24px, 2.4vw, 30px); }
.hl--md { font-size: 21px; }
.hl--sm { font-size: 18.5px; line-height: 1.18; }
.dek { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; margin: 10px 0 0; }
.byline { font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.byline a:hover { color: var(--accent); }
.byline time { color: var(--muted); }
.credit { font-size: 10.5px; font-style: italic; color: var(--muted); margin: 6px 0 0; }

.media { position: relative; background: var(--tint); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.media:hover img { transform: scale(1.02); }
.media--sq { aspect-ratio: 1 / 1; }
.media--lead { aspect-ratio: 4 / 3; }
.media--wide { aspect-ratio: 16 / 10; }
.media--ph { display: grid; place-items: center; }
.media--ph span { font-family: var(--serif); font-size: 42px; font-weight: 700; color: rgba(219, 8, 8, .18); letter-spacing: .05em; }

/* ---------- Home: hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 2.05fr 1fr;
  gap: 0 28px;
  padding-top: 32px;
  align-items: start;
}
.hero__side { padding-top: 32px; }
.hero__side .hl { margin-top: 10px; }
.hero__lead { text-align: center; }
.hero__lead .hl { margin-top: 14px; }
.hero__lead .dek { max-width: 560px; margin-left: auto; margin-right: auto; }
.hero__lead .tags { justify-content: center; margin-top: 16px; }

/* ---------- Home: row of four ---------- */
.row4 {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 36px; padding-bottom: 32px;
}
.row4 > article { padding: 0 14px 4px; border-left: 1px solid var(--rule); }
.row4 > article:first-child { border-left-color: var(--rule); }
.row4 .hl { margin-top: 12px; }
.row4 .media { margin-bottom: 14px; }

.band { border-top: 1px solid var(--rule); }
.band--tint { background: var(--tint); border-top: 0; }

/* ---------- Home: feature ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: center;
  padding-block: 48px;
}
.feature__eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.feature .tags { margin-top: 16px; }
.feature .dek { font-size: 15px; }
.readmore { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.readmore:hover { color: var(--accent); }

/* ---------- Section blocks ---------- */
.block { padding-block: 40px 8px; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 12px; }
.block__title { font-family: var(--serif); font-size: 28px; font-weight: 600; margin: 0; }
.block__title a:hover { color: var(--accent); }
.block__more { font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.block__more:hover { color: var(--accent); }
.block .row4 { margin-top: 20px; }
.block .row4 > article:first-child { border-left: 0; padding-left: 0; }

/* ---------- Latest list ---------- */
.latest { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding-block: 40px 64px; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: grid; grid-template-columns: 1fr 180px; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.list > li:first-child { padding-top: 4px; }
.list .tags { margin-bottom: 8px; }
.list .media { aspect-ratio: 3 / 2; }
.list--plain > li { grid-template-columns: 1fr; }
.rail h2 { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; padding-top: 12px; border-top: 2px solid var(--ink); }
.rail ol { list-style: none; counter-reset: n; margin: 0; padding: 0; }
.rail ol li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.rail ol li::before { content: counter(n); font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--accent); font-weight: 600; }

/* ---------- Listing pages (section, tag, author, search) ---------- */
.pagehead { text-align: center; padding-block: 44px 28px; border-bottom: 1px solid var(--rule); }
.pagehead__eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.pagehead h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.pagehead p { color: var(--ink-2); max-width: 620px; margin: 12px auto 0; }
.listing { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding-block: 32px 64px; }
.more { text-align: center; padding: 28px 0 0; }
.searchbox { display: flex; max-width: 560px; margin: 20px auto 0; border: 1px solid var(--ink); background: var(--paper); }
.searchbox input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 0; background: transparent; }
.searchbox button { padding: 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--bg); }

/* ---------- Article ---------- */
.article__head { max-width: 860px; margin: 0 auto; text-align: center; padding-block: 40px 28px; }
.article__head .tags { justify-content: center; }
.article__head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.01em; margin: 18px 0 0; font-variation-settings: "opsz" 72; }
.article__dek { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.45; color: var(--ink-2); margin: 16px auto 0; max-width: 720px; }
.article__meta { font-size: 13px; color: var(--ink-2); margin-top: 20px; }
.article__meta a { font-weight: 600; }
.article__meta a:hover { color: var(--accent); }
.article__meta time { color: var(--muted); }
.article__figure { max-width: 1040px; margin: 0 auto; }
.article__figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.article__figure figcaption em { font-style: italic; }

.prose { max-width: 680px; margin: 0 auto; padding: 32px 0 16px; font-family: var(--serif); font-size: 20px; line-height: 1.62; color: #1d1d1d; font-variation-settings: "opsz" 16; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose > h2 + *, .prose > h3 + * { margin-top: .6em; }
.prose > h2 { font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 600; margin-top: 1.6em; }
.prose > h3 { font-family: var(--sans); font-size: 17px; line-height: 1.3; font-weight: 600; margin-top: 1.4em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--accent); font-style: italic; }
.prose > figure, .prose > .pullquote { margin-top: 1.6em; margin-bottom: 1.6em; }
.prose figcaption { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.prose code { font-size: .85em; background: var(--tint); padding: 1px 4px; }

.takeaways { font-family: var(--sans); background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: 18px 22px 20px; font-size: 15.5px; line-height: 1.5; }
.takeaways h2, .factbox h2 { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; color: var(--accent); }
.takeaways ul { margin: 0; padding-left: 1.1em; }
.factbox { font-family: var(--sans); background: var(--tint); padding: 18px 22px 20px; font-size: 15.5px; line-height: 1.55; }
.factbox h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0 0 8px; }
.factbox p { margin: 0; white-space: pre-line; }
.pullquote { padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-align: center; }
.pullquote p { font-family: var(--serif); font-size: 28px; line-height: 1.25; font-weight: 500; margin: 0; }
.pullquote cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.article__foot { max-width: 680px; margin: 0 auto; padding: 8px 0 40px; }
.article__foot .tags { margin-top: 12px; }
.sponsor-note { font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 20px; }
.related { border-top: 1px solid var(--rule); }
.related .block__head { margin-top: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: #e9e4dc; margin-top: 24px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 36px; }
.logo--footer img { width: 240px; }
.footer__tag { color: #b6b0a6; font-size: 14px; max-width: 340px; margin: 14px 0 0; }
.footer__h { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8f8a82; margin: 0 0 12px; }
.footer__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.footer__list li { padding: 4px 0; font-size: 14px; break-inside: avoid; }
.footer__list a:hover { color: #fff; text-decoration: underline; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #2f2f2f; padding-top: 18px; padding-bottom: 28px; font-size: 12.5px; color: #8f8a82; }
.footer__social { display: flex; gap: 16px; }
.footer__social a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero__lead { grid-column: 1 / -1; order: -1; }
  .hero__side { padding-top: 0; }
  .row4 { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .row4 > article:nth-child(odd) { border-left: 0; padding-left: 0; }
  .latest, .listing { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { order: -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hide-sm { display: none; }
  .masthead__bar { padding-top: 14px; }
  .logo img { width: 200px; }
  .masthead__bar { grid-template-columns: 40px 1fr 40px; }
  .masthead__left { display: contents; }
  .wx { grid-column: 1 / -1; grid-row: 1; flex-direction: row; justify-content: center; gap: 10px; border: 0; padding: 0 0 10px; margin-bottom: 10px; border-bottom: 1px solid var(--rule); }
  .sections { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 22px; padding-bottom: 10px; }
  .sections::-webkit-scrollbar { display: none; }
  .sections a { white-space: nowrap; }
  .hero { grid-template-columns: 1fr; }
  .hero__lead { text-align: left; }
  .hero__lead .dek { margin-left: 0; }
  .hero__lead .tags { justify-content: flex-start; }
  .hero__side { display: grid; grid-template-columns: 1fr 112px; gap: 14px; border-top: 1px solid var(--rule); padding-top: 16px; }
  .hero__side .media { grid-column: 2; grid-row: 1 / span 3; }
  .hero__side .credit { display: none; }
  .hero__side .hl { margin-top: 0; font-size: 19px; }
  .row4 { grid-template-columns: 1fr; row-gap: 0; }
  .row4 > article { border-left: 0; padding: 14px 0; border-top: 1px solid var(--rule); }
  .list > li { grid-template-columns: 1fr 104px; gap: 14px; }
  .prose { font-size: 18.5px; }
  .pullquote p { font-size: 23px; }
  .article__head { text-align: left; }
  .article__head .tags { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
