:root {
  --rs-ink: #1e1810;
  --rs-muted: #6f6558;
  --rs-gold: #f9c349;
  --rs-gold-dark: #7a5200;
  --rs-paper: #f8f7f3;
  --rs-white: #fff;
  --rs-line: rgba(30, 24, 16, 0.14);
  --rs-shadow: 0 16px 36px rgba(56, 39, 16, 0.1);
}

.rs-blog-page {
  margin: 0;
  color: var(--rs-ink);
  background: var(--rs-paper);
  font-family: "Karla", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

.rs-blog-page *,
.rs-blog-page *::before,
.rs-blog-page *::after {
  box-sizing: border-box;
}

.rs-blog-page a {
  color: inherit;
}

.rs-blog-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.rs-blog-page h1,
.rs-blog-page h2,
.rs-blog-page h3 {
  margin-top: 0;
  color: var(--rs-ink);
  font-family: "Rubik", "Arial Black", sans-serif;
  line-height: 1.12;
}

.rs-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.rs-blog-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--rs-ink);
  background: var(--rs-gold);
  transform: translateY(-160%);
}

.rs-blog-skip:focus {
  transform: translateY(0);
}

.rs-blog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(249, 195, 73, 0.2);
  background: rgba(27, 21, 14, 0.94) url("/assets/img/2023/01/4-2.jpg") center / cover;
  backdrop-filter: blur(14px);
}

.rs-blog-header__inner {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 159px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-inline: 35px;
}

.rs-blog-brand {
  display: inline-flex;
  align-items: center;
}

.rs-blog-brand img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.rs-blog-header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.rs-blog-page .rs-blog-linkedin {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: #fff9ec;
}

.rs-blog-linkedin svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.rs-text-link span {
  display: inline-block;
  transition: transform 250ms ease;
}

.rs-text-link:hover span,
.rs-text-link:focus-visible span,
.rs-post-card:focus-within .rs-text-link span {
  transform: translateX(4px);
}

.rs-blog-hero {
  position: relative;
  display: flex;
  min-height: 380px;
  align-items: center;
  overflow: hidden;
  padding: 72px 0;
  background: #17120c;
}

.rs-blog-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(17, 13, 8, 0.94) 0%, rgba(17, 13, 8, 0.82) 48%, rgba(17, 13, 8, 0.25) 100%);
}

.rs-blog-hero__fresco {
  position: absolute;
  inset: 0;
  background: url("/assets/img/hero/hero-fresco-clean.webp") center 27% / cover no-repeat;
  opacity: 0.72;
}

.rs-blog-hero__content {
  position: relative;
  z-index: 2;
}

.rs-kicker {
  margin: 0 0 16px;
  color: var(--rs-gold-dark);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rs-blog-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #fff9ec;
  font-size: clamp(3rem, 6vw, 5.4rem);
  letter-spacing: -0.045em;
}

.rs-blog-hero__intro {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 249, 236, 0.76);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.rs-blog-grid-wrap {
  padding: 80px 0 108px;
}

.rs-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.rs-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--rs-white);
  border: 1px solid var(--rs-line);
  box-shadow: 0 10px 26px rgba(56, 39, 16, 0.055);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.rs-post-card:hover,
.rs-post-card:focus-within {
  border-color: rgba(181, 126, 31, 0.42);
  box-shadow: 0 14px 32px rgba(56, 39, 16, 0.085);
  transform: translateY(-3px);
}

.rs-post-card__image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9e1d1;
}

.rs-post-card__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.rs-post-card:hover .rs-post-card__image-link img,
.rs-post-card:focus-within .rs-post-card__image-link img {
  transform: scale(1.025);
}

.rs-post-card__image-link .rs-post-card__image--contain {
  padding: 18px;
  background: #f7f4ed;
  object-fit: contain;
}

.rs-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px 32px 34px;
}

.rs-post-card__meta,
.rs-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 14px;
  color: var(--rs-gold-dark);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rs-post-card__meta > * + *::before {
  margin: 0 9px;
  color: rgba(181, 126, 31, 0.62);
  content: "·";
}

.rs-post-card h2,
.rs-post-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.rs-post-card h2 a,
.rs-post-card h3 a {
  text-decoration: none;
}

