/* =====================================================
   Master Lawyer - Blog & article page styles
   Pages: blog.html, blog-post.html
   Namespace: .blog-*
   Typography uses the role tokens from style.css (--font-display, --font-label,
   --font-body and their -weight / -stretch / -scale), so every font option in
   the customizer applies here too. Sizes are design sizes multiplied by the
   role scale and --screen-type.
   ===================================================== */

.blog-layout {
  --blog-gold: var(--gold);
  --blog-gold-text: #8a6420;
  --blog-ink: #262626;
  --blog-text: #5f5f5f;
  --blog-muted: #706d67;
  --blog-line: #ebe6dc;
  --blog-soft: #f7f5f1;
  --blog-ease: cubic-bezier(0.22, 1, 0.36, 1);

  padding: 64px 0 80px;
  background: #fff;
  font-family: var(--font-body);
  color: var(--blog-text);
}

/* ==========================================================
   SHARED
   ========================================================== */

.blog-eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(13px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-gold-text);
}

/* ---------- Meta row ---------- */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 14px;
  font-size: calc(13px * var(--font-body-scale) * var(--screen-type));
  color: var(--blog-muted);
}

.blog-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-meta__item .ico {
  font-size: 1.15em;
}

/* ---------- Category chip & tags ---------- */
.blog-chip,
.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--blog-line);
  border-radius: 999px;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(12px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blog-ink);
  transition: color 0.3s var(--blog-ease), border-color 0.3s var(--blog-ease), background-color 0.3s var(--blog-ease);
}

.blog-chip {
  border-color: transparent;
  background: rgb(var(--gold-rgb) / 12%);
  color: #8a6420;
}

.blog-chip:hover,
.blog-chip:focus-visible,
.blog-tag:hover,
.blog-tag:focus-visible {
  border-color: var(--blog-gold);
  background: var(--blog-gold);
  color: #fff;
  text-decoration: none;
}

/* ---------- Focus ring ---------- */
.blog-layout a:focus-visible,
.blog-layout button:focus-visible,
.blog-layout input:focus-visible,
.blog-layout textarea:focus-visible {
  outline: 2px solid var(--blog-gold);
  outline-offset: 3px;
}

/* ---------- Section titles ---------- */
.blog-section-title {
  margin: 0 0 24px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-stretch: var(--font-display-stretch);
  font-size: calc(36px * var(--font-display-scale) * var(--screen-type));
  line-height: 1.15;
  text-transform: var(--font-display-case);
  color: var(--blog-ink);
}

.blog-section-title__count {
  display: inline-block;
  min-width: 1.6em;
  margin-left: 6px;
  padding: 0 0.45em;
  border-radius: 999px;
  background: var(--blog-soft);
  font-family: var(--font-body);
  font-size: 0.55em;
  line-height: 1.6;
  text-align: center;
  vertical-align: middle;
  color: var(--blog-muted);
}

/* ==========================================================
   BLOG LIST
   ========================================================== */

/* ---------- Heading ---------- */
.blog-head {
  margin-bottom: 36px;
}

.blog-head__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-stretch: var(--font-display-stretch);
  font-size: calc(64px * var(--font-display-scale) * var(--screen-type));
  line-height: 1.05;
  text-transform: var(--font-display-case);
  color: var(--blog-ink);
}

.blog-head__lead {
  max-width: 52ch;
  margin: 0;
  font-size: calc(16px * var(--font-body-scale) * var(--screen-type));
  line-height: 1.6;
}

.blog-results {
  margin: 14px 0 0;
  font-size: calc(14px * var(--font-body-scale) * var(--screen-type));
  color: var(--blog-muted);
}

.blog-results:empty {
  display: none;
}

/* ---------- Post card ---------- */
.blog-list {
  display: grid;
  gap: 28px;
}

.blog-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.4s var(--blog-ease), box-shadow 0.4s var(--blog-ease);
}

.blog-card:hover {
  border-color: #e0d6c2;
  box-shadow: 0 18px 40px -28px rgb(0 0 0 / 35%);
}

.blog-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 240px;
  background: #191919;
}

.blog-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--blog-ease);
}

.blog-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  background: rgb(0 0 0 / 45%);
  transition: background-color 0.35s var(--blog-ease), border-color 0.35s var(--blog-ease);
}

