.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 3, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 24px;
}

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

.modal{
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  max-width: 520px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 36px;
}

.modal h2{
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 18px 0;
  color: var(--cream);
}

.modal p{
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--cream-dim);
  margin: 0 0 14px 0;
}

.modal h3{
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
  margin: 22px 0 8px 0;
}

.modal-close{
  display: inline-flex;
  margin-top: 12px;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.modal-close:hover{
  border-color: var(--cream);
  background: rgba(245,241,236,0.06);
}
