@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/source-sans-3.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/source-sans-3-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --bg: #17232d;
  --panel: #202f3b;
  --deep: #101b24;
  --line: #34434d;
  --text: #edf1f3;
  --muted: #a4b0b9;
  --orange: #ff7845;

}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Source Sans 3', Arial, sans-serif; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
.masthead { background: var(--deep); border-bottom: 3px solid var(--orange); }
.header-inner, .desktop-topics, main, footer { width: calc(100% - 48px); max-width: 1200px; margin: auto; }
.header-inner { position: relative; min-height: 88px; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand search"; align-items: center; gap: 32px; padding: 15px 0; }
.brand { grid-area: brand; align-self: stretch; display: inline-flex; align-items: center; position: relative; padding-left: 56px; font-weight: 800; letter-spacing: -0.8px; font-size: 26px; line-height: 1; white-space: nowrap; }
.brand-wordmark { font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; letter-spacing: -.65px; }
.brand-of { font-size: .76em; font-weight: 400; letter-spacing: -.4px; }
.brand-copy { display: flex; flex-direction: column; gap: 7px; }
.brand-tagline { max-width: 220px; white-space: normal; color: var(--orange); font-size: 11px; font-weight: 400; font-style: italic; letter-spacing: .6px; line-height: 1.2; }
.header-tools { position: relative; grid-area: search; display: grid; grid-template-columns: 44px auto; grid-template-areas: "bell search" ". beans"; align-items: center; justify-content: end; gap: 7px 12px; min-width: 0; }
.header-search { grid-area: search; }
.beans-collected { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; line-height: 1.4; white-space: nowrap; }
.beans-collected svg, .beans-collected strong { color: var(--orange); }
.beans-collected strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.beans-collected.bean-earned { animation: bean-earned .6s ease-out; }
@keyframes bean-earned {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(1px); }
}
.brand-icon { display: block; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.brand-cup { transform-box: fill-box; transform-origin: 50% 85%; animation: cup-sway 8s ease-in-out infinite; }
@keyframes cup-sway {
  0%, 30%, 100% { transform: translateY(0) rotate(0deg); }
  10% { transform: translateY(-2px) rotate(-3deg); }
  20% { transform: translateY(-1px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-cup { animation: none; }
  .beans-collected.bean-earned { animation: bean-earned-highlight .8s ease-out; }
}
@keyframes bean-earned-highlight {
  0%, 100% { color: var(--muted); }
  40% { color: var(--orange); }
}
.desktop-topics, .mobile-menu nav { display: flex; flex-wrap: wrap; gap: 17px; font-size: 12px; font-weight: 700; }
.topics-bar { background: var(--deep); border-bottom: 1px solid var(--line); }
.desktop-topics { padding: 14px 0; }
.mobile-menu { display: none; }
.feed-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 27px 0; }
.feed-toolbar h1, .feed-toolbar h2 { font-size: 20px; margin: 0 0 7px; }
.homepage-feed { padding-top: 0; }
.compact-articles { padding: 20px 24px; margin-bottom: 20px; background: var(--panel); }
.new-articles { padding: 20px 24px; margin-bottom: 20px; background: var(--panel); border-top: 2px solid var(--orange); }
.new-articles h2 { margin: 0 0 14px; font-size: 20px; color: var(--orange); }
.new-articles ul, .compact-articles ul { list-style: none; margin: 0; padding: 0; }
.new-articles li + li, .compact-articles li + li { margin-top: 14px; }
.new-articles li a, .compact-articles li a { font-weight: 700; overflow-wrap: anywhere; }
.new-articles li a { color: var(--text); }
.compact-articles li a { color: var(--orange); }
.new-articles time, .compact-articles time { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.unread-bean[hidden] { display: none; }
.unread-bean { display: inline-block; width: 12px; height: 16px; margin-right: 8px; color: var(--orange); vertical-align: middle; }
.new-articles p, .compact-articles p { max-width: 78ch; margin: 3px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.new-articles details { margin-top: 14px; }
.new-articles summary { cursor: pointer; color: var(--orange); font-size: 14px; }
.new-articles details[open] > summary { display: none; }
.new-articles details ul { margin-top: 14px; }
.result-count { color: var(--muted); font-size: 12px; }
.search { display: flex; background: var(--deep); border: 1px solid var(--line); border-radius: 4px; }
.header-search { grid-area: search; justify-self: end; }
.search input { background: transparent; border: 0; color: var(--text); padding: 10px 13px; width: 210px; }
.search button { border: 0; background: transparent; color: var(--muted); font-size: 23px; padding: 3px 13px; cursor: pointer; }
.feed-story { background: var(--panel); margin-bottom: 20px; }
.story-heading { padding: 16px 24px 8px; }
.story-kicker { display: flex; justify-content: space-between; gap: 15px; color: var(--orange); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.story-kicker > span { color: var(--muted); font-size: 9px; letter-spacing: .5px; }
.feed-story h2 { font-size: 30px; line-height: 1.12; letter-spacing: -1px; margin: 10px 0 8px; }
.subtitle { font-size: 17px; color: var(--muted); line-height: 1.5; margin: 0; }
.story-image { display: block; position: relative; }
.story-image img { display: block; width: 100%; height: auto; max-height: 280px; object-fit: contain; background: var(--deep); }
.image-caption { position: absolute; bottom: 10px; right: 12px; font-size: 9px; background: #101b24b3; padding: 5px 8px; color: white; }
.story-copy { padding: 0 24px; }
.story-copy > p, .prose > p, .roundup-event p { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; color: #d8e0e6; }
.story-copy > p, .story-copy .roundup-event p { line-height: 1.65; margin: 12px 0; }
.story-copy > p, .prose > p, .roundup-event, .story-heading .subtitle { max-width: 78ch; }
.feed-story .story-tags { margin: 12px 0; }
.source { font-size: 12px; color: var(--orange); display: inline-block; margin: 8px 0; }
.story-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 19px 0; }
.tag { font-size: 10px; color: var(--muted); border: 1px solid #465561; padding: 6px 9px; border-radius: 3px; }
.story-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; font-size: 12px; }
.story-bottom > a:first-child { color: var(--orange); }
.story-bottom .author-link { margin-left: auto; }
.story-copy > :first-child { margin-top: 8px; }
.page-heading { padding: 35px 0; }
.page-heading h1 { font-size: 32px; margin: 0; }
.page-heading p { color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.category-grid > a { background: var(--panel); padding: 27px; display: flex; flex-direction: column; gap: 18px; border-top: 2px solid var(--orange); }
.category-grid span { font-size: 24px; font-weight: 700; }
.category-grid small { color: var(--muted); }
.article { background: var(--panel); padding: 30px; margin-bottom: 35px; }
.article h1 { font-size: 43px; line-height: 1.12; letter-spacing: -1px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12px; color: var(--muted); margin: 20px 0 25px; }
.author-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.author-avatar { display: block; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.article-author { display: flex; justify-content: flex-end; margin-top: 20px; font-size: 12px; }
.author-profile-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.author-profile-heading > div { flex: 1 1 240px; }
.profile-avatar { display: block; width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
.author-profile .prose { max-width: 78ch; }
.article-image img { width: 100%; height: auto; }
.article-video { margin: 0; }
.article-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: var(--deep); }
.article-video figcaption { line-height: 1.5; }
.feed-story .article-video figcaption { padding: 0 24px; }
.supporting-sources { display: flex; flex-direction: column; align-items: flex-start; }
.prose { margin-top: 25px; }
.prose > p, .prose .roundup-event p { font-size: 18px; }
.roundup-event { margin: 20px 0; }
.roundup-event h3 { font-size: 1.2em; line-height: 1.3; margin: 0 0 8px; overflow-wrap: anywhere; }
.pagination { display: flex; justify-content: space-between; gap: 20px; margin: 25px 0 40px; font-size: 13px; }
.pagination span { color: var(--muted); }
.empty { background: var(--panel); padding: 50px; font-size: 15px; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 25px 0; color: var(--muted); font-size: 12px; }
.header-status { display: contents; }
.header-status .beans-collected { grid-area: beans; justify-self: end; }
.notification-bell { grid-area: bell; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; color: var(--muted); border: 0; cursor: pointer; }
.notification-bell[hidden] { display: none; }
.notification-bell:hover { color: var(--text); }
html.newsletter-open { overflow: hidden; }
.newsletter-dialog { position: fixed; width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 32px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 12px; box-shadow: 0 24px 80px #0008; font: inherit; }
.newsletter-dialog::backdrop { background: #101b24bd; }
.newsletter-close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; padding: 0; background: transparent; color: var(--muted); border: 0; font-size: 28px; cursor: pointer; }
.newsletter-close:hover { color: var(--text); }
.newsletter-cup { display: block; margin: 0 auto 16px; }
.newsletter-dialog h2 { font-size: 29px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.4px; }
.newsletter-dialog h2, #newsletter-description { text-align: center; }
.newsletter-dialog p { color: var(--muted); line-height: 1.5; margin: 0 0 20px; }
.newsletter-form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.newsletter-form input[type=email] { display: block; width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--deep); color: var(--text); font: inherit; }
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form .ml-form-embedSubmit button { width: 100%; min-height: 48px; margin: 16px 0 12px; padding: 12px; border: 0; border-radius: 4px; background: var(--orange); color: var(--deep); font: inherit; font-weight: 700; cursor: pointer; }
.newsletter-form .ml-form-embedSubmit button:hover { background: #ff936a; }
.newsletter-form .loading { display: none; }
.newsletter-form small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.newsletter-form .newsletter-error { color: #ffb69a; font-size: 15px; margin: 0 0 12px; }
.newsletter-error:empty { display: none; }
.newsletter-form .ml-error input { border-color: #ffb69a; }
.newsletter-dialog [hidden] { display: none !important; }
@media (max-width: 600px) { .newsletter-dialog { padding: 24px; } }
input:focus, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (max-width: 920px) {
  .header-inner, .desktop-topics, main, footer { width: calc(100% - 40px); }
}
@media (width < 1200px) {
  main { width: 100%; max-width: none; }
  .feed-toolbar, .page-heading, main .site-intro, .pagination, .compact-articles { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 600px) {
  .header-inner, main, footer { margin-left: 0; margin-right: 0; width: 100%; }
  .header-inner, footer { padding-left: 16px; padding-right: 16px; }
  .feed-toolbar, .page-heading, main .site-intro, .pagination, .compact-articles { padding-left: 16px; padding-right: 16px; }
  .search input { min-width: 0; }
  .story-kicker { flex-wrap: wrap; gap: 6px; }
  .feed-story h2, .article h1, .subtitle, .category-grid span { overflow-wrap: anywhere; }
  .header-inner { min-height: 72px; grid-template-columns: minmax(0, 1fr) 44px 44px; grid-template-areas: "brand bell menu" "beans beans beans"; gap: 8px 6px; padding-top: 12px; padding-bottom: 12px; }
  .header-tools { display: contents; }
  .brand { align-items: center; padding-left: 41px; }
  .brand-copy { transform: translateY(4px); }
  .brand-icon { width: 32px; height: 32px; }
  .desktop-topics { width: calc(100% - 32px); padding: 4px 0; gap: 22px; }
  .desktop-topics > a { min-height: 44px; display: inline-flex; align-items: center; }
  .category-menu { display: none; }
  .mobile-menu { grid-area: menu; display: block; }
  .mobile-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 24px; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary:hover { color: var(--orange); }
  .mobile-menu .menu-close, .mobile-menu[open] .menu-open { display: none; }
  .mobile-menu[open] .menu-close { display: inline; }
  .mobile-menu-panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; padding: 12px 16px 8px; max-height: calc(100dvh - 72px); overflow-y: auto; background: var(--deep); border-bottom: 3px solid var(--orange); box-shadow: 0 10px 18px rgba(0, 0, 0, .25); }
  .mobile-search { width: 100%; max-width: 320px; }
  .mobile-search input { flex: 1; width: 100%; min-height: 40px; padding: 8px 10px; font-size: 16px; }
  .mobile-search button { min-width: 44px; }
  .mobile-menu nav { flex-direction: column; gap: 0; padding-top: 8px; }
  .mobile-menu nav a { display: block; padding: 14px 0; }
  .feed-toolbar { align-items: flex-start; flex-direction: column; gap: 15px; }
  .header-search { display: none; }
  .story-heading { padding: 16px 16px 8px; }
  .story-kicker { font-size: 9px; }
  .story-kicker > span { font-size: 8px; }
  .feed-story h2 { font-size: 28px; }
  .story-copy { padding: 0 16px; }
  .feed-story .article-video figcaption { padding: 0 16px; }
  .article { padding: 20px 16px; }
  .article h1 { font-size: 32px; }
  .category-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .brand { font-size: 20px; }
  .brand-tagline { font-size: 10px; letter-spacing: .2px; }
}

.site-intro { margin-top: 30px; padding: 26px 0; border-top: 1px solid var(--line); max-width: 740px; }
.site-intro .intro-topic { color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 12px; }
.site-intro h2 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; letter-spacing: -1px; margin: 0 0 18px; }
.site-intro p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 13px; }
.site-intro .intro-signature { color: var(--text); font-weight: 700; margin-bottom: 0; }

/* All six steps stay legible on the dark background; the number also conveys heat. */
.news-heat { text-transform: none; letter-spacing: normal; display: inline-flex; align-items: baseline; gap: .3em; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 400; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.story-kicker > .news-heat { font-size: 12px; letter-spacing: normal; }
.news-heat.heat-5 { color: #79baff; }
.news-heat.heat-6 { color: #64d3df; }
.news-heat.heat-7 { color: #b7d981; }
.news-heat.heat-8 { color: #f4d16f; }
.news-heat.heat-9 { color: #ffab70; }
.news-heat.heat-10 { color: #ff8585; }
.compact-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 3px; }
.compact-meta time { margin-top: 0; }

.flame-icon { flex: none; color: var(--orange); vertical-align: -.15em; }
.hottest-tab { display: inline-flex; align-items: center; gap: 5px; }
.hottest-tab .flame-icon { display: block; transform: translateY(-1px); }
.hottest-tab[aria-current="page"] { color: var(--orange); }
.feed-toolbar h1 .flame-icon { width: 22px; height: 22px; margin-right: 7px; }
.hottest-description { margin: 0 0 7px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.desktop-topics { align-items: center; }
.desktop-topics > a[aria-current="page"], .category-menu-panel a[aria-current="page"], .mobile-menu nav a[aria-current="page"] { color: var(--orange); }
.category-menu { position: relative; margin-left: auto; }
.category-menu > summary { cursor: pointer; padding: 4px 0; }
.category-menu-panel { position: absolute; top: 100%; right: 0; z-index: 10; display: flex; flex-direction: column; width: 230px; max-height: 60dvh; overflow-y: auto; padding: 8px 16px; background: var(--deep); border: 1px solid var(--line); box-shadow: 0 10px 18px rgba(0, 0, 0, .25); }
.category-menu-panel a { padding: 10px 0; }
