* { box-sizing: border-box; }

html { background: #fff; color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1rem;
  display: grid;
  place-items: center;
}

.transmission {
  width: min(100%, 33.75rem);
  padding: clamp(2.3rem, 6vw, 3.5rem) .75rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(60, 50, 36, .13);
  border-radius: .75rem;
  background: rgba(12, 14, 15, .72);
  box-shadow: 0 18px 40px -17px rgba(33, 30, 25, .28),
              0 3px 9px -4px rgba(33, 30, 25, .16),
              inset 0 1px 0 rgba(255, 255, 255, .2);
  color: #f0ece2;
  font-family: Menlo, "DejaVu Sans Mono", Consolas, monospace;
  font-weight: 700;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(1rem, 4.8vw, 1.625rem);
  line-height: 1.25;
}

p {
  margin: 1.25em 0 0;
  color: #ffbd63;
  font-size: clamp(.8125rem, 3.15vw, 1.0625rem);
  line-height: 1.3;
}

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: .15em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: .2em; }

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.25rem;
  margin-top: .8rem;
  font-size: .875rem;
}
nav a {
  padding-block: .6rem;
  text-decoration: underline;
  text-decoration-color: rgba(240, 236, 226, .55);
  text-underline-offset: .25em;
}
nav a:hover { color: #ffbd63; }

@media (prefers-reduced-motion: no-preference) {
  .transmission { animation: settle .7s cubic-bezier(.2,.75,.25,1) both; }
  .transmission::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(108deg, transparent 32%, rgba(255, 191, 104, .14) 50%, transparent 68%);
    animation: glint 1.35s ease-out both;
  }
  .transmission p { animation: receive .5s .22s ease-out both; }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes receive {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glint {
  from { transform: translateX(-95%); }
  to { transform: translateX(95%); opacity: 0; }
}