.blog-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -5px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.blog-card:hover .blog-card__play {
  border-color: var(--blog-gold);
  background: var(--blog-gold);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  padding: 28px 30px 26px;
}

.blog-card__title {
  margin: 0 0 12px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-stretch: var(--font-display-stretch);
  font-size: calc(36px * var(--font-display-scale) * var(--screen-type));
  line-height: 1.12;
  text-transform: var(--font-display-case);
}

.blog-card__title a {
  color: var(--blog-ink);
  text-decoration: none;
  transition: color 0.3s var(--blog-ease);
}

.blog-card__title a:hover,
.blog-card:hover .blog-card__title a {
  color: var(--blog-gold);
}

/* The whole card opens the article: the title link is stretched over it.
   The category chip and the read link stay clickable on their own. */
.blog-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.blog-card .blog-chip,
.blog-card .blog-more {
  position: relative;
  z-index: 2;
}

.blog-card__excerpt {
  margin: 0 0 20px;
  font-size: calc(15px * var(--font-body-scale) * var(--screen-type));
  line-height: 1.65;
}

/* ---------- Read article (eased, no layout shift) ---------- */
.blog-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(14px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blog-gold);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.35s var(--blog-ease), background-size 0.45s var(--blog-ease);
}

.blog-more .ico {
  font-size: 1.15em;
  transition: transform 0.45s var(--blog-ease);
}

.blog-more:hover,
.blog-more:focus-visible {
  color: #9b6a0f;
  background-size: 100% 1px;
  text-decoration: none;
}

/* ---------- Search matches ---------- */
.blog-layout mark {
  padding: 0 0.1em;
  border-radius: 2px;
  background: rgb(var(--gold-rgb) / 22%);
  color: inherit;
}

/* ---------- Empty state ---------- */
.blog-empty {
  padding: 56px 24px;
  border: 1px dashed #dcd3c2;
  border-radius: 6px;
  background: var(--blog-soft);
  text-align: center;
}

.blog-empty__icon {
  display: block;
  margin-bottom: 14px;
  font-size: 40px;
  color: var(--blog-gold);
}

.blog-empty__title {
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-stretch: var(--font-display-stretch);
  font-size: calc(32px * var(--font-display-scale) * var(--screen-type));
  line-height: 1.15;
  text-transform: var(--font-display-case);
  overflow-wrap: anywhere;
  color: var(--blog-ink);
}

.blog-empty__text {
  margin: 0 0 20px;
  font-size: calc(15px * var(--font-body-scale) * var(--screen-type));
}

/* ---------- Buttons ---------- */
.blog-empty__reset,
.blog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border: 1px solid var(--blog-gold);
  border-radius: 4px;
  background: var(--blog-gold);
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(14px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s var(--blog-ease), color 0.3s var(--blog-ease);
}

.blog-empty__reset:hover,
.blog-button:hover {
  background: #000;
  color: var(--blog-gold);
}

/* ---------- Pagination ---------- */
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}

.blog-pagination__page,
.blog-pagination__step,
.blog-pagination__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--blog-line);
  border-radius: 4px;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(15px * var(--font-label-scale) * var(--screen-type));
  text-decoration: none;
  color: var(--blog-ink);
  transition: color 0.3s var(--blog-ease), border-color 0.3s var(--blog-ease), background-color 0.3s var(--blog-ease);
}

.blog-pagination__gap {
  border-color: transparent;
  color: var(--blog-muted);
}

.blog-pagination__step .ico {
  font-size: 18px;
}

.blog-pagination__page:hover,
.blog-pagination__step:hover {
  border-color: var(--blog-gold);
  color: var(--blog-gold);
  text-decoration: none;
}

.blog-pagination__page.is-current {
  border-color: var(--blog-ink);
  background: var(--blog-ink);
  color: #fff;
}

/* ==========================================================
   SIDEBAR
   ========================================================== */

.blog-sidebar {
  display: grid;
  gap: 40px;
}

/* ---------- Search ---------- */
.blog-search {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--blog-line);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.3s var(--blog-ease), box-shadow 0.3s var(--blog-ease);
}

.blog-search:focus-within {
  border-color: var(--blog-gold);
  box-shadow: 0 0 0 4px rgb(var(--gold-rgb) / 14%);
}

