@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500&family=Nunito+Sans:wght@500;700&family=Playfair+Display:wght@400;700;800&display=swap');

:root {
  --fb-gold: #aa9843;
  --fb-text: #111111;
  --fb-muted: #5e5d5c;
  --fb-bg: #f2f2f2;
  --fb-white: #ffffff;
  --fb-black: #0c0c0c;
  --fb-line: #d0cfcf;
  --fb-serif: 'Playfair Display', Georgia, serif;
  --fb-sans: 'Libre Franklin', Arial, sans-serif;
  --fb-ui: 'Nunito Sans', Arial, sans-serif;
}

body.home-template {
  background: var(--fb-white);
  color: var(--fb-text);
}

body.home-template .c-page-flow {
  gap: 0;
}

body.home-template main {
  overflow: hidden;
}

/* Header */
.c-header {
  background: var(--fb-black);
  color: var(--fb-white);
}

.c-header .u-grid {
  max-width: none;
  padding-inline: 49px;
}

.c-header__inner {
  min-height: 140px;
}

.c-header__brand {
  display: flex;
  align-items: center;
}

.c-header__brand-group {
  display: flex;
  align-items: center;
  gap: 26px;
}

.c-header-logo__img {
  width: 198px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.c-header__brand-divider {
  width: 2px;
  height: 45px;
  background: rgba(255,255,255,.75);
}

.c-header__claim {
  max-width: 181px;
  margin: 0;
  font: 500 15px/1.05 var(--fb-ui);
  letter-spacing: -.75px;
  text-transform: uppercase;
  color: var(--fb-white);
}

/* The base theme wraps the nav/search/menu-button group in a rounded
   light "pill" chip (see header-page-surface() in _header.scss). On the
   permanently-black masthead that reads as an off-white box with barely
   legible white text, instead of the plain divided nav-on-black look this
   design calls for — so drop the chip and let it sit flat on the header. */
.c-header__controls {
  background: none;
  padding: 0;
  border-radius: 0;
}

.c-header__controls::before {
  content: none;
}

.c-navigation__list--main {
  gap: 0;
  align-items: center;
}

.c-navigation__list--main > li {
  display: flex;
  align-items: center;
}

.c-navigation__list--main > li:not(:last-child)::after {
  content: '';
  width: 1px;
  height: 14px;
  margin: 0 31px;
  background: rgba(255,255,255,.65);
}

.c-navigation__list--main .nav-current a,
.c-navigation__list--main a {
  color: var(--fb-white);
  font: 500 15px/1 var(--fb-ui);
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* Shared homepage typography */
.fb-eyebrow {
  margin: 0;
  color: var(--fb-gold);
  font: 700 15px/1 var(--fb-ui);
  letter-spacing: 3.3px;
  text-transform: uppercase;
}

.fb-title-xl,
.fb-title-lg,
.fb-title-md,
.fb-card__title,
.fb-topics__title,
.fb-newsletter__title {
  margin: 0;
  font-family: var(--fb-serif);
  color: var(--fb-text);
}

.fb-title-xl {
  font-size: 57px;
  font-weight: 700;
  line-height: 1.2456;
}

.fb-title-lg {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
}

.fb-title-md,
.fb-card__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.333;
}

.fb-copy {
  margin: 0;
  font: 400 18px/1.944 var(--fb-sans);
  letter-spacing: .18px;
  color: #181716;
}

.fb-rule {
  display: block;
  width: 55px;
  height: 2px;
  background: var(--fb-gold);
}

.fb-button {
  display: inline-flex;
  min-width: 241px;
  min-height: 52px;
  padding: 15px 27px 14px 36px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--fb-gold);
  color: var(--fb-gold);
  font: 500 15px/1 var(--fb-ui);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.fb-button::after {
  content: '→';
  font-size: 22px;
  line-height: 1;
}

.fb-button:hover {
  background: var(--fb-gold);
  color: var(--fb-white);
}

/* Hero */
.fb-hero {
  position: relative;
  min-height: 756px;
  background: #242424;
  overflow: hidden;
}

.fb-hero__media,
.fb-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fb-hero__media img {
  /* Teaser images (og_image) are uploaded at a fixed 1200x630 (1.91:1)
     ratio and must never be cropped — contain shows the full image,
     letterboxed against the section's own dark background (#242424 above)
     if a viewport's proportions don't exactly match 1.91:1. */
  object-fit: contain;
}

.fb-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 100%, rgba(0,0,0,.82), rgba(0,0,0,.25) 55%, rgba(0,0,0,.05));
}

