.public-poet-page {
  --line: #e4ded4;
  --paper: #fffdf8;
  --primary: #8b3f4a;
  --muted: #8a8278;
  --text: #302c27;
  min-width: 0;
  padding: 26px clamp(18px, 4vw, 54px) 60px;
}

.public-poet-page .poet-shell {
  display: grid;
  width: min(1120px, 100%);
  gap: 18px;
  margin: 0 auto;
}

.public-poet-page .poet-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgb(55 48 39 / 7%);
}

.public-poet-page .poet-cover {
  height: 210px;
  background: linear-gradient(125deg, #332f2b, #8b3f4a 65%, #d6b89b);
  background-position: center;
  background-size: cover;
}

.public-poet-page .poet-identity {
  position: relative;
  display: flex;
  min-height: 104px;
  align-items: flex-end;
  gap: 18px;
  padding: 0 24px 20px 154px;
}

.public-poet-page .poet-avatar {
  position: absolute;
  bottom: 20px;
  left: 24px;
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  overflow: hidden;
  border: 5px solid var(--paper);
  border-radius: 50%;
  background: #e8dfd5;
  box-shadow: 0 8px 24px rgb(35 30 25 / 16%);
  color: var(--primary);
  font: 700 2.3rem 'Source Serif 4', Georgia, serif;
}

.public-poet-page .poet-avatar-image,
.public-poet-page .poet-small-avatar-image,
.public-poet-page .poet-poem-cover-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: inherit;
  object-fit: cover;
}

