/* Indeeed Monitor — Magazine Masthead */
:root {
  --indigo: #3730a3;
  --indigo-dark: #2e2789;
  --lavender: #818cf8;
  --lavender-light: #a5b4fc;
  --bg: #f5f3ff;
  --surface: #ffffff;
  --text: #1e1b4b;
  --muted: #4c4894;
  --border: #ddd6fe;
  --shadow: 0 6px 32px rgba(55, 48, 163, 0.09);
  --shadow-lg: 0 18px 56px rgba(55, 48, 163, 0.14);
  --serif: 'Merriweather', Georgia, serif;
  --sans: 'Nunito Sans', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --max: 1200px;
  --article: 680px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.72; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; transition: color .2s; }
a:hover { color: var(--lavender); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--indigo); color: #fff; padding: .5rem 1rem; z-index: 999; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* Masthead */
.masthead { background: var(--surface); border-bottom: 3px double var(--border); }
.masthead__top { background: var(--indigo); color: rgba(255,255,255,.85); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.masthead__top .container { display: flex; justify-content: space-between; align-items: center; padding-top: .45rem; padding-bottom: .45rem; gap: 1rem; flex-wrap: wrap; }
.masthead__brand { text-align: center; padding: 1.5rem 0 1rem; border-bottom: 1px solid var(--border); }
.logo { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; color: var(--indigo); letter-spacing: -.02em; line-height: 1; }
.logo:hover { color: var(--indigo-dark); }
.masthead__rule { width: 80px; height: 3px; background: var(--lavender); margin: .75rem auto 0; }
.nav-bar { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-bar .container { display: flex; align-items: center; justify-content: space-between; padding-top: .85rem; padding-bottom: .85rem; }
.nav { display: flex; gap: 2rem; }
.nav a { color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.nav a.active, .nav a:hover { color: var(--indigo); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: .3s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; padding: .8rem 1.5rem; font-size: .82rem; font-weight: 700; border-radius: var(--radius); transition: all .25s; letter-spacing: .04em; text-transform: uppercase; font-family: var(--sans); border: none; cursor: pointer; }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 4px 14px rgba(55,48,163,.28); }
.btn--primary:hover { background: var(--indigo-dark); color: #fff; transform: translateY(-2px); }
.btn--outline { border: 2px solid var(--indigo); color: var(--indigo); background: transparent; }
.btn--outline:hover { background: var(--indigo); color: #fff; }

/* Split Hero */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 72vh; border-bottom: 1px solid var(--border); }
.hero-split__text { display: flex; flex-direction: column; justify-content: center; padding: 4rem 3rem 4rem 0; padding-left: max(1.5rem, calc((100vw - var(--max)) / 2 + 1.5rem)); background: var(--bg); }
.hero-split__visual { position: relative; overflow: hidden; }
.hero-split__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-split__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 18%); }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--lavender); font-weight: 700; margin-bottom: 1rem; }
.hero-split h1 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1.12; color: var(--indigo); margin-bottom: 1.25rem; }
.hero-split__lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 2rem; max-width: 480px; }
.hero-split__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Ticker */
.ticker { background: var(--indigo); color: #fff; padding: .65rem 0; overflow: hidden; }
.ticker__inner { display: flex; gap: 3rem; animation: ticker 40s linear infinite; white-space: nowrap; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ticker__inner span { opacity: .9; }
.ticker__inner span::before { content: '◆'; margin-right: .75rem; color: var(--lavender); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Metrics */
.metrics { padding: 2.5rem 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.metric { padding: 1rem; border-right: 1px solid var(--border); }
.metric:last-child { border-right: none; }
.metric__num { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--indigo); line-height: 1; }
.metric__label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: .4rem; font-weight: 600; }

/* Section */
.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-head h2 { font-family: var(--serif); font-size: 2rem; color: var(--indigo); margin-bottom: .65rem; }
.section-head p { color: var(--muted); font-size: 1rem; }
.section-head::after { content: ''; display: block; width: 48px; height: 3px; background: var(--lavender); margin: 1.25rem auto 0; }

/* Magazine grid */
.mag-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.75rem; }
.mag-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.mag-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.mag-card--lead { grid-column: span 7; display: grid; grid-template-columns: 1.1fr 1fr; }
.mag-card--side { grid-column: span 5; }
.mag-card--half { grid-column: span 6; }
.mag-card--third { grid-column: span 4; }
.mag-card__img { display: block; overflow: hidden; aspect-ratio: 16/10; }
.mag-card--lead .mag-card__img { aspect-ratio: auto; min-height: 280px; }
.mag-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mag-card:hover .mag-card__img img { transform: scale(1.04); }
.mag-card__body { padding: 1.5rem 1.65rem; }
.mag-card__cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--lavender); font-weight: 700; }
.mag-card h3 { font-family: var(--serif); font-size: 1.25rem; margin: .45rem 0 .65rem; line-height: 1.3; }
.mag-card h3 a { color: var(--text); }
.mag-card h3 a:hover { color: var(--indigo); }
.mag-card p { font-size: .9rem; color: var(--muted); margin-bottom: .85rem; }
.mag-card__meta { font-size: .75rem; color: var(--muted); font-weight: 600; }

