body:is(.page-id-112, .page-id-114) {
  --poems-gold: #e9b44c;
  --poems-teal: #0f8b8d;
  --poems-ink: #162521;
  --poems-body: #707070;
  --poems-mist: #f3f7f6;
  --poems-rule: #d9e5e2;
}

body.page-id-112 #post-112 .entry-content,
body.page-id-114 #post-114 .entry-content {
  visibility: hidden;
}

body.page-id-112.poems-archive-ready #post-112 .entry-content,
body.page-id-114.essays-archive-ready #post-114 .entry-content {
  visibility: visible;
}

body:is(.page-id-112, .page-id-114) #header-image-main,
body:is(.page-id-112, .page-id-114) #header-image-main-inside {
  height: clamp(285px, 35vw, 420px) !important;
  min-height: 285px;
  max-height: 420px !important;
}

body:is(.page-id-112, .page-id-114) #header-image-main-inside {
  position: relative;
}

body:is(.page-id-112, .page-id-114) #header-image-main .header-image {
  object-fit: cover;
  object-position: center 47%;
}

body:is(.page-id-112, .page-id-114) #header-overlay {
  z-index: 2;
  background-color: #08415c;
  background: -webkit-linear-gradient(90deg, #08415c 0%, #1c110a 100%);
  background: linear-gradient(180deg, #08415c 0%, #1c110a 100%);
  opacity: 0.6;
  pointer-events: none;
}

body:is(.page-id-112, .page-id-114) #header-page-title {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-flow: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
}

body:is(.page-id-112, .page-id-114) #header-page-title #header-page-title-inside {
  width: min(calc(100% - 3rem), 1160px);
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 !important;
  text-align: center;
}

body:is(.page-id-112, .page-id-114) #header-page-title .entry-title {
  position: relative;
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5em, 5vw, 5em);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 18px rgba(22, 37, 33, 0.18);
}

body:is(.page-id-112, .page-id-114) #header-image-main .meta-arrow {
  display: block;
}

body:is(.page-id-112, .page-id-114) #content {
  background: var(--poems-mist);
}

body.page-id-112 #colophon,
body.page-id-112 #footer {
  display: none !important;
}

body:is(.page-id-112, .page-id-114) #container {
  max-width: none;
  margin: 0;
  padding: 0;
}

body:is(.page-id-112, .page-id-114) #main {
  float: none;
  width: 100%;
  padding: 0;
}

body:is(.page-id-112, .page-id-114) #container #main {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

body:is(.page-id-112, .page-id-114) #container #main > :is(#post-112, #post-114) {
  padding-right: 0;
  padding-left: 0;
}

body:is(.page-id-112, .page-id-114) :is(#post-112, #post-114) {
  margin: 0;
  padding: 0;
}

