@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=DM+Sans:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--tfp-paper);
  color: var(--tfp-ink);
  font-family: var(--tfp-font-ui);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.18;
  pointer-events: none;
  position: fixed;
  z-index: 2000;
}

html[data-theme="light"] body::before {
  mix-blend-mode: multiply;
  opacity: 0.55;
}

::selection {
  background: var(--tfp-accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wp-site-blocks,
.wp-site-blocks > main.wp-block-group,
.wp-block-post-content {
  margin-block-start: 0;
}

.wp-site-blocks > main.wp-block-group {
  background: var(--tfp-paper);
}

.wp-block-post-content > .wp-block-html {
  margin-block-start: 0;
}

main.wp-block-group:has(.tfp-page),
main.wp-block-group:has(.tfp-hero) {
  max-width: none !important;
  padding: 0 !important;
}

.wp-block-post-content:has(.tfp-page),
.wp-block-post-content:has(.tfp-hero) {
  max-width: none !important;
  width: 100% !important;
}

.wp-block-post-content > .wp-block-html:has(> .tfp-page),
.wp-block-post-content > .wp-block-html:has(> main.tfp-page),
.is-layout-constrained > .wp-block-html:has(> .tfp-page),
.is-layout-constrained > .wp-block-html:has(> main.tfp-page) {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw !important;
  width: 100vw !important;
}

.tfp-page {
  background: var(--tfp-paper);
  color: var(--tfp-ink);
  display: block;
  width: 100%;
}

.tfp-display,
.tfp-wordmark,
.tfp-foot-wordmark,
.tfp-card h3,
.tfp-section-title,
.tfp-hero-title,
.tfp-poem-title,
.tfp-poem-body,
.tfp-archive-row strong,
.tfp-theme-card h2 {
  font-family: var(--tfp-font-display);
  letter-spacing: -0.01em;
}

.tfp-eyebrow {
  color: var(--tfp-accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tfp-btn,
.tfp-tool-btn,
.tfp-browse a,
.tfp-newsletter button {
  align-items: center;
  background: var(--tfp-accent);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--tfp-font-ui);
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tfp-btn:hover,
.tfp-tool-btn:hover,
.tfp-newsletter button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.tfp-btn-small {
  font-size: 12.5px;
  padding: 8px 16px;
}

.tfp-site-head {
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in oklab, var(--tfp-paper) 86%, transparent);
  border-bottom: 1px solid var(--tfp-rule-faint);
  position: sticky;
  top: 0;
  z-index: 50;
}

.tfp-nav-wrap {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 auto;
  max-width: 1280px;
  padding: 14px 32px;
}

.tfp-wordmark {
  color: var(--tfp-ink);
  font-size: 22px;
  font-weight: 600;
  user-select: none;
  white-space: nowrap;
}

.tfp-wordmark span {
  color: var(--tfp-muted);
}

.tfp-wordmark em,
.tfp-foot-wordmark em {
  color: var(--tfp-accent);
  font-style: italic;
}

.tfp-nav {
  align-items: center;
  display: flex;
  gap: 4px;
}

.tfp-nav a {
  border-radius: 999px;
  color: var(--tfp-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  position: relative;
}

.tfp-nav a:hover,
.tfp-nav a.is-active {
  color: var(--tfp-ink);
}

.tfp-nav a.is-active {
  font-weight: 600;
}

.tfp-nav a.is-active::after {
  background: var(--tfp-accent);
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 4px;
  margin-left: 6px;
  vertical-align: middle;
  width: 4px;
}

.tfp-nav-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.tfp-icon-btn {
  align-items: center;
  background: transparent;
  border: 1px solid var(--tfp-rule);
  border-radius: 999px;
  color: var(--tfp-ink);
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

html[data-theme="dark"] .tfp-icon-sun,
html[data-theme="light"] .tfp-icon-moon {
  display: none;
}

.tfp-page {
  animation: tfpPageIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes tfpPageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tfp-hero {
  background: var(--tfp-paper);
  border-bottom: 1px solid var(--tfp-rule-faint);
  padding: 80px 32px 60px;
  text-align: center;
}

.tfp-inner {
  margin: 0 auto;
  max-width: 1280px;
}

.tfp-hero-title {
  color: var(--tfp-ink);
  font-size: clamp(72px, 12vw, 180px);
  font-weight: 700;
  line-height: 0.92;
  margin: 20px 0 0;
}

.tfp-hero-title em {
  color: var(--tfp-accent);
  font-style: italic;
}

.tfp-hero-copy {
  color: var(--tfp-muted);
  font-family: var(--tfp-font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-style: italic;
  line-height: 1.5;
  margin: 28px auto 0;
  max-width: 660px;
}

.tfp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

.tfp-featured-poem {
  align-items: center;
  border: 1px solid var(--tfp-rule);
  border-radius: 14px;
  display: grid;
  gap: 18px;
  grid-template-columns: 180px 1fr;
  margin: 42px auto 0;
  max-width: 620px;
  padding: 12px;
  text-align: left;
}

.tfp-featured-image {
  aspect-ratio: 16 / 10;
  background: var(--tfp-paper-2);
  border-radius: 10px;
  overflow: hidden;
}

.tfp-featured-image img,
.tfp-card-media img,
.tfp-theme-media img,
.tfp-archive-thumb img,
.tfp-poem-featured-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tfp-featured-poem small {
  color: var(--tfp-accent);
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tfp-featured-poem strong {
  color: var(--tfp-ink);
  display: block;
  font-family: var(--tfp-font-display);
  font-size: 28px;
  line-height: 1.05;
  margin-top: 6px;
}

.tfp-featured-poem em {
  color: var(--tfp-muted);
  display: block;
  font-family: var(--tfp-font-display);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 8px;
}

.tfp-btn-ghost {
  background: transparent;
  border: 1px solid var(--tfp-rule);
  color: var(--tfp-ink);
}

.tfp-browse {
  background: color-mix(in oklab, var(--tfp-paper) 94%, transparent);
  border-bottom: 1px solid var(--tfp-rule);
  position: sticky;
  top: 65px;
  z-index: 20;
}

.tfp-browse-inner {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 1280px;
  padding: 14px 32px;
}

.tfp-browse-tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 0 20px 0 0;
  scrollbar-color: var(--tfp-rule) transparent;
  scrollbar-width: thin;
  scroll-padding-inline: 32px;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
}

.tfp-browse-tabs::-webkit-scrollbar {
  height: 4px;
}

.tfp-browse-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.tfp-browse-tabs::-webkit-scrollbar-thumb {
  background: var(--tfp-rule);
  border-radius: 999px;
}

.tfp-browse a {
  background: transparent;
  border: 1px solid var(--tfp-rule);
  color: var(--tfp-muted);
  flex: none;
  padding: 7px 14px;
}

.tfp-browse a span {
  color: var(--tfp-accent);
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

.tfp-browse a:first-child {
  background: var(--tfp-ink);
  color: var(--tfp-paper);
}

.tfp-browse-more {
  align-self: center;
  color: var(--tfp-accent);
  flex: none;
  font-size: 13px;
  font-weight: 600;
  justify-self: end;
  white-space: nowrap;
}

.tfp-section {
  padding: 64px 32px 32px;
}

.tfp-section-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.tfp-section-title {
  color: var(--tfp-ink);
  font-size: clamp(34px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  margin: 8px 0 0;
}

.tfp-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tfp-card,
.tfp-theme-card {
  background: var(--tfp-paper-2);
  border: 1px solid var(--tfp-rule);
  border-radius: 14px;
  color: var(--tfp-ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 22px 22px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tfp-card:hover,
.tfp-theme-card:hover {
  border-color: var(--tfp-ink);
  box-shadow: var(--tfp-shadow-card);
  transform: translateY(-2px);
}

.tfp-card-media,
.tfp-theme-media {
  aspect-ratio: 4 / 3;
  background: var(--tfp-cream);
  border: 1px solid var(--tfp-rule-faint);
  border-radius: 10px;
  margin: -10px -10px 2px;
  overflow: hidden;
}

.tfp-card-media-empty {
  background:
    radial-gradient(circle at 24% 18%, var(--tfp-accent-soft), transparent 28%),
    linear-gradient(135deg, var(--tfp-paper-2), var(--tfp-cream));
}

.tfp-card-top,
.tfp-archive-meta {
  align-items: center;
  color: var(--tfp-muted);
  display: flex;
  font-size: 10.5px;
  font-weight: 600;
  justify-content: space-between;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tfp-card h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

.tfp-card p {
  color: var(--tfp-muted);
  font-family: var(--tfp-font-display);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
  margin: 0;
}

.tfp-card-foot {
  border-top: 1px solid var(--tfp-rule-faint);
  color: var(--tfp-muted);
  display: flex;
  font-size: 11.5px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.tfp-card-foot span:last-child {
  color: var(--tfp-accent);
  font-weight: 600;
}

.tfp-letter {
  background: var(--tfp-cream);
  padding: 88px 32px;
}

.tfp-letter-grid {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: 180px 1fr;
  margin: 0 auto;
  max-width: 920px;
}

.tfp-letter--landscape .tfp-letter-grid {
  gap: 64px;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1fr);
  max-width: 1180px;
}

.tfp-portrait-frame {
  margin: 0;
}

.tfp-portrait-img {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--tfp-rule);
  display: block;
  height: auto;
  object-fit: cover;
  object-position: 50% 32%;
  width: 100%;
}

.tfp-portrait-frame--landscape .tfp-portrait-img {
  aspect-ratio: 16 / 9;
  object-position: center;
}

.tfp-letter-copy {
  min-width: 0;
}

.tfp-letter--landscape .tfp-letter-copy {
  max-width: 620px;
}

.tfp-portrait-slot {
  align-items: center;
  aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(135deg, var(--tfp-paper-2), var(--tfp-paper-2) 8px, transparent 8px, transparent 16px);
  border: 1px solid var(--tfp-rule);
  color: var(--tfp-muted);
  display: flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.tfp-caption {
  color: var(--tfp-muted);
  font-family: var(--tfp-font-display);
  font-size: 12px;
  font-style: italic;
  margin-top: 12px;
}

.tfp-letter p {
  color: var(--tfp-ink-2);
  font-family: var(--tfp-font-display);
  font-size: 17px;
  line-height: 1.8;
}

.tfp-underlink {
  background-image: linear-gradient(transparent 55%, var(--tfp-accent-soft) 55%);
  padding: 0 2px;
}

.tfp-newsletter {
  background: var(--tfp-ink);
  color: var(--tfp-paper);
  isolation: isolate;
  overflow: hidden;
  padding: 60px 32px;
  position: relative;
}

.tfp-newsletter::before {
  background:
    linear-gradient(90deg, rgb(255 255 255 / 10%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 8%) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  opacity: 0.12;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.tfp-newsletter-grid {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: 1.4fr 1fr;
  margin: 0 auto;
  max-width: 1280px;
}

.tfp-newsletter .tfp-section-title,
.tfp-newsletter p {
  color: var(--tfp-paper);
}

.tfp-newsletter .tfp-section-title {
  font-size: clamp(34px, 4.8vw, 58px);
  max-width: 760px;
}

.tfp-newsletter .tfp-hero-copy {
  margin-left: 0;
}

.tfp-newsletter em {
  color: var(--tfp-accent);
}

.tfp-newsletter form,
.tfp-newsletter-form {
  align-items: center;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 20px;
  display: flex;
  gap: 8px;
  padding: 6px;
}

.tfp-newsletter-field {
  background: var(--tfp-paper);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 15px;
  color: var(--tfp-ink);
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
  padding: 8px 14px 9px;
}

.tfp-newsletter-field span {
  color: var(--tfp-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tfp-newsletter input {
  background: transparent;
  border: 0;
  color: var(--tfp-ink);
  font: inherit;
  min-width: 0;
  padding: 0;
  width: 100%;
}

.tfp-newsletter input::placeholder {
  color: var(--tfp-muted);
}

.tfp-newsletter input:focus {
  outline: 0;
}

.tfp-newsletter button {
  flex: 0 0 auto;
  min-height: 58px;
  text-decoration: none;
  white-space: nowrap;
}

.tfp-newsletter-note {
  color: color-mix(in oklab, var(--tfp-paper) 52%, transparent);
  font-size: 11px;
  margin: 10px 0 0;
}

.tfp-archive {
  padding: 80px 32px 24px;
}

.tfp-archive-list {
  border-top: 1px solid var(--tfp-rule);
  display: grid;
}

.tfp-archive-row {
  align-items: center;
  border-bottom: 1px solid var(--tfp-rule-faint);
  display: grid;
  gap: 18px;
  grid-template-columns: 56px 1fr 150px 110px 24px;
  padding: 18px 12px;
}

.tfp-archive-row:hover {
  background: var(--tfp-paper-2);
}

.tfp-archive-thumb {
  aspect-ratio: 1;
  background: var(--tfp-cream);
  border: 1px solid var(--tfp-rule-faint);
  border-radius: 8px;
  display: block;
  overflow: hidden;
}

.tfp-archive-thumb-empty {
  background:
    linear-gradient(135deg, transparent 0 48%, var(--tfp-rule) 48% 52%, transparent 52%),
    var(--tfp-paper-2);
}

.tfp-archive-row i {
  color: var(--tfp-muted-2);
  font-family: var(--tfp-font-display);
  font-size: 13px;
}

.tfp-archive-row strong {
  font-size: 24px;
  font-weight: 600;
}

.tfp-archive-row span {
  color: var(--tfp-muted);
  font-size: 12px;
}

.tfp-theme-hero,
.tfp-about-hero,
.tfp-archive-hero {
  padding: 80px 32px 48px;
  text-align: center;
}

.tfp-page-title {
  color: var(--tfp-ink);
  font-family: var(--tfp-font-display);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.05;
  margin: 10px auto 0;
  max-width: 920px;
}

.tfp-page-title em {
  color: var(--tfp-accent);
}

.tfp-theme-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1080px;
  padding: 0 32px 80px;
}

.tfp-theme-card h2 {
  font-size: 36px;
  line-height: 1.1;
  margin: 4px 0 0;
}

.tfp-theme-card p {
  color: var(--tfp-muted);
  font-family: var(--tfp-font-display);
  font-style: italic;
  line-height: 1.6;
}

.tfp-theme-card b {
  color: var(--tfp-accent);
  font-size: 13px;
  margin-top: auto;
}

.tfp-about-copy {
  font-family: var(--tfp-font-display);
  font-size: 19px;
  line-height: 1.85;
  margin: 0 auto;
  max-width: 720px;
  padding: 0 32px 80px;
}

.tfp-about-copy p:first-child::first-letter {
  color: var(--tfp-accent);
  float: left;
  font-size: 64px;
  line-height: 0.85;
  padding: 8px 10px 0 0;
}

.tfp-category-page {
  padding-bottom: 88px;
}

.tfp-category-hero {
  padding: 80px 32px 44px;
  text-align: center;
}

.tfp-category-hero .tfp-breadcrumb {
  margin-bottom: 24px;
}

.tfp-category-description {
  color: var(--tfp-muted);
  font-family: var(--tfp-font-display);
  font-size: 18px;
  font-style: italic;
  line-height: 1.65;
  margin: 20px auto 0;
  max-width: 680px;
}

.tfp-category-query {
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 32px;
}

.tfp-category-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.tfp-category-card {
  background: var(--tfp-paper-2);
  border: 1px solid var(--tfp-rule);
  border-radius: 14px;
  color: var(--tfp-ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 12px 12px 18px;
}

.tfp-category-card-media {
  margin: 0;
}

.tfp-category-card-media a,
.tfp-category-card-media img {
  display: block;
  height: 100%;
  width: 100%;
}

.tfp-category-card-media img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--tfp-rule-faint);
  border-radius: 10px;
  object-fit: cover;
}

.tfp-category-card .tfp-card-top {
  display: block;
  min-height: 16px;
}

.tfp-category-card .tfp-card-top a {
  color: var(--tfp-muted);
  text-decoration: none;
}

.tfp-category-card h2 {
  font-family: var(--tfp-font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

.tfp-category-card h2 a {
  color: var(--tfp-ink);
  text-decoration: none;
}

.tfp-category-card .wp-block-post-excerpt {
  color: var(--tfp-muted);
  font-family: var(--tfp-font-display);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
  margin: 0;
}

.tfp-category-card .wp-block-post-excerpt__more-link {
  border-top: 1px solid var(--tfp-rule-faint);
  color: var(--tfp-accent);
  display: block;
  font-family: var(--tfp-font-ui);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  margin-top: 16px;
  padding-top: 12px;
  text-decoration: none;
}

.tfp-category-pagination {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 44px 0 0;
}

.tfp-category-pagination .wp-block-query-pagination-next {
  align-items: center;
  background: var(--tfp-accent);
  border: 1px solid var(--tfp-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-family: var(--tfp-font-ui);
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  min-height: 46px;
  justify-content: center;
  letter-spacing: 0.02em;
  padding: 0 22px;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.tfp-category-pagination .wp-block-query-pagination-next::after {
  content: "↓";
  font-size: 15px;
  line-height: 1;
}

.tfp-category-pagination .wp-block-query-pagination-next:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.tfp-category-pagination .wp-block-query-pagination-next[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
  pointer-events: none;
}

.tfp-category-pagination .wp-block-query-pagination-next-arrow,
.tfp-category-pagination .wp-block-query-pagination-previous-arrow {
  display: none;
}

.tfp-category-pagination.is-complete {
  display: none;
}

.tfp-empty-state {
  color: var(--tfp-muted);
  font-family: var(--tfp-font-display);
  font-style: italic;
  text-align: center;
}

.tfp-reading-progress {
  background: transparent;
  height: 2px;
  left: 0;
  position: fixed;
  right: 0;
  top: 65px;
  z-index: 60;
}

.tfp-reading-progress span {
  background: var(--tfp-accent);
  display: block;
  height: 100%;
  width: 0;
}

.tfp-poem-page {
  padding: 56px 0 88px;
}

.tfp-poem-head {
  padding: 0 32px;
  text-align: center;
}

.tfp-poem-featured-media {
  margin: 32px auto 48px;
  max-width: min(920px, calc(100vw - 64px));
}

.tfp-poem-featured-media img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--tfp-rule);
  border-radius: 14px;
  object-position: center;
}

.tfp-breadcrumb {
  color: var(--tfp-muted);
  font-size: 12px;
  margin: 0 0 28px;
}

.tfp-poem-date {
  color: var(--tfp-muted);
  font-family: var(--tfp-font-display);
  font-size: 14px;
  font-style: italic;
}

.tfp-poem-title {
  color: var(--tfp-ink);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  margin: 12px 0 18px;
  text-align: center;
}

.tfp-poem-meta {
  color: var(--tfp-muted);
  font-size: 12px;
  justify-content: center;
}

.tfp-theme-chip a,
.tfp-theme-chip {
  background: var(--tfp-gold-soft);
  border-radius: 999px;
  color: var(--tfp-gold);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
}

.tfp-ornament {
  align-items: center;
  color: var(--tfp-accent);
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 28px 0;
  opacity: 0.55;
}

.tfp-ornament span {
  background: currentColor;
  height: 1px;
  opacity: 0.4;
  width: 30px;
}

.tfp-ornament i {
  background: currentColor;
  border-radius: 50%;
  display: block;
  height: 6px;
  width: 6px;
}

.tfp-poem-body-wrap {
  padding: 0 32px;
}

.tfp-poem-body {
  color: var(--tfp-ink);
  font-family: var(--tfp-font-display);
  font-size: var(--tfp-poem-size, 22px);
  line-height: 1.7;
  max-width: 560px;
}

.tfp-poem-body p,
.tfp-poem-body pre,
.tfp-poem-body .wp-block-verse {
  font: inherit;
  margin: 0 0 36px;
  white-space: pre-wrap;
}

.tfp-poem-body p {
  white-space: pre-line;
}

.tfp-poem-tools {
  border-top: 1px solid var(--tfp-rule-faint);
  display: flex;
  gap: 10px;
  margin-top: 42px;
  padding: 18px 32px 0;
}

.tfp-tool-btn {
  background: transparent;
  border: 1px solid var(--tfp-rule);
  color: var(--tfp-ink);
  padding: 8px 14px;
}

.tfp-type-tools {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.tfp-site-foot {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--tfp-ink) 94%, var(--tfp-accent) 6%), var(--tfp-ink));
  border-top: 1px solid rgb(255 255 255 / 10%);
  color: color-mix(in oklab, var(--tfp-paper) 70%, transparent);
  margin-top: 0;
  overflow: hidden;
  padding: 76px 32px 34px;
  position: relative;
}

.tfp-site-foot::before {
  background: linear-gradient(90deg, var(--tfp-accent), transparent 34%, transparent 66%, var(--tfp-gold));
  content: "";
  height: 1px;
  left: 32px;
  opacity: 0.6;
  position: absolute;
  right: 32px;
  top: 0;
}

.tfp-foot-wrap {
  margin: 0 auto;
  max-width: 1280px;
}

.tfp-foot-mast {
  align-items: end;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  padding-bottom: 38px;
}

.tfp-foot-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 34px;
}

.tfp-foot-wordmark {
  color: var(--tfp-paper);
  display: block;
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 600;
  line-height: 0.9;
  text-decoration: none;
}

.tfp-site-foot p {
  color: color-mix(in oklab, var(--tfp-paper) 55%, transparent);
  font-family: var(--tfp-font-display);
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
  max-width: 420px;
}

.tfp-site-foot h2 {
  color: color-mix(in oklab, var(--tfp-paper) 50%, transparent);
  font-family: var(--tfp-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.tfp-site-foot a:not(.tfp-foot-wordmark) {
  color: color-mix(in oklab, var(--tfp-paper) 75%, transparent);
  display: block;
  font-size: 14px;
  margin: 9px 0;
  text-decoration: none;
}

.tfp-site-foot a:hover {
  color: var(--tfp-accent);
}

.tfp-foot-note {
  border-left: 1px solid rgb(255 255 255 / 10%);
  padding-left: 28px;
}

.tfp-foot-cta {
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  color: var(--tfp-paper) !important;
  display: inline-flex !important;
  font-size: 12px !important;
  font-weight: 700;
  margin-top: 18px !important;
  padding: 9px 14px;
}

.tfp-foot-base {
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: rgb(255 255 255 / 40%);
  display: flex;
  gap: 18px;
  font-size: 12px;
  justify-content: space-between;
  letter-spacing: 0.02em;
  margin-top: 44px;
  padding-top: 24px;
}

.tfp-foot-base span:last-child {
  font-family: var(--tfp-font-display);
  font-style: italic;
}

.arq-section {
  box-sizing: border-box;
  padding-block: var(--wp--preset--spacing--70, 5rem);
  width: 100%;
}

.arq-section__inner {
  box-sizing: border-box;
  margin-inline: auto;
  max-width: var(--wp--style--global--wide-size, 1280px);
  padding-inline: var(--wp--preset--spacing--40, 2rem);
  width: 100%;
}

.arq-section__inner--narrow {
  max-width: var(--wp--style--global--content-size, 720px);
}

.arq-section__inner--wide {
  max-width: min(1440px, calc(100vw - 2rem));
}

@media (max-width: 960px) {
  .tfp-nav-wrap {
    grid-template-columns: 1fr auto;
  }

  .tfp-nav {
    display: none;
  }

  .tfp-grid,
  .tfp-category-grid,
  .tfp-foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tfp-newsletter-grid,
  .tfp-letter-grid,
  .tfp-foot-mast {
    grid-template-columns: 1fr;
  }

  .tfp-browse {
    position: static;
  }
}

@media (max-width: 640px) {
  .tfp-nav-wrap,
  .tfp-hero,
  .tfp-section,
  .tfp-letter,
  .tfp-newsletter,
  .tfp-archive,
  .tfp-theme-hero,
  .tfp-category-hero,
  .tfp-about-hero,
  .tfp-archive-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tfp-nav-actions .tfp-btn {
    display: none;
  }

  .tfp-hero-title {
    font-size: clamp(58px, 18vw, 92px);
  }

  .tfp-grid,
  .tfp-theme-grid,
  .tfp-category-grid,
  .tfp-foot-grid {
    grid-template-columns: 1fr;
  }

  .tfp-category-query {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tfp-section-head,
  .tfp-foot-base,
  .tfp-poem-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .tfp-archive-row {
    grid-template-columns: 44px 1fr;
  }

  .tfp-archive-row span,
  .tfp-archive-row b {
    display: none;
  }

  .tfp-archive-row .tfp-archive-thumb {
    display: block;
  }

  .tfp-featured-poem {
    grid-template-columns: 1fr;
  }

  .tfp-foot-note {
    border-left: 0;
    padding-left: 0;
  }

  .tfp-newsletter form {
    align-items: stretch;
    border-radius: 18px;
    flex-direction: column;
  }

  .tfp-newsletter button {
    width: 100%;
  }

  .tfp-type-tools {
    margin-left: 0;
  }
}