.rs-post-card p {
  margin: 0 0 22px;
  color: var(--rs-muted);
}

.rs-post-card .rs-text-link {
  align-self: flex-start;
  margin-top: auto;
}

.rs-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--rs-ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.rs-article-hero {
  padding: 88px 0 70px;
  background: linear-gradient(145deg, #fffdf8 0%, #f1e8d5 100%);
}

.rs-article-hero__inner {
  max-width: 920px;
}

.rs-article-hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6.5vw, 5.6rem);
  letter-spacing: -0.04em;
}

.rs-article-lead {
  max-width: 760px;
  margin: 0;
  color: var(--rs-muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.rs-featured-image {
  width: min(1120px, calc(100% - 48px));
  max-height: 680px;
  margin: 0 auto;
  object-fit: cover;
  box-shadow: var(--rs-shadow);
}

.rs-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(180px, 1fr);
  gap: 72px;
  align-items: start;
  padding: 88px 0 110px;
}

.rs-article-content h2 {
  margin: 2.3em 0 0.65em;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.rs-article-content h3 {
  margin: 1.8em 0 0.55em;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.rs-article-content p,
.rs-article-content ul,
.rs-article-content ol {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.rs-article-content li + li {
  margin-top: 0.55em;
}

.rs-article-content a {
  color: #875b12;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rs-article-content hr {
  width: 90px;
  height: 2px;
  margin: 42px 0;
  background: var(--rs-gold);
  border: 0;
}

.rs-article-content img {
  margin: 42px auto;
}

.rs-article-aside {
  position: sticky;
  top: 122px;
  padding: 26px;
  border-top: 3px solid var(--rs-gold);
  background: var(--rs-white);
  box-shadow: 0 12px 32px rgba(56, 39, 16, 0.07);
}

.rs-article-aside p {
  margin: 0 0 10px;
  color: var(--rs-muted);
  font-size: 15px;
}

.rs-article-aside a {
  font-weight: 700;
}

.rs-blog-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--rs-ink);
  font-size: 14px;
}

.rs-blog-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rs-blog-footer p {
  margin: 0;
}

/* Blog preview embedded in the existing home page. */
.rs-blog-section {
  padding: 104px 40px;
  color: var(--rs-ink);
  background: #fffdf8;
  border-top: 1px solid rgba(181, 126, 31, 0.2);
}

.rs-blog-section__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.rs-blog-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.rs-blog-section h2 {
  margin: 0;
  color: var(--rs-ink);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.08;
}

.rs-blog-section .rs-post-card h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

@media (max-width: 780px) {
  .rs-shell,
  .rs-featured-image {
    width: min(100% - 32px, 1240px);
  }

  .rs-blog-header__inner {
    width: 100%;
    max-width: none;
    height: calc(11vh - 1px);
    min-height: 0;
    gap: 18px;
    padding-inline: 28px;
  }

  .rs-blog-brand img {
    width: 48px;
    height: 48px;
  }

  .rs-blog-header__actions {
    gap: 16px;
  }

  .rs-article-hero {
    padding: 72px 0 64px;
  }

  .rs-blog-hero {
    min-height: 340px;
    padding: 58px 0;
  }

  .rs-blog-grid-wrap,
  .rs-article-layout {
    padding: 64px 0 78px;
  }

  .rs-article-layout {
    grid-template-columns: 1fr;
  }

  .rs-article-layout {
    gap: 44px;
  }

  .rs-article-aside {
    position: static;
  }

  .rs-blog-section {
    padding: 72px 24px;
  }

  .rs-blog-section__heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .rs-blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .rs-blog-header__inner {
    height: calc(13vh - 1px);
  }

  .rs-blog-hero {
    min-height: 310px;
  }

  .rs-blog-hero::before {
    background: linear-gradient(90deg, rgba(17, 13, 8, 0.96) 0%, rgba(17, 13, 8, 0.84) 64%, rgba(17, 13, 8, 0.5) 100%);
  }

  .rs-post-card__body {
    padding: 25px 24px 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-blog-page *,
  .rs-blog-page *::before,
  .rs-blog-page *::after,
  .rs-post-card,
  .rs-post-card__image-link img,
  .rs-text-link span {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