.blog-search__icon {
  position: absolute;
  left: 14px;
  font-size: 19px;
  color: var(--blog-muted);
  pointer-events: none;
}

.blog-search__input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 8px 0 44px;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: calc(15px * var(--font-body-scale) * var(--screen-type));
  color: var(--blog-ink);
}

.blog-search__input::placeholder {
  color: var(--blog-muted);
}

/* The whole field shows focus (rounded gold ring via :focus-within above),
   so the input itself draws no outline of its own. */
.blog-search .blog-search__input:focus,
.blog-search .blog-search__input:focus-visible {
  outline: none;
}

.blog-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.blog-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 16px;
  color: var(--blog-muted);
  cursor: pointer;
  transition: color 0.3s var(--blog-ease), background-color 0.3s var(--blog-ease);
}

.blog-search__clear:hover {
  background: var(--blog-soft);
  color: var(--blog-ink);
}

.blog-search .blog-search__clear:focus-visible {
  outline: none;
  background: var(--blog-soft);
  box-shadow: 0 0 0 2px rgb(var(--gold-rgb) / 55%);
  color: var(--blog-ink);
}

.blog-search__submit {
  align-self: stretch;
  padding: 0 16px;
  border: 0;
  border-left: 1px solid var(--blog-line);
  border-radius: 0 6px 6px 0;
  background: none;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(13px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blog-gold-text);
  cursor: pointer;
  transition: color 0.3s var(--blog-ease), background-color 0.3s var(--blog-ease);
}

.blog-search__submit:hover {
  background: var(--blog-gold);
  color: #000;
}

.blog-search .blog-search__submit:focus-visible {
  outline: none;
  background: rgb(var(--gold-rgb) / 16%);
  color: #8a6420;
}

/* ---------- Widget title ---------- */
.blog-widget__title {
  position: relative;
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--blog-line);
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-stretch: var(--font-display-stretch);
  font-size: calc(26px * var(--font-display-scale) * var(--screen-type));
  line-height: 1.2;
  text-transform: var(--font-display-case);
  color: var(--blog-ink);
}

.blog-widget__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--blog-gold);
}

/* ---------- Categories ---------- */
.blog-categories {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-categories__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--blog-line);
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(16px * var(--font-label-scale) * var(--screen-type));
  text-decoration: none;
  color: var(--blog-ink);
  transition: color 0.35s var(--blog-ease);
}

.blog-categories__name {
  transition: transform 0.45s var(--blog-ease);
}

.blog-categories__count {
  min-width: 30px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blog-soft);
  font-family: var(--font-body);
  font-size: calc(12px * var(--font-body-scale) * var(--screen-type));
  text-align: center;
  color: var(--blog-muted);
  transition: color 0.35s var(--blog-ease), background-color 0.35s var(--blog-ease);
}

.blog-categories__link:hover,
.blog-categories__link:focus-visible {
  color: var(--blog-gold);
  text-decoration: none;
}

.blog-categories__link:hover .blog-categories__count,
.blog-categories__link:focus-visible .blog-categories__count {
  background: var(--blog-gold);
  color: #fff;
}

/* ---------- Recent posts ---------- */
.blog-recent {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-recent__link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.blog-recent__media {
  flex: none;
  overflow: hidden;
  width: 84px;
  height: 64px;
  border-radius: 4px;
  background: #191919;
}

.blog-recent__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--blog-ease);
}

.blog-recent__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.blog-recent__text time {
  font-size: calc(12px * var(--font-body-scale) * var(--screen-type));
  color: var(--blog-muted);
}

.blog-recent__title {
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(16px * var(--font-label-scale) * var(--screen-type));
  line-height: 1.25;
  color: var(--blog-ink);
  transition: color 0.3s var(--blog-ease);
}

.blog-recent__link:hover .blog-recent__title {
  color: var(--blog-gold);
}

/* ---------- Tags ---------- */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================
   ARTICLE
   ========================================================== */

.blog-article__head {
  margin-bottom: 28px;
}

.blog-article__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-stretch: var(--font-display-stretch);
  font-size: calc(68px * var(--font-display-scale) * var(--screen-type));
  line-height: 1.04;
  text-transform: var(--font-display-case);
  color: var(--blog-ink);
}

.blog-article__byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: calc(14px * var(--font-body-scale) * var(--screen-type));
}

