:root {
  --bg: #f6f3ed;
  --paper: #fffdf9;
  --soft: #eeece3;
  --text: #292d29;
  --muted: #72756e;
  --line: #dedfd5;
  --accent: #813d50;
  --accent-soft: #f0e2e5;
  --button: #813d50;
  --good: #365449;
  --shadow: 0 8px 24px rgb(56 45 24 / 5%);
}

:root[data-theme="dark"] {
  --bg: #171815;
  --paper: #20211d;
  --soft: #292a24;
  --text: #f4f0e8;
  --muted: #b4b3a9;
  --line: #414139;
  --accent: #d6a2a8;
  --accent-soft: #392d2e;
  --button: #d6a2a8;
  --good: #9cb5a0;
  --shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

body { background: var(--bg); color: var(--text); font: 15px/1.55 system-ui, sans-serif; }
.shell { max-width: 1240px; padding-inline: 44px; }

#pf-public-header[data-variant="home"] {
  --pfh-bg: var(--paper);
  --pfh-ink: var(--text);
  --pfh-muted: var(--muted);
  --pfh-line: var(--line);
  --pfh-accent: var(--accent);
  padding-inline: max(20px, calc((100vw - 1240px) / 2 + 44px));
  box-shadow: none;
}

#pf-public-header[data-variant="home"] .pfh-search input {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

#pf-public-header[data-variant="home"] button,
#pf-public-header[data-variant="home"] .pfh-account { border-radius: 3px; }

.hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 1fr);
  gap: 48px;
  padding-block: 42px 36px;
}

.hero-featured {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
}

