/* The Pharma Index. Colors sampled directly from the logo. */
:root {
  --navy: #021024;
  --navy-2: #06213f;
  --blue: #0084fe;
  --orange: #ec580d;
  --paper: #f8f7f3;
  --ink: #021024;
  --muted: #55637a;
  --rule: #d9d7cf;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --read: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 2.6vw, 32px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--read); font-size: 18px; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.012em; font-optical-sizing: none; font-variation-settings: "opsz" 14; }
p { margin: 0; }
i { font-style: normal; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* header ---------------------------------------------------- */
.head { background: var(--navy); color: var(--paper); position: sticky; top: -31px; z-index: 20; }
.utility { display: flex; justify-content: space-between; padding: 7px var(--gutter); border-bottom: 1px solid rgba(250,248,242,.16); font: 500 11px/1.4 var(--ui); letter-spacing: .24em; text-transform: uppercase; }
.utility i { color: var(--orange); margin: 0 .7em; }
.utility div { display: flex; gap: 22px; }
.utility a:hover { color: var(--orange); }
.bar { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); padding: 15px var(--gutter); }
.brand { flex: none; }
.brand img { height: 34px; width: auto; }
.links { display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 1.9vw, 26px); font: 600 12.5px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.links a { padding: 7px 0; border-bottom: 2px solid transparent; }
.links a:hover, .links a.on { border-color: var(--orange); }
.menu { display: none; flex: none; width: 34px; height: 34px; padding: 7px 5px; background: none; border: 0; cursor: pointer; }
.menu span { display: block; height: 2px; background: var(--paper); margin-bottom: 6px; }
.menu span:last-child { margin-bottom: 0; }
.drawer { display: none; }

@media (max-width: 920px) {
  .links { display: none; }
  .menu { display: block; }
  .bar { padding: 12px var(--gutter); gap: 12px; }
  .brand img { height: 26px; }
  .drawer.open { display: block; padding: 6px var(--gutter) 22px; border-top: 1px solid rgba(250,248,242,.16); }
  .drawer a { display: block; padding: 8px 0; font: 700 28px/1.2 var(--display); font-variation-settings: "opsz" 14; }
  .drawer a:hover { color: var(--orange); }
  .utility div { display: none; }
  .utility { font-size: 10px; letter-spacing: .2em; }
}

/* shared type ----------------------------------------------- */
.label { font: 500 12px/1.4 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.label a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.label a:hover { color: var(--orange); }
.label i, .by i, .count i { color: var(--orange); margin: 0 .6em; }
.by { font: 500 12px/1.4 var(--ui); letter-spacing: .16em; text-transform: uppercase; }
h3 a:hover, h2 a:hover, .lead h1 a:hover { color: var(--blue); }

/* lead ------------------------------------------------------ */
.lead { background: var(--navy); color: var(--paper); }
.lead-img { display: block; }
.lead-img img { width: 100%; height: min(62vw, 72vh); object-fit: cover; }
.lead-text { padding: 26px var(--gutter) 34px; text-align: center; border-bottom: 4px solid var(--blue); }
.lead-text .label { margin-bottom: 12px; }
.lead h1 { font-size: clamp(32px, 4.7vw, 66px); line-height: 1.06; max-width: 22ch; margin: 0 auto 16px; font-weight: 800; }
.lead h1 a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* rows ------------------------------------------------------ */
.rows { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(16px, 3vw, 40px); padding: clamp(20px, 3vw, 38px) 0; border-bottom: 1px solid var(--rule); }
.thumb { display: block; overflow: hidden; background: var(--navy); }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.thumb:hover img { transform: scale(1.03); }
.row .label { margin-bottom: 12px; }
.row h3 { font-size: clamp(24px, 3.1vw, 40px); line-height: 1.1; margin-bottom: 10px; }
.row .dek { color: var(--muted); max-width: 62ch; margin-bottom: 14px; font-size: 17px; line-height: 1.45; }
.more { padding-top: 52px; padding-bottom: 40px; }
.more h2 { font-size: 32px; border-bottom: 3px solid var(--navy); padding-bottom: 10px; }
.more h2 b, .band-head b, .hero-title h1 b { color: var(--orange); }

@media (max-width: 620px) {
  .row { grid-template-columns: 1fr; }
  .row .dek { font-size: 16px; }
}

/* bands ----------------------------------------------------- */
.band { background: var(--navy); color: var(--paper); padding: 44px var(--gutter) 52px; margin-top: -1px; }
.band.blue { background: var(--blue); margin-top: 48px; }
.band.blue .dek { color: var(--navy); }
.band.blue h3 a:hover { color: var(--paper); }
.band.blue .band-head b { color: var(--navy); }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; max-width: 1256px; margin: 0 auto 26px; border-bottom: 1px solid rgba(250,248,242,.3); padding-bottom: 12px; }
.band-head h2 { font-size: clamp(38px, 5vw, 60px); line-height: 1; text-transform: uppercase; }
.band-head a { font: 600 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.band-head a:hover { text-decoration: underline; }
.notes, .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); max-width: 1256px; margin: 0 auto; }
.note h3 { font-size: 25px; line-height: 1.16; margin: 8px 0 10px; }
.note p:last-child { font-size: 16.5px; line-height: 1.45; opacity: .78; }
.stamp { font: 500 11px/1.4 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.tile h3 { font-size: 26px; line-height: 1.14; margin: 14px 0 8px; }
.tile .dek { font-size: 16.5px; line-height: 1.45; }
.play { position: relative; }
.play::after { content: ""; position: absolute; left: 16px; bottom: 16px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--paper); }
.page-tiles { padding: 40px var(--gutter) 64px; max-width: 1320px; }
.page-tiles .dek { color: var(--muted); }