body:is(.page-id-112, .page-id-114) :is(#post-112, #post-114) > .schema-image,
body:is(.page-id-112, .page-id-114) :is(#post-112, #post-114) > .article-inner > header {
  display: none;
}

body:is(.page-id-112, .page-id-114) :is(#post-112, #post-114) .article-inner,
body:is(.page-id-112, .page-id-114) :is(#post-112, #post-114) .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.poems-refresh-content {
  width: min(calc(100% - 3rem), 1160px);
  margin: 0 auto;
  padding: 24px 0 54px;
  color: var(--poems-body);
  font-family: Muli, sans-serif;
}

.poems-refresh-content,
.poems-refresh-content *,
.poems-refresh-content *::before,
.poems-refresh-content *::after {
  box-sizing: border-box;
}

.poems-refresh-note {
  margin: 0;
  color: var(--poems-body);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.poems-refresh-archive {
  padding-top: 18px;
}

.poems-refresh-year {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  column-gap: 28px;
  padding: 0 0 10px;
}

.poems-refresh-year + .poems-refresh-year {
  margin-top: 24px;
}

.poems-refresh-year-heading {
  position: sticky;
  top: 22px;
  align-self: start;
  margin: 0;
  padding-top: 16px;
  color: var(--poems-teal);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.poems-refresh-year-heading::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin-top: 8px;
  background: var(--poems-gold);
}

.poems-refresh-year-list {
  border-top: 1px solid var(--poems-teal);
}

.poems-refresh-entry {
  display: grid;
  grid-template-columns: minmax(145px, 0.8fr) minmax(0, 1.6fr);
  gap: 24px;
  padding: 16px 18px 17px 12px;
  border-bottom: 1px solid var(--poems-rule);
  border-left: 2px solid rgba(233, 180, 76, 0.72);
  transition: background-color 180ms ease, padding 180ms ease;
}

.poems-refresh-entry:hover {
  padding-right: 12px;
  padding-left: 12px;
  background: transparent;
}

.poems-refresh-journal-block {
  min-width: 0;
}

.poems-refresh-journal {
  margin: 0;
  color: #176f70 !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.poems-refresh-journal em {
  font-style: italic;
}

.poems-refresh-date {
  margin: 6px 0 0;
  color: #9b701e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.5;
}

.poems-refresh-reprint {
  margin: 3px 0 0;
  color: var(--poems-teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.5;
}

.poems-refresh-detail {
  margin: -3px 0 0;
  color: var(--poems-teal);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.poems-refresh-poems {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 7px;
  padding-top: 1px;
}

.poems-refresh-audio {
  position: relative;
  width: min(100%, 560px);
  min-width: 0;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--poems-teal);
  border-bottom: 2px solid var(--poems-gold);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.poems-refresh-audio--provider {
  height: 166px;
}

.poems-refresh-audio iframe {
  display: block;
  width: 100%;
  height: 164px;
  border: 0;
}

.poems-refresh-audio-engine {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.poems-refresh-audio-controls {
  display: grid;
  grid-template-columns: 30px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 40px;
  padding: 4px 8px;
  color: var(--poems-ink);
  font-family: Muli, sans-serif;
}

.poems-refresh-audio-controls > * {
  min-width: 0;
}

.poems-refresh-audio-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  min-width: 30px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent !important;
  color: var(--poems-teal);
  cursor: pointer;
  transition: color 160ms ease;
}

.poems-refresh-audio-toggle:hover {
  background: transparent !important;
  color: var(--poems-gold);
}

.poems-refresh-audio-toggle:focus-visible,
.poems-refresh-audio-seek:focus-visible {
  outline: 2px solid var(--poems-gold);
  outline-offset: 3px;
}

.poems-refresh-audio-toggle svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.poems-refresh-audio-time {
  color: var(--poems-body);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.poems-refresh-audio-seek {
  width: 100%;
  min-width: 0;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  accent-color: var(--poems-teal);
}

.poems-refresh-audio-seek:disabled {
  cursor: default;
  opacity: 0.55;
}

.poems-refresh-audio-seek::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(
    to right,
    var(--poems-teal) 0,
    var(--poems-teal) var(--audio-progress, 0%),
    rgba(22, 37, 33, 0.18) var(--audio-progress, 0%),
    rgba(22, 37, 33, 0.18) 100%
  );
}

.poems-refresh-audio-seek::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  appearance: none;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--poems-gold);
  box-shadow: 0 0 0 1px var(--poems-teal);
}

.poems-refresh-audio-seek::-moz-range-track {
  height: 2px;
  background: rgba(22, 37, 33, 0.18);
}

.poems-refresh-audio-seek::-moz-range-progress {
  height: 2px;
  background: var(--poems-teal);
}

.poems-refresh-audio-seek::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--poems-gold);
  box-shadow: 0 0 0 1px var(--poems-teal);
}

.poems-refresh-video {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--poems-teal);
  border-bottom: 2px solid var(--poems-gold);
  border-radius: 18px;
  background: #162521;
}