/* Topics band */
.topics-band { background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%); padding: 3.5rem 0; color: #fff; }
.topics-band h2 { font-family: var(--serif); font-size: 1.6rem; text-align: center; margin-bottom: 1.5rem; }
.topics__grid { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }
.topic-pill { padding: .55rem 1.15rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 100px; color: #fff; font-size: .8rem; font-weight: 600; transition: background .2s; }
.topic-pill:hover { background: rgba(255,255,255,.2); color: #fff; }

/* Article page */
.article-page { padding-bottom: 4rem; }
.article-mast { background: var(--surface); border-bottom: 1px solid var(--border); padding: 3rem 0 2.5rem; }
.article-mast .container { max-width: 900px; }
.breadcrumb { font-size: .78rem; color: var(--muted); margin-bottom: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 .35rem; }
.article-mast__cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--lavender); font-weight: 700; }
.article-mast h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4.5vw, 2.8rem); color: var(--indigo); line-height: 1.15; margin: .5rem 0 1rem; }
.article-mast__meta { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
.article-feature { margin: 0; max-height: 480px; overflow: hidden; }
.article-feature img { width: 100%; height: 100%; object-fit: cover; max-height: 480px; }
.article-layout { display: grid; grid-template-columns: 1fr 240px; gap: 3rem; padding: 3rem 0; align-items: start; }
.article__body { max-width: var(--article); }
.article__body .lead { font-size: 1.12rem; color: var(--text); line-height: 1.85; margin-bottom: 2rem; font-weight: 400; }
.article__body .lead::first-letter { float: left; font-family: var(--serif); font-size: 3.8rem; line-height: .85; font-weight: 700; color: var(--indigo); margin: .08rem .5rem 0 0; }
.article__body h2 { font-family: var(--serif); font-size: 1.45rem; color: var(--indigo); margin: 2.25rem 0 .85rem; padding-top: .25rem; }
.article__body p { margin-bottom: 1.1rem; color: #312e81; }
.article__body ul { margin: 0 0 1.2rem 1.4rem; color: #312e81; }
.article__body li { margin-bottom: .45rem; }
.article-figure { margin: 2rem 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.article-figure img { width: 100%; }
.article-figure figcaption { padding: .8rem 1.15rem; background: var(--surface); font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); font-style: italic; }

.pullquote { border-left: 4px solid var(--lavender); padding: 1.25rem 1.5rem; margin: 2rem 0; background: rgba(129,140,248,.08); border-radius: 0 var(--radius) var(--radius) 0; }
.pullquote p { font-family: var(--serif); font-size: 1.15rem; color: var(--indigo); margin: 0; line-height: 1.55; font-style: italic; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem; text-align: center; }
.stat-box__num { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--indigo); }
.stat-box__label { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: .25rem; font-weight: 600; }

.callout { background: linear-gradient(135deg, rgba(55,48,163,.06), rgba(129,140,248,.1)); border: 1px solid var(--border); padding: 1.4rem 1.6rem; border-radius: var(--radius); margin: 2rem 0; }
.callout strong { display: block; color: var(--indigo); margin-bottom: .45rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.callout p { margin: 0; font-size: .92rem; }

.related { position: sticky; top: 5.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; }
.related h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; font-weight: 700; }
.related__item { display: block; padding: .7rem 0; border-bottom: 1px solid var(--border); font-size: .86rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.related__item:last-child { border: none; }
.related__item:hover { color: var(--indigo); }

/* Static pages */
.page { padding: 4rem 0 5rem; }
.page h1 { font-family: var(--serif); font-size: 2.4rem; color: var(--indigo); margin-bottom: 1rem; }
.page h2 { font-family: var(--serif); font-size: 1.35rem; color: var(--indigo); margin: 2rem 0 .7rem; }
.page-lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 2rem; max-width: 640px; }
.page p { margin-bottom: 1rem; color: #312e81; max-width: 680px; }
.page ul { margin: 0 0 1rem 1.4rem; color: #312e81; }
.page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-email { font-size: 1.15rem; font-weight: 700; margin-bottom: 2rem; }
.contact-form { max-width: 520px; display: grid; gap: 1.15rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 700; color: var(--text); }
.contact-form input, .contact-form textarea { padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; background: var(--surface); transition: border-color .2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--lavender); }
.form-ok { color: var(--indigo); font-weight: 600; margin-top: .5rem; }

/* Footer */
.site-footer { background: var(--indigo-dark); color: rgba(255,255,255,.82); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand strong { font-family: var(--serif); font-size: 1.25rem; color: #fff; display: block; margin-bottom: .5rem; }
.footer-brand p { font-size: .86rem; opacity: .82; margin-top: .3rem; }
.footer-note { font-size: .76rem !important; opacity: .55 !important; margin-top: .85rem !important; }
.footer-col h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lavender-light); margin-bottom: .85rem; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,255,255,.75); font-size: .86rem; margin-bottom: .45rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.5rem; font-size: .76rem; opacity: .5; flex-wrap: wrap; gap: .5rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s, transform .65s; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .mag-card--lead, .mag-card--side, .mag-card--half, .mag-card--third { grid-column: span 12; }
  .mag-card--lead { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-split__text { padding: 3rem 1.5rem; padding-left: 1.5rem; }
  .hero-split__visual { min-height: 280px; }
  .hero-split__visual::after { background: linear-gradient(180deg, var(--bg) 0%, transparent 12%); }
  .article-layout { grid-template-columns: 1fr; }
  .related { position: static; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .metric { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-top, .page-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav { position: fixed; top: 0; right: -100%; width: 85%; max-width: 300px; height: 100vh; background: var(--surface); flex-direction: column; padding: 5rem 1.5rem 2rem; box-shadow: var(--shadow-lg); transition: right .3s; z-index: 300; }
  .nav.open { right: 0; }
  .article__body .lead::first-letter { font-size: 3rem; }
}