.blog-article__byline img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-article__byline a {
  color: var(--blog-ink);
  font-weight: 600;
  text-decoration: none;
}

.blog-article__byline a:hover {
  color: var(--blog-gold);
}

.blog-article__hero {
  overflow: hidden;
  margin: 0 0 36px;
  border-radius: 6px;
}

.blog-article__hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Reading column ---------- */
.blog-prose {
  max-width: 68ch;
  font-size: calc(17px * var(--font-body-scale) * var(--screen-type));
  line-height: 1.75;
  color: #4a4a4a;
}

.blog-prose p {
  margin: 0 0 1.2em;
}

.blog-prose__lead {
  font-size: 1.15em;
  line-height: 1.6;
  color: var(--blog-ink);
}

.blog-prose h2 {
  margin: 1.8em 0 0.6em;
  padding: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-stretch: var(--font-display-stretch);
  font-size: calc(40px * var(--font-display-scale) * var(--screen-type));
  line-height: 1.15;
  text-transform: var(--font-display-case);
  color: var(--blog-ink);
}

/* ---------- Pull quote ---------- */
.blog-pullquote {
  position: relative;
  margin: 2em 0;
  padding: 26px 72px 26px 32px;
  border-left: 3px solid var(--blog-gold);
  border-radius: 0 6px 6px 0;
  background: var(--blog-soft);
}

.blog-pullquote .ico {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 40px;
  color: rgb(var(--gold-rgb) / 35%);
}

.blog-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-body);
  font-size: 1.1em;
  font-style: italic;
  line-height: 1.6;
  color: var(--blog-ink);
}

/* ---------- Inline figure ---------- */
.blog-figure {
  float: right;
  width: min(44%, 320px);
  margin: 0.3em 0 1em 28px;
}

.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.blog-figure figcaption {
  margin-top: 8px;
  font-size: 0.82em;
  line-height: 1.4;
  color: var(--blog-muted);
}

/* ---------- Article footer ---------- */
.blog-article__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  clear: both;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--blog-line);
}

.blog-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-share__label {
  margin-right: 4px;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(13px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blog-muted);
}

.blog-share__link,
.blog-author__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--blog-line);
  border-radius: 50%;
  font-size: 19px;
  text-decoration: none;
  color: var(--blog-ink);
  transition: color 0.3s var(--blog-ease), border-color 0.3s var(--blog-ease), background-color 0.3s var(--blog-ease);
}

.blog-share__link:hover,
.blog-author__social a:hover {
  border-color: var(--blog-gold);
  background: var(--blog-gold);
  color: #fff;
}

/* ---------- Author ---------- */
.blog-author {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  padding: 28px;
  border-radius: 6px;
  background: var(--blog-soft);
}

.blog-author__photo {
  flex: none;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-author__name {
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-stretch: var(--font-display-stretch);
  font-size: calc(32px * var(--font-display-scale) * var(--screen-type));
  line-height: 1.15;
  text-transform: var(--font-display-case);
  color: var(--blog-ink);
}

.blog-author__bio {
  margin: 0 0 14px;
  font-size: calc(15px * var(--font-body-scale) * var(--screen-type));
  line-height: 1.65;
}

.blog-author__social {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Previous / next ---------- */
.blog-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 56px;
}

.blog-adjacent__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--blog-line);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.35s var(--blog-ease), box-shadow 0.35s var(--blog-ease);
}

.blog-adjacent__link--next {
  align-items: flex-end;
  text-align: right;
}

.blog-adjacent__dir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(12px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blog-gold-text);
}

.blog-adjacent__dir .ico {
  transition: transform 0.45s var(--blog-ease);
}

.blog-adjacent__title {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-stretch: var(--font-display-stretch);
  font-size: calc(26px * var(--font-display-scale) * var(--screen-type));
  line-height: 1.2;
  text-transform: var(--font-display-case);
  color: var(--blog-ink);
}

.blog-adjacent__link:hover {
  border-color: #e0d6c2;
  box-shadow: 0 14px 32px -24px rgb(0 0 0 / 35%);
  text-decoration: none;
}

/* ---------- Comments ---------- */
.blog-comments__list,
.blog-comments__replies {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-comments__replies {
  margin-top: 4px;
  padding-left: 76px;
}

.blog-comment__body {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--blog-line);
}