.fb-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1244px, calc(100% - 96px));
  min-height: 756px;
  margin: 0 auto;
  padding: 103px 0 69px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  color: var(--fb-white);
}

.fb-hero__title {
  max-width: 760px;
  margin: 0 0 30px;
  font: 700 57px/1.2456 var(--fb-serif);
  color: var(--fb-white);
}

.fb-hero__rule {
  width: 156px;
  margin-bottom: 25px;
  background: rgba(255,255,255,.75);
}

.fb-hero__copy {
  max-width: 435px;
  margin-bottom: 31px;
  color: var(--fb-white);
}

/* Feature split */
.fb-split-section {
  padding: 100px 50px;
  background: var(--fb-bg);
}

.fb-split {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  max-width: 1341px;
  min-height: 834px;
  margin: 0 auto;
  background: var(--fb-white);
  overflow: hidden;
}

.fb-split--compact {
  grid-template-columns: 1fr 1.02fr;
  min-height: 628px;
}

.fb-split__content {
  padding: 100px 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  background: var(--fb-white);
}

.fb-split--compact .fb-split__content {
  padding-block: 70px;
}

.fb-split__media {
  min-height: 100%;
  background: #dedede;
}

.fb-split__media img {
  width: 100%;
  height: 100%;
  /* Same reasoning as .fb-hero__media img — teaser image is 1.91:1, shown
     in full against the media panel's own background (#dedede above). */
  object-fit: contain;
}

/* Article cards */
.fb-cards-section {
  padding: 68px 49px 72px;
  background: var(--fb-bg);
}

.fb-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 1342px;
  margin: 0 auto;
}

.fb-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--fb-white);
}

.fb-card__media {
  height: 344px;
  overflow: hidden;
  background: #ddd;
}

.fb-card__media img {
  width: 100%;
  height: 100%;
  /* Same reasoning as .fb-hero__media img — teaser image is 1.91:1, shown
     in full against the card media's own background (#ddd above). */
  object-fit: contain;
  transition: transform .35s ease;
}

.fb-card:hover .fb-card__media img {
  transform: scale(1.02);
}

.fb-card__body {
  min-height: 426px;
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.fb-card__copy {
  flex: 1;
}

.fb-card__button {
  width: 100%;
  min-width: 0;
}

/* Topics */
.fb-topics {
  padding: 100px 58px 135px;
  text-align: center;
  background: var(--fb-white);
}

.fb-topics__title {
  font-size: 57px;
  font-weight: 700;
  line-height: 71px;
}

.fb-topics__intro {
  max-width: 470px;
  margin: 37px auto 39px;
  font: 700 15px/1.35 var(--fb-ui);
  letter-spacing: 3.3px;
  text-transform: uppercase;
}

.fb-topics > .fb-rule {
  width: 71px;
  margin: 0 auto 47px;
  background: var(--fb-black);
}

.fb-topics__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  max-width: 1326px;
  margin: 0 auto;
}

.fb-topic {
  min-height: 173px;
  padding: 5px 24px 0;
  text-align: center;
}

.fb-topic + .fb-topic {
  border-left: 1px solid #d9d9d9;
}

.fb-topic__number {
  display: block;
  margin-bottom: 8px;
  color: var(--fb-gold);
  font: 700 15px/1 var(--fb-ui);
  letter-spacing: 3.3px;
}