.poems-refresh-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.poems-refresh-poem {
  margin: 0;
  color: var(--poems-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.poems-refresh-poem a {
  display: inline;
  color: #8c6416;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: var(--poems-gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.poems-refresh-poem a:hover {
  color: var(--poems-teal);
  text-decoration-color: var(--poems-teal);
}

.poems-refresh-external {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 5px;
  vertical-align: 0.06em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.poems-refresh-content a:focus-visible {
  outline: 3px solid var(--poems-teal);
  outline-offset: 4px;
  border-radius: 2px;
}

.poems-refresh-footer {
  margin-top: 46px;
  padding: 25px 0 0;
  border-top: 1px solid var(--poems-rule);
}

.poems-refresh-footer .poems-refresh-note {
  text-align: right;
}

.poems-refresh-contact {
  max-width: 750px;
  margin: 25px auto 0;
  color: var(--poems-teal);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.poems-refresh-footer .poems-refresh-contact {
  max-width: none;
  margin: 0 0 3px;
  color: var(--poems-body);
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.poems-refresh-contact a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  body:is(.page-id-112, .page-id-114) #header-image-main,
  body:is(.page-id-112, .page-id-114) #header-image-main-inside {
    height: clamp(250px, 55vw, 330px) !important;
    min-height: 250px;
  }

  body:is(.page-id-112, .page-id-114) #header-page-title #header-page-title-inside,
  .poems-refresh-content {
    width: min(calc(100% - 2rem), 560px);
  }

  .poems-refresh-content {
    padding-top: 20px;
  }

  .poems-refresh-archive {
    margin-top: -78px;
  }

  .poems-refresh-masthead {
    padding-bottom: 16px;
  }

  .poems-refresh-year {
    grid-template-columns: 1fr;
    row-gap: 11px;
  }

  .poems-refresh-year-heading {
    position: static;
    padding: 0;
    font-size: 25px;
  }

  .poems-refresh-entry {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 8px 15px 10px;
  }

  .poems-refresh-entry:hover {
    padding-right: 12px;
    padding-left: 12px;
  }

  .poems-refresh-journal {
    font-size: 17px;
  }

  .poems-refresh-poems {
    gap: 6px;
  }
}

@media (max-width: 420px) {
  body:is(.page-id-112, .page-id-114) #header-image-main,
  body:is(.page-id-112, .page-id-114) #header-image-main-inside {
    height: 255px !important;
  }

  body:is(.page-id-112, .page-id-114) #header-page-title #header-page-title-inside,
  .poems-refresh-content {
    width: min(calc(100% - 1.5rem), 560px);
  }

  .poems-refresh-contact {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poems-refresh-content *,
  .poems-refresh-content *::before,
  .poems-refresh-content *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Give the archive hero more room and continue its photo behind the list. */
body:is(.page-id-112, .page-id-114) {
  background-color: #fff !important;
  --archive-hero-frame-height: clamp(380px, 46.7vw, 560px);
  --archive-fade-end: 80px;
}

body.page-id-112 {
  --archive-hero-photo: url("/media/archive/1601.jpeg");
}

body.page-id-114 {
  --archive-hero-photo: url("/media/archive/1594.jpeg");
}

body:is(.page-id-112, .page-id-114) #header-image-main,
body:is(.page-id-112, .page-id-114) #header-image-main-inside {
  height: var(--archive-hero-frame-height) !important;
  min-height: var(--archive-hero-frame-height) !important;
  max-height: none !important;
}

body:is(.page-id-112, .page-id-114) #header-overlay {
  display: none !important;
}

body:is(.page-id-112, .page-id-114) #header-image-main .header-image {
  display: none !important;
}

body:is(.page-id-112, .page-id-114) #content {
  isolation: isolate;
  background: transparent !important;
}

body:is(.page-id-112, .page-id-114) #content::before {
  position: absolute;
  z-index: -1;
  top: calc(0px - var(--archive-hero-frame-height));
  right: 0;
  left: 0;
  height: calc(var(--archive-hero-frame-height) + var(--archive-fade-end));
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.02) 40%,
      rgba(255, 255, 255, 0.08) 52%,
      rgba(255, 255, 255, 0.22) 64%,
      rgba(255, 255, 255, 0.48) 75%,
      rgba(255, 255, 255, 0.77) 85%,
      rgba(255, 255, 255, 0.94) 94%,
      #fff 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 65, 92, 0.55) 0,
      rgba(28, 17, 10, 0.55) 28%,
      rgba(28, 17, 10, 0.37) 62%,
      rgba(28, 17, 10, 0.16) 100%
    ),
    var(--archive-hero-photo);
  background-position: center top, center top, center top;
  background-size: 100% 100%, 100% 100%, cover;
  background-repeat: no-repeat;
  background-attachment: scroll, scroll, scroll;
  content: "";
  pointer-events: none;
}