.blog-comment__avatar {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-comment__main {
  min-width: 0;
}

.blog-comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 6px;
}

.blog-comment__name {
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(17px * var(--font-label-scale) * var(--screen-type));
  color: var(--blog-ink);
}

.blog-comment__time {
  font-size: calc(13px * var(--font-body-scale) * var(--screen-type));
  color: var(--blog-muted);
}

.blog-comment__text {
  margin: 0 0 10px;
  font-size: calc(15px * var(--font-body-scale) * var(--screen-type));
  line-height: 1.65;
}

.blog-comment__reply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(13px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blog-gold-text);
  transition: color 0.3s var(--blog-ease);
}

.blog-comment__reply:hover {
  color: var(--blog-ink);
  text-decoration: none;
}

/* ---------- Comment form ---------- */
.blog-respond {
  margin-top: 56px;
}

.blog-respond__note {
  margin: -12px 0 22px;
  font-size: calc(14px * var(--font-body-scale) * var(--screen-type));
  color: var(--blog-muted);
}

.blog-field {
  margin-bottom: 18px;
}

.blog-field__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(13px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blog-ink);
}

.blog-field__label span {
  color: var(--blog-gold);
}

.blog-field__input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--blog-line);
  border-radius: 4px;
  background: #fff;
  font-family: var(--font-body);
  font-size: calc(15px * var(--font-body-scale) * var(--screen-type));
  color: var(--blog-ink);
  transition: border-color 0.3s var(--blog-ease), box-shadow 0.3s var(--blog-ease);
}

.blog-field .blog-field__input:focus,
.blog-field .blog-field__input:focus-visible {
  border-color: var(--blog-gold);
  outline: none;
  box-shadow: 0 0 0 4px rgb(var(--gold-rgb) / 14%);
}

.blog-field__input[aria-invalid="true"] {
  border-color: #b3261e;
}

textarea.blog-field__input {
  min-height: 160px;
  resize: vertical;
}

.blog-respond__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.blog-respond__status {
  margin: 0;
  font-size: calc(14px * var(--font-body-scale) * var(--screen-type));
  color: var(--blog-text);
}

.blog-respond__status.is-error {
  color: #b3261e;
}

.blog-respond__status.is-success {
  color: #2e6b3a;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (width <= 991px) {
  .blog-sidebar {
    margin-top: 56px;
  }
}

@media (width <= 767px) {
  .blog-layout {
    padding: 40px 0 56px;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .blog-card__body {
    padding: 22px 20px 20px;
  }

  .blog-figure {
    float: none;
    width: 100%;
    margin: 0 0 1.2em;
  }

  .blog-adjacent {
    grid-template-columns: 1fr;
  }

  .blog-comments__replies {
    padding-left: 28px;
  }

  .blog-pullquote {
    padding: 22px 20px 22px 22px;
  }

  .blog-pullquote .ico {
    position: static;
    display: block;
    margin-bottom: 8px;
    font-size: 32px;
  }
}

@media (width <= 480px) {
  .blog-author {
    flex-direction: column;
    gap: 16px;
  }

  .blog-comment__avatar {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================
   MOTION & PRINT
   Movement on hover is opt-in: it only applies when the visitor has not
   asked for reduced motion. Colour fades stay for everyone.
   ========================================================== */

@media (prefers-reduced-motion: no-preference) {
  .blog-card:hover .blog-card__media img {
    transform: scale(1.04);
  }

  .blog-more:hover .ico,
  .blog-more:focus-visible .ico {
    transform: translateX(4px);
  }

  .blog-categories__link:hover .blog-categories__name,
  .blog-categories__link:focus-visible .blog-categories__name {
    transform: translateX(4px);
  }

  .blog-recent__link:hover .blog-recent__media img {
    transform: scale(1.06);
  }

  .blog-adjacent__link:hover .blog-adjacent__dir .ico {
    transform: translateX(-4px);
  }

  .blog-adjacent__link--next:hover .blog-adjacent__dir .ico {
    transform: translateX(4px);
  }
}

@media print {
  .blog-sidebar,
  .blog-respond,
  .blog-share,
  .blog-pagination {
    display: none;
  }

  .blog-layout * {
    transition: none;
  }
}
