/* ── Modal overlay ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: overlayIn 0.2s ease;
}

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

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Modal box ── */
.modal {
  background: #1e1e24;
  border: 1px solid #32323c;
  border-top: 4px solid #e8a230;   /* amber accent */
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: modalIn 0.25s ease;
  position: relative;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Modal header ── */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 28px 0;
  gap: 16px;
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #f0ece4;
  line-height: 1.2;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7870;
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: #26262e;
  color: #f0ece4;
}

/* ── Modal body ── */
.modal-body {
  padding: 20px 28px 28px;
  font-size: 0.93rem;
  color: #d8d5ce;
  line-height: 1.85;
}

.modal-body p + p {
  margin-top: 12px;
}

/* ── Modal footer (optional action buttons) ── */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 28px 24px;
  border-top: 1px solid #32323c;
  margin-top: 4px;
  padding-top: 16px;
}

.modal-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.modal-btn:hover { opacity: 0.85; }

.modal-btn-primary {
  background: #c0533a;   /* rust */
  color: #ffffff;
}

.modal-btn-secondary {
  background: #26262e;
  color: #d8d5ce;
  border: 1px solid #32323c;
}

/* ── Trigger anchor style (optional) ── */
a.modal-trigger {
/*  color: #e8a230;*/
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

a.modal-trigger:hover {
  color: #f0ece4;
}