@media (max-width: 820px) {
  .notes, .tiles { grid-template-columns: 1fr; }
  .note { border-top: 1px solid rgba(250,248,242,.2); padding-top: 18px; }
  .note:first-child { border-top: 0; padding-top: 0; }
}

/* recurring ------------------------------------------------- */
.series-strip { max-width: 1320px; margin: 0 auto; padding: 56px var(--gutter) 66px; }
.series-strip h2 { font: 600 12px/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; margin-bottom: 18px; }
.series-strip > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--navy); }
.series-strip a { padding: 18px 22px 18px 0; }
.series-strip a + a { border-left: 1px solid var(--rule); padding-left: 22px; }
.series-strip strong { display: block; font: 700 25px/1.14 var(--display); font-variation-settings: "opsz" 14; margin-bottom: 6px; }
.series-strip a:hover strong { color: var(--blue); }
.series-strip span { color: var(--muted); font-size: 16.5px; }
@media (max-width: 820px) {
  .series-strip > div { grid-template-columns: 1fr; }
  .series-strip a + a { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
}

/* section title --------------------------------------------- */
.hero-title { background: var(--navy); color: var(--paper); padding: clamp(36px, 6vw, 74px) var(--gutter); border-bottom: 4px solid var(--blue); }
.hero-title > * { max-width: 1256px; margin-left: auto; margin-right: auto; }
.count { font: 500 13px/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; }
.hero-title h1 { font-size: clamp(64px, 15vw, 200px); line-height: .98; font-weight: 800; margin-top: 14px; margin-bottom: 18px; letter-spacing: -.02em; }
.hero-title h1.smaller { font-size: clamp(42px, 7.2vw, 96px); line-height: 1.04; }
.kicker { font: 600 13px/1.4 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.blurb { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.42; }
.blurb, .kicker { padding-right: max(0px, calc(100% - 760px)); }
.blurb a { text-decoration: underline; text-decoration-color: var(--orange); }

/* story ----------------------------------------------------- */
.story header { max-width: 980px; margin: 0 auto; padding: clamp(32px, 5vw, 62px) var(--gutter) clamp(24px, 3vw, 36px); text-align: center; }
.story header .label { margin-bottom: 16px; }
.story h1 { font-size: clamp(36px, 6vw, 76px); line-height: 1.05; font-weight: 800; margin-bottom: 18px; }
.story header .dek { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.34; color: var(--muted); margin: 0 auto 20px; max-width: 34em; }
.story.is-note h1 { font-size: clamp(32px, 4.4vw, 54px); }
.cover { margin: 0 auto; max-width: 1320px; padding: 0 var(--gutter); }
.cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy); }
.cover figcaption, .body figcaption { font: 400 13px/1.45 var(--ui); color: var(--muted); margin-top: 8px; }
.cover.soon { position: relative; }
.cover.soon span { position: absolute; left: calc(var(--gutter) + 16px); bottom: 16px; background: var(--navy); color: var(--paper); font: 600 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; padding: 10px 12px; }
.video { position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9; background: var(--navy); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.body { max-width: 690px; margin: 0 auto; padding: 0 var(--gutter); font-size: 20.5px; line-height: 1.62; }
.story .body { padding-top: clamp(30px, 4vw, 48px); }
.body > * + * { margin-top: 1.1em; }
.story .body > p:first-child::first-letter { font-family: var(--display); font-variation-settings: "opsz" 14; font-weight: 800; float: left; font-size: 4.25em; line-height: .84; padding: .07em .09em 0 0; color: var(--blue); }
.story.is-note .body > p:first-child::first-letter { all: unset; }
.story .body > p:last-child::after { content: ""; display: inline-block; width: 1.1em; height: .2em; background: var(--orange); margin-left: .35em; }
.body a { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; }
.body a:hover { color: var(--blue); }
.body h2 { font-size: 34px; line-height: 1.15; margin-top: 1.6em; }
.body h3 { font-size: 26px; line-height: 1.2; margin-top: 1.5em; }
.body h4 { font: 600 14px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; margin-top: 1.8em; }
.body blockquote { margin-left: 0; margin-right: 0; padding-left: 20px; border-left: 3px solid var(--blue); }
.body .pull { font: 700 clamp(28px, 3.7vw, 40px)/1.16 var(--display); font-variation-settings: "opsz" 14; text-align: center; padding: 24px 0; margin-top: 1.3em; margin-bottom: 1.3em; border-top: 3px solid var(--blue); border-bottom: 3px solid var(--blue); }
.body ul, .body ol { padding-left: 1.2em; }
.body li + li { margin-top: .4em; }
.body hr { border: 0; height: 4px; width: 42px; background: var(--orange); margin: 2.2em auto; }
.body code { font: .85em ui-monospace, Menlo, monospace; background: rgba(1,16,36,.07); padding: .1em .3em; }
.body figure { margin-left: 0; margin-right: 0; }

.sources { max-width: 690px; margin: 46px auto 0; padding: 0 var(--gutter); }
.sources h2 { font: 600 12px/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; border-top: 3px solid var(--navy); padding-top: 14px; }
.sources ol { padding-left: 1.2em; margin: 14px 0 0; font: 400 14px/1.5 var(--ui); color: var(--muted); }
.sources li + li { margin-top: 6px; }
.sources a { text-decoration: underline; }

/* notes page ------------------------------------------------ */
.dispatches { max-width: 780px; margin: 0 auto; padding: 18px var(--gutter) 60px; }
.dispatches article { padding: 34px 0; border-bottom: 1px solid var(--rule); }
.dispatches h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.12; margin: 8px 0 12px; }
.dispatches .body { padding: 0; margin: 0; max-width: none; font-size: 19px; }

