:root {
  --ink: #16344e;
  --steel: #4d6274;
  --paper: #e7edf2;
  --paper-lit: #fbfcfd;
  --line: rgba(22, 52, 78, 0.14);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--paper);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background-image: radial-gradient(
    ellipse 58% 52% at 50% 44%,
    var(--paper-lit) 0%,
    rgba(251, 252, 253, 0) 68%
  );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 42% 40% at 50% 44%, transparent 0%, #000 72%);
  opacity: 0.28;
}

#sparks {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.frame {
  position: fixed;
  inset: 1.25rem;
  z-index: 3;
  border: 1px solid rgba(22, 52, 78, 0.28);
  pointer-events: none;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
}

/* Source artwork sits inside saetronix-logo.jpeg at roughly x72 y126, 830×784. */
.crest-wrap {
  position: relative;
  width: min(460px, 86vw);
  aspect-ratio: 830 / 784;
  overflow: hidden;
}

.crest {
  position: absolute;
  width: calc(992 / 830 * 100%);
  max-width: none;
  height: auto;
  left: calc(-72 / 830 * 100%);
  top: calc(-126 / 784 * 100%);
  mix-blend-mode: multiply;
  user-select: none;
  -webkit-user-drag: none;
}

.contact-line {
  margin: 1.65rem 0 0;
}

.contact {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 52, 78, 0.28);
  padding-bottom: 0.12em;
}

.contact:hover {
  color: #0f4e86;
  border-bottom-color: #0f4e86;
}

.contact:focus-visible {
  outline: 2px solid #1a5694;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .frame {
    inset: 0.7rem;
  }

  .crest-wrap {
    width: min(340px, 88vw);
  }

  .contact {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crest,
  .contact {
    transition: none;
  }
}
