:root {
  color-scheme: light;
  color: #111;
  background: #fcfbf8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 2rem;
}

.business-card {
  display: grid;
  grid-template-rows: minmax(10rem, 1fr) auto minmax(10rem, 1fr);
  width: min(100%, 40rem);
  min-height: calc(100svh - 4rem);
}

.identity {
  position: relative;
  grid-row: 2;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(1.375rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.identity p {
  position: absolute;
  top: 100%;
  width: 100%;
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

nav {
  grid-row: 3;
  align-self: start;
  padding-top: 8rem;
}

.profiles {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

a {
  display: inline-block;
  padding-block: 0.375rem;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 480px) {
  main {
    padding: 2rem 1.5rem;
  }


}

@media print {
  :root {
    background: white;
  }

  main,
  .business-card {
    min-height: auto;
  }
}
