/* Remember AI: one page on the Midnight Aurora theme (docs/03-page.md). */

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geist-latin-var.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-1: #131220;
  --bg-2: #121321;
  --bg-3: #151324;
  --line: #29263f;
  --text-1: #f1eae9;
  --text-2: #e6dedf;
  --text-3: #b9b0c3;
  --subtitle: #ded1da;
  --violet-1: #2b1859;
  --violet-2: #381f6c;
  --violet-3: #4f2792;
  --lavender: #c58bff;
  --lime: #b4ce36;
}

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

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

body {
  min-height: 100svh;
  font-family: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: var(--text-1);
  background-color: var(--bg-2);
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(89, 49, 175, 0.22), transparent 70%),
    radial-gradient(500px 350px at 90% 16%, rgba(95, 66, 185, 0.2), transparent 75%),
    linear-gradient(90deg, var(--bg-1), var(--bg-2) 50%, var(--bg-3));
  overflow-x: hidden;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

/* Layout: header, the statement and the form card, footer; one screen on desktop */

.screen {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 420px at 70% 52%, rgba(73, 29, 137, 0.34), transparent 68%);
}

header,
main,
footer {
  position: relative;
  z-index: 3;
}

header .wrap {
  display: flex;
  align-items: center;
  height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wordmark {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.wordmark b {
  font-weight: 700;
  color: var(--lime);
}

main .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(24px, 5vh, 64px);
}

h1 {
  max-width: 15ch;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.line {
  max-width: 34ch;
  margin-top: 24px;
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--subtitle);
}

footer .wrap {
  display: flex;
  align-items: center;
  height: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: var(--text-3);
}

/* The form card */

.card {
  padding: 30px 30px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 19, 37, 0.8), rgba(23, 21, 41, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.28);
}

.card h2 {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.card-line {
  margin: 6px 0 22px;
  font-size: 15px;
  color: var(--text-3);
}

.contact {
  display: grid;
  gap: 16px;
}

.contact label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: var(--text-3);
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text-1);
  background: rgba(12, 11, 24, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.contact textarea {
  min-height: 120px;
  resize: vertical;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: #6b4fd8;
  box-shadow: 0 0 0 3px rgba(107, 79, 216, 0.25);
}

.trap {
  position: absolute;
  left: -9999px;
}

.form-error {
  font-size: 15px;
  color: #ffb4a8;
}

.button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font: inherit;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, var(--violet-1), var(--violet-2) 50%, var(--violet-3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(40, 12, 100, 0.46);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 32px rgba(40, 12, 100, 0.55);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.sent {
  padding: 14px 16px;
  font-size: 17px;
  border-radius: 10px;
  background: rgba(180, 206, 54, 0.08);
  border: 1px solid rgba(180, 206, 54, 0.35);
}

/* The aurora ribbon: draws in once on load */

.ribbon {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 41%;
  width: 100%;
  height: clamp(220px, 32vw, 480px);
  pointer-events: none;
  mix-blend-mode: screen;
}

.strand {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s cubic-bezier(0.3, 0.6, 0.2, 1) forwards;
}

.strand:nth-of-type(2) {
  animation-delay: 0.15s;
}

.strand:nth-of-type(3) {
  animation-delay: 0.3s;
}

.strand:nth-of-type(4) {
  animation-delay: 0.45s;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 860px) {
  main .wrap {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .ribbon {
    top: 250px;
  }

  .card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .strand {
    animation: none;
    stroke-dashoffset: 0;
  }

  .button {
    transition: none;
  }
}

/* 404 */

.notfound main .wrap {
  display: block;
}

.notfound .home-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 18px;
  color: var(--subtitle);
}
