.articles-page {
  background: #000000;
}

.articles-hero {
  position: relative;
  min-height: min(620px, 72vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
  background: #050505;
}

.articles-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000000 0%, rgba(0,0,0,.9) 42%, rgba(0,0,0,.48) 100%),
    linear-gradient(0deg, #000000 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.82) 100%),
    url("/wp-content/uploads/2025/03/ScriB_011-scaled.jpg") right center / cover no-repeat;
  filter: grayscale(.28);
  opacity: .86;
  transform: scale(1.02);
}

.articles-hero-inner,
.articles-section {
  width: min(1320px, calc(100% - clamp(44px, 8vw, 148px)));
  margin: 0 auto;
}

.articles-hero-inner {
  position: relative;
  padding: clamp(82px, 10vw, 140px) 0;
}

.articles-title {
  max-width: 920px;
  margin: 0;
  color: var(--sutura-red);
  font-family: "Dahlia Bold", "Dahlia Regular", serif;
  font-size: clamp(58px, 9vw, 128px);
  font-weight: 400;
  line-height: .9;
}

.articles-lead {
  max-width: 780px;
  margin: 30px 0 0;
  color: var(--sutura-yellow);
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.articles-newsletter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 30px;
  padding: 14px 22px;
  border: 2px solid var(--sutura-yellow);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0) 38%),
    linear-gradient(135deg, var(--sutura-red) 0%, #9b0d08 100%);
  color: var(--sutura-yellow) !important;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.articles-newsletter-button:hover,
.articles-newsletter-button:focus-visible {
  background: var(--sutura-yellow);
  color: #080808 !important;
  transform: translateY(-2px);
}

.articles-section {
  padding: 0 0 clamp(80px, 9vw, 140px);
}

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

.article-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sutura-red-alt);
  color: #ffffff;
  text-decoration: none;
  flex-direction: column;
  transition: transform .18s ease, background-color .18s ease;
}

.article-card[hidden] {
  display: none;
}

.article-card:hover,
.article-card:focus {
  background: var(--sutura-red);
  transform: translateY(-4px);
}

.article-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #111111;
}

.article-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(22px, 2.5vw, 32px);
}

