.article-page {
  background: #fbfbfa;
}

.article-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

.article-hero {
  padding: 5rem 0 2.6rem;
}

.article-hero-copy {
  max-width: 48rem;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.05);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
}

.article-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #10b981;
  opacity: 0.75;
}

.article-title {
  margin-top: 1.25rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 7vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #09090b;
}

.article-title span {
  color: #71717a;
  font-style: italic;
}

.article-summary {
  max-width: 40rem;
  margin-top: 1.5rem;
  font-size: 1.03rem;
  line-height: 1.8;
  color: #52525b;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.article-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  color: #3f3f46;
}

.article-meta-chip svg {
  width: 14px;
  height: 14px;
  color: #059669;
}

.article-visual {
  margin-top: 2.75rem;
  position: relative;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.045), rgba(255, 255, 255, 0)),
    #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.035);
}

.article-visual::before,
.article-card::before,
.article-callout::before,
.example-card::before,
.prompt-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
}

.article-compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.article-compare-panel,
.article-single-hero {
  position: relative;
  overflow: hidden;
}

.article-compare-panel img,
.article-single-hero img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.article-compare-panel img {
  aspect-ratio: 4 / 5;
}

.article-single-hero img {
  aspect-ratio: 16 / 7;
  object-position: center 22%;
}

.article-compare-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-compare-label.after {
  left: auto;
  right: 1rem;
}

.article-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.article-compare-arrow {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  transform: translate(-50%, -50%);
}

.article-compare-arrow svg {
  width: 20px;
  height: 20px;
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}

.article-section {
  padding-top: 3.4rem;
}

.article-section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #09090b;
}

.article-text {
  margin-top: 1rem;
  color: #52525b;
  line-height: 1.85;
  font-size: 0.98rem;
}

.article-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.article-card {
  position: relative;
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.045), rgba(255, 255, 255, 0) 52%),
    rgba(255, 255, 255, 0.96);
  padding: 1.35rem;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.article-step {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.article-card h3 {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #09090b;
}

.article-card p,
.article-card a {
  margin-top: 0.55rem;
  color: #52525b;
  font-size: 0.88rem;
  line-height: 1.75;
}

.article-card a {
  color: #18181b;
  font-weight: 600;
}

.article-callout {
  position: relative;
  margin-top: 1.35rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.055), rgba(255, 255, 255, 0) 72%),
    #ffffff;
  color: #52525b;
  line-height: 1.75;
  overflow: hidden;
}

.article-callout strong {
  color: #09090b;
}

.prompt-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 18px;
  background: #09090b;
  color: #f4f4f5;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.prompt-panel:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.34);
}

.prompt-panel-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.prompt-panel-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.16);
  color: #f4f4f5;
  flex-shrink: 0;
}

.prompt-panel-icon svg {
  width: 19px;
  height: 19px;
}

.prompt-panel-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fafafa;
}

.prompt-panel-sub {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #a1a1aa;
}

.prompt-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.prompt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 10px;
  background: transparent;
  color: #fafafa;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.prompt-button:hover {
  background: rgba(16, 185, 129, 0.08);
}

.prompt-button:active {
  transform: scale(0.985);
}

.prompt-button.solid {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.prompt-button.solid:hover {
  background: #047857;
}

.article-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.article-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.article-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
}

.article-chip.cream {
  background: #fbf3db;
  color: #956400;
}

.article-chip.blue {
  background: #e1f3fe;
  color: #1f6c9f;
}

.article-chip.green {
  background: #edf3ec;
  color: #346538;
}

.article-chip.red {
  background: #fdebec;
  color: #9f2f2d;
}

.article-chip.gray {
  background: #f4f4f5;
  color: #3f3f46;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.example-grid.example-grid-single {
  grid-template-columns: 1fr;
}

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

.example-card {
  position: relative;
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.04), rgba(255, 255, 255, 0) 44%),
    #ffffff;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.example-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.24);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.example-compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f4f4f5;
}

.example-compare img,
.example-single img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.example-single {
  position: relative;
}

.example-single-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.example-label {
  position: absolute;
  top: 0.85rem;
  z-index: 2;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.example-label.before {
  left: 0.85rem;
}

.example-label.after {
  right: 0.85rem;
}

.example-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-50%);
}

.example-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  transform: translate(-50%, -50%);
}

.example-arrow svg {
  width: 16px;
  height: 16px;
}

.example-copy {
  padding: 1rem 1.05rem 1.1rem;
}

.example-copy h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #09090b;
}

.example-copy p {
  margin-top: 0.4rem;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #71717a;
}

.example-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.example-actions .prompt-button {
  min-height: 36px;
  padding: 0.62rem 0.9rem;
  border-color: rgba(16, 185, 129, 0.18);
  background: #ffffff;
  color: #18181b;
}

.example-actions .prompt-button:hover {
  background: rgba(16, 185, 129, 0.08);
}

.article-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(4px);
}

.article-modal-backdrop.is-open {
  display: flex;
}

.article-modal {
  width: min(840px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: hidden;
  border: 1px solid #27272a;
  border-radius: 20px;
  background: #09090b;
  color: #fafafa;
}

.article-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #27272a;
}

.article-modal-title {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  color: #fafafa;
}

.article-modal-close {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  background: transparent;
  color: #fafafa;
  cursor: pointer;
}

.article-modal-close svg {
  width: 16px;
  height: 16px;
}

.article-modal-body {
  padding: 1.1rem;
  overflow: auto;
  max-height: calc(100vh - 10rem);
}

.article-modal-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #e4e4e7;
}

.article-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-top: 1px solid #27272a;
}

.image-lightbox img {
  width: min(860px, 100%);
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid #27272a;
}

.image-lightbox-caption {
  margin-top: 0.8rem;
  text-align: center;
  color: #d4d4d8;
  font-size: 0.85rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-delay="1"] {
  transition-delay: 80ms;
}

[data-reveal][data-delay="2"] {
  transition-delay: 160ms;
}

@media (max-width: 900px) {
  .article-grid-3,
  .example-grid,
  .example-grid.portrait-grid {
    grid-template-columns: 1fr;
  }

  .prompt-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .prompt-panel-actions,
  .example-actions {
    width: 100%;
  }

  .prompt-button {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .article-hero {
    padding-top: 4.5rem;
  }

  .article-title {
    font-size: clamp(2.5rem, 14vw, 3.75rem);
  }

  .article-meta {
    gap: 0.55rem;
  }

  .article-compare,
  .example-compare {
    grid-template-columns: 1fr;
  }

  .article-compare-divider,
  .example-divider,
  .article-compare-arrow,
  .example-arrow {
    display: none;
  }

  .article-compare-label.after,
  .example-label.after {
    right: auto;
    left: 0.85rem;
    top: auto;
    bottom: 0.85rem;
  }

  .article-modal-backdrop {
    padding: 0.7rem;
  }

  .article-modal-body {
    max-height: calc(100vh - 9rem);
  }
}
