/* GoYoga Journal — Yoga Reading editorial look, remapped to GoYoga brand tokens.
   Scoped to .edition / .essay so site chrome stays untouched. */

.edition {
  --jr-paper: #faf9f6;
  --jr-ink: #282420;
  --jr-accent: #db2777;
  --jr-accent-soft: #fdf2f8;
  --jr-rule: #e8e2da;
  --jr-muted: #6b6057;
  --jr-sand: #8a7055;
  --jr-surface: #f2efe9;
  --jr-cover: #1a1814;
  --jr-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --jr-font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  width: min(calc(100% - 2.5rem), 84rem);
  margin-inline: auto;
  padding-top: 0.5rem;
  padding-bottom: 3rem;
  background: var(--jr-paper);
  color: var(--jr-ink);
  font-family: var(--jr-font-sans);
}

.edition :is(section, article, [id]) {
  scroll-margin-top: 6rem;
}

.edition .folio,
.edition .kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-family: var(--jr-font-sans);
  color: var(--jr-muted);
}

.edition .mast {
  text-align: center;
  margin-bottom: 0.5rem;
}

.edition .mast h1,
.edition .cover-caption h2,
.edition .journal-library__heading,
.essay h1 {
  font-family: var(--jr-font-display);
  font-weight: 400;
}

.edition .mast h1 {
  font-size: clamp(2rem, 10vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.073em;
  margin: 0.02em 0 0.08em;
  color: var(--jr-ink);
}

.edition .mast-brand {
  display: block;
  font: 600 clamp(0.85rem, 1.6vw, 1.15rem) / 1.5 var(--jr-font-sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--jr-ink);
}

.edition .mast h1 > .mast-title {
  color: var(--jr-accent);
}

.edition .desks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(0.8rem, 4vw, 3rem);
  border-block: 1px solid var(--jr-ink);
  margin: 1rem auto 0;
}

.edition .desks a,
.edition .desks button {
  display: grid;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.9rem;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--jr-font-sans);
  padding: 0 0.15rem;
}

.edition .desks a:hover,
.edition .desks button:hover,
.edition .desks button.is-active {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.edition a:focus-visible,
.edition button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Featured photographic cover */
.edition .photo-cover {
  margin-top: 1.25rem;
  background: var(--jr-cover);
  color: #fff;
}

.edition .photo-cover > a,
.edition .photo-cover > button.photo-cover__hit {
  display: grid;
  position: relative;
  isolation: isolate;
  min-height: clamp(25rem, 45vw, 40rem);
  align-items: end;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.edition .photo-cover img,
.edition .photo-cover > a::after,
.edition .photo-cover > button.photo-cover__hit::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.edition .photo-cover img {
  object-fit: cover;
  object-position: center 45%;
}

.edition .photo-cover > a::after,
.edition .photo-cover > button.photo-cover__hit::after {
  content: "";
  background: linear-gradient(90deg, #1a1814df, #28242066 48%, transparent 85%);
}

.edition .cover-caption {
  padding: clamp(1.7rem, 5vw, 5rem);
  position: relative;
  z-index: 1;
}

.edition .cover-caption h2 {
  letter-spacing: -0.055em;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 0.96;
  margin: 0.25em 0;
  font-family: var(--jr-font-display);
  font-weight: 400;
  color: #fff;
  max-width: 16ch;
  text-wrap: balance;
}

.edition .cover-caption .kicker {
  color: rgba(255, 255, 255, 0.75);
}

.edition .cover-caption span.cover-cta {
  display: inline-block;
  padding-bottom: 0.16rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--jr-font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.edition .photo-cover > a:hover,
.edition .photo-cover > button.photo-cover__hit:hover {
  text-decoration: none;
}

.edition .photo-cover > a:hover span.cover-cta,
.edition .photo-cover > button.photo-cover__hit:hover span.cover-cta {
  border-bottom-width: 2px;
}

/* Library */
.edition .journal-library {
  margin: clamp(2rem, 5vw, 4rem) 0 3rem;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--jr-rule);
}

.edition .journal-library__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.edition .journal-library__heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--jr-ink);
}

.edition .journal-library__count {
  margin: 0;
  font-family: var(--jr-font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jr-muted);
}

.edition .journal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.edition .journal-filter {
  min-height: 2.5rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--jr-rule);
  border-radius: 999px;
  background: #fff;
  color: var(--jr-ink);
  font-family: var(--jr-font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.edition .journal-filter.is-active,
.edition .journal-filter:hover {
  background: var(--jr-ink);
  color: #fff;
  border-color: var(--jr-ink);
}

.edition .journal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.edition .j-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #1a1814;
  color: #fff;
}

.edition .j-card__link {
  display: block;
  position: absolute;
  inset: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  height: 100%;
  text-align: left;
  font: inherit;
}

.edition .j-card__link:hover {
  text-decoration: none;
}

.edition .j-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edition .j-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 12, 0.22) 0%,
    rgba(10, 14, 12, 0) 28%,
    rgba(10, 14, 12, 0) 72%,
    rgba(10, 14, 12, 0.28) 100%
  );
  pointer-events: none;
}

