.amplify-article-page {
  background: #120b05;
}

.amplify-article-page #content,
.amplify-article-page #primary,
.amplify-article-page .site-main {
  margin: 0;
  padding: 0;
}

.amplify-post-main {
  background: #120b05;
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.amplify-article-page .site-main.amplify-post-main,
.amplify-article-archive .site-main.amplify-archive-main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.amplify-post-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.amplify-post-hero {
  --amplify-post-scrim: linear-gradient(130deg, rgba(18, 11, 5, 0.96) 8%, rgba(18, 11, 5, 0.7) 45%, rgba(18, 11, 5, 0.58) 75%, rgba(18, 11, 5, 0.75) 100%);
  position: relative;
  overflow: hidden;
  padding: clamp(8.2rem, 10vw, 9.4rem) 0 clamp(3rem, 6vw, 4.3rem);
  min-height: clamp(24rem, 34vw, 31rem);
}

.amplify-post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--amplify-post-scrim), var(--amplify-post-hero-image);
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
}

.amplify-post-hero .amplify-post-shell {
  position: relative;
  z-index: 1;
}

.amplify-post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.amplify-post-back-link::before {
  content: "<";
  font-size: 0.9rem;
}

.amplify-post-back-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.amplify-post-type-chip {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 182, 0, 0.2);
  border: 1px solid rgba(255, 182, 0, 0.4);
  color: #ffcc50;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.amplify-post-title {
  margin: 0.85rem 0 0.7rem;
  max-width: 16ch;
  color: #fff;
  font-family: "Buzz Sans", "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 760;
  line-height: 1.03;
}

.amplify-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.amplify-post-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f0ea;
  padding: 0.28rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.amplify-post-panel-wrap {
  margin-top: clamp(0.75rem, 1.4vw, 1.2rem);
}

.amplify-post-panel {
  border-radius: 1.7rem;
  background: #fff5eb;
  border: 1px solid rgba(32, 16, 11, 0.1);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
  padding: clamp(1.15rem, 2.1vw, 1.8rem);
}

.amplify-post-featured-media {
  border-radius: 1.1rem;
  overflow: hidden;
}

.amplify-post-featured-media img {
  width: 100%;
  display: block;
  height: auto;
}

.amplify-post-content {
  color: #20100b;
  margin-top: 1.2rem;
}

.amplify-post-content p,
.amplify-post-content li,
.amplify-post-content blockquote,
.amplify-post-content figcaption {
  color: #26140e;
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.02rem, 1.22vw, 1.16rem);
  line-height: 1.72;
}

.amplify-post-content h2,
.amplify-post-content h3,
.amplify-post-content h4 {
  color: #20100b;
  font-family: "Buzz Sans", "Space Grotesk", sans-serif;
  font-weight: 720;
  line-height: 1.15;
  margin-top: 1.5em;
  margin-bottom: 0.45em;
}

.amplify-post-content h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

.amplify-post-content h3 {
  font-size: clamp(1.36rem, 2.5vw, 2rem);
}

.amplify-post-content a {
  color: #3f39cd;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.amplify-post-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.9rem;
  margin: 1.15rem 0 1.35rem;
}

.amplify-post-content ul,
.amplify-post-content ol {
  padding-left: 1.2rem;
}

.amplify-post-content li + li {
  margin-top: 0.45rem;
}

.amplify-post-taxonomy-row {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(32, 16, 11, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.amplify-post-taxonomy-label {
  color: #604437;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.amplify-post-taxonomy-items a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.24rem 0.7rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  background: rgba(100, 87, 255, 0.12);
  color: #3d33bd;
}

.amplify-post-taxonomy-items a:hover {
  background: rgba(100, 87, 255, 0.22);
}

.amplify-post-related {
  margin-top: 2rem;
}

.amplify-post-related h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: "Buzz Sans", "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.9vw, 2.3rem);
  font-weight: 720;
}

.amplify-post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.amplify-post-related-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.amplify-post-related-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.08);
}

.amplify-post-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.amplify-post-related-body {
  padding: 0.85rem 0.9rem 1rem;
}

.amplify-post-related-date {
  color: rgba(255, 245, 235, 0.74);
  font-size: 0.76rem;
  margin-bottom: 0.5rem;
}

.amplify-post-related-body h3 {
  margin: 0;
  font-family: "Buzz Sans", "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 650;
}

.amplify-post-related-body h3 a {
  color: #fff5eb;
  text-decoration: none;
}

.amplify-post-related-body h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.amplify-post-related-cta {
  display: inline-flex;
  margin-top: 0.7rem;
  color: #ffcf5e;
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.amplify-archive-main {
  background: #120b05;
  padding-bottom: clamp(3.2rem, 5.6vw, 5rem);
}

.amplify-archive-hero {
  padding-bottom: clamp(2.2rem, 4vw, 3.2rem);
  min-height: clamp(20rem, 30vw, 27rem);
}

.amplify-archive-hero p {
  max-width: 60ch;
  margin: 0.7rem 0 0;
  color: rgba(255, 245, 235, 0.9);
  font-size: clamp(0.98rem, 1.35vw, 1.15rem);
  line-height: 1.6;
}

.amplify-archive-grid {
  margin-top: clamp(0.7rem, 1.2vw, 1.05rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.amplify-archive-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.amplify-archive-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.08);
}

.amplify-archive-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.amplify-archive-card-body {
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  height: 100%;
}

.amplify-archive-card-type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 245, 235, 0.72);
  font-weight: 700;
}

.amplify-archive-card h2 {
  margin: 0;
  font-family: "Buzz Sans", "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.22;
}

.amplify-archive-card h2 a {
  color: #fff5eb;
  text-decoration: none;
}

.amplify-archive-card h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.amplify-archive-card-meta {
  color: rgba(255, 245, 235, 0.72);
  font-size: 0.78rem;
}

.amplify-archive-card-excerpt {
  color: rgba(255, 245, 235, 0.9);
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
}

.amplify-archive-card-cta {
  margin-top: auto;
}

.amplify-archive-card-cta a {
  color: #ffcf5e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.86rem;
}

.amplify-archive-pagination {
  margin-top: 1.3rem;
  display: flex;
  justify-content: center;
}

.amplify-archive-pagination .page-numbers {
  display: inline-flex;
  min-width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 0.75rem;
  margin: 0 0.18rem;
  text-decoration: none;
  color: #fff5eb;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.amplify-archive-pagination .page-numbers.current {
  border-color: #ffb600;
  background: rgba(255, 182, 0, 0.16);
  color: #ffcf5e;
}

@media (max-width: 1024px) {
  .amplify-post-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amplify-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .amplify-post-hero {
    padding-top: 7.6rem;
  }

  .amplify-post-title {
    max-width: 100%;
  }

  .amplify-post-panel {
    border-radius: 1.2rem;
    padding: 0.95rem;
  }

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

  .amplify-archive-grid {
    grid-template-columns: 1fr;
  }
}
