.je-feed-page {
  margin: 0;
  min-height: 100vh;
  font-family: Lora, Georgia, serif;
}

.je-feed-shell {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 64px 0 96px;
}

.je-feed-intro {
  max-width: 760px;
  margin-bottom: 46px;
}

.je-feed-kicker {
  margin: 0 0 8px;
  color: var(--je-raspberry);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.je-feed-intro h1 {
  margin: 0;
  color: var(--je-heading-light);
  font: 700 clamp(2.5rem, 7vw, 5.25rem)/.98 "Dancing Script", "Segoe Script", cursive;
}

.je-feed-intro > p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--je-section-light-text);
  font-size: 1.05rem;
  line-height: 1.65;
}

.je-feed-layout {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.je-timeline {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  scrollbar-width: thin;
}

.je-timeline-inner h2 {
  margin: 0 0 14px;
  color: var(--je-heading-light);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.je-timeline-year {
  margin-bottom: 15px;
}

.je-timeline button {
  border: 0;
  background: transparent;
  color: var(--je-section-light-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.je-timeline button:focus-visible {
  outline: 3px solid var(--je-burnt-rose);
  outline-offset: 3px;
}

.je-timeline-year-button {
  display: block;
  width: 100%;
  padding: 5px 8px;
  border-radius: 6px !important;
  font-weight: 700 !important;
}

.je-timeline-months {
  margin: 3px 0 0;
  padding: 0 0 0 10px;
  list-style: none;
  border-left: 1px solid color-mix(in srgb, var(--je-border) 35%, transparent);
}

.je-timeline-month-button {
  width: 100%;
  padding: 5px 8px !important;
  border-radius: 5px !important;
  opacity: .72;
}

.je-timeline button:hover,
.je-timeline button.is-current {
  background: color-mix(in srgb, var(--je-burnt-rose) 18%, transparent);
  color: var(--je-link-hover);
  opacity: 1;
}

.je-feed-status {
  margin: 0;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--je-border) 35%, transparent);
  border-radius: 12px;
  background: var(--je-section-light);
  color: var(--je-section-light-text);
  line-height: 1.6;
}

.je-feed-status[hidden] {
  display: none;
}

.je-feed-status.is-error {
  border-color: color-mix(in srgb, #a53043 45%, transparent);
  background: color-mix(in srgb, #a53043 10%, var(--je-section-light));
}

.je-feed-status.is-info {
  padding: 12px 16px;
  border-style: dashed;
  font-size: .86rem;
}

.je-feed-posts {
  display: grid;
  gap: 28px;
}

.je-feed-post {
  scroll-margin-top: 96px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--je-border) 30%, transparent);
  border-radius: 14px;
  background: var(--je-section-light);
  color: var(--je-section-light-text);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--je-shadow) 70%, transparent);
}

.je-feed-post-body {
  padding: clamp(22px, 4vw, 38px);
}

.je-feed-date {
  display: block;
  margin-bottom: 10px;
  color: var(--je-raspberry);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.je-feed-post h2 {
  margin: 0 0 15px;
  color: var(--je-heading-light);
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.22;
}

.je-feed-text {
  font-size: 1rem;
  line-height: 1.72;
}

.je-feed-text:empty {
  display: none;
}

.je-feed-block-text {
  padding: 0 clamp(22px, 4vw, 38px) clamp(22px, 4vw, 38px);
  overflow-wrap: anywhere;
}

.je-feed-block-text > :first-child { margin-top: 0; }
.je-feed-block-text > :last-child { margin-bottom: 0; }
.je-feed-block-text h2, .je-feed-block-text h3 { margin: 1.2em 0 .55em; color: var(--je-heading-light); line-height: 1.3; }
.je-feed-block-text h2 { font-size: clamp(1.25rem, 2.4vw, 1.8rem); }
.je-feed-block-text h3 { font-size: clamp(1.08rem, 2vw, 1.4rem); }
.je-feed-block-text a { color: var(--je-raspberry); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.je-feed-block-text blockquote { margin: 1.2em 0; padding-left: 1em; border-left: 3px solid var(--je-rose); }

.je-feed-block-image {
  margin: 0;
}

.je-feed-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: color-mix(in srgb, var(--je-border) 22%, transparent);
}

.je-feed-block-gallery + .je-feed-block-text,
.je-feed-block-image + .je-feed-block-text {
  padding-top: clamp(22px, 4vw, 38px);
}

.je-feed-gallery:has(> :only-child) {
  grid-template-columns: 1fr;
}

.je-feed-image {
  min-width: 0;
  margin: 0;
  background: var(--je-midnight);
}

.je-feed-image img {
  display: block;
  width: 100%;
  height: min(46vw, 520px);
  object-fit: cover;
}

.je-feed-image figcaption {
  padding: 10px 14px 12px;
  background: var(--je-section-light);
  color: var(--je-section-light-text);
  font-size: .86rem;
  line-height: 1.5;
}

.je-feed-image-error {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--je-ivory);
  text-align: center;
}

