@font-face {
    font-family: "Maple Mono";
    src: url("./fonts/MapleMono[wght].woff2") format("woff2");
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Maple Mono";
    src: url("./fonts/MapleMono-Italic[wght].woff2") format("woff2");
    font-weight: 100 800;
    font-style: italic;
    font-display: swap;
}

body {
  background-color: black;
  color: #FF06B7;
  font-family: 'Maple Mono', monospace;
}

.grid { display: grid; gap: 12px; }

.g2   { grid-template-columns: 1fr 1fr; }
.g3   { grid-template-columns: 1fr 1fr 1fr; }
.g2-1 { grid-template-columns: 2fr 1fr; }

.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }

.box {
  position: relative;
  padding: 1.25rem 1.5rem;
  margin: 12px;
  text-align: center;

  /* Marching ants via SVG background-image â€” works in all browsers */
  --dash: 8;
  --gap: 8;
  --color: %23FF06B7; /* %23 is URL-encoded # */
  background-image:
    /* top */
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><line x1='0' y1='0' x2='10000' y2='0' stroke='%23FF06B7' stroke-width='2' stroke-dasharray='8 8'><animate attributeName='stroke-dashoffset' from='0' to='-16' dur='1s' repeatCount='indefinite'/></line></svg>"),
    /* bottom */
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><line x1='0' y1='0' x2='10000' y2='0' stroke='%23FF06B7' stroke-width='2' stroke-dasharray='8 8'><animate attributeName='stroke-dashoffset' from='0' to='16' dur='1s' repeatCount='indefinite'/></line></svg>"),
    /* left */
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><line x1='0' y1='0' x2='0' y2='10000' stroke='%23FF06B7' stroke-width='2' stroke-dasharray='8 8'><animate attributeName='stroke-dashoffset' from='0' to='16' dur='1s' repeatCount='indefinite'/></line></svg>"),
    /* right */
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><line x1='0' y1='0' x2='0' y2='10000' stroke='%23FF06B7' stroke-width='2' stroke-dasharray='8 8'><animate attributeName='stroke-dashoffset' from='0' to='-16' dur='1s' repeatCount='indefinite'/></line></svg>");
  background-repeat: no-repeat;
  background-size:
    100% 2px,   /* top */
    100% 2px,   /* bottom */
    2px 100%,   /* left */
    2px 100%;   /* right */
  background-position:
    top left,
    bottom left,
    top left,
    top right;
}

/* floating label in the top border */
.box-title {
  position: absolute;
  top: -0.85em;
  left: 1rem;
  background: black;
  padding: 0 0.5rem;
  font-family: monospace;
  font-size: 13px;
}

a {
  color: #FF06B7;
}

img {
  max-width: 100%;
  max-height: 100vh;
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: span 1; }
}