.featured-card {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.featured-card:first-child {
  grid-row: 1 / span 2;
  min-height: 300px;
  padding: 8px 26px 8px 0;
  border-right: 1px solid var(--line);
}

.featured-card:first-child h2 {
  margin-top: 30px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -1.2px;
}

.featured-card:first-child p { font-size: 15px; line-height: 1.75; }

.featured-card:not(:first-child) {
  min-height: 145px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.featured-card:not(:first-child) h2 { margin: 12px 0 5px; font-size: 22px; }
.featured-card footer { padding-top: 14px; }
.hero-cta { border-radius: 0; background: var(--button); box-shadow: none; }
.hero-cta .button { border-radius: 3px; }

.editor-ad {
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: color-mix(in srgb, var(--good) 9%, var(--paper));
  box-shadow: none;
}

.layout { grid-template-columns: minmax(0, 7fr) minmax(250px, 3fr); gap: 36px; }
.feed-tabs { gap: 22px; }
.feed-tabs button { padding-inline: 0; font-size: 13px; }
.feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feed > .ad-slot { grid-column: 1 / -1; }

.poem-card, .review-card, .side-card { border-radius: 3px; box-shadow: none; }
.poem-card { min-height: 240px; padding: 22px; }
#feedItems.compact .poem-card { min-height: 0; }
.poem-card h2 { margin-top: 18px; font-size: 27px; }
.poem-excerpt { font-size: 16px; line-height: 1.75; }
.side-card { padding: 20px; }
.side-card h3 { font-size: 20px; }
.ad-slot { border-radius: 3px; }
.footer { margin-top: 42px; padding-block: 24px; font-size: 12px; }

@media (max-width: 1000px) {
  .shell { padding-inline: 28px; }
  #pf-public-header[data-variant="home"] { padding-inline: 24px; }
  .hero { gap: 26px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .feed { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .shell { padding-inline: 22px; }
  .hero { gap: 18px; padding-block: 26px 20px; }
  .hero-featured {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 16px;
  }
  .featured-card:first-child {
    grid-row: 1 / span 2;
    min-height: 240px;
    padding-right: 16px;
  }
  .featured-card:first-child h2 { font-size: clamp(27px, 5vw, 38px); }
  .featured-card:not(:first-child) { min-height: 112px; padding-block: 10px; }
  .featured-card:not(:first-child) h2 { font-size: 19px; }
  .editor-ad { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
}

@media (max-width: 560px) {
  .shell { padding-inline: 18px; }
  #pf-public-header[data-variant="home"] { padding-inline: 12px; }
  .hero { padding-top: 20px; }
  .hero-featured { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .featured-card:first-child {
    grid-row: auto;
    min-height: 220px;
    padding: 4px 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .featured-card:first-child h2 { font-size: 34px; }
  .hero-cta { padding: 17px; }
  .poem-card { min-height: 0; padding: 19px; }
  .poem-card h2 { font-size: 24px; }
  .editor-ad { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* Match the supplied editorial homepage composition while keeping live content. */
main.shell { max-width: 1240px; padding-inline: 44px; }
.home-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 60px; align-items: center; padding-block: 44px 40px; min-height: 390px; }
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { margin: 0; color: var(--accent); font-size: 10px; letter-spacing: 2px; }
.hero-copy h1 { margin: 18px 0 20px; font: 400 clamp(46px, 4.6vw, 60px)/1.03 Georgia, serif; letter-spacing: -2px; }
.hero-copy h1 span, .hero-copy h1 em { display: block; }
.hero-copy h1 em { color: var(--accent); font-style: normal; }
.hero-copy .hero-lead { max-width: 500px; margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-actions .button { min-height: 42px; padding: 11px 19px; border-radius: 4px; font-size: 14px; }
.hero-actions .button.primary { background: var(--accent); border-color: var(--accent); color: #fffdf8; }
.hero-actions .button.light { background: transparent; border-color: var(--line); color: var(--text); }
.hero-note { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; }
.hero-sample { min-width: 0; padding: 23px 27px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 30px rgb(64 54 35 / 5%); transform: rotate(-1deg); }
.sample-top, .sample-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.sample-top { padding-bottom: 12px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: 1px; }
#featured.hero-featured { display: block; min-width: 0; margin: 0; }
#featured .featured-card { display: flex; min-height: 0; grid-row: auto; flex-direction: column; padding: 18px 0 5px; border: 0; border-radius: 0; border-right: 0; border-bottom: 0; background: transparent; box-shadow: none; }
#featured .featured-card:nth-child(n+2) { display: none !important; }
#featured .featured-card .badge { position: static !important; width: auto !important; margin: 0 0 8px; padding: 0 !important; transform: none !important; background: transparent !important; box-shadow: none !important; color: var(--accent) !important; text-align: left !important; font-size: 9px !important; letter-spacing: 1.3px !important; }
#featured .featured-card h2 { margin: 4px 0 10px; color: var(--text); font: 25px/1.2 Georgia, serif; letter-spacing: 0; }
#featured .featured-card p { margin: 0; color: var(--muted); font: 16px/1.8 Georgia, serif; white-space: pre-line; }
#featured .featured-card > .inline-image { display: none !important; }
#featured .featured-card footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 15px; color: var(--muted); font-size: 11px; }
#featured .featured-card footer a { display: inline-flex; align-items: center; gap: 8px; }
#featured .featured-card footer .avatar { width: 29px; height: 29px; }
.sample-rhythm { display: flex; align-items: end; gap: 7px; height: 31px; margin: 8px 0 15px; }
.sample-rhythm i { display: block; width: 13px; height: 9px; border-radius: 3px; background: #d9ddd3; }
.sample-rhythm i:nth-child(3n+2) { height: 25px; background: #9b5968; }
.sample-foot { padding-top: 12px; border-top: 1px solid var(--line); }
.editor-ad.featured-almanac { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 30px; min-height: 154px; margin: 0 0 34px; padding: 23px 30px; border: 0; border-block: 1px solid #cbd0c0; border-radius: 0; background: #e8ebe2; color: var(--text); box-shadow: none; }
.editor-ad.featured-almanac.has-cover { background: #e8ebe2; }
.almanac-cover { position: relative; display: flex; width: 76px; height: 106px; align-items: center; justify-content: center; overflow: hidden; border-left: 4px solid #243c30; background: var(--good); box-shadow: 4px 3px 0 rgb(38 58 48 / 12%); color: #e6dec3; }
.almanac-cover img { display: none; width: 100%; height: 100%; object-fit: cover; }
.featured-almanac.has-cover .almanac-cover img { display: block; }
.featured-almanac.has-cover .cover-placeholder { display: none; }
.cover-placeholder { font: 700 24px Georgia, serif; letter-spacing: -2px; }
.editor-ad.featured-almanac .copy { position: relative; min-width: 0; }
.editor-ad.featured-almanac .eyebrow { color: var(--good); font-size: 9px; letter-spacing: 1.4px; }
.editor-ad.featured-almanac h2 { margin: 9px 0; color: var(--text); font: 29px/1.2 Georgia, serif; }
.editor-ad.featured-almanac p { margin: 0; color: var(--muted); font-size: 12px; }
.almanac-link { display: flex; align-items: center; gap: 18px; color: var(--good); font-size: 12px; white-space: nowrap; }
.almanac-link span:last-child { font-size: 22px; }
.layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 42px; }
main.shell .feed-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 0; }
.feed-tabs { gap: 25px; min-height: 45px; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.feed-tabs button { padding: 0 0 14px; border-bottom-width: 2px; font-size: 12px; }
.feed-view-toggle { padding-bottom: 10px; border: 0; background: transparent; }
.feed-view-toggle button[aria-pressed="true"] { background: var(--paper); }
#feedItems.feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
#feedItems.compact { grid-template-columns: minmax(0, 1fr); gap: 0; }
#feedItems.feed > .ad-slot, #feedItems.feed > .state, #feedItems.feed > .empty { grid-column: 1 / -1; }
#feedItems:not(.compact) .poem-card { display: flex; min-width: 0; min-height: 255px; flex-direction: column; padding: 25px 0 22px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
#feedItems:not(.compact) .poem-card:hover { border-color: var(--accent); background: transparent; transform: none; }
#feedItems:not(.compact) .poem-card h2 { margin: 16px 0 12px; font-size: 28px; letter-spacing: -.5px; }
#feedItems:not(.compact) .poem-excerpt { margin: 0 0 18px; font: 17px/1.75 Georgia, serif; }
#feedItems:not(.compact) .poem-meta { margin-top: auto; padding-top: 4px; border: 0; font-size: 10px; }
.sidebar { gap: 0; }
.shell .sidebar .side-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.shell .sidebar .side-card h3 { margin: 0 0 24px; padding-bottom: 19px; border-bottom: 1px solid var(--line); font: 650 9px/1.4 system-ui, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; }
.shell .sidebar .author-row { margin: 0 0 23px; padding: 0; border: 0; }
.shell .sidebar .author-row .avatar { width: 33px; height: 33px; }
.shell .sidebar > a.side-card { margin-top: 15px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer { margin-top: 20px; padding-block: 25px; }
:root[data-theme="dark"] .hero-sample { background: var(--paper); border-color: var(--line); }
:root[data-theme="dark"] #featured .featured-card h2 { color: var(--text); }
:root[data-theme="dark"] #featured .featured-card p { color: var(--muted); }
:root[data-theme="dark"] .sample-rhythm i { background: #41483f; }
:root[data-theme="dark"] .sample-rhythm i:nth-child(3n+2) { background: #a26c79; }
:root[data-theme="dark"] .editor-ad.featured-almanac,
:root[data-theme="dark"] .editor-ad.featured-almanac.has-cover { background: #222821; border-color: #41493f; color: var(--text); }
:root[data-theme="dark"] .editor-ad.featured-almanac h2 { color: var(--text); }
:root[data-theme="dark"] .editor-ad.featured-almanac p { color: var(--muted); }
:root[data-theme="dark"] .almanac-cover { background: #1d3025; border-color: #15261d; }

/* Final alignment with the supplied Concept 2 HTML. */
#pf-site-notice.pf-site-notice-home-inline {
  position: relative;
  inset: auto;
  z-index: auto;
  width: auto;
  margin: 14px 0 0;
}
main.shell .home-hero {
  grid-template-columns: minmax(0, 780px) minmax(0, 1fr);
  align-items: center;
  gap: 50px;
  min-height: 392px;
  padding-block: 35px;
}
.hero-sample { display: none !important; }
.hero-copy h1 {
  margin: 13px 0 16px;
  font: 400 58px/1.1 Georgia, serif;
  letter-spacing: -1.5px;
}
.hero-copy h1 em { color: var(--accent); font-style: italic; }
.hero-copy .hero-lead { max-width: 500px; margin-bottom: 22px; font-size: 16px; line-height: 1.6; }
.hero-actions .button { border-radius: 3px; }
.hero-actions .button.primary { background: var(--accent); border-color: var(--accent); }
.hero-note { margin-top: 12px; font-size: 12px; }
.editor-ad.featured-almanac {
  min-height: 0;
  margin-bottom: 33px;
  padding: 20px 30px;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 30px;
  border: 0;
  border-block: 1px solid #cbd0c0;
  border-radius: 0;
  background: #e8ebe2;
  color: var(--text);
}
.editor-ad.featured-almanac.has-cover { background: #e8ebe2; }
.almanac-cover { width: 76px; height: 106px; }
.editor-ad.featured-almanac .eyebrow { color: var(--good) !important; }
.editor-ad.featured-almanac h2 { color: var(--text) !important; }
.editor-ad.featured-almanac p { color: #676e60 !important; }
.almanac-link { color: var(--good); border: 0; padding: 0; }
main.shell .layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 42px; }
#feedItems.feed { gap: 0 30px; }
#feedItems:not(.compact) .poem-card {
  min-height: 255px;
  padding: 25px 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#feedItems:not(.compact) .poem-card:hover {
  border-bottom-color: var(--accent);
  background: transparent;
  transform: none;
}
#feedItems:not(.compact) .poem-card h2 { margin: 16px 0 12px; font: 400 22px/1.25 Georgia, serif; }
#feedItems:not(.compact) .poem-excerpt { margin: 0 0 18px; font: 17px/1.75 Georgia, serif; }
#feedItems:not(.compact) .poem-meta { margin-top: auto; padding-top: 4px; border: 0; font-size: 10px; }
.sidebar { gap: 18px; }
.shell .sidebar .side-card { padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.shell .sidebar .side-card h3 {
  margin: 0 0 15px;
  padding: 0;
  border: 0;
  font: 600 18px/1.3 Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
}
.shell .sidebar .author-row { margin-bottom: 12px; }
.sidebar .ad-slot { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.sidebar .ad-slot img, .sidebar .ad-slot iframe, .sidebar .ad-slot video { max-width: 100%; }
:root[data-theme="dark"] .editor-ad.featured-almanac,
:root[data-theme="dark"] .editor-ad.featured-almanac.has-cover { background: #2d382d; border-color: #4b5945; }
:root[data-theme="dark"] .editor-ad.featured-almanac p { color: var(--muted) !important; }

@media (max-width: 1000px) {
  main.shell { max-width: 100%; padding-inline: 28px; }
  main.shell .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-hero { gap: 35px; }
  .hero-copy h1 { font-size: 52px; }
  .editor-ad.featured-almanac { gap: 20px; padding: 23px; }
  .editor-ad.featured-almanac h2 { font-size: 25px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #feedItems.feed { grid-template-columns: minmax(0, 1fr); }
  #feedItems.compact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  main.shell { padding-inline: 22px; }
  main.shell .layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .home-hero { min-height: 0; padding-block: 32px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .shell .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .shell .sidebar .side-card h3 { margin-bottom: 16px; }
  .editor-ad.featured-almanac { margin-bottom: 25px; }
}
@media (max-width: 650px) {
  main.shell { padding-inline: 20px; }
  main.shell .layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .home-hero { display: block; padding-block: 30px; }
  .hero-copy h1 { margin: 14px 0 17px; font-size: 44px; letter-spacing: -1.5px; }
  .hero-copy .hero-lead { font-size: 15px; }
  .hero-sample { margin-top: 29px; padding: 20px; transform: none; }
  .editor-ad.featured-almanac { grid-template-columns: 60px minmax(0, 1fr); gap: 18px; padding: 21px 16px; }
  .almanac-cover { width: 60px; height: 91px; }
  .editor-ad.featured-almanac h2 { font-size: 23px; }
  .editor-ad.featured-almanac p { font-size: 11px; }
  .almanac-link { grid-column: 2; justify-content: space-between; margin-top: -6px; }
  .shell .sidebar { grid-template-columns: minmax(0, 1fr); }
  #feedItems:not(.compact) .poem-card { min-height: 0; padding: 22px 0; }
  #feedItems:not(.compact) .poem-card h2 { font-size: 25px; }
}
@media (max-width: 360px) {
  main.shell { padding-inline: 16px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-actions .button { padding-inline: 14px; font-size: 13px; }
}
#pf-public-header[data-variant="home"] { padding-inline: max(20px, calc((100vw - 1200px) / 2 + 32px)); }
.editor-ad.featured-almanac:before { display: none; }
#featured .featured-card .badge { display: none !important; }

/* Match the supplied editorial reference: quiet book cover and a single author discovery list. */
#pf-public-header[data-variant="home"] { position: relative !important; top: auto !important; z-index: 20 !important; }
main.shell .editor-ad.featured-almanac.has-cover {
  background: #e8ebe2 !important;
  background-image: none !important;
  color: var(--text) !important;
  text-shadow: none !important;
}
:root[data-theme="dark"] main.shell .editor-ad.featured-almanac.has-cover { background: #2d382d !important; border-color: #4b5945 !important; }
main.shell .featured-almanac.has-cover .almanac-cover img { display: none !important; }
main.shell .featured-almanac .cover-placeholder,
main.shell .featured-almanac.has-cover .cover-placeholder {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  width: 100%; height: 100%; padding: 10px 9px;
  background: #263c31; color: #f2ead8; text-shadow: none !important;
}
.cover-brand { font: 700 6px/1.4 system-ui, sans-serif; letter-spacing: 1px; }
.cover-placeholder strong { font: 400 35px/1 Georgia, serif; }
.cover-placeholder i { font: italic 8px/1.3 Georgia, serif; }
main.shell .featured-almanac.has-cover .eyebrow,
main.shell .featured-almanac.has-cover h2,
main.shell .featured-almanac.has-cover p,
main.shell .featured-almanac.has-cover .almanac-link { color: inherit !important; text-shadow: none !important; }
main.shell .featured-almanac.has-cover p { color: #676e60 !important; }
main.shell .featured-almanac .copy { text-shadow: none !important; }
main.shell .featured-almanac .eyebrow { color: #656b60 !important; font-size: 10px; letter-spacing: .04em; }
main.shell .featured-almanac h2 { font: 400 27px/1.18 Georgia, serif; }
main.shell .featured-almanac .almanac-link { color: #384d3f !important; }
.authors-panel { min-width: 0; padding: 27px 28px 22px; }
.authors-panel h2 { margin: 0 0 26px; font: 400 29px/1.2 Georgia, serif; letter-spacing: -.02em; }
.authors-panel .popular-author-card { min-width: 0; padding: 14px 0 17px; border-top: 1px solid var(--line); }
.authors-panel .popular-author-card:first-child { padding-top: 0; border-top: 0; }
.authors-panel .popular-author-head { align-items: flex-start; gap: 12px; min-width: 0; }
.authors-panel .popular-author-head .avatar { flex: 0 0 52px; width: 52px; height: 52px; }
.authors-panel .popular-author-main { flex: 1 1 0; gap: 8px; min-width: 0; max-width: 190px; }
.authors-panel .popular-author-main strong { min-width: 0; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; font: 700 16px/1.25 system-ui, sans-serif; }
.authors-panel .popular-author-rank { margin-left: auto; padding-left: 4px; font-size: 12px; }
.authors-panel .popular-author-meta { flex-wrap: nowrap; gap: 5px 8px; font-size: 12px; line-height: 1.35; }
.authors-panel .popular-author-meta span { gap: 4px; }
.authors-panel .popular-author-meta svg { flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.authors-panel .popular-author-meta .popular-author-likes svg { fill: none; stroke: currentColor; }
.authors-panel .popular-author-bio { margin: 7px 0 0; white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.authors-panel .popular-author-poems { gap: 5px; padding-top: 15px; }
.authors-panel .popular-author-poems a { min-width: 0; overflow: visible; overflow-wrap: anywhere; white-space: normal; color: #384d3f; font: 600 16px/1.35 Georgia, serif; }
.authors-panel .state { padding: 14px 0; text-align: left; }
@media (min-width: 1001px) {
  main.shell .layout { grid-template-columns: minmax(0, 1fr) 288px; gap: 32px; }
}
@media (max-width: 1000px) {
  .authors-panel .popular-author-main strong { white-space: normal; overflow-wrap: anywhere; }
  .authors-panel .popular-author-meta { flex-wrap: wrap; }
}
@media (max-width: 650px) {
  .authors-panel { width: min(100%, 320px); padding: 27px 28px 22px 8px; }
}
@media (max-width: 760px) { #pf-public-header[data-variant="home"] { position: relative !important; } }
@import url('/public-components.css');

/* Live totals occupy the open column beside the homepage actions. */
body #pf-public-header[data-variant="home"] .pfh-mobile-toggle { display: none; }
body #pf-public-header[data-variant="home"] .pfh-mobile-panel,
body #pf-public-header[data-variant="home"] .pfh-mobile-panel[hidden] { display: contents; }
@media (max-width: 560px) {
  body #pf-public-header[data-variant="home"] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 10px 12px; }
  body #pf-public-header[data-variant="home"] .pfh-brand { grid-column: 1; grid-row: 1; min-width: 0; }
  body #pf-public-header[data-variant="home"] .pfh-brand img { width: 120px; max-width: 100%; }
  body #pf-public-header[data-variant="home"] .pfh-mobile-toggle { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--text); cursor: pointer; }
  body #pf-public-header[data-variant="home"] .pfh-mobile-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
  body #pf-public-header[data-variant="home"] .pfh-mobile-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  body #pf-public-header[data-variant="home"] .pfh-mobile-panel { grid-column: 1 / -1; grid-row: 2; display: grid; gap: 12px; padding: 14px 0 6px; }
  body #pf-public-header[data-variant="home"] .pfh-mobile-panel[hidden] { display: none; }
  body #pf-public-header[data-variant="home"] .pfh-search { grid-column: auto; grid-row: 1; order: 0; width: 100%; min-width: 0; max-width: none; margin: 0; }
  body #pf-public-header[data-variant="home"] .pfh-nav { grid-column: auto; grid-row: 2; order: 0; width: 100%; margin: 0; padding: 12px 0; border-block: 1px solid var(--line); overflow: visible; }
  body #pf-public-header[data-variant="home"] .pfh-actions { grid-column: auto; grid-row: 3; order: 0; display: flex; flex-wrap: wrap; width: 100%; margin: 0; gap: 8px; }
  body #pf-public-header[data-variant="home"] .pfh-account-menu #profileButton { display: block; max-width: calc(100vw - 126px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
main.shell .home-hero { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 44px; }
.home-stats { box-sizing: border-box; min-width: 0; width: 100%; padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 4px 4px 16px 16px; background: var(--paper); box-shadow: var(--shadow); }
.home-stats h2 { margin: 0 0 12px; color: var(--text); font: 400 20px/1.35 Georgia,serif; letter-spacing: -.02em; text-transform: none; }
.home-stats-list { display: grid; gap: 0; margin: 0; }
.home-stats-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 15px 0; }
.home-stats-list > div + div { border-top: 1px solid var(--line); }
.home-stats dt { color: var(--muted); font-size: 13px; }
.home-stats dd { min-width: 0; margin: 0; color: var(--accent); font: 400 40px/1.1 Georgia,serif; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.04em; overflow-wrap: anywhere; }
.home-stats[data-state="ready"] .home-stats-feedback { display: none; }
.home-stats[data-state="loading"] dd { color: var(--muted); }
.home-stats-feedback { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; min-height: 32px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.home-stats-feedback p { margin: 0; }
.home-stats-retry { min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.home-stats-retry:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 1000px) {
  main.shell .home-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-stats { padding: 22px; }
  .home-stats-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .home-stats-list > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 16px; }
  .home-stats-list > div:first-child { padding-left: 0; }
  .home-stats-list > div:last-child { padding-right: 0; }
  .home-stats-list > div + div { border-top: 0; border-left: 1px solid var(--line); }
  .home-stats dd { order: -1; font-size: 30px; }
}
@media (max-width: 650px) {
  .home-stats { margin-top: 24px; padding: 18px 14px; }
  .home-stats h2 { font-size: 18px; }
  .home-stats-list > div { padding-inline: 8px; }
  .home-stats dt { font-size: 12px; overflow-wrap: anywhere; }
  .home-stats dd { max-width: 100%; font-size: clamp(20px, 5vw, 28px); }
}


/* Georgia gives Cyrillic combining stress an advance on some platforms. Use
   the system serif with zero-width marks, also for stressed yo and offline. */
body:has(#pf-public-header[data-variant="home"]) :is(
#featured .featured-card h2,
#featured .featured-card p,
#feedItems .poem-card h2,
#feedItems .poem-excerpt,
.authors-panel .popular-author-poems a,
.authors-panel .popular-author-poem-excerpt) {
  font-family: 'Times New Roman', 'Source Serif 4', serif;
}

/* Keep the homepage header aligned with the shared tool-header composition. */
@media (min-width: 1161px) {
  body #pf-public-header[data-variant="home"] { min-height: 72px; flex-wrap: nowrap; gap: 0; padding-inline: max(24px, calc((100vw - 1344px) / 2)); }
  body #pf-public-header[data-variant="home"] .pfh-brand { flex: 0 0 168px; }
  body #pf-public-header[data-variant="home"] .pfh-brand img { width: 168px; max-width: 100%; height: 36px; }
  body #pf-public-header[data-variant="home"] .pfh-nav { order: 2; flex: 0 1 auto; gap: 4px; margin: 0 0 0 clamp(72px, 8.5vw, 132px); padding: 0; border: 0; overflow: visible; }
  body #pf-public-header[data-variant="home"] .pfh-nav a { padding: 11px 14px; border-radius: 9px; color: var(--pfh-muted); font-size: 14px; font-weight: 650; }
  body #pf-public-header[data-variant="home"] .pfh-search { order: 3; flex: 0 0 40px; width: 40px; min-width: 40px; max-width: none; margin-left: auto; transition: flex-basis .18s ease, width .18s ease; }
  body #pf-public-header[data-variant="home"] .pfh-search:focus-within { flex-basis: min(270px, 24vw); width: min(270px, 24vw); }
  body #pf-public-header[data-variant="home"] .pfh-search input { box-sizing: border-box; width: 100%; height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: transparent; caret-color: transparent; cursor: pointer; }
  body #pf-public-header[data-variant="home"] .pfh-search input::placeholder { color: transparent; }
  body #pf-public-header[data-variant="home"] .pfh-search:before { position: absolute; z-index: 1; top: 11px; left: 12px; width: 11px; height: 11px; border: 1.7px solid var(--pfh-muted); border-radius: 50%; content: ""; pointer-events: none; }
  body #pf-public-header[data-variant="home"] .pfh-search:after { position: absolute; z-index: 1; top: 23px; left: 24px; width: 6px; height: 1.7px; background: var(--pfh-muted); content: ""; transform: rotate(45deg); transform-origin: left center; pointer-events: none; }
  body #pf-public-header[data-variant="home"] .pfh-search:focus-within input { position: relative; z-index: 2; border-color: var(--pfh-line); background: var(--pfh-bg); color: var(--pfh-ink); caret-color: var(--pfh-ink); cursor: text; }
  body #pf-public-header[data-variant="home"] .pfh-search:focus-within input::placeholder { color: var(--pfh-muted); }
  body #pf-public-header[data-variant="home"] .pfh-search:focus-within:before,
  body #pf-public-header[data-variant="home"] .pfh-search:focus-within:after { display: none; }
  body #pf-public-header[data-variant="home"] .pfh-actions { order: 4; flex-wrap: nowrap; gap: 12px; margin-left: 8px; }
  body #pf-public-header[data-variant="home"] .pfh-actions .pfh-theme { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; font-size: 19px; }
  body #pf-public-header[data-variant="home"] .pfh-account-menu #profileButton { min-height: 42px; padding: 0 16px 0 8px; border-radius: 999px; background: var(--pfh-bg); }
}

