:root {
  --ink: #000000;
  --paper: #ffffff;
  --muted: rgba(0, 0, 0, 0.55);
  color-scheme: light;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.4;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.bar {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 6vw;
  background: linear-gradient(var(--paper) 70%, transparent);
}

.bar a {
  color: var(--ink);
  text-decoration: none;
}

.bar a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.bar-name {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.bar a:focus-visible,
.contact a:focus-visible,
.contact button:focus-visible,
.contact input:focus-visible,
.contact textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

main {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 4.75rem 6vw 1.5rem;
}

.figures {
  position: relative;
  height: clamp(9rem, 28vh, 16rem);
  overflow: hidden;
  pointer-events: none;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 22rem);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: auto;
  padding-top: 0.75rem;
}

.shape {
  position: absolute;
  overflow: visible;
}

.shape-square {
  width: min(16vw, 8.5rem);
  top: 22%;
  left: 6%;
  transform: rotate(16deg);
}

.shape-triangle {
  width: min(22vw, 15rem);
  top: 6%;
  left: 30%;
}

.shape-ring {
  width: min(14vw, 6.5rem);
  top: 8%;
  left: 2%;
}

.shape-dots {
  width: min(28vw, 18rem);
  top: 4%;
  right: 2%;
}

.shape-block {
  width: 0.85rem;
  top: 22%;
  left: 22%;
}

.name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(3.5rem, 8.4vw, 7.6rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.line {
  display: flex;
  align-items: center;
  gap: 0.28em;
}

.line-at {
  margin-left: 0.62em;
}

.line-pd {
  margin-left: 1.24em;
}

.glyph {
  width: 0.38em;
  height: 0.38em;
  flex: 0 0 auto;
}

.glyph-dot {
  width: 0.34em;
  height: 0.34em;
}

.contact {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-bottom-color: transparent;
}

.contact button {
  justify-self: start;
  margin-top: 0.35rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contact button:hover {
  background: var(--paper);
  color: var(--ink);
}

.direct {
  margin: 0;
}

.direct a {
  color: var(--ink);
}

.status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 800px) {
  .figures {
    height: 8.5rem;
  }

  .content {
    grid-template-columns: 1fr;
    margin-top: 1.75rem;
  }

  .shape-triangle {
    width: 7rem;
    left: auto;
    right: 22%;
    top: 8%;
  }

  .shape-dots {
    width: 11rem;
    top: 0;
    right: -1rem;
  }

  .shape-square {
    width: 4.5rem;
    top: 28%;
  }

  .name {
    margin-bottom: 2.25rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .shape,
  .line {
    animation: arrive 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .line-at {
    animation-delay: 90ms;
  }

  .line-pd {
    animation-delay: 180ms;
  }

  .shape-triangle {
    animation-delay: 40ms;
  }

  .shape-dots {
    animation-delay: 120ms;
  }

  .shape-ring {
    animation-delay: 160ms;
  }
}

@keyframes arrive {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
