
@font-face {
  font-family: "Newsreader"; 
  font-weight: 200 800;
  font-display: swap;
  src: url("/static/fonts/newsreader.woff2") format("woff2");
}

:root {
  --bg: #e2e7e2;
  --ink: #17322a;
  --muted: #586b63;
  --pad: clamp(18px, 3.2vw, 44px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1613;
    --ink: #dbe5df;
    --muted: #8d9f97;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(1.05rem, 1rem + 0.3vw, 1.25rem)/1.5 "Newsreader", Georgia, serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}



.focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr); 
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  min-height: 100svh;
  padding: var(--pad);
  text-align: center;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  align-self: end;
  width: 100%;
  container-type: inline-size; 
}
.plane {
  grid-area: 1 / 1;
  width: 100%;
}



.near {
  filter: blur(calc(var(--p, 0) * 16px));
  opacity: calc(1 - 0.72 * var(--p, 0));
  transform: scale(calc(1 + 0.05 * var(--p, 0)));
}
.far {
  filter: blur(calc((1 - var(--p, 0)) * 18px + 3px));
  opacity: calc(0.2 + 0.8 * var(--p, 0));
  transform: scale(calc(0.94 + 0.06 * var(--p, 0)));
}
.is-revealed .far {
  filter: blur(0);
  transition: filter 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}


.name {
  font-size: min(8.5vw, 6.5rem); 
  font-size: min(calc(min(100cqi, 52rem) / (var(--name-em, 8) * 1.02)), 6.5rem, 16vh);
  font-weight: 340;
  font-variation-settings: "opsz" 72;
  line-height: 1.05;
  letter-spacing: -0.025em;
}


.email {
  --email-em: 11.03;
  font-size: min(5vw, 3.75rem);
  font-size: min(calc(min(100cqi, 44rem) / (var(--email-em) * 1.02)), 3.75rem, 9vh);
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.email span:empty::before { content: "xxxxxxx@xxxxxxxxx.xxx"; }

.name span,
.email span {
  display: inline-block;
  white-space: nowrap;
}
.email span:focus { outline: none; }


.sub {
  margin-top: clamp(0.75rem, 2.5vh, 1.5rem);
  filter: blur(calc(var(--p, 0) * 8px));
  opacity: calc(1 - 0.85 * var(--p, 0));
  color: var(--muted);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
}




.stage,
.sub > span,
.control {
  transition:
    opacity 0.8s ease,
    filter 1.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 1.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sub > span { display: inline-block; transition-delay: 0.25s; }
.control { transition-delay: 0.45s; }

.is-loading .stage {
  opacity: 0;
  filter: blur(22px);
  transform: scale(1.04);
}
.is-loading .sub > span,
.is-loading .control {
  opacity: 0;
  transform: translateY(6px);
}

.is-loading .stage,
.is-loading .sub > span,
.is-loading .control {
  animation: reveal-anyway 0.6s 2.5s forwards;
}
@keyframes reveal-anyway { to { opacity: 1; filter: none; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .stage,
  .sub > span,
  .control {
    transition: opacity 0.3s ease;
    transition-delay: 0s;
  }
  .is-loading .stage,
  .is-loading .sub > span,
  .is-loading .control {
    filter: none;
    transform: none;
  }
}



.control {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 1.1rem;
  padding-top: clamp(2rem, 7vh, 4.5rem);
}

.ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 7.5rem;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--ink) 0 1.1deg, transparent 1.1deg 9deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  transform: rotate(calc(var(--p, 0) * 160deg));
}
.ring::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  opacity: 0.45;
}
.ring-word {
  max-width: 5.25rem; 
  font-size: 1.05rem;
  line-height: 1.1;
}
.ring-word:lang(pl) { font-size: 0.9rem; } 
.ring:focus-visible { outline-offset: 6px; }
.is-holding .ring { transform: scale(0.96); }
.is-verifying .ring { cursor: progress; }
.is-revealed .ring,
.no-js .ring { display: none; }



.actions {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
}
.is-revealed .actions { display: flex; }
.actions > * {
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.hint {
  min-height: 1.5em;
  color: var(--muted);
  font-size: 1rem;
}

.noscript {
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.5;
}
