*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --navy: #171717;
  --deep: #1c1c1c;
  --blue: #6f6f6f;
  --cyan: #cfcfcf;
  --ice: #e8e8e8;
  --muted: #9a9a9a;
  --red: #ce1126;
  --black: #0a0a0a;
  --white: #f4f4f4;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--white);
  background: #171717;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  overflow-x: clip;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 50% 42%, rgba(255, 255, 255, 0.07), transparent 58%),
    var(--navy);
}

.wash {
  position: absolute;
  width: min(48vw, 480px);
  height: min(48vw, 480px);
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}

.wash-gray {
  left: 8%;
  top: 18%;
  background: rgba(255, 255, 255, 0.07);
}

.wash-red {
  right: 6%;
  bottom: 10%;
  background: rgba(206, 17, 38, 0.08);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.frame {
  position: fixed;
  inset: 1.1rem;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

header,
main,
footer {
  position: relative;
  z-index: 2;
}

header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2.1rem;
}

.sig {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  background: var(--navy);
}

.sig img {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--navy);
}

.meta {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

header a.sig {
  text-decoration: none;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 2rem 3rem;
}

h1 {
  margin: 0 auto;
  max-width: 100%;
  overflow: visible;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 9.5vw, 6.6rem);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--white);
}

h1 span {
  display: inline-block;
  padding: 0.08em 0.28em 0.12em 0.06em;
}

.tag {
  margin: 1.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ice);
}

.rule {
  width: 2.75rem;
  height: 2px;
  margin: 1.6rem 0 1.45rem;
  background: var(--red);
}

.mail {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.mail:hover,
.mail:focus-visible {
  color: var(--white);
  border-bottom-color: var(--red);
  outline: none;
}

footer a {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--white);
  outline: none;
}

@media (max-width: 640px) {
  .frame {
    inset: 0.7rem;
  }

  header,
  footer {
    padding: 1.15rem 1.2rem;
  }

  .tag {
    letter-spacing: 0.22em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere {
    animation: none;
  }
}