.public-poet-page .poet-name { min-width: 0; flex: 1; }
.public-poet-page .poet-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.public-poet-page .poet-name h1 { margin: 0; color: #25221e; font: 700 clamp(1.7rem, 3vw, 2.4rem)/1.05 'Source Serif 4', Georgia, serif; }
.public-poet-page .poet-profession { margin-top: 5px; color: var(--muted); font-size: .76rem; }
.public-poet-page .poet-content { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 18px; align-items: start; }
.public-poet-page .poet-column { display: grid; min-width: 0; gap: 14px; }
.public-poet-page .poet-card { min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.public-poet-page .poet-card h2 { margin: 0 0 12px; color: #302c27; font: 700 1.04rem 'Source Serif 4', Georgia, serif; }
.public-poet-page .poet-copy { color: #544f48; font-size: .78rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.public-poet-page .poet-address { border-left: 3px solid var(--primary); color: #403a34; font: italic 1.02rem/1.65 'Source Serif 4', Georgia, serif; padding-left: 12px; }
.public-poet-page .poet-facts { display: grid; gap: 12px; }
.public-poet-page .poet-fact small { display: block; margin-bottom: 3px; color: #9a9288; font-size: .59rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.public-poet-page .poet-fact div { color: #4b4640; font-size: .75rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.public-poet-page .poet-friends,
.public-poet-page .poet-awards,
.public-poet-page .poet-poems,
.public-poet-page .poet-publications { display: grid; gap: 9px; }
.public-poet-page .poet-friend-link { display: flex; align-items: center; gap: 10px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.public-poet-page .poet-friend-link:hover { border-color: var(--primary); background: rgb(142 57 80 / 3.5%); }
.public-poet-page .poet-friend-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; background: #eee6dc; color: var(--primary); font: 700 .9rem 'Source Serif 4', Georgia, serif; }
.public-poet-page .poet-friend-copy { min-width: 0; }
.public-poet-page .poet-friend-copy strong,
.public-poet-page .poet-friend-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-poet-page .poet-friend-copy strong { color: #302c27; font-size: .72rem; }
.public-poet-page .poet-friend-copy small { margin-top: 2px; color: var(--muted); font-size: .62rem; }
.public-poet-page .poet-achievement-icons { display: inline-flex; align-items: center; gap: 5px; }
.public-poet-page .poet-achievement-badge { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid #d6c7b3; border-radius: 50%; background: #f5ecdc; color: #8b6336; font-size: .58rem; font-weight: 800; }
.public-poet-page .reader-count { display: inline-grid; min-width: 23px; height: 23px; place-items: center; padding: 0 6px; border-radius: 999px; background: #f1ece4; color: #756f66; font: 700 .68rem Manrope, sans-serif; }
.public-poet-page .share-action-btn { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: .7rem; text-decoration: none; white-space: nowrap; }
.public-poet-page .poet-reader-views { margin: -4px 0 12px; color: var(--muted); font-size: .68rem; }
.public-poet-page .poet-project { display: grid; gap: 7px; padding-top: 4px; }
.public-poet-page .poet-project + .poet-project { margin-top: 7px; padding-top: 14px; border-top: 1px solid #ebe5dc; }
.public-poet-page .poet-project-head { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 2px 2px; }
.public-poet-page .poet-project-title { min-width: 0; color: #514a43; font-size: .68rem; font-weight: 800; }
.public-poet-page .poet-project-count { margin-left: auto; color: #9a9288; font-size: .61rem; }
.public-poet-page .poet-poem { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px; border: 1px solid #e5dfd5; border-radius: 9px; background: #fffefa; color: inherit; text-decoration: none; }
.public-poet-page .poet-poem:hover { border-color: #b8ada0; }
.public-poet-page .poet-poem-cover { display: grid; width: 68px; height: 68px; flex: 0 0 auto; place-items: center; overflow: hidden; margin: 0; border-radius: 8px; background: linear-gradient(145deg, #f3eee6, #e7ded2); color: var(--primary); font: 700 1.45rem 'Source Serif 4', Georgia, serif; }
.public-poet-page .poet-poem-copy { min-width: 0; }
.public-poet-page .poet-poem strong { display: block; color: #312d28; font-size: .76rem; }
.public-poet-page .poet-poem-copy > span { display: block; margin-top: 3px; color: #948b81; font-size: .63rem; }
.public-poet-page .poet-poem-copy > .poet-poem-excerpt { display: -webkit-box; overflow: hidden; margin-top: 5px; color: #655e56; font: 500 .68rem/1.45 'Source Serif 4', Georgia, serif; white-space: pre-line; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.public-poet-page .poet-award { display: grid; grid-template-columns: 54px minmax(0, 1fr) 56px; align-items: center; gap: 10px; padding: 9px; border: 1px solid #e4ded4; border-radius: 9px; }
.public-poet-page .poet-award-date { color: #8a8177; font-size: .65rem; }
.public-poet-page .poet-award-title { color: #39342f; font-size: .74rem; font-weight: 750; }
.public-poet-page .poet-award-place { display: block; margin-top: 3px; color: #948b81; font-size: .63rem; }
.public-poet-page .poet-award img { width: 56px; height: 42px; object-fit: cover; border-radius: 5px; }
.public-poet-page .poet-publication { display: grid; gap: 4px; padding: 10px 11px; border: 1px solid #e4ded4; border-radius: 9px; background: #fffefa; }
.public-poet-page .poet-publication-head { display: flex; align-items: baseline; gap: 8px; }
.public-poet-page .poet-publication-title { min-width: 0; color: #39342f; font-size: .74rem; font-weight: 750; }
.public-poet-page .poet-publication-type { margin-left: auto; padding: 2px 6px; border-radius: 999px; background: #f0e9e3; color: var(--primary); font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.public-poet-page .poet-publication-meta { color: #8d847a; font-size: .63rem; }
.public-poet-page .muted { color: #8a8278; font-size: .75rem; }
html[data-theme="dark"] .public-poet-page .poet-hero,
html[data-theme="dark"] .public-poet-page .poet-card { border-color: #343640; background: #191b22; color: #f6eef1; }
html[data-theme="dark"] .public-poet-page .poet-name h1,
html[data-theme="dark"] .public-poet-page .poet-card h2,
html[data-theme="dark"] .public-poet-page .poet-poem strong,
html[data-theme="dark"] .public-poet-page .poet-friend-copy strong,
html[data-theme="dark"] .public-poet-page .poet-publication-title,
html[data-theme="dark"] .public-poet-page .poet-award-title { color: #f6eef1; }
html[data-theme="dark"] .public-poet-page .poet-poem,
html[data-theme="dark"] .public-poet-page .poet-publication,
html[data-theme="dark"] .public-poet-page .poet-friend-link,
html[data-theme="dark"] .public-poet-page .poet-award { border-color: #343640; background: #191b22; color: #f6eef1; }
html[data-theme="dark"] .public-poet-page .poet-copy,
html[data-theme="dark"] .public-poet-page .poet-fact div,
html[data-theme="dark"] .public-poet-page .poet-poem-copy > .poet-poem-excerpt { color: #b8bac3; }
html[data-theme="dark"] .public-poet-page .reader-count,
html[data-theme="dark"] .public-poet-page .poet-achievement-badge { border-color: #343640; background: #29252c; color: #e4a0b4; }
html[data-theme="dark"] .public-poet-page .share-action-btn { border-color: #343640; color: #f6eef1; }

@media (max-width: 760px) {
  .public-poet-page { padding: 16px 14px 40px; }
  .public-poet-page .poet-content { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .public-poet-page .poet-cover { height: 150px; }
  .public-poet-page .poet-identity { min-height: 96px; gap: 10px; padding: 0 13px 14px 104px; }
  .public-poet-page .poet-avatar { bottom: 14px; left: 13px; width: 76px; height: 76px; border-width: 4px; font-size: 1.7rem; }
  .public-poet-page .poet-name h1 { font-size: clamp(1.35rem, 6vw, 1.9rem); overflow-wrap: anywhere; }
  .public-poet-page .share-action-btn { padding: 7px 9px; font-size: .62rem; }
  .public-poet-page .poet-card { padding: 16px; }
}

@media (max-width: 420px) {
  .public-poet-page .poet-identity { display: grid; grid-template-columns: minmax(0, 1fr); padding-left: 100px; }
  .public-poet-page .share-action-btn { justify-self: start; }
}

/* Match the homepage's Georgia display face and sans-serif interface text. */
.public-poet-page { font-family: Manrope, system-ui, sans-serif; }
.public-poet-page :is(.poet-name h1, .poet-card h2, .poet-project-title, .poet-poem strong, .poet-award-title, .poet-publication-title) {
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: none;
}
.public-poet-page .poet-poem-copy > .poet-poem-excerpt,
.public-poet-page .poet-address { font-family: Georgia, "Times New Roman", serif; }
.public-poet-page :is(.poet-copy, .poet-fact div, .poet-friend-copy strong) { font-family: Manrope, system-ui, sans-serif; }
