:root {
  --bg: #fafaf8;
  --text: #111111;
  --muted: #8a8a86;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

main { text-align: center; }

.name-wrap { position: relative; display: inline-block; }

h1 {
  font-family: "Unbounded", var(--sans);
  font-weight: 500;
  font-size: clamp(2.1rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
h1 span { display: block; }

.role {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(.75rem, 1.2vw, .85rem);
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Kontakt */
.contact {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  list-style: none;
}
.contact a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding-bottom: .3em;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.contact a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
.contact a:hover::after,
.contact a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.contact svg { width: .8em; height: .8em; transition: transform .35s ease; }
.contact a:hover svg { transform: translate(2px, -2px); }

/* Obracająca się plakietka "strona w budowie" */
.badge {
  position: absolute;
  top: -0.7em;
  right: -1.15em;
  width: clamp(92px, 11vw, 136px);
  aspect-ratio: 1;
  font-size: clamp(2.1rem, 7vw, 6rem); /* em w pozycji liczone od wielkości nazwiska */
}
.badge svg { width: 100%; height: 100%; display: block; }
.badge .ring { transform-origin: 50% 50%; animation: spin 18s linear infinite; }
.badge text {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  fill: var(--text);
}
@keyframes spin { to { rotate: 360deg; } }

@media (max-width: 640px) {
  .badge {
    position: static;
    display: block;
    width: 104px;
    margin: 0 auto 1.75rem;
  }
  .name-wrap { display: block; }
  .role { letter-spacing: .2em; line-height: 1.9; }
}

@media (prefers-reduced-motion: reduce) {
  .badge .ring { animation: none; }
}