.fb-topic__name {
  display: block;
  margin-bottom: 30px;
  color: #000;
  font: 800 24px/32px var(--fb-serif);
}

.fb-topic__rule {
  display: block;
  width: 30px;
  height: 1px;
  margin: 0 auto 19px;
  background: var(--fb-gold);
}

.fb-topic__description {
  margin: 0;
  font: 500 10px/17px var(--fb-ui);
  letter-spacing: .6px;
  text-transform: uppercase;
}

/* Newsletter */
.fb-newsletter {
  padding: 130px 28px 145px;
  background: var(--fb-white);
}

.fb-newsletter__inner {
  max-width: 883px;
  margin: 0 auto;
  padding: 75px 0;
  border-top: 1px solid var(--fb-line);
  border-bottom: 1px solid var(--fb-line);
  text-align: center;
}

.fb-newsletter__title {
  font-size: 57px;
  font-weight: 700;
  line-height: 71px;
}

.fb-newsletter .fb-rule {
  width: 69px;
  margin: 32px auto;
}

.fb-newsletter__copy {
  max-width: 478px;
  margin: 0 auto 54px;
}

.fb-newsletter .fb-button {
  min-width: 394px;
}

/* Footer */
.c-footer {
  padding: 145px 58px 100px;
  background: #161614;
  color: var(--fb-white);
}

.c-footer .u-grid {
  max-width: 1326px;
  padding: 0;
}

.c-footer__main {
  display: grid;
  grid-template-columns: 306px 1fr;
  gap: 75px;
  align-items: center;
  padding: 31px 0;
  border-top: 1px solid rgba(217,217,217,.5);
  border-bottom: 1px solid rgba(217,217,217,.5);
}

.c-footer__brand img {
  width: 306px;
  max-height: 113px;
  object-fit: contain;
  object-position: left center;
}

.c-footer__nav .c-footer__links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.c-footer__nav .c-footer__links li {
  min-width: 118px;
  padding: 29px 17px;
  text-align: center;
}

.c-footer__nav .c-footer__links li + li {
  border-left: 1px solid #5e5d5c;
}

.c-footer__nav a {
  color: var(--fb-white);
  font: 400 18px/40px var(--fb-serif);
  text-transform: uppercase;
}

.c-footer__details {
  max-width: 1326px;
  margin: 31px auto 0;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
}

.c-footer__about,
.c-footer__meta-links {
  margin: 0;
  color: var(--fb-white);
  font: 400 18px/35px var(--fb-sans);
  letter-spacing: .18px;
}

.c-footer__meta-links {
  grid-column: 3;
}

.c-footer__social {
  grid-column: 4;
  justify-content: flex-end;
}

.c-footer__bar {
  margin-top: 31px;
  background: transparent;
}

.c-footer__bar-inner {
  display: flex;
  justify-content: space-between;
  color: var(--fb-white);
  font: 400 14px/1.5 var(--fb-sans);
}

.c-footer__legal a,
.c-footer__copy a {
  color: inherit;
}

