* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Vazirmatn", "IRANSans", "Segoe UI", Arial, sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.12), transparent 55%),
    linear-gradient(180deg, #fff9f9 0%, #ffeef0 45%, #fffafa 100%);
  color: #3c0f20;
  display: flex;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  position: relative;
  overflow-x: hidden;
}

.bg-orbit {
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 15% 15%, rgba(248, 113, 113, 0.22), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(239, 68, 68, 0.25), transparent 55%),
    radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.7), transparent 40%);
  filter: blur(80px);
  opacity: 0.9;
  z-index: 0;
}

.page {
  position: relative;
  width: min(1120px, 100%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 40px;
  padding: clamp(32px, 5vw, 64px);
  box-shadow:
    0 40px 90px rgba(220, 38, 38, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.back-chip {
  position: absolute;
  top: 24px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(248, 113, 113, 0.3);
  text-decoration: none;
  color: #b91c1c;
  font-weight: 600;
  backdrop-filter: blur(14px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.back-chip span {
  font-size: 1rem;
}

.back-chip:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 18px 40px rgba(248, 113, 113, 0.4);
}

.intro {
  margin-top: 56px;
  margin-bottom: 40px;
}

.intro__eyebrow {
  letter-spacing: 0.4em;
  font-size: 0.85rem;
  color: #ef4444;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.intro h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  margin-bottom: 16px;
  color: #991b1b;
}

.intro__lede {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #4b1b26;
  max-width: 760px;
}

.weathering-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.w-card {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2.4fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 60px rgba(185, 28, 28, 0.16);
  position: relative;
  overflow: hidden;
}

.w-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 90% 20%, rgba(248, 113, 113, 0.35), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(239, 68, 68, 0.25), transparent 55%);
  opacity: 0.65;
  pointer-events: none;
}

.w-card__text,
.w-card__media {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fb7185, #ef4444);
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 14px 26px rgba(248, 113, 113, 0.5);
}

.w-card h2 {
  font-size: 1.7rem;
  color: #b91c1c;
  margin-bottom: 14px;
}

.w-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #7f1d1d;
  margin-top: 16px;
  margin-bottom: 8px;
}

.w-card p {
  color: #4b1b26;
  line-height: 1.9;
  font-size: 0.98rem;
}

.w-card ul {
  margin: 8px 0 4px;
  padding-right: 20px;
  list-style: none;
}

.w-card ul li {
  position: relative;
  padding-right: 14px;
  margin-bottom: 4px;
}

.w-card ul li::before {
  content: "•";
  position: absolute;
  right: 0;
  top: 0;
  color: #f97373;
}

.note {
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(254, 226, 226, 0.7);
  border: 1px solid rgba(254, 202, 202, 0.9);
  margin-bottom: 8px;
}

.highlight {
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(248, 113, 113, 0.06);
  border-inline-start: 3px solid rgba(248, 113, 113, 0.7);
}

.formula {
  font-family: "Segoe UI", system-ui, sans-serif;
  direction: ltr;
  unicode-bidi: embed;
  padding: 0 4px;
}

.w-card__media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 26px 45px rgba(190, 24, 24, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.gallery--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
}

.gallery--grid img {
  border-radius: 18px;
}

.gallery--stack {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.gallery__example {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
}

.gallery__example figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 6px 10px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.65), transparent);
  color: #fef2f2;
  font-size: 0.8rem;
}

.gallery__example img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery:hover img {
  transform: scale(1.04);
}

.zoom-link {
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(248, 113, 113, 0.3), transparent 65%),
    rgba(15, 23, 42, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.lightbox:target {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.lightbox__content {
  position: relative;
  max-width: min(960px, 96vw);
  max-height: 88vh;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(254, 226, 226, 0.35), rgba(30, 41, 59, 0.9));
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.6),
    0 0 0 1px rgba(248, 250, 252, 0.2);
}

.lightbox__content img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 12px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.85);
  color: #b91c1c;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.45);
}

.lightbox__close:hover {
  background: #fee2e2;
}

@media (max-width: 920px) {
  .w-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .back-chip {
    position: static;
    margin-bottom: 16px;
  }
  .intro {
    margin-top: 20px;
  }
}


