/* Fonts are served from this site instead of Google Fonts: one fewer server
   to connect to before text shows, and visitors' addresses stay off Google's logs.
   Both are latin-only subsets under the SIL Open Font License. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/unbounded-800-latin.woff2") format("woff2");
}

:root {
  --bg: #0b0d10;
  --bg-2: #13171c;
  --line: #262c34;
  --text: #d6dbe0;
  --muted: #8a939c;
  --cyan: #6ff3ff;
  --pink: #ff7eb6;
  --pink-dark: #c94f86;
  --chrome-text: linear-gradient(180deg, #f4f7fa 0%, #aab3bc 48%, #59616a 52%, #c3cad1 100%);
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #1b222b 0%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* hero */

.hero {
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 2rem;
}

#logo {
  display: block;
  width: min(92vw, 1100px);
  aspect-ratio: 4.68; /* logo.js sets the exact height once the font loads */
}

/* The hero title, shown only if the canvas logo can't run (see the noscript in index.html). */
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 13vw, 9rem);
  line-height: 1.1;
  background: var(--chrome-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.08em;
}

@media (max-width: 600px) {
  .hero {
    min-height: 62vh;
    min-height: 62svh;
  }
}

/* sections */

.section {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  background: var(--chrome-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section p {
  margin: 0 0 1rem;
}

/* form */

form {
  display: grid;
  gap: 0.4rem;
  margin-top: 2rem;
}

label,
legend {
  font-weight: 500;
  font-size: 0.95rem;
}

.hint {
  color: var(--muted);
  font-weight: 400;
}

textarea,
input[type="email"],
input[type="text"] {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font: inherit;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

textarea:focus,
input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(111, 243, 255, 0.18);
}

.rating {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.rating legend {
  margin-bottom: 0.5rem;
}

.rating-options {
  display: flex;
  gap: 0.5rem;
}

.rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-options label {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  cursor: pointer;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.rating-options label:hover {
  border-color: var(--muted);
}

.rating-options input:checked + label {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
}

.rating-options input:focus-visible + label {
  box-shadow: 0 0 0 3px rgba(111, 243, 255, 0.35);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#fb-submit {
  justify-self: start;
  padding: 0.75rem 2rem;
  color: #2a0d1b;
  font: 600 1rem var(--body);
  letter-spacing: 0.02em;
  cursor: pointer;
  background: linear-gradient(180deg, #ffa3cc 0%, var(--pink) 60%, var(--pink-dark) 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 2px 0 #7d2a52, 0 6px 18px rgba(255, 126, 182, 0.25);
  transition: transform 0.1s, filter 0.15s;
}

#fb-submit:hover {
  filter: brightness(1.08);
}

#fb-submit:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 #7d2a52, 0 3px 10px rgba(255, 126, 182, 0.25);
}

#fb-submit:disabled {
  cursor: wait;
  filter: grayscale(0.6) brightness(0.8);
}

#fb-submit:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.status {
  min-height: 1.6em;
  margin: 0.75rem 0 0 !important;
  font-size: 0.95rem;
}

.status.ok {
  color: var(--cyan);
}

.status.err {
  color: #ff8a8a;
}

/* reCAPTCHA's floating badge would sit under Gummy. Google allows hiding it
   as long as the form says it's protected by reCAPTCHA, which .recaptcha-note does. */
.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-note {
  margin: 0.5rem 0 0 !important;
  color: var(--muted);
  font-size: 0.75rem;
}

.recaptcha-note a {
  color: inherit;
}

/* footer */

.footer {
  padding: 3rem 1rem 4rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--cyan);
}

/* 404 */

.not-found {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 0;
}

.not-found h1 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 3.5rem);
  background: var(--chrome-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.not-found a {
  color: var(--cyan);
}
