:root {
  --ink: #f8fbff;
  --muted: #c7d3e3;
  --dim: #8ea0b8;
  --line: rgba(255, 255, 255, 0.15);
  --blue: #62c8ff;
  --green: #4fe0a7;
  --gold: #ffd166;
  --panel: rgba(8, 17, 31, 0.78);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(79, 224, 167, 0.2), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(98, 200, 255, 0.22), transparent 30rem),
    linear-gradient(135deg, #07111f 0%, #101827 52%, #132014 100%);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}

.site-page {
  padding: clamp(1rem, 3vw, 2rem);
}

.panel {
  width: min(1040px, 100%);
  margin: 0 auto 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(10, 25, 43, 0.9), rgba(8, 17, 31, 0.72));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  padding: clamp(1.2rem, 4vw, 3rem);
}

.hero h1,
.builder-intro h1 {
  max-width: 11ch;
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 0.94;
}

h2 {
  margin: 0 0 1rem;
  color: var(--ink);
}

p,
li,
label {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.lede {
  max-width: 48rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #061220;
  cursor: pointer;
  font: 850 1rem/1 system-ui, sans-serif;
  text-decoration: none;
}

.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.grid-two {
  display: grid;
  width: min(1040px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

pre {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  padding: 1rem;
  white-space: pre-wrap;
}

.builder-form {
  display: grid;
  gap: 1rem;
}

.builder-form h2 {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.builder-form label {
  display: grid;
  gap: 0.38rem;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  padding: 0.8rem 0.9rem;
}

select option {
  color: #07111f;
}

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

.error {
  width: min(1040px, 100%);
  margin: 0 auto 1rem;
  border: 1px solid rgba(255, 107, 107, 0.5);
  border-radius: 8px;
  background: rgba(255, 107, 107, 0.14);
  color: var(--ink);
  padding: 1rem;
  font-weight: 800;
}

.email-preview {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.postcard-page {
  overflow: hidden;
}

#postcard-root {
  min-height: 100vh;
}

@media (max-width: 760px) {
  .grid-two {
    grid-template-columns: 1fr;
  }
}