.article-card__date {
  margin: 0 0 14px;
  color: var(--sutura-yellow);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.articles-pagination {
  display: grid;
  gap: 20px;
  justify-items: center;
  margin-top: clamp(38px, 5vw, 70px);
}

.articles-pagination[hidden] {
  display: none;
}

.articles-pagination__status {
  margin: 0;
  color: var(--sutura-yellow);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.articles-pagination__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.articles-pagination button {
  min-width: 48px;
  min-height: 46px;
  border: 2px solid var(--sutura-yellow);
  border-radius: 8px;
  background: var(--sutura-red);
  color: var(--sutura-yellow);
  cursor: pointer;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 16px;
}

.articles-pagination button:hover,
.articles-pagination button:focus-visible,
.articles-pagination button.is-active {
  background: var(--sutura-yellow);
  color: #080808;
}

.articles-pagination button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.articles-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.article-card h2 {
  margin: 0;
  color: #000000;
  font-family: "Dahlia Bold", "Dahlia Regular", serif;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 400;
  line-height: .98;
}

.article-card p {
  margin: 18px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 16px;
  line-height: 1.65;
}

.article-card__cta {
  margin-top: auto;
  padding-top: 24px;
  color: var(--sutura-yellow);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.article-detail-hero,
.article-detail-content {
  width: min(980px, calc(100% - clamp(44px, 8vw, 148px)));
  margin: 0 auto;
}

.article-detail-hero {
  padding: clamp(74px, 9vw, 132px) 0 clamp(30px, 4vw, 56px);
}

.article-detail-date {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--sutura-yellow);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.article-detail-date::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--sutura-yellow);
}

.article-detail-title {
  margin: 0;
  color: var(--sutura-red);
  font-family: "Dahlia Bold", "Dahlia Regular", serif;
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 400;
  line-height: .92;
}

.article-detail-dek {
  max-width: 820px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
}

.article-detail-content {
  padding: 0 0 clamp(88px, 10vw, 150px);
  color: rgba(255,255,255,.9);
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.75;
}

.article-detail-content p,
.article-detail-content ul,
.article-detail-content ol,
.article-detail-content blockquote,
.article-detail-content figure {
  margin: 0 0 28px;
}

.article-detail-content a {
  color: var(--sutura-yellow);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-detail-content strong {
  color: #ffffff;
}

.article-detail-content blockquote {
  padding: 8px 0 8px 26px;
  border-left: 3px solid var(--sutura-yellow);
  color: rgba(255,255,255,.76);
  font-size: 1.08em;
}

.article-detail-content ul,
.article-detail-content ol {
  padding-left: 26px;
}

.article-detail-content li + li {
  margin-top: 10px;
}

.article-detail-content figure {
  width: min(1080px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}

.article-detail-content img {
  display: block;
  width: 100%;
  height: auto;
}

.article-detail-content figcaption {
  padding: 12px 16px 14px;
  color: rgba(255,255,255,.62);
  font-size: 14px;
  line-height: 1.45;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 14px;
  background: rgba(0,0,0,.72);
}

.newsletter-modal[hidden] {
  display: none;
}

.newsletter-submit-frame {
  display: none;
}

.newsletter-modal-open {
  overflow: hidden;
}

.newsletter-modal__panel {
  position: relative;
  width: min(720px, calc(100vw - 28px));
  overflow: visible;
  padding: clamp(18px, 2.5vw, 30px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(190,16,9,.2), rgba(0,0,0,0) 44%),
    #090909;
  box-shadow: 0 34px 90px rgba(0,0,0,.55);
  color: #ffffff;
}

.newsletter-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: #000000;
  color: #ffffff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.newsletter-modal h2 {
  margin: 0;
  color: var(--sutura-red);
  font-family: "Dahlia Bold", "Dahlia Regular", serif;
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 400;
  line-height: .88;
  padding-right: 38px;
}

.newsletter-modal p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.48;
}

.newsletter-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.newsletter-form label {
  display: grid;
  gap: 8px;
  color: var(--sutura-yellow);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.newsletter-form label span {
  color: rgba(255,255,255,.56);
  font-weight: 700;
}

.newsletter-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #ffffff;
  font: inherit;
  padding: 10px 14px;
}

.newsletter-form input:focus {
  border-color: var(--sutura-yellow);
  outline: 0;
}

.newsletter-form button {
  min-height: 46px;
  border: 2px solid var(--sutura-yellow);
  border-radius: 8px;
  background: var(--sutura-red);
  color: var(--sutura-yellow);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 18px;
}

.newsletter-form button:hover,
.newsletter-form button:focus-visible {
  background: var(--sutura-yellow);
  color: #080808;
}

.newsletter-form button:disabled {
  cursor: wait;
  opacity: .62;
}

.newsletter-form__status {
  min-height: 22px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.newsletter-form__status.is-success {
  color: var(--sutura-yellow);
}

.newsletter-form__status.is-error {
  color: #ffffff;
}

.newsletter-toast {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(82px, 9vw, 120px);
  z-index: 100001;
  max-width: min(420px, calc(100% - 32px));
  padding: 16px 18px;
  border: 2px solid var(--sutura-yellow);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0) 42%),
    var(--sutura-red);
  color: var(--sutura-yellow);
  box-shadow: 0 22px 60px rgba(0,0,0,.42);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  animation: newsletter-toast-fade 5.2s ease forwards;
}

.newsletter-toast[hidden] {
  display: none;
}

.newsletter-toast.is-error {
  background: #090909;
  color: #ffffff;
}

@keyframes newsletter-toast-fade {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  10%,
  78% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-toast {
    animation: none;
  }
}

@media (max-width: 1040px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .articles-pagination__controls,
  .articles-pagination__pages {
    width: 100%;
  }

  .articles-pagination button {
    flex: 1 1 auto;
  }
}