.je-feed-carousel {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--je-midnight);
  color: var(--je-ivory);
}
.je-feed-carousel:focus-visible {
  outline: 3px solid var(--je-burnt-rose);
  outline-offset: -3px;
}
.je-feed-carousel-viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.je-feed-carousel-viewport.is-dragging { cursor: grabbing; }
.je-feed-carousel-track {
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  transition: transform .28s ease;
  will-change: transform;
}
.je-feed-carousel-slide {
  min-width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}
.je-feed-carousel-slide .je-feed-image { height: 100%; }
.je-feed-carousel-slide .je-feed-image img {
  width: 100%;
  max-width: 100%;
  height: clamp(260px, 48vw, 560px);
  object-fit: contain;
  user-select: none;
}
.je-feed-carousel-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--je-ivory) 48%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--je-midnight) 76%, transparent);
  color: var(--je-ivory);
  font: 400 2rem/1 system-ui, sans-serif;
  transform: translateY(-50%);
  cursor: pointer;
}
.je-feed-carousel-control.is-previous { left: 12px; }
.je-feed-carousel-control.is-next { right: 12px; }
.je-feed-carousel-control:hover { background: color-mix(in srgb, var(--je-raspberry) 82%, transparent); }
.je-feed-carousel-control:disabled { opacity: .3; cursor: default; }
.je-feed-carousel-control:focus-visible, .je-feed-carousel-indicators button:focus-visible {
  outline: 3px solid var(--je-burnt-rose);
  outline-offset: 2px;
}
.je-feed-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px 13px;
  background: var(--je-section-light);
}
.je-feed-carousel-indicators button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--je-raspberry);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.je-feed-carousel-indicators button.is-current { background: var(--je-raspberry); }
.je-feed-video {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: 0;
  background: #000;
}
.je-feed-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.je-feed-carousel + .je-feed-block-text,
.je-feed-video + .je-feed-block-text {
  padding-top: clamp(22px, 4vw, 38px);
}
.je-feed-sentinel {
  height: 1px;
  margin-top: 12px;
}

.je-feed-footer {
  padding: 26px 20px;
  border-top: 1px solid color-mix(in srgb, var(--je-border) 30%, transparent);
  color: var(--je-section-light-text);
  text-align: center;
  font: 700 1.25rem "Dancing Script", "Segoe Script", cursive;
}

@media (max-width: 760px) {
  .je-feed-shell {
    width: min(100% - 24px, 1120px);
    padding: 42px 0 72px;
  }

  .je-feed-intro {
    margin-bottom: 28px;
  }

  .je-feed-layout {
    display: block;
  }

  .je-timeline {
    z-index: 10;
    top: 62px;
    max-height: none;
    margin: 0 -12px 24px;
    padding: 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    background: color-mix(in srgb, var(--je-page-bg) 94%, transparent);
    backdrop-filter: blur(12px);
  }

  .je-timeline-inner {
    display: flex;
    min-width: max-content;
    align-items: center;
    gap: 8px;
  }

  .je-timeline-inner h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  #feed-timeline,
  .je-timeline-year,
  .je-timeline-months {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .je-timeline-year {
    margin: 0;
  }

  .je-timeline-months {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .je-timeline button {
    width: auto;
    white-space: nowrap;
  }

  .je-feed-gallery {
    grid-template-columns: 1fr;
  }

  .je-feed-image img {
    height: auto;
    max-height: 70vh;
  }

  .je-feed-carousel-slide .je-feed-image img {
    height: clamp(220px, 72vw, 440px);
    max-height: 72vh;
  }

  .je-feed-carousel-control {
    width: 38px;
    height: 38px;
  }}

@media (prefers-reduced-motion: reduce) {
  .je-feed-carousel-track { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .je-feed-post {
    animation: je-feed-enter .34s ease both;
  }
  @keyframes je-feed-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
