:root {
  --am-ink: #161616;
  --am-muted: #666;
  --am-red: #c9182b;
  --am-paper: #fff;
  --am-soft: #f3f3f1;
  --am-line: #dededb;
}

.am-single-post,
.am-single-post * {
  box-sizing: border-box;
}

.am-single-post {
  background: var(--am-paper);
  color: var(--am-ink);
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.7;
}

.am-hero {
  min-height: 480px;
  display: grid;
  place-items: end center;
  padding: 72px 24px 0;
  background-color: #dadad7;
}

.am-hero.has-image {
  background-image: linear-gradient(90deg, rgba(10, 15, 18, .30), rgba(10, 15, 18, .08)), var(--am-hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.am-title-card {
  width: min(940px, 100%);
  background: #fff;
  padding: 54px 6% 46px;
  text-align: center;
  box-shadow: 0 -14px 50px rgba(0, 0, 0, .08);
}

.am-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--am-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
}

.am-post-title {
  max-width: 780px;
  margin: 18px auto 14px;
  color: var(--am-ink);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
}

.am-post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: #777;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.am-post-content {
  width: min(760px, calc(100% - 40px));
  margin: 68px auto 100px;
  color: #444;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 17px;
}

.am-post-content > *:first-child {
  margin-top: 0;
}

.am-post-content p,
.am-post-content ul,
.am-post-content ol,
.am-post-content blockquote,
.am-post-content figure,
.am-post-content table {
  margin-top: 0;
  margin-bottom: 24px;
}

.am-post-content h2,
.am-post-content h3,
.am-post-content h4 {
  color: var(--am-ink);
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.am-post-content h2 {
  margin: 58px 0 17px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -.03em;
}

.am-post-content h3 {
  margin: 36px 0 12px;
  font-size: 1.35rem;
}

.am-post-content a {
  color: var(--am-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.am-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.am-post-content blockquote {
  margin-left: 0;
  padding: 22px 28px;
  border-left: 4px solid var(--am-red);
  background: var(--am-soft);
  color: #272727;
  font-size: 1.15em;
}

.am-post-content table {
  width: 100%;
  border-collapse: collapse;
}

.am-post-content th,
.am-post-content td {
  padding: 12px;
  border: 1px solid var(--am-line);
  text-align: left;
}

.am-post-content .wp-block-columns {
  gap: 20px;
}

.am-post-content .wp-block-cover,
.am-post-content .wp-block-group.has-background {
  margin-top: 42px;
  margin-bottom: 42px;
}

.am-page-links {
  margin-top: 45px;
  font-weight: 700;
}

.am-related {
  padding: 86px 24px 100px;
  background: var(--am-soft);
}

.am-related-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.am-section-kicker {
  margin: 0;
  color: var(--am-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.am-related h2 {
  margin: 8px 0 32px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.am-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.am-related-card {
  overflow: hidden;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
  border-radius: 20px;
}

.am-related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .09);
}

.am-related-image {
  display: block;
  height: 210px;
  overflow: hidden;
  background: #ddd;
}

.am-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.am-related-card:hover .am-related-image img {
  transform: scale(1.035);
}

.am-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d7d7d3, #efefed);
}

.am-related-copy {
  padding: 25px;
}

.am-card-category {
  color: var(--am-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.am-related-copy h3 {
  margin: 10px 0 14px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.am-related-copy h3 a {
  color: var(--am-ink);
  text-decoration: none;
}

.am-related-copy p {
  margin: 0;
  color: var(--am-muted);
  font-size: 14px;
  line-height: 1.55;
}

.am-read-more {
  display: inline-block;
  margin-top: 20px;
  border-bottom: 2px solid var(--am-red);
  color: var(--am-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

@media (max-width: 767px) {
  .am-hero {
    min-height: 390px;
    padding: 40px 16px 0;
  }

  .am-title-card {
    padding: 38px 24px 34px;
  }

  .am-post-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .am-post-content {
    width: min(100% - 30px, 760px);
    margin-top: 48px;
    margin-bottom: 70px;
    font-size: 16px;
  }

  .am-post-grid {
    grid-template-columns: 1fr;
  }

  .am-related {
    padding: 60px 20px 70px;
  }

  .am-related-image {
    height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .am-related-card,
  .am-related-image img {
    transition: none;
  }
}