body:is(.page-id-112, .page-id-114) #container,
body:is(.page-id-112, .page-id-114) #main,
body:is(.page-id-112, .page-id-114) :is(#post-112, #post-114),
body:is(.page-id-112, .page-id-114) :is(#post-112, #post-114) .article-inner,
body:is(.page-id-112, .page-id-114) :is(#post-112, #post-114) .entry-content,
body:is(.page-id-112, .page-id-114) .poems-refresh-content {
  background: transparent !important;
}

body:is(.page-id-112, .page-id-114) .poems-refresh-entry:hover {
  background: transparent !important;
}

@media (max-width: 700px) {
  body:is(.page-id-112, .page-id-114) {
    --archive-hero-frame-height: clamp(340px, 72vw, 440px);
    --archive-fade-end: 80px;
  }
}

@media (max-width: 420px) {
  body:is(.page-id-112, .page-id-114) {
    --archive-hero-frame-height: 340px;
  }
}

/* Poems landing: keep the hero full-screen and reveal the archive on first input. */
html.poems-window-page,
body.page-id-112 {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.page-id-112 #header-image-main,
body.page-id-112 #header-image-main-inside {
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
}

body.page-id-112 #content::before {
  top: calc(0px - 100lvh);
  height: 100lvh;
  background-image:
    linear-gradient(
      180deg,
      rgba(8, 65, 92, 0.55) 0,
      rgba(28, 17, 10, 0.55) 28%,
      rgba(28, 17, 10, 0.37) 62%,
      rgba(28, 17, 10, 0.16) 100%
    ),
    var(--archive-hero-photo);
  background-position: center top, center top;
  background-size: 100% 100%, cover;
}

body.page-id-112 #header-page-title .entry-title {
  transform-origin: center;
  transition:
    opacity 600ms ease,
    filter 650ms ease,
    transform 650ms ease;
}

body.page-id-112.poems-window-open #header-page-title .entry-title {
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.06);
  pointer-events: none;
}

body.page-id-112 .poems-refresh-content {
  position: fixed;
  z-index: 1000;
  top: 50%;
  left: 50%;
  width: min(calc(100vw - 3rem), 1160px);
  height: 70vh;
  height: 70dvh;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(15, 139, 141, 0.35);
  background: rgba(247, 250, 249, 0.5) !important;
  -webkit-backdrop-filter: blur(18px) saturate(0.85) brightness(1.08);
  backdrop-filter: blur(18px) saturate(0.85) brightness(1.08);
  box-shadow: 0 20px 60px rgba(10, 20, 20, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(12px);
  transform: translate(-50%, -46%) scale(0.96);
  transition:
    opacity 650ms ease,
    filter 650ms ease,
    transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1),
    visibility 0s linear 650ms;
}

body.page-id-112 .poems-refresh-year-heading {
  padding-left: 48px;
}

body.page-id-112.poems-window-open .poems-refresh-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  filter: blur(0);
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0s;
}

body.page-id-112 #header-image-main .meta-arrow {
  display: none !important;
}

@supports (height: 100dvh) {
  body.page-id-112 #header-image-main,
  body.page-id-112 #header-image-main-inside {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
  }

  body.page-id-112 #content::before {
    top: calc(0px - 100dvh);
    height: 100dvh;
  }

  html.poems-window-page,
  body.page-id-112 {
    height: 100dvh;
  }
}

@media (max-width: 700px) {
  body.page-id-112 .poems-refresh-content {
    width: min(calc(100vw - 3rem), 560px);
  }

  body.page-id-112 .poems-refresh-year-heading {
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-112 #header-page-title .entry-title,
  body.page-id-112 .poems-refresh-content {
    transition-duration: 0.01ms !important;
  }
}
