/* Modal — native <dialog> with the brutalist panel treatment.
 *
 * The backdrop is the one semi-transparent surface in the system: it
 * reads as a darkened room, not a glassy overlay. The panel itself is
 * opaque paper, heavy ink border, hard offset shadow. */

.modal {
  width: calc(100% - 2 * var(--space-4));
  max-width: var(--landing-max);
  padding: var(--space-5);
  color: var(--ink);
  background: var(--paper);
  border: var(--border-heavy);
  border-radius: 0;
  box-shadow: var(--shadow-hard);
}

.modal::backdrop { background: var(--backdrop); }

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-thin);
}

.modal__title {
  font-family: var(--font-mono);
  font-size: var(--size-2);
  letter-spacing: 0.06em;
}

.modal__close {
  padding: 0 var(--space-2);
  font-size: var(--size-5);
  line-height: 1;
  background: transparent;
  border: 0;
}

.modal__close:hover {
  background: var(--ink);
  color: var(--paper);
}

.modal__note {
  margin-top: var(--space-4);
  font-size: var(--size-2);
}
