/* paralum.io: the page and its footer (the footer is the same as
   pingato.com's). */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #2a1a10;
}

body {
  min-height: 100vh;
  min-height: 100dvh;

  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding: 0;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    sans-serif;

  color: #fff6ec;

  background:
    radial-gradient(
      circle at 50% 35%,
      #b06a2c 0%,
      #8a4f22 36%,
      #5a321a 72%,
      #2a1a10 100%
    );
}

/* iPhone/iOS Safari only */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 600px) {
    html,
    body {
      overflow: hidden;
    }

    body {
      min-height: calc(100lvh + 80px);
      transform: translateY(-40px);
    }

    /* Keep the footer above the toolbars despite the shift above. */
    body .license-note {
      padding-bottom: calc(100lvh - 100svh + 64px + env(safe-area-inset-bottom, 0px));
    }
  }
}

  main {
    align-self: center;
    width: min(900px, calc(100% - 64px));
    margin: 32px;
    text-align: center;
  }

  /* ---------- Footer (same as pingato.com's) ---------- */

  .license-note {
    width: 100%;
    margin: 0;
    padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 238, 220, 0.38);
  }

  .license-note a {
    color: rgba(255, 238, 220, 0.55);
    text-decoration: none;
    white-space: nowrap;
  }

  .license-note a:hover {
    color: rgba(255, 238, 220, 0.85);
  }

  .license-note .footer-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  @media (max-width: 600px) {
    .license-note {
      justify-content: center;
      text-align: center;
      font-size: 0.62rem;
      padding-inline: 16px;
    }

    .license-note .license-credit {
      flex-basis: 100%;
    }

    .license-note .footer-links {
      margin-left: 0;
    }
  }

  h1 {
    margin: 0;

    font-size: clamp(4.5rem, 13vw, 9rem);
    font-weight: 650;
    letter-spacing: -0.065em;
    line-height: 0.95;

    background: linear-gradient(
      180deg,
      #ffffff 0%,
      #ffefd9 38%,
      #ffd9a8 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow:
      0 2px 18px rgba(255, 210, 150, 0.10);
  }

  .tagline {
    margin: 34px 0 0;
    min-height: 1.35em;

    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 350;
    letter-spacing: -0.025em;

    color: #fff1e0;

  }


  .description {
    max-width: 680px;
    margin: 30px auto 0;

    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;

    color: rgba(255, 238, 220, 0.72);
  }

  @media (prefers-reduced-motion: reduce) {
    .tagline {
      transition: none;
    }
  }

/* ---------- "Can't be found" page ---------- */

.missing h2 {
  margin: 34px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 350;
  letter-spacing: -0.025em;
  color: #fff1e0;
}

.missing .description a {
  color: #fff1e0;
}

/* ---------- The wordmark, written out ---------- */

/* Each letter (--i: 0, 1, …) is traced in white, one after another, then
   the whole word fills in. */
.wordmark {
  margin: 0;
  line-height: 0;
}

.wordmark svg {
  width: min(760px, 100%);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 2px 18px rgba(255, 210, 150, 0.25));
}

.wordmark path {
  /* At rest: the finished word. The animations start from the outline
     (fill mode both), so a skipped animation still shows the word. */
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  stroke-opacity: 0;
  animation:
    write 0.9s cubic-bezier(0.45, 0, 0.3, 1) calc(0.3s + var(--i) * 0.28s) both,
    ink 1.2s ease 3.1s both;
}

@keyframes write {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes ink {
  from { fill-opacity: 0; stroke-opacity: 1; }
  to { fill-opacity: 1; stroke-opacity: 0; }
}

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

.tagline {
  margin-top: 18px;
}
