/* For:Human — CMS pages (News, News post, Projetos, Projeto), built by scripts/build-cms-pages.py.
   Structure of cohere.com/blog: title, one featured post, a 3-column grid; the Filtro pill
   (forhuman-filter.css) filters by tag. Cards reuse the Home's news card (.fhh-news-card) so the CMS pages
   read as the same site. */
.fhn {
  --fhn-blue: #0082ff;
  background: var(--fh-page);
  padding-top: 160px;
}
.fhn > section,
.fhn > article { padding-left: var(--fhh-gutter); padding-right: var(--fhh-gutter); }

/* ---------------------------------------------------------------- hero + chips */
.fhn-hero { padding-bottom: 48px; }
.fhn-eyebrow { margin-bottom: 16px !important; color: var(--fhh-muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.fhn-title { font-family: var(--font-display); font-size: clamp(56px, 7.5vw, 112px); line-height: 0.95; font-weight: 400; letter-spacing: -0.035em; }
.fhn-lead { max-width: 560px; margin-top: 20px !important; color: #3b3b45; font-size: 20px; line-height: 1.4; }
/* ---------------------------------------------------------------- featured */
.fhn-featured { padding-bottom: 72px; }
.fhn-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.fhn-feature-media { overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 10; background: var(--fhh-cream); }
.fhn-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fhn-feature:hover .fhn-feature-media img { transform: scale(1.03); }
.fhn-feature-body { display: flex; flex-direction: column; gap: 20px; }
.fhn-feature-top { display: flex; flex-direction: column; gap: 20px; }
.fhn-feature-title { font-size: clamp(32px, 3.33vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.fhn-feature-text { color: #3b3b45; font-size: 18px; line-height: 1.45; }

/* ---------------------------------------------------------------- grid */
.fhn-latest { padding-bottom: 120px; }
.fhn-section-head { margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--fhh-line); }
.fhn-h2 { font-size: clamp(26px, 2.22vw, 32px); line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }
.fhn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fhn-card .fhh-news-title { font-size: 22px; }
.fhn-card-text { color: #3b3b45; font-size: 16px; line-height: 1.45; }
.fhn-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--fhh-muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.fhn-empty { color: var(--fhh-muted); }

/* ================================================================ News index (angellist.com/blog)
   title + topic chips/search on a hairline, featured split with the author, dotted section labels,
   latest cards, dark launch band with the product window, a big quote, topics on dark, all articles. */
.fhn-index .fhn-hero { padding-bottom: 40px; }
.fhn-index .fhn-title { font-size: clamp(72px, 10vw, 152px); line-height: 0.9; letter-spacing: -0.045em; }
.fhn-index .fhn-lead { margin-top: 24px !important; font-size: 19px; }
.fhn-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fhn-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--fhh-gutter) 24px; border-bottom: 1px solid var(--fhh-line); }
.fhn-chips { display: flex; flex: 1; flex-wrap: wrap; gap: 6px; min-width: 0; }
.fhn-chip { display: inline-flex; align-items: flex-start; gap: 3px; padding: 8px 11px; border: 0; border-radius: 6px; background: rgba(10, 10, 10, 0.06); color: var(--fhh-ink); font: inherit; font-size: 13px; line-height: 1.2; cursor: pointer; }
.fhn-chip:hover { background: rgba(10, 10, 10, 0.11); }
.fhn-chip sup { color: var(--fhn-blue); font-size: 10px; line-height: 1; }
.fhn-chip.is-active { background: var(--fhh-ink); color: #ffffff; }
.fhn-chip.is-active sup { color: var(--fh-lime, #b9ff76); }
.fhn-search { display: flex; flex: none; align-items: center; gap: 8px; width: 190px; height: 40px; padding: 0 14px; border: 1px solid var(--fhh-line); border-radius: 99px; color: var(--fhh-muted); transition: border-color 0.2s ease, width 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.fhn-search:focus-within { width: 260px; border-color: var(--fhh-ink); color: var(--fhh-ink); }
.fhn-search svg { width: 18px; height: 18px; flex: none; }
.fhn-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fhh-ink); font: inherit; font-size: 15px; }
.fhn-search input::-webkit-search-cancel-button { cursor: pointer; }

.fhn-label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 32px !important; font-size: 15px; line-height: 1; }
.fhn-label i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.fhn-index .fhn-featured { padding-top: 48px; padding-bottom: 0; }
.fhn-index .fhn-feature { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 32px; align-items: stretch; padding-bottom: 56px; border-bottom: 1px solid var(--fhh-line); }
.fhn-index .fhn-feature-media { aspect-ratio: 16 / 9.5; }
.fhn-index .fhn-feature-body { justify-content: space-between; gap: 32px; }
.fhn-index .fhn-feature-title { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.04; letter-spacing: -0.035em; }
.fhn-index .fhn-feature:hover .fhn-feature-title { color: var(--fhn-blue); }
.fhn-by { display: flex; align-items: center; gap: 12px; }
.fhn-by-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fhh-ink); color: #ffffff; font-size: 13px; letter-spacing: 0.04em; }
.fhn-by > span:last-child { display: grid; gap: 2px; }
.fhn-by strong { font-size: 14px; font-weight: 500; }
.fhn-by small { color: var(--fhh-muted); font-size: 13px; }

.fhn-index .fhn-latest { padding-top: 56px; }

/* launch band */
.fhn-spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; padding-top: 96px !important; padding-bottom: 96px !important; background: var(--fh-night, #0a0a0a); color: #ffffff; }
.fhn-spot-text { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 48px; }
.fhn-spot-text > div { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.fhn-spot .fhh-tag { border-color: rgba(255, 255, 255, 0.3); color: #ffffff; }
.fhn-spot-title { max-width: 560px; font-size: clamp(34px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; transition: opacity 0.2s ease; }
.fhn-spot-title:hover { opacity: 0.75; }
.fhn-spot-lead { max-width: 460px; color: rgba(255, 255, 255, 0.64); font-size: 18px; line-height: 1.45; }
.fhn-spot .fhn-meta { color: rgba(255, 255, 255, 0.5); }
.fhn-spot-art { position: relative; overflow: hidden; border-radius: 12px; background: #16171b; aspect-ratio: 6 / 5; }

/* quote */
.fhn-quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); align-items: start; gap: 32px; padding-top: 120px !important; padding-bottom: 120px !important; }
.fhn-quote-text { margin: 0 0 56px; font-size: clamp(32px, 3.6vw, 56px); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.fhn-quote-link { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; max-width: 820px; padding-top: 24px; border-top: 1px solid var(--fhh-line); }
.fhn-quote-media { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 10; }
.fhn-quote-link > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fhn-quote-link strong { font-size: 22px; font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.fhn-quote-link:hover strong { color: var(--fhn-blue); }

/* topics: flat colour tiles, one typographic mark each */
.fhn-topics { padding-top: 96px !important; padding-bottom: 96px !important; background: var(--fh-night, #0a0a0a); color: #ffffff; }
.fhn-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fhn-topic { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-height: 280px; padding: 28px; border: 0; border-radius: 12px; background: var(--tile); color: var(--tile-ink); font: inherit; text-align: left; cursor: pointer; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.fhn-topic:hover { transform: translateY(-6px); }
.fhn-topic.is-0 { --tile: #0082ff; --tile-ink: #ffffff; }
.fhn-topic.is-1 { --tile: #516add; --tile-ink: #ffffff; }
.fhn-topic.is-2 { --tile: #cae3f3; --tile-ink: #0a0a0a; }
.fhn-topic.is-3 { --tile: #b9ff76; --tile-ink: #0a0a0a; }
.fhn-topic.is-4 { --tile: #f3f4f2; --tile-ink: #0a0a0a; }
.fhn-topic.is-5 { --tile: #24252b; --tile-ink: #ffffff; }
.fhn-topic-mark { font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
.fhn-topic-body { display: grid; gap: 8px; margin-top: auto; }
.fhn-topic-body strong { font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.fhn-topic-body small { font-size: 15px; line-height: 1.4; opacity: 0.72; }
.fhn-topic-foot { display: flex; align-items: center; justify-content: space-between; align-self: stretch; padding-top: 16px; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 22%, transparent); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.fhn-topic-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, currentColor 14%, transparent); transition: transform 0.3s ease; }
.fhn-topic-arrow svg { width: 18px; height: 18px; }
.fhn-topic:hover .fhn-topic-arrow { transform: translateX(4px); }

/* all articles + results mode */
.fhn-archive { padding-top: 120px; padding-bottom: 140px; }
.fhn-archive-head { display: flex; justify-content: space-between; align-items: baseline; }
.fhn-count { color: var(--fhh-muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.fhn-item { display: flex; }
.fhn-item > .fhn-post { flex: 1; }
.fhn-index:not(.is-filtering) .fhn-item.is-above,
.fhn-item.is-hidden { display: none; }
.fhn-index.is-filtering .fhn-ed { display: none; }
.fhn-index.is-filtering .fhn-archive { padding-top: 56px; }

/* article card: the site's notched card on paper, sky on hover (as the About program cards) */
.fhn-post { --fhn-card: #ffffff; color: #0a0a0a; }
.fhn-post .fhh-case-top { background: var(--fhn-card); transition: background-color 0.3s ease; }
.fhn-post .fhh-case-notch { fill: var(--fhn-card); transition: fill 0.3s ease; }
.fhn-post:hover { --fhn-card: #cae3f3; }
.fhn-post .fhh-case-media { display: block; aspect-ratio: 405 / 270; }
.fhn-post .fhh-news-tags { margin-top: 20px; }
.fhn-post .fhh-case-title { margin-top: 14px; padding-bottom: 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.fhn-post-text { display: block; margin-top: 12px; color: #3b3b45; font-size: 18px; line-height: 1.4; }
.fhn-post .fhn-meta { margin-top: 16px; padding-bottom: 24px; }

/* brand placeholder until the For:Human photography replaces it */
.fhn-ph { display: block; background: linear-gradient(135deg, #0082ff 0%, #516add 55%, #cae3f3 100%); }
.fhn-ph.is-tone-1 { background: linear-gradient(135deg, #0a0a0a 0%, #2443ad 100%); }
.fhn-ph.is-tone-2 { background: linear-gradient(135deg, #cae3f3 0%, #f8f8f8 100%); }
.fhn-ph.is-tone-3 { background: linear-gradient(135deg, #16270d 0%, #b9ff76 140%); }

/* ---------------------------------------------------------------- article (post + project) */
.fhn-article { padding-bottom: 96px; }
.fhn-article-head { max-width: 960px; padding-bottom: 48px; }
.fhn-back { display: inline-block; margin-bottom: 32px; color: var(--fhh-muted); font-size: 14px; }
.fhn-back:hover { color: var(--fhn-blue); }
.fhn-article-head .fhh-news-tags { margin: 0 0 20px; }
.fhn-article-title { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 64px); line-height: 1.03; font-weight: 400; letter-spacing: -0.03em; }
.fhn-article-lead { max-width: 720px; margin-top: 20px !important; color: #3b3b45; font-size: 22px; line-height: 1.4; }
.fhn-article-meta { display: flex; align-items: center; gap: 14px; margin-top: 28px !important; }
.fhn-author { padding-left: 14px; border-left: 1px solid var(--fhh-line); color: var(--fhh-muted); font-size: 14px; }
.fhn-article-cover { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 8; background: var(--fhh-cream); }
.fhn-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.fhn-article-body { max-width: 720px; margin: 72px auto 0; color: #1e1e24; font-size: 19px; line-height: 1.65; }
.fhn-article-body.is-flush { margin: 0; }
.fhn-article-body > * + * { margin-top: 1.1em !important; }
.fhn-article-body h2,
.fhn-article-body h3 { margin-top: 1.8em !important; font-size: 28px; line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }
.fhn-article-body ul,
.fhn-article-body ol { padding-left: 1.3em; }
.fhn-article-body ul { list-style: disc; }
.fhn-article-body ol { list-style: decimal; }
.fhn-article-body li + li { margin-top: 0.45em; }
.fhn-article-body li::marker { color: var(--fhn-blue); }
.fhn-article-body h3 { margin-top: 1.6em !important; font-size: 22px; }
.fhn-article-body strong { font-weight: 600; }
/* FAQ under the article (also published as FAQPage structured data) */
.fhn-faq { max-width: 720px; margin: 72px auto 0; }
.fhn-faq .fhn-h2 { margin-bottom: 16px; }
.fhn-faq-item { border-top: 1px solid var(--fhh-line); }
.fhn-faq-item:last-child { border-bottom: 1px solid var(--fhh-line); }
.fhn-faq-item summary { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-size: 19px; line-height: 1.35; cursor: pointer; list-style: none; }
.fhn-faq-item summary::-webkit-details-marker { display: none; }
.fhn-faq-item summary::after { content: "+"; flex: none; color: var(--fhn-blue); font-size: 22px; line-height: 1; transition: transform 0.25s ease; }
.fhn-faq-item[open] summary::after { transform: rotate(45deg); }
.fhn-faq-item p { padding: 0 0 22px; color: #3b3b45; font-size: 17px; line-height: 1.6; }
.fhn-article-body a { color: var(--fhn-blue); text-decoration: underline; text-underline-offset: 4px; }
.fhn-article-body img { border-radius: 8px; }
.fhn-pullquote { margin: 56px 0 !important; padding-left: 24px; border-left: 2px solid var(--fhn-blue); font-size: 28px; line-height: 1.25; }
.fhn-facts { display: flex; flex-wrap: wrap; gap: 24px 56px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--fhh-line); }
.fhn-fact-label { margin-bottom: 6px !important; color: var(--fhh-muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.fhn-fact-value { font-size: 18px; }
.fhn-blocks { max-width: 1120px; margin: 72px auto 0; }
.fhn-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding: 40px 0; border-top: 1px solid var(--fhh-line); }
.fhn-block-title { font-size: 28px; line-height: 1.15; font-weight: 400; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 991px) {
  .fhn-bar { flex-direction: column; align-items: stretch; }
  .fhn-search, .fhn-search:focus-within { width: 100%; }
  .fhn-index .fhn-feature,
  .fhn-spot,
  .fhn-quote { grid-template-columns: minmax(0, 1fr); }
  .fhn-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fhn-feature { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fhn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fhn-block { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 767px) {
  .fhn-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--fhh-gutter) * -1); padding: 0 var(--fhh-gutter); scrollbar-width: none; }
  .fhn-chips::-webkit-scrollbar { display: none; }
  .fhn-chip { flex: none; }
  .fhn-spot, .fhn-topics { padding-top: 64px !important; padding-bottom: 64px !important; }
  .fhn-quote { padding-top: 72px !important; padding-bottom: 72px !important; }
  .fhn-quote-link { grid-template-columns: 120px minmax(0, 1fr); }
  .fhn-topic-grid { grid-template-columns: minmax(0, 1fr); }
  .fhn-topic { min-height: 220px; }
  .fhn-archive { padding-top: 72px; }
  .fhn { padding-top: 132px; }
  .fhn-lead { font-size: 17px; }
  .fhn-grid { grid-template-columns: minmax(0, 1fr); }
  .fhn-article-lead { font-size: 18px; }
  .fhn-article-body { margin-top: 48px; font-size: 17px; }
}
