:root {
  --bg: #171717;
  --bg-2: #262626;
  --text: #e5e5e5;
  --text-strong: #ffffff;
  --muted: #a3a3a3;
  --line: #404040;
  --brand: #fbc000;
  --accent: #ce347a;
  --accent-soft: #e0549a;
  --pill-bg: #d4d4d4;
  --pill-text: #171717;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f5f5f5;
  --text: #262626;
  --text-strong: #0a0a0a;
  --muted: #525252;
  --line: #d4d4d4;
  --brand: #171717;
  --accent: #b8246a;
  --accent-soft: #b8246a;
  --pill-bg: #262626;
  --pill-text: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/24px "Work Sans", system-ui, sans-serif;
  border-top: 4px solid var(--accent);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; transition: height .2s; }
.site-header.compact .wrap { height: 48px; }
.logo {
  font-weight: 900; font-style: italic; color: var(--brand);
  font-size: 40px; letter-spacing: -2px; line-height: 1; text-transform: uppercase;
  transform: skewX(-6deg); white-space: nowrap; transition: font-size .2s;
}
.site-header.compact .logo { font-size: 26px; }
.logo .q { font-size: .55em; vertical-align: top; margin-left: 1px; }
.nav { display: flex; gap: 12px; flex: 1; overflow: hidden; }
.nav a {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-strong); white-space: nowrap;
}
.nav a:hover { color: var(--brand); }
.icons { display: flex; gap: 14px; margin-left: auto; }
.icon-btn { background: none; border: 0; padding: 4px; color: var(--text-strong); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }

/* menu drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--bg-2);
  transform: translateX(100%); transition: transform .25s; z-index: 40; padding: 24px;
}
.drawer.open { transform: none; }
.drawer a { display: block; padding: 10px 0; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--line); }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; display: none; }
.scrim.open { display: block; }
.site-header .search-bar { display: none; height: auto; padding: 12px 16px; }
.site-header .search-bar.open { display: block; }
.search-bar input {
  width: 100%; padding: 10px 14px; font: inherit; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 4px;
}

/* home: top grid */
.top { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 32px; padding-top: 32px; }
.hero h2 { font-size: 48px; line-height: 48px; font-weight: 700; margin: 16px 0 0; color: var(--text); }
.hero:hover h2, .card:hover h3, .row-card:hover h2 { opacity: .7; }
.hero .dek { margin: 8px 0 0; font-size: 18px; }
.byline { margin: 12px 0 0; font-size: 14px; line-height: 16px; }
.byline b { font-weight: 700; }
.art { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: var(--bg-2); }
.art svg, .art img { width: 100%; height: 100%; object-fit: cover; }
.body figure { margin: 24px 0; }
.body figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); }
.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }
.sources a { color: var(--accent-soft); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.card h3 { font-size: 16px; line-height: 24px; font-weight: 700; margin: 8px 0 0; }
.card .who { color: var(--accent-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; line-height: 16px; margin-top: 4px; }

/* latest rail */
.rail-title { font-size: 24px; line-height: 32px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.4px; margin: 0 0 24px; color: var(--text-strong); }
.latest { list-style: none; margin: 0; padding: 0; }
.latest li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; position: relative; padding-bottom: 20px; }
.latest li::before {
  content: ""; position: absolute; left: 8px; top: 28px; bottom: 6px; width: 1px; background: var(--line);
}
.latest time { font-size: 12px; font-weight: 300; text-transform: uppercase; line-height: 24px; }
.latest h3 { font-size: 16px; line-height: 24px; font-weight: 700; margin: 0; }
.latest h3:hover { opacity: .7; }
.latest .who { color: var(--accent-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; line-height: 16px; margin-top: 2px; }

/* sections */
.section { padding-top: 48px; }
.section-title { display: inline-block; margin: 0 0 20px; font-size: 30px; line-height: 36px; font-weight: 700; color: var(--accent); }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.row-card { display: grid; grid-template-columns: 40% 1fr; gap: 16px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.row-card h2 { font-size: 20px; line-height: 26px; margin: 0; font-weight: 700; }

/* newsletter */
.signup { background: var(--bg-2); padding: 24px; margin-top: 48px; }
.signup h2 { font-size: 30px; line-height: 36px; margin: 0 0 8px; color: var(--text-strong); }
.signup form { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.signup input { flex: 1; min-width: 180px; padding: 10px 14px; font: inherit; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.btn { background: var(--brand); color: #171717; border: 0; font: 700 14px/1 "Work Sans", sans-serif; text-transform: uppercase; letter-spacing: 1px; padding: 12px 18px; cursor: pointer; }
:root[data-theme="light"] .btn { color: #fff; }

/* footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer nav a:hover { color: var(--brand); }

/* article */
.kicker { display: flex; align-items: center; gap: 12px; margin: 32px 0 16px; }
.kicker::before, .kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kicker span { border: 1px solid var(--line); padding: 0 12px; font-size: 12px; line-height: 28px; font-weight: 700; text-transform: uppercase; color: var(--accent-soft); }
.article-head h1 { font-size: 52px; line-height: 64px; font-weight: 700; margin: 0; color: var(--text); }
.article-head .dek { font-size: 18px; line-height: 28px; margin: 12px 0 0; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pills a { background: var(--pill-bg); color: var(--pill-text); font-size: 14px; line-height: 20px; border-radius: 9999px; padding: 2px 12px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; font-size: 14px; }
.meta .share { display: flex; gap: 8px; margin-left: auto; }
.share a { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.share svg { width: 14px; height: 14px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 32px; margin-top: 24px; }
figure { margin: 0; }
figcaption { font-size: 13px; line-height: 19.5px; margin-top: 8px; color: var(--muted); }
.body { font-size: 18px; line-height: 30px; }
.body p { margin: 24px 0; }
.body h2 { font-size: 28px; line-height: 36px; margin: 40px 0 0; }
.body a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.body blockquote { margin: 24px 0; padding-left: 20px; border-left: 4px solid var(--brand); font-style: italic; }
.body ul { padding-left: 22px; }
.aside-sticky { position: sticky; top: 72px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .top, .article-grid { grid-template-columns: 1fr; }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .hero h2 { font-size: 28px; line-height: 34px; }
  .article-head h1 { font-size: 32px; line-height: 40px; }
  .logo { font-size: 30px; }
}
@media (max-width: 520px) {
  .cards3 { grid-template-columns: 1fr; }
  .cards4 { grid-template-columns: 1fr; }
  .row-card { grid-template-columns: 1fr; }
  .meta .share { margin-left: 0; }
}