@media (max-width: 1023px) {
  .c-header .u-grid { padding-inline: 24px; }
  .c-header__inner { min-height: 76px; }
  .c-header__brand-group { gap: 14px; }
  .c-header-logo__img { width: 102px; height: 25px; }
  .c-header__brand-divider { width: 1px; height: 23px; }
  .c-header__claim { max-width: 99px; font-size: 9px; letter-spacing: -.35px; }
  .c-header__nav, .c-header__member-actions, .c-header .gh-search-icon { display: none; }
  .c-header__menu-button { display: inline-flex; color: var(--fb-white); }

  .fb-hero { min-height: 693px; }
  .fb-hero__inner {
    width: calc(100% - 52px);
    min-height: 693px;
    padding: 40px 0 411px;
    justify-content: flex-start;
  }
  .fb-hero__title { max-width: 367px; margin-top: 0; margin-bottom: 17px; font-size: 34px; line-height: 38px; }
  .fb-hero__rule { width: 66px; margin-bottom: 14px; }
  .fb-hero__copy { max-width: 260px; margin-bottom: 21px; font-size: 13px; line-height: 17px; }
  .fb-button { min-width: 180px; min-height: 34px; padding: 9px 15px; font-size: 11px; }

  .fb-split-section { padding: 44px 23px 21px; }
  .fb-split, .fb-split--compact { grid-template-columns: 1fr; min-height: 0; }
  .fb-split__media { order: -1; height: 246px; }
  .fb-split__content, .fb-split--compact .fb-split__content { padding: 24px 22px 32px; gap: 13px; }
  .fb-title-xl, .fb-title-lg { font-size: 32px; line-height: 33px; }
  .fb-split .fb-title-lg { font-size: 32px; line-height: 33px; }
  .fb-copy { font-size: 13px; line-height: 16px; }
  .fb-eyebrow { font-size: 11px; letter-spacing: 1.6px; }
  .fb-rule { width: 34px; height: 1px; }

  .fb-cards-section { padding: 18px; }
  .fb-cards { grid-template-columns: 1fr; gap: 14px; }
  .fb-card__media { height: 136px; }
  .fb-card__body { min-height: 151px; padding: 11px 14px 15px; gap: 8px; }
  .fb-card__title { font-size: 18px; line-height: 18px; }
  .fb-card__copy { font-size: 11px; line-height: 14px; }
  .fb-card__button { width: 140px; align-self: flex-start; }

  .fb-topics { padding: 39px 54px; }
  .fb-topics__title { font-size: 36px; line-height: 45px; }
  .fb-topics__intro { margin: 13px auto 24px; font-size: 10px; line-height: 15px; letter-spacing: 1px; }
  .fb-topics > .fb-rule { width: 59px; margin-bottom: 24px; }
  .fb-topics__grid { display: block; text-align: left; }
  .fb-topic { min-height: 123px; padding: 13px 0; display: grid; grid-template-columns: 47px 1px 1fr; grid-template-rows: auto auto auto; column-gap: 28px; text-align: left; }
  .fb-topic + .fb-topic { border-left: 0; border-top: 1px solid #d9d9d9; }
  .fb-topic__number { grid-row: 1 / 4; align-self: center; font-size: 15px; }
  .fb-topic::before { content: ''; grid-row: 1 / 4; width: 1px; height: 94px; align-self: center; background: #d9d9d9; }
  .fb-topic__name { margin: 0; font-size: 24px; line-height: 32px; }
  .fb-topic__rule { margin: 9px 0; }
  .fb-topic__description { max-width: 184px; font-size: 10px; line-height: 16px; }

  .fb-newsletter { padding: 52px 37px 36px; }
  .fb-newsletter__inner { padding: 48px 0; }
  .fb-newsletter__title { font-size: 40px; line-height: 48px; }
  .fb-newsletter .fb-rule { width: 40px; height: 1px; margin: 23px auto 20px; }
  .fb-newsletter__copy { margin-bottom: 35px; font-size: 13px; line-height: 23px; }
  .fb-newsletter .fb-button { min-width: 100%; min-height: 44px; font-size: 13px; }

  .c-footer { padding: 55px 24px 34px; }
  .c-footer__main { display: block; padding: 20px 0 30px; text-align: center; }
  .c-footer__brand img { width: 252px; height: auto; margin: 0 auto; }
  .c-footer__nav { display: none; }
  .c-footer__details { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 24px; text-align: center; }
  .c-footer__about, .c-footer__meta-links { display: none; }
  .c-footer__social { justify-content: center; }
  .c-footer__bar { margin-top: 28px; }
  .c-footer__bar-inner { flex-direction: column-reverse; align-items: center; gap: 8px; text-align: center; font-size: 12px; }
}

@media (max-width: 480px) {
  .fb-hero__media img { object-position: 58% center; }
  .fb-split-section--secondary { padding-top: 0; }
  .fb-title-lg { font-size: 31px; }
}
