@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=Public+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400&display=swap");

/* Contact card: a popup built from the page footer by js/ngl-contact.js */
dialog.ngl-contact {
  border: 0;
  padding: 0;
  background: #faf7f1;
  color: #2a241d;
  border-radius: 10px;
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: calc(100vh - 48px);
  box-shadow: 0 24px 60px rgba(42, 36, 29, 0.35);
  overflow: hidden;
  text-align: left;
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

dialog.ngl-contact,
dialog.ngl-contact * {
  box-sizing: border-box;
}

dialog.ngl-contact[open] {
  display: flex;
  flex-direction: column;
  animation: nc-in 0.22s ease-out;
}

dialog.ngl-contact:focus {
  outline: none;
}

dialog.ngl-contact::backdrop {
  background: rgba(42, 36, 29, 0.55);
  backdrop-filter: blur(2px);
}

.nc-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid #e6dfd2;
}

.nc-head h2 {
  font-family: "Newsreader", serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  text-transform: none;
  color: #2a241d;
}

.nc-head p {
  margin: 0;
  font-size: 14px;
  color: #5f564a;
}

.nc-close {
  margin-left: auto;
  flex: none;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d4cbbb;
  background: transparent;
  color: #2a241d;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.nc-close:hover {
  background: #2a241d;
  border-color: #2a241d;
  color: #faf7f1;
}

.nc-close:focus-visible {
  outline: 3px solid #cfe1dd;
  outline-offset: 2px;
}

.nc-body {
  overflow-y: auto;
  padding: 4px 24px 20px;
}

.nc-body .col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid #efe9de;
}

.nc-body .col:last-child {
  border-bottom: 0;
}

.nc-body .mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2c6b63;
  margin-bottom: 4px;
}

.nc-body a {
  color: #2c6b63;
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
}

.nc-body a:hover {
  color: #1f4f49;
  text-decoration: underline;
}

.nc-body a.dir {
  font-size: 15px;
  margin-top: 4px;
}

.nc-body a.dir::after {
  content: " \2192";
}

html.modal-open {
  overflow: hidden;
}

@keyframes nc-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.ngl-contact[open] {
    animation: none;
  }
}

@media (max-width: 560px) {
  .nc-head {
    padding: 16px;
  }

  .nc-head h2 {
    font-size: 24px;
  }

  .nc-body {
    padding: 0 16px 16px;
  }
}
