/*
Theme Name: FB Editorial — Buzz of Stars
Description: Lightweight classic editorial theme adapted from our Astro publication structure.
Author: FB Sites
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fb-editorial
*/

:root {
  --paper: #fffdfa;
  --ink: #201c1d;
  --muted: #6c6062;
  --accent: #843d50;
  --rose: #f3e9e8;
  --line: #e4dcd8;
}
/* Original editorial system: fine rules, warm paper, serif-led hierarchy. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper, #fffdfa);
  color: var(--ink, #201c1d);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}
h1,
h2,
h3,
a {
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}
h1 > span {
  color: var(--accent);
}
.wrap {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  transform: translateY(-180%);
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: 14px;
}
.skip-link:focus {
  transform: none;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.topline a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.masthead {
  text-align: center;
  padding: 29px 0 28px;
}
.wordmark {
  display: inline-block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: bold;
  line-height: 1.04;
  letter-spacing: -0.065em;
}
.masthead-dot {
  color: var(--accent);
}
.masthead p {
  font-size: 11px;
  letter-spacing: 0.13em;
  margin-top: 13px;
  color: var(--muted);
}
.category-nav {
  border-block: 1px solid var(--line);
}
.nav-scroll {
  display: flex;
  align-items: center;
  gap: 36px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.nav-scroll a {
  min-height: 52px;
  display: flex;
  align-items: center;
  flex: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}
.nav-scroll a[aria-current='page'] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.nav-about {
  margin-left: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding: 47px 0 31px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 32px;
}
.eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.17em;
  color: var(--accent);
  line-height: 1.7;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
}
.page-heading > p {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  max-width: 290px;
}
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 70px;
}
.sidebar {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  min-width: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 3px solid var(--ink);
  padding-top: 17px;
}
.section-heading h2 {
  font-size: 27px;
  letter-spacing: -0.025em;
}
.section-heading > span {
  color: var(--accent);
  font-size: 23px;
}
.section-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 9px 0 18px;
}
.quiet-copy {
  font:
    17px/1.65 Georgia,
    serif;
  color: var(--muted);
  padding: 17px 0 28px;
}
.ranked-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ranked-list li {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.rank {
  font:
    italic 31px/1 Georgia,
    serif;
  color: var(--accent);
  opacity: 0.7;
  min-width: 37px;
}
.ranked-list a {
  display: block;
  font:
    19px/1.28 Georgia,
    serif;
  letter-spacing: -0.02em;
  min-height: 44px;
}
.ranked-list time {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.about-note {
  margin-top: 35px;
  padding: 27px 25px;
  background: var(--rose);
  border-top: 1px solid var(--accent);
}
.about-note h2 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 13px 0 17px;
}
.about-note > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-top: 14px;
}
.category-index {
  margin-top: 35px;
}
.category-index > .eyebrow {
  margin-bottom: 12px;
}
.category-index > a {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  font:
    18px Georgia,
    serif;
}
.category-index > a span {
  color: var(--accent);
}
.empty-state {
  padding: 65px 30px 80px 0;
  max-width: 620px;
}
.empty-state h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 18px 0;
}
.empty-state > p {
  font:
    19px/1.7 Georgia,
    serif;
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--ink);
  background: #f6f1ed;
  padding-top: 38px;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding-bottom: 33px;
}
.footer-wordmark {
  font:
    bold 33px Georgia,
    serif;
  letter-spacing: -0.05em;
}
.footer-main p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 10px;
}
.footer-main nav {
  display: flex;
  gap: 30px;
  align-items: start;
}
.footer-main nav a {
  font-size: 11px;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-block: 20px;
  font-size: 10px;
  color: var(--muted);
}
.info-page {
  max-width: 740px;
  padding: 65px 0 90px;
  margin-inline: auto;
}
.info-page h1 {
  margin: 17px 0 24px;
}
.info-deck {
  font:
    24px/1.5 Georgia,
    serif;
  color: var(--muted);
  margin-bottom: 40px;
}
.prose {
  font:
    20px/1.8 Georgia,
    'Times New Roman',
    serif;
  overflow-wrap: anywhere;
}
.prose p {
  margin: 0 0 1.35em;
}
.prose h2 {
  font-size: 31px;
  line-height: 1.2;
  margin: 1.6em 0 0.7em;
  letter-spacing: -0.025em;
}
.prose h3 {
  font-size: 25px;
  line-height: 1.3;
  margin: 1.6em 0 0.7em;
}
.prose a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.prose ul,
.prose ol {
  padding-left: 1.35em;
  margin-bottom: 1.5em;
}
.prose blockquote {
  margin: 30px 0;
  font-size: 27px;
  font-style: italic;
  color: var(--accent);
}
.prose pre {
  overflow-x: auto;
  font: 14px/1.6 monospace;
  padding: 20px;
  max-width: 100%;
}
.prose table {
  display: block;
  overflow-x: auto;
  font-size: 16px;
}
.prose td,
.prose th {
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
.story-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 25px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 28px;
}
.story-image {
  display: block;
  overflow: hidden;
  background: var(--rose);
  align-self: start;
}
.story-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center top;
  transition: filter 0.2s;
}
.story-image:hover img {
  filter: brightness(0.96);
}
.story-copy {
  align-self: center;
  min-width: 0;
}
.category-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: -12px;
}
.story-card h2 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.story-card h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.story-deck {
  font:
    16px/1.6 Georgia,
    serif;
  color: var(--muted);
  margin-top: 12px;
}
.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 16px;
}
.story-card--lead {
  display: block;
  padding-bottom: 31px;
  margin-bottom: 32px;
}
.story-card--lead .story-image img {
  aspect-ratio: 16/10;
}
.story-card--lead .story-copy {
  padding-top: 18px;
}
.story-card--lead h2 {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.story-card--lead .story-deck {
  font-size: 19px;
  line-height: 1.55;
  margin-top: 15px;
}
.story-card--lead .story-meta {
  margin-top: 20px;
  font-size: 10px;
}
.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--ink);
  padding-top: 17px;
  font-size: 11px;
}
.pagination > div:last-child {
  text-align: right;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
}
.pagination > span {
  color: var(--muted);
  font-size: 10px;
}
@media (max-width: 900px) {
  .story-card {
    display: block;
  }
  .story-card .story-image {
    margin-bottom: 20px;
  }
  .story-card h2 {
    font-size: 29px;
  }
  .story-card--lead h2 {
    font-size: 34px;
  }
  .story-deck {
    font-size: 17px;
  }
}
@media (max-width: 700px) {
  .story-card--lead h2 {
    font-size: 33px;
  }
  .story-card h2 {
    line-height: 1.12;
  }
  .story-card--lead .story-copy {
    padding-top: 0;
  }
  .story-card--lead .story-deck {
    font-size: 18px;
  }
  .story-meta {
    font-size: 10px;
  }
  .pagination {
    gap: 5px;
    font-size: 10px;
  }
  .story-image img {
    aspect-ratio: 16/10;
  }
  .story-card {
    padding-bottom: 26px;
    margin-bottom: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-image img {
    transition: none;
  }
}
@media (min-width: 1440px) {
  .wrap {
    width: 1200px;
  }
  .masthead {
    padding: 35px 0;
  }
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .editorial-grid {
    gap: 28px;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 24px;
  }
  .nav-scroll {
    gap: 28px;
  }
  .page-heading > p {
    max-width: 210px;
  }
  .about-note {
    padding: 22px 18px;
  }
  .ranked-list li {
    gap: 8px;
  }
  .rank {
    min-width: 29px;
    font-size: 26px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .topline {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
  .topline > span {
    max-width: 210px;
  }
  .masthead {
    padding: 25px 0;
  }
  .wordmark {
    font-size: clamp(40px, 11.5vw, 64px);
  }
  .masthead p {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .nav-scroll {
    gap: 26px;
    max-width: calc(100% - 36px);
  }
  .nav-scroll a {
    min-height: 48px;
    font-size: 10px;
  }
  .nav-about {
    margin-left: 0;
  }
  .page-heading {
    padding: 30px 0 24px;
    margin-bottom: 24px;
    display: block;
  }
  .page-heading h1 {
    font-size: 40px;
  }
  .page-heading > p {
    max-width: none;
    font-size: 15px;
    margin-top: 15px;
  }
  .page-heading > p br {
    display: none;
  }
  .editorial-grid {
    display: block;
    padding-bottom: 45px;
  }
  .sidebar {
    border-left: 0;
    padding-left: 0;
    margin-top: 40px;
  }
  .about-note {
    padding: 27px;
  }
  .empty-state {
    padding: 45px 0 50px;
  }
  .empty-state > p {
    font-size: 18px;
  }
  .footer-main {
    display: block;
    padding-bottom: 20px;
  }
  .footer-main nav {
    gap: 25px;
    margin-top: 15px;
  }
  .footer-bottom {
    font-size: 9px;
    gap: 20px;
    line-height: 1.6;
  }
  .footer-bottom > span:last-child {
    text-align: right;
  }
  .info-page {
    padding: 40px 0 60px;
  }
  .info-deck {
    font-size: 21px;
  }
  .prose {
    font-size: 19px;
    line-height: 1.75;
  }
  .prose h2 {
    font-size: 28px;
  }
  .prose blockquote {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  font-size: 10px;
  color: var(--muted);
  margin: 20px 0 24px;
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.article-header {
  padding-bottom: 27px;
}
.article-header h1 {
  font-size: clamp(2.7rem, 4.5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.043em;
  margin: 6px 0 23px;
}
.article-deck {
  font:
    23px/1.5 Georgia,
    serif;
  color: var(--muted);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
  line-height: 1.7;
  padding-top: 24px;
  color: var(--muted);
}
.article-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center top;
}
.article-image figcaption {
  font:
    11px/1.6 Arial,
    sans-serif;
  color: var(--muted);
  padding-top: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.article-body {
  max-width: 700px;
  margin: 36px auto 0;
}
.article-body > p:first-child:first-letter {
  font-size: 3.7em;
  line-height: 0.85;
  float: left;
  padding: 9px 9px 0 0;
  color: var(--accent);
}
.sources {
  max-width: 700px;
  margin: 35px auto 0;
  padding: 25px 0;
  border-block: 1px solid var(--line);
}
.sources h2 {
  font-size: 23px;
  line-height: 1.3;
}
.sources ul {
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
}
.sources a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.related {
  margin-top: 55px;
}
.related > .section-heading {
  padding-bottom: 25px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.related-grid .story-card {
  display: block;
  border-bottom: 0;
  padding: 0;
}
.related-grid .story-image {
  margin-bottom: 15px;
}
.related-grid .story-card h2 {
  font-size: 22px;
}
.related-grid .story-deck,
.related-grid .story-meta {
  display: none;
}
.related-grid .story-image img {
  aspect-ratio: 4/3;
}
.article {
  min-width: 0;
}
@media (max-width: 900px) {
  .article-header h1 {
    font-size: 42px;
  }
  .article-deck {
    font-size: 21px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .related-grid .story-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
  }
  .related-grid .story-image {
    margin-bottom: 0;
  }
  .related-grid .story-card h2 {
    font-size: 24px;
  }
}
@media (max-width: 700px) {
  .breadcrumb {
    margin: 9px 0 16px;
  }
  .article-header h1 {
    font-size: 39px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-top: 2px;
  }
  .article-deck {
    font-size: 21px;
    line-height: 1.5;
  }
  .article-meta {
    font-size: 10px;
    padding-top: 21px;
    gap: 7px;
  }
  .article-header {
    padding-bottom: 24px;
  }
  .article-body {
    margin-top: 28px;
  }
  .article-body > p:first-child:first-letter {
    font-size: 3.25em;
  }
  .article-image figcaption {
    font-size: 10px;
  }
  .related-grid {
    gap: 4px;
  }
  .related-grid .story-card {
    grid-template-columns: 115px 1fr;
    gap: 15px;
  }
  .related-grid .story-card h2 {
    font-size: 22px;
  }
  .related-grid .category-link {
    font-size: 9px;
  }
  .related {
    margin-top: 40px;
  }
  .article-grid .sidebar {
    margin-top: 25px;
  }
}

/* Native WordPress layout and accessible publishing affordances. */
.nav-scroll { list-style: none; padding: 0; margin-block: 0; }
.nav-scroll > li { flex: none; }
.nav-scroll .current-menu-item > a { color: var(--accent); border-bottom-color: var(--accent); }
.archive-description { color: var(--muted); font: 16px/1.6 Georgia, serif; max-width: 290px; }
.story-card--text { display: block; }
.story-card--text .story-copy { padding-top: 0; }
.navigation.pagination { display: block; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pagination .page-numbers, .page-links > * { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 10px; }
.pagination .current { background: var(--rose); color: var(--accent); }
.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; font: 14px Arial, sans-serif; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; position: absolute !important; white-space: nowrap; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; width: auto; height: auto; margin: 0; padding: 14px; background: var(--paper); z-index: 100; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; margin-top: 10px; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-main nav { flex-wrap: wrap; }
.prose img { height: auto; }
.prose figure { margin: 1.5em 0; }
.prose figcaption, .wp-caption-text { font: 12px/1.6 Arial, sans-serif; color: var(--muted); margin-top: 8px; }
.prose iframe, .prose video, .prose embed { max-width: 100%; }
.prose .wp-block-embed__wrapper { overflow-wrap: anywhere; }
.prose .wp-block-embed__wrapper iframe { max-width: 100%; }
.prose .alignleft { float: left; margin: 0 24px 20px 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0 0 20px 24px; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose::after { content: ''; display: block; clear: both; }
.prose input:not([type='checkbox']):not([type='radio']), .prose button { min-height: 44px; max-width: 100%; font: inherit; padding: 8px 12px; }
.prose input[type='submit'], .prose button { background: var(--accent); color: var(--paper); border: 0; cursor: pointer; }
.prose .wp-block-button__link { min-height: 44px; padding: 12px 20px; }
.ad-slot:empty { display: none; }
.ranked-list .trending-item { display: grid; grid-template-columns: 24px 64px minmax(0, 1fr); gap: 10px; align-items: start; }
.ranked-list .trending-item--text { grid-template-columns: 24px minmax(0, 1fr); }
.trending-item .rank { min-width: 0; font-size: 22px; padding-top: 3px; }
.ranked-list .trending-thumbnail { width: 64px; height: 64px; min-height: 0; overflow: hidden; }
.trending-thumbnail img { display: block; width: 64px; height: 64px; object-fit: cover; object-position: center top; }
.trending-item > div { min-width: 0; }
.trending-item > div > a { font-size: 17px; overflow-wrap: anywhere; }
.ad-slot { min-width: 0; max-width: 100%; margin: 28px 0; font: 12px/1.4 Arial, sans-serif; clear: both; }
.ad-slot__label { display: block; margin-bottom: 7px; text-align: center; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.ad-slot__creative { min-height: 280px; max-width: 100%; }
.ad-slot--before_related .ad-slot__creative { min-height: 0; }
.ad-slot__creative img, .ad-slot__creative iframe, .ad-slot__creative video { max-width: 100%; }
.ad-slot--sidebar_top { margin-top: 0; }
.ad-slot--sidebar_sticky { position: sticky; top: 24px; margin-bottom: 0; }
.ad-slot--preview .ad-slot__creative { display: grid; place-items: center; background: #ececec; color: #555; padding: 30px 12px; text-align: center; font: 13px/1.5 monospace; }
.fbe-ad-preview-notice { margin: 16px 0; padding: 14px; border: 1px dashed #999; background: #eee; color: #444; font: 12px/1.6 Arial, sans-serif; }
@media (max-width: 700px) {
  .ad-slot__creative { min-height: 250px; }
  .ad-slot--before_related .ad-slot__creative { min-height: 0; }
  .ad-slot--sidebar_top, .ad-slot--sidebar_sticky { display: none; }
}
.related-grid .story-card--text { display: block; }
@media (max-width: 700px) {
  .archive-description { max-width: none; margin-top: 15px; }
  .footer-main nav { gap: 10px 22px; }
  .related-grid .story-card--text { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
