/* The Art Meadow: blog listing, tag pages and articles.
   Loaded only on blog pages. Sizes and colours match the original blog design. */

/* ================================================================ listing header */
.ss-blog-head {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 500px;
  padding: 70px; box-sizing: border-box; color: var(--ss-paper); text-align: center;
  background: #000 50% 50% / cover no-repeat;
}
.ss-blog-head__inner { position: relative; max-width: 1140px; }
.ss-blog-head__title { margin: 21px 0 28px; font: 400 60px/1.2 "Patua One", sans-serif; color: #fff; }
.ss-blog-head__current { margin: -14px 0 18px; font-size: 15px; }
.ss-blog-head__current a { color: var(--ss-peach); }
.ss-blog-head__tags { display: flex; flex-wrap: wrap; justify-content: center; }
.ss-blog-head__tag {
  margin: 0 7px 7px; padding: 0 10.5px; font: 500 14px/1.4 var(--ss-font-body); color: #fff; text-transform: capitalize;
  text-decoration: none; border: 2px solid rgba(255, 255, 255, .4); border-radius: 5px; transition: border-color .2s, background-color .2s;
}
.ss-blog-head__tag:hover, .ss-blog-head__tag:focus-visible { border-color: #fff; }
.ss-blog-head__tag.is-active { color: var(--ss-ink); background: #fff; border-color: #fff; }

/* ================================================================ listing: cards */
.ss-blog-list { padding: 64px 14px; color: var(--ss-paper); background: linear-gradient(#5a4000, rgba(168, 121, 0, .75)); }
.ss-blog-list__grid { display: flex; gap: 0 3%; max-width: 1252px; margin: 0 auto; }
.ss-blog-list__col { flex: 1 1 0; min-width: 0; }
.ss-post-card { margin: 0 0 28px; overflow: hidden; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .14); }
.ss-post-card__image { display: block; overflow: hidden; line-height: 0; }
.ss-post-card__image img { display: block; width: 100%; height: auto; transition: transform .7s cubic-bezier(.2, 1, .22, 1); }
.ss-post-card:hover .ss-post-card__image img { transform: scale(1.05); }
.ss-post-card__body { padding: 21px 28px 28px; }
.ss-post-card__time {
  display: inline-block; margin: 0 0 7px; padding: 1.75px 7px; font-size: 11.2px; line-height: 1.2; text-transform: uppercase;
  border: 1px solid #d7d7d7; border-radius: 10.5px;
}
.ss-post-card__title { margin: 0 0 14px; font: 600 24px/1.2 "Playfair Display", serif; }
.ss-post-card__title a { color: var(--ss-peach); text-decoration: none; transition: color .2s; }
.ss-post-card__title a:hover, .ss-post-card__title a:focus-visible { color: var(--ss-sky); }
.ss-post-card__summary { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.ss-post-card__date { margin-top: 20px; font-size: 12.6px; line-height: 1.4; color: #c7c7c7; }

/* tablets: two columns, phones: one, always in reading order (the cards carry their position) */
@media (max-width: 992px) {
  .ss-blog-list__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .ss-blog-list__col { display: contents; }
}
@media (max-width: 767px) {
  .ss-blog-head { min-height: 420px; padding: 48px 16px; }
  .ss-blog-head__title { font-size: 44px; }
  .ss-blog-head__tag { padding: 4px 10px; }
  .ss-blog-list { padding: 40px 16px; }
  .ss-blog-list__grid { grid-template-columns: minmax(0, 1fr); }
  .ss-post-card { margin-bottom: 20px; }
  .ss-post-card__body { padding: 18px 20px 22px; }
}

/* ================================================================ pagination */
.ss-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 56px; }
.ss-pager__link {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; box-sizing: border-box;
  color: #959595; font-size: 14px; text-decoration: none; border: 2px solid #d7d7d7; border-radius: 10px; transition: color .2s, border-color .2s;
}
.ss-pager__link svg { width: 12px; height: 12px; fill: currentColor; }
a.ss-pager__link:hover, a.ss-pager__link:focus-visible, .ss-pager__link.is-active { color: var(--ss-peach); border-color: var(--ss-peach); }
.ss-pager__link.is-disabled { opacity: .4; }
.ss-pager__arrow { color: var(--ss-paper); }

/* ================================================================ article */
.ss-page--post { background: #fff; }
.ss-post { color: var(--ss-ink); font: 400 18px/1.55 var(--ss-font-body); }
.ss-post__hero {
  max-width: 1232px; margin: 40px auto; overflow: hidden; aspect-ratio: 2.2 / 1; border-radius: 32px;
  width: calc(100% - 64px);
}
.ss-post__hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ss-post__wrap { max-width: 768px; margin: 40px auto; padding: 0 32px; box-sizing: content-box; }
.ss-post__tags, .ss-more__tags { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.ss-tag {
  padding: 2px 8px; font: 600 14px/1.55 var(--ss-font-body); color: #fff; text-transform: lowercase; text-decoration: none;
  background: var(--ss-sky); border: 4px solid var(--ss-sky); border-radius: 50px; transition: background-color .2s, border-color .2s;
}
a.ss-tag:hover, a.ss-tag:focus-visible { background: var(--ss-navy); border-color: var(--ss-navy); }
.ss-post__title { margin: 0 0 32px; font: 400 57px/1.2 "Patua One", sans-serif; color: var(--ss-ink); transition: color .2s; }
.ss-post__title:hover { color: var(--ss-sky); }
.ss-post__byline { display: flex; align-items: center; gap: 16px; font-size: 16px; font-weight: 600; }
.ss-post__avatar { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.ss-post__date { display: block; margin: 20px 0 40px; font-size: 16px; font-weight: 600; }

/* article text: one format for every post, whatever the original source */
.ss-post__body { overflow-wrap: break-word; }
.ss-post__body > :first-child { margin-top: 0; }
.ss-post__body p, .ss-post__body ul, .ss-post__body ol, .ss-post__body blockquote, .ss-post__body pre, .ss-post__body header { margin: 0 0 32px; }
.ss-post__body ul, .ss-post__body ol { padding-left: 28px; }
.ss-post__body li { margin-bottom: 8px; }
.ss-post__body h1, .ss-post__body h2, .ss-post__body h3 { margin: 48px 0 20px; font: 400 32px/1.3 "Playfair Display", serif; color: var(--ss-ink); }
.ss-post__body h4, .ss-post__body h5, .ss-post__body h6 { margin: 40px 0 16px; font: 600 24px/1.35 var(--ss-font-body); color: var(--ss-ink); }
.ss-post__body :is(h1, h2, h3, h4, h5, h6) * { font: inherit; }
.ss-post__body a { color: #5a4000; text-decoration: underline; text-underline-offset: 2px; }
.ss-post__body a:hover { color: var(--ss-gold); }
.ss-post__body img { max-width: 100%; height: auto; }
.ss-post__body figure { margin: 18px 40px 32px; text-align: center; }
.ss-post__body figure img { display: block; margin: 0 auto 12px; }
.ss-post__body figcaption { font-size: 14px; line-height: 1.55; }
.ss-post__body blockquote { padding: 4px 0 4px 20px; font-style: italic; border-left: 4px solid var(--ss-sky); }
.ss-post__body blockquote p:last-child { margin-bottom: 0; }
.ss-post__body hr { height: 1px; margin: 40px 0; background: #ddd; border: 0; }
.ss-post__body pre { font: inherit; white-space: pre-wrap; }
.ss-post__body iframe { max-width: 100%; }
.ss-post__body .ss-center { text-align: center; margin-left: auto; margin-right: auto; }
.ss-post__body .ss-post-embed { max-width: 100%; margin: 0 auto 32px; }
/* photo galleries brought over from WordPress */
.ss-post__body .ss-post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 18px 0 32px; }
.ss-post__body .ss-post-gallery > figure { display: contents; }
.ss-post__body .ss-post-gallery img { width: 100% !important; height: 100% !important; margin: 0; object-fit: cover; aspect-ratio: 4 / 3; }
.ss-post__body .ss-post-gallery figcaption { grid-column: 1 / -1; }
.ss-post__body .ss-tiled { margin: 0 0 32px; }
.ss-post__body .ss-tiled__row { display: flex; gap: 8px; }
.ss-post__body .ss-tiled__col { min-width: 0; }
.ss-post__body .ss-tiled__item { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ss-post__body .ss-tiled__item img { width: 100% !important; margin: 0; }
/* interview pages copied from other magazines had their own boxed header */
.ss-post__body header h1 { margin-top: 0; }

/* audio, share */
.ss-post .ss-audio { margin: 0 0 32px; }
.ss-share { margin: 48px 0 80px; text-align: center; }
.ss-share__label { margin: 0 0 16px; font-weight: 600; }
.ss-share__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ss-share__link {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; box-sizing: border-box;
  color: #5a4000; border: 2px solid var(--ss-sky); border-radius: 50%; transition: color .2s, background-color .2s;
}
.ss-share__link svg { width: 22px; height: 22px; fill: currentColor; }
.ss-share__link:hover, .ss-share__link:focus-visible { color: #fff; background: var(--ss-sky); }

/* ================================================================ "Keep reading" */
.ss-more { padding: 80px 0; background: #f2f5f7; }
.ss-more__wrap { max-width: 1232px; margin: 0 auto; padding: 0 32px; }
.ss-more__title { margin: 0 0 64px; font: 500 36px/1.3 "Bishail Script", cursive; color: var(--ss-ink); text-align: center; }
.ss-more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.ss-more__card { overflow: hidden; background: #f2f5f7; border: 1px solid #c4d6ed; }
.ss-more__link { display: block; color: inherit; text-decoration: none; }
.ss-more__image { aspect-ratio: 1.41 / 1; overflow: hidden; background: #5a4000; }
.ss-more__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, 1, .22, 1); }
.ss-more__link:hover .ss-more__image img { transform: scale(1.04); }
.ss-more__body { padding: 32px; }
.ss-more__name { margin: 0; font: 400 32px/1.2 "Playfair Display", serif; color: var(--ss-ink); transition: color .2s; }
.ss-more__link:hover .ss-more__name, .ss-more__link:focus-visible .ss-more__name { color: var(--ss-sky); }

@media (max-width: 767px) {
  .ss-post__hero { width: calc(100% - 32px); margin: 20px auto 28px; border-radius: 20px; aspect-ratio: 16 / 10; }
  .ss-post__wrap { margin: 28px auto; padding: 0 20px; }
  .ss-post__title { margin-bottom: 24px; font-size: 38px; }
  .ss-post__body figure { margin: 18px 0 28px; }
  .ss-post__body h1, .ss-post__body h2, .ss-post__body h3 { font-size: 26px; }
  .ss-post__body h4, .ss-post__body h5, .ss-post__body h6 { font-size: 21px; }
  .ss-post__body p, .ss-post__body ul, .ss-post__body ol, .ss-post__body blockquote { margin-bottom: 24px; }
  .ss-post__body .ss-tiled__row { flex-direction: column; }
  .ss-post__body .ss-tiled__col { flex-basis: auto !important; }
  .ss-share { margin: 36px 0 56px; }
  .ss-more { padding: 56px 0; }
  .ss-more__wrap { padding: 0 16px; }
  .ss-more__title { margin-bottom: 32px; font-size: 34px; }
  .ss-more__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ss-more__body { padding: 22px; }
  .ss-more__name { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ss-post-card__image img, .ss-more__image img { transition: none; }
  .ss-post-card:hover .ss-post-card__image img, .ss-more__link:hover .ss-more__image img { transform: none; }
}
