@font-face {
  font-family: "W95font";
  src:
    url(./fonts/w95font.woff2) format("woff2"),
    url(./fonts/w95font.woff) format("woff");
  font-weight: 400;
}

@font-face {
  font-family: "W95font";
  src:
    url(./fonts/w95font-bold.woff2) format("woff2"),
    url(./fonts/w95font-bold.woff) format("woff");
  font-weight: 700;
}

:root {
  --desktop: #3b2731;
  --face: #c6bcc0;
  --face-hover: #d2cacd;
  --bevel-light: #ffffff;
  --bevel-soft: #e6e0e2;
  --bevel-shade: #8a7d83;
  --bevel-dark: #443a3f;
  --ink: #1a1418;
  --ink-soft: #5c5058;
  --title: #7b1e3a;
  --on-title: #ffffff;
  --accent: #7b1e3a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "W95font", "MS Sans Serif", Tahoma, Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--desktop);
  color: var(--ink);
  font-size: 14px;
}

.dialog {
  width: min(420px, 100%);
  background: var(--face);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark)
    var(--bevel-light);
  box-shadow:
    inset 1px 1px 0 var(--bevel-soft),
    inset -1px -1px 0 var(--bevel-shade),
    4px 4px 0 rgba(0, 0, 0, 0.25);
  border-radius: 0;
}

.title-bar {
  background: var(--title);
  color: var(--on-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 3px 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
}

.title-close {
  width: 18px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--face);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark)
    var(--bevel-light);
  box-shadow:
    inset 1px 1px 0 var(--bevel-soft),
    inset -1px -1px 0 var(--bevel-shade);
  border-radius: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: default;
}

.title-close:active {
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light)
    var(--bevel-dark);
  box-shadow: inset 1px 1px 0 var(--bevel-shade);
}

.dialog-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 18px 16px;
}

.icon {
  flex: none;
  width: 32px;
  height: 32px;
  fill: var(--accent);
}

.message h1 {
  font-size: 14px;
  font-weight: 700;
}

.message a {
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent);
  text-decoration: none;
}

.message a:hover,
.message a:focus-visible {
  text-decoration: underline;
}

a.external::after {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  background-color: currentColor;
  -webkit-mask: url("./images/link.svg") no-repeat center / contain;
  mask: url("./images/link.svg") no-repeat center / contain;
}

.contact {
  margin: 0 18px 18px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 16px auto 1fr;
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
  background: #ffffff;
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light)
    var(--bevel-dark);
  box-shadow: inset 1px 1px 0 var(--bevel-shade);
  font-size: 13px;
  color: var(--ink-soft);
}

.contact-row {
  display: contents;
}

.contact .label {
  white-space: nowrap;
}

.contact img {
  width: 16px;
  height: 16px;
  flex: none;
  object-fit: contain;
}

.contact a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.contact a:hover,
.contact a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 420px) {
  .dialog-body {
    padding: 16px 14px 12px;
    gap: 12px;
  }

  .contact {
    margin: 0 14px 14px;
  }
}