.edition .j-card__top,
.edition .j-card__mid,
.edition .j-card__foot {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 0.85rem 0.9rem;
  pointer-events: none;
}

.edition .j-card__top {
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.edition .j-card__seq {
  flex: none;
  font-family: var(--jr-font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65), 0 0 12px rgba(0, 0, 0, 0.35);
}

.edition .j-card__mid {
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  padding: 0.85rem 0.9rem;
  left: 0.55rem;
  right: 0.55rem;
  width: auto;
  border-radius: 0.35rem;
  background: rgba(8, 12, 10, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(3px);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.edition .j-card:hover .j-card__mid,
.edition .j-card:focus-within .j-card__mid {
  background: rgba(8, 12, 10, 0.58);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(7px);
}

@media (prefers-reduced-motion: reduce) {
  .edition .j-card__mid {
    transition: none;
  }
}

.edition .j-card__foot {
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-right: 6.2rem;
}

.edition .j-card__byline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.edition .j-card__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.2);
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--jr-font-display);
  font-size: 0.95rem;
  color: #fff;
}

.edition .j-card__by {
  font-family: var(--jr-font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edition .j-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65), 0 0 12px rgba(0, 0, 0, 0.35);
}

.edition .j-card__diamond {
  width: 0.45rem;
  height: 0.45rem;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  flex: none;
}

.edition .j-card__title {
  margin: 0;
  font-family: var(--jr-font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 2px 16px rgba(0, 0, 0, 0.45);
}

.edition .j-card__meta {
  margin: 0.5rem 0 0;
  font-family: var(--jr-font-sans);
  font-size: 0.74rem;
  line-height: 1.35;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.edition .j-card__like {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.2rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(17, 22, 18, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
  cursor: pointer;
  font-family: var(--jr-font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: auto;
}

.edition .j-card__like svg {
  display: block;
}

.edition .j-card__like.is-liked {
  background: rgba(219, 39, 119, 0.92);
  border-color: transparent;
}

.edition .j-card__like.is-liked svg path {
  fill: currentColor;
}

.edition .journal-empty {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  border: 1px dashed var(--jr-rule);
  color: var(--jr-muted);
  text-align: center;
}

.edition .journal-seo {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--jr-rule);
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.edition .journal-seo h2 {
  font-family: var(--jr-font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--jr-ink);
}

.edition .journal-seo p {
  color: var(--jr-muted);
  line-height: 1.65;
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
}

/* Essay / article detail */
.essay {
  --jr-paper: #faf9f6;
  --jr-ink: #282420;
  --jr-accent: #db2777;
  --jr-rule: #e8e2da;
  --jr-muted: #6b6057;
  --jr-surface: #f2efe9;
  --jr-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --jr-font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  max-width: 72rem;
  margin: auto;
  padding: 1rem 0 4rem;
  color: var(--jr-ink);
  font-family: var(--jr-font-sans);
}

.essay-head {
  max-width: 54rem;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.essay .essay-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jr-accent);
  margin-bottom: 0.75rem;
}

.essay h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  margin: 0.32em 0;
  font-weight: 400;
  color: var(--jr-ink);
  text-wrap: balance;
}

.essay-meta {
  font-size: 0.9rem;
  color: var(--jr-muted);
  margin: 0.5rem 0 0;
}

.essay-author {
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.essay-author__row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--jr-rule);
  border-radius: 1rem;
  background: var(--jr-surface);
  color: inherit;
  text-decoration: none;
}

a.essay-author__row:hover {
  background: #ebe6de;
  text-decoration: none;
}

.essay-author__avatar {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  object-fit: cover;
  flex: none;
  border: 2px solid #fff;
  box-shadow: 0 6px 18px rgba(40, 36, 32, 0.12);
  display: grid;
  place-items: center;
  background: #fdf2f8;
  color: var(--jr-accent);
  font-family: var(--jr-font-display);
  font-size: 1.6rem;
}

.essay-author__text {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  font-family: var(--jr-font-sans);
  min-width: 0;
}

.essay-author__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jr-muted);
}