/* about ----------------------------------------------------- */
.about { max-width: 780px; margin: 0 auto; padding: 44px var(--gutter) 70px; }
.about .intro { font-size: clamp(22px, 2.7vw, 30px); line-height: 1.32; }
.about h2 { font: 600 12px/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; margin-top: 52px; padding-bottom: 12px; border-bottom: 3px solid var(--navy); }
.rules, .section-list { list-style: none; margin: 0; padding: 0; }
.rules li, .section-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.rules h3 { font-size: 27px; line-height: 1.18; margin-bottom: 6px; }
.section-list strong { font: 700 25px/1.2 var(--display); font-variation-settings: "opsz" 14; }
.section-list a:hover strong { color: var(--blue); }
.section-list span { display: block; color: var(--muted); font-size: 17px; }

/* footer ---------------------------------------------------- */
.foot { background: var(--navy); color: var(--paper); padding: 48px var(--gutter) 28px; margin-top: 56px; }
.foot img { width: min(620px, 100%); margin: 0 auto 30px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font: 600 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.foot nav a:hover { color: var(--orange); }
.foot p { text-align: center; font: 400 12.5px/1.5 var(--ui); margin-top: 22px; opacity: .6; }
.band.blue + .series-strip + .foot, .series-strip + .foot { margin-top: 0; }

/* newsletter and account ------------------------------------ */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }
.news-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 5vw, 70px); align-items: center; background: var(--navy); color: var(--paper); padding: clamp(34px, 5vw, 56px) max(var(--gutter), calc((100% - 1256px) / 2)); margin-top: 48px; }
.news-band h2 { font-size: clamp(38px, 5vw, 60px); line-height: 1; margin-bottom: 10px; }
.news-band h2 b { color: var(--orange); }
.news-band p { font-size: 19px; line-height: 1.4; }
.signup-row { display: flex; gap: 0; }
.signup-row label { flex: 1; min-width: 0; }
.signup input[type=email] { width: 100%; height: 50px; padding: 0 14px; border: 2px solid var(--paper); border-right: 0; border-radius: 0; background: #fff; color: var(--navy); font: 400 16px var(--ui); }
.signup button, .account-actions button, .button-link { height: 50px; padding: 0 20px; border: 2px solid var(--orange); border-radius: 0; background: var(--orange); color: var(--navy); font: 600 13px var(--ui); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; }
.signup button:hover { background: var(--paper); border-color: var(--paper); }
.signup button:disabled { opacity: .6; cursor: default; }
.signup .msg { min-height: 1.4em; margin-top: 8px; font: 500 14px/1.4 var(--ui); color: inherit; }
.signup .msg.err, .msg.err { color: #ff8a7a; }
.signup .fine { font: 400 12.5px/1.5 var(--ui); opacity: .72; }
.signup .fine a { text-decoration: underline; }
.band.blue + .news-band { margin-top: 0; }
.news-band + .more { padding-top: 40px; }
.form-page { max-width: 680px; margin: 0 auto; padding: 44px var(--gutter) 30px; }
.form-page .intro { font-size: clamp(21px, 2.5vw, 26px); line-height: 1.36; margin-bottom: 26px; }
.form-page .intro a, .legal a { text-decoration: underline; text-decoration-color: var(--blue); }
.form-page .signup input[type=email] { border-color: var(--navy); border-right: 0; }
.form-page .signup button:hover { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.form-page .msg { color: var(--navy); }
.form-page .msg.err { color: #b3261e; }
.tick { display: flex; align-items: center; gap: 9px; margin-top: 12px; font: 400 14.5px/1.4 var(--ui); }
.tick.big { font-size: 16px; }
.tick input { width: 18px; height: 18px; accent-color: var(--blue); }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.account-actions button, .button-link { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.account-actions .quiet { background: none; color: #b3261e; border-color: #b3261e; }
.legal h2 { font-size: 26px; margin: 28px 0 6px; }
@media (max-width: 760px) { .news-band { grid-template-columns: 1fr; } .signup button { padding: 0 14px; } }

.empty { padding: 60px var(--gutter); text-align: center; color: var(--muted); }
