/* avain.ai — holding page */

:root {
  --paper: #ffffff;
  --ink: #111111;
  --muted: #757575;
  --hair: rgba(0, 0, 0, 0.12);
  color-scheme: only light;
}

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

html {
  height: 100%;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: clamp(1.5rem, 5vw, 3rem);
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

main {
  flex: 1;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---- the key, drawn in one line ---- */

.key {
  width: min(58vw, 13.5rem);
  height: auto;
  color: var(--ink);
  margin-bottom: clamp(2rem, 7vh, 3.25rem);
  -webkit-tap-highlight-color: transparent;
}

/* ---- type ---- */

.wordmark {
  font-size: clamp(3rem, 13vw, 4.25rem);
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.015em;
  line-height: 1;
}

.def {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.def .lang {
  font-style: italic;
}

.about {
  margin-top: clamp(2.2rem, 6vh, 3rem);
  width: 100%;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.7;
}

.stack {
  margin-top: 2rem;
  width: 100%;
  display: grid;
  row-gap: 0.85rem;
  text-align: left;
}

.stack > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  column-gap: 1rem;
  align-items: baseline;
}

.stack dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stack dd {
  margin: 0;
  font-size: 1.02rem;
}

/* ---- footer ---- */

footer {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  color: var(--muted);
}

footer a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--hair), var(--hair));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-image 0.4s ease;
  padding-bottom: 2px;
}

footer a:hover,
footer a:focus-visible {
  background-image: linear-gradient(var(--ink), var(--ink));
}

footer a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.year {
  letter-spacing: 0.08em;
}

/* ---- motion ---- */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wordmark.reveal { animation-delay: 1.15s; }

.def.reveal { animation-delay: 1.3s; }

.about.reveal { animation-delay: 1.5s; }

.stack > div:nth-child(1) { animation-delay: 1.7s; }
.stack > div:nth-child(2) { animation-delay: 1.9s; }
.stack > div:nth-child(3) { animation-delay: 2.1s; }
.stack > div:nth-child(4) { animation-delay: 2.3s; }

footer.reveal    { animation-delay: 2.9s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