.essay-author__name {
  font-family: var(--jr-font-display);
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.essay-author__role {
  font-size: 0.85rem;
  color: var(--jr-muted);
}

.essay-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 1.75rem;
  max-width: 40rem;
}

.essay-actions button,
.essay-actions .essay-share,
.essay-actions .essay-back-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--jr-rule);
  border-radius: 999px;
  background: #fff;
  color: var(--jr-ink);
  font-family: var(--jr-font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.essay-actions button:hover,
.essay-actions .essay-share:hover {
  background: var(--jr-surface);
}

.essay-photo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 37rem;
  margin: 0 auto 2.5rem;
  border-radius: 0.35rem;
  object-fit: cover;
}

.essay-toc {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--jr-rule);
  border-radius: 0.75rem;
  background: var(--jr-surface);
}

.essay-toc__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jr-muted);
  margin: 0 0 0.65rem;
}

.essay-toc a {
  display: block;
  color: var(--jr-ink);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
  padding: 0.2rem 0;
}

.essay-toc a:hover {
  color: var(--jr-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.essay-body {
  max-width: 40rem;
  margin: auto;
  font: 1.125rem / 1.65 var(--jr-font-sans);
  overflow-wrap: anywhere;
  color: var(--jr-ink);
}

.essay-body :is(p, ul, ol, hr, figure, img) {
  margin-block: 1em;
}

.essay-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.35rem;
}

.essay-body ul {
  list-style: disc;
}

.essay-body ol {
  list-style: decimal;
}

.essay-body :is(ul, ol) {
  padding-left: 1.5em;
}

.essay-body :is(h2, h3) {
  font-family: var(--jr-font-display);
  font-size: 1.55em;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 1.35em;
  letter-spacing: -0.02em;
}

.essay-body a,
.essay-back {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  color: var(--jr-sand);
}

.essay-body a:hover,
.essay-back:hover {
  color: var(--jr-accent);
}

.essay-back {
  display: block;
  max-width: 40rem;
  margin: 2.5rem auto 0;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--jr-font-sans);
  font-size: 0.95rem;
  text-align: left;
}

.essay-cta {
  max-width: 40rem;
  margin: 3rem auto 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 1rem;
  background: var(--jr-ink);
  color: #fff;
  text-align: center;
}

.essay-cta h3 {
  font-family: var(--jr-font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.35em 0 0.65em;
}

.essay-cta p {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.essay-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.essay-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.6rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.essay-cta a.primary {
  background: var(--jr-accent);
  color: #fff;
}

.essay-cta a.secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.essay-tags {
  max-width: 40rem;
  margin: 2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--jr-rule);
}

.essay-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--jr-muted);
  background: var(--jr-surface);
  padding: 0.25rem 0.65rem;
  border-radius: 0.35rem;
  border: 1px solid var(--jr-rule);
}

.essay-links {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .essay-links {
    grid-template-columns: 1fr 1fr;
  }
}

.essay-links a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--jr-rule);
  border-radius: 0.85rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.essay-links a:hover {
  border-color: var(--jr-sand);
}

.essay-links .eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jr-muted);
  margin-bottom: 0.35rem;
}

.essay-links h4 {
  font-family: var(--jr-font-display);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.essay-links .link-cta {
  font-size: 0.85rem;
  color: var(--jr-accent);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .edition .journal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .edition {
    width: calc(100% - 2rem);
  }

  .edition .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .edition .j-card__like-text {
    display: none;
  }

  .edition .j-card__foot {
    padding-right: 2.8rem;
  }

  .edition .desks {
    gap: 0 0.85rem;
  }
}

@media (max-width: 600px) {
  .edition .photo-cover > a,
  .edition .photo-cover > button.photo-cover__hit {
    min-height: 27rem;
  }

  .edition .photo-cover img {
    object-position: 60% center;
  }

  .edition .photo-cover > a::after,
  .edition .photo-cover > button.photo-cover__hit::after {
    background: linear-gradient(0deg, #1a1814ee, transparent 83%);
  }

  .edition .mast h1 {
    font-size: clamp(2.2rem, 14vw, 3.6rem);
  }
}

@media (max-width: 420px) {
  .edition .journal-grid {
    grid-template-columns: 1fr;
  }

  .edition .j-card {
    aspect-ratio: 5 / 4;
  }
}
