.article {
  --content-max-width: 900px;
  --content-padding: 1.25rem;

  /* Breakpoints */
  --bp-mobile: 600px;
  --bp-tablet: 1024px;

  /* Type scale (rem, base 16px) */
  --h1-desktop: 2.5rem !important;   /* 40px */
  --h1-tablet: 2.25rem !important;   /* 36px */
  --h1-mobile: 1.75rem !important;   /* 28px */

  --h2-desktop: 1.75rem !important;  /* 28px */
  --h2-tablet: 1.5rem !important;    /* 24px */
  --h2-mobile: 1.25rem !important;   /* 20px */

  --h3-desktop: 1.25rem !important;  /* 20px */
  --h3-tablet: 1.125rem !important;  /* 18px */
  --h3-mobile: 1rem !important;      /* 16px */

  --body-size: 1rem !important;      /* 16px */
  --line-height: 1.6 !important;

  /* Hero / Banner */
  --hero-max-height-desktop: 640px;
  --hero-max-height-tablet: 480px;
  --hero-max-height-mobile: 320px;

  /* Image sizes */
  --img-large-max: 1200px;
  --img-medium-max: 700px;
  --img-small-max: 300px;

  /* Colors & font weights */
  --heading-weight: 700;
  --muted-color: #6b7280;
  --text-color: #111827;
}

/* ===== Layout & Container ===== */
.article {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: var(--body-size);
  line-height: var(--line-height);
  color: var(--text-color);
  background-color: #fff;
}

.article .container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--content-padding);
  box-sizing: border-box;
}

/* ===== Headings ===== */
.article h1,
.article h2,
.article h3 {
  font-weight: var(--heading-weight);
  margin: 1em 0 0.5em;
}

.article h1 {
  font-size: var(--h1-desktop);
  line-height: 1.15;
}

.article h2 {
  font-size: var(--h2-desktop);
  line-height: 1.2;
}

.article h3 {
  font-size: var(--h3-desktop);
  line-height: 1.3;
}

/* Responsive heading sizes */
@media (max-width: 1023px) {
  .article h1 { font-size: var(--h1-tablet); }
  .article h2 { font-size: var(--h2-tablet); }
  .article h3 { font-size: var(--h3-tablet); }
}

@media (max-width: 600px) {
  .article h1 { font-size: var(--h1-mobile); }
  .article h2 { font-size: var(--h2-mobile); }
  .article h3 { font-size: var(--h3-mobile); }
}

/* ===== Paragraphs ===== */
.article p {
  font-size: var(--body-size);
  line-height: var(--line-height);
  margin-bottom: 1em;
}

/* ===== Hero / Banner ===== */
.article .hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

.article .hero img {
  width: 1200px;
  height: 600px;
  object-fit: cover;
  max-height: var(--hero-max-height-desktop);
  display: block;
}

.article .hero .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  width: 90%;
  max-width: var(--content-max-width);
  pointer-events: none;
}

.article .hero .overlay h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0.25em;
}

@media (max-width: 1023px) {
  .article .hero img { max-height: var(--hero-max-height-tablet); }
}

@media (max-width: 600px) {
  .article .hero img { max-height: var(--hero-max-height-mobile); }
}

/* ===== Images ===== */
.article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* Image helper classes */
.article .img-large  { width: 100%; max-width: var(--img-large-max); }
.article .img-medium { width: 100%; max-width: var(--img-medium-max); }
.article .img-small  { width: auto;  max-width: var(--img-small-max); }

/* Figure & caption */
.article figure {
  margin: 1.5rem 0;
  text-align: center;
}
.article figcaption {
  font-size: 0.95rem;
  color: var(--muted-color);
  margin-top: 0.5rem;
}

/* ===== Utilities ===== */
.article .text-center { text-align: center; }
.article .align-center { margin-left: auto; margin-right: auto; display: block; }

/* ===== Print optimization ===== */
@media print {
  .article .hero { display: none !important; }
  .article img { max-width: 100%; height: auto; }
  .article .container { max-width: 100%; padding: 0; }
}