/* ============================================================
   hpy resources - light mode, mono-first.
   Values come from the hpy design system. All spacing is a 4px multiple.
   The passion gradient appears in exactly one place: the top card icon.
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lora:wght@400;500&display=swap');
@import url('https://unpkg.com/@phosphor-icons/web@2.1.1/src/fill/style.css');

:root {
  /* Mono */
  --white:    #ffffff;
  --mist:     #f2f2f2;
  --ash:      #adadad;
  --lucid:    #444444;
  --night:    #2f2f2f;
  --midnight: #212121;

  /* Sentiment */
  --red-2: #c44545;

  /* Passion gradient */
  --passion: linear-gradient(135deg, #f22fb0 0%, #f58a25 100%);

  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --radius-sharp:  4px;
  --radius-subtle: 8px;
  --radius-soft:   16px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--mist);
  color: var(--night);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lucid); }

/* ======== Header ======== */
.header {
  padding: 24px 24px 0 24px;
  display: flex;
  justify-content: center;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 32px;
  color: var(--midnight);
  text-decoration: none;
}

/* ======== Card ======== */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: 40px;
}

.card-icon {
  display: block;
  font-size: 40px;
  line-height: 40px;
  margin-bottom: 24px;
  background: var(--passion);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: 40px;
}

.card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 44px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--midnight);
}

.card-subtitle {
  margin: 12px 0 0 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--night);
}

.card-blurb {
  margin: 16px 0 0 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--lucid);
}

/* ======== Form ======== */
.form {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--mist);
}

.form-label {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--midnight);
  margin-bottom: 8px;
}

.form-row {
  display: flex;
  gap: 8px;
}

.input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--midnight);
  background: var(--white);
  border: 1px solid var(--ash);
  border-radius: var(--radius-sharp);
}

.input::placeholder { color: var(--ash); }

.input:focus {
  outline: none;
  border-color: var(--midnight);
  box-shadow: 0 0 0 3px rgba(33, 33, 33, 0.08);
}

.btn {
  padding: 12px 24px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--white);
  background: var(--midnight);
  border: 1px solid var(--midnight);
  border-radius: var(--radius-sharp);
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease;
}

.btn:hover:not(:disabled) { background: var(--night); }

.btn:disabled {
  background: var(--ash);
  border-color: var(--ash);
  cursor: default;
}

.form-error {
  margin: 12px 0 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--red-2);
}

.form-error a { color: var(--red-2); }

.form-note {
  margin: 16px 0 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--ash);
}

/* Honeypot. Off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ======== Success ======== */
.sent {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--mist);
}

.sent-icon {
  font-size: 32px;
  line-height: 32px;
  color: var(--midnight);
}

.sent-title {
  margin: 12px 0 0 0;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 32px;
  color: var(--midnight);
}

.sent-body {
  margin: 8px 0 0 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--lucid);
}

.sent-body strong { color: var(--midnight); font-weight: 600; }

/* ======== Footer ======== */
.footer {
  padding: 24px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--ash);
}

/* ======== Small screens ======== */
@media (max-width: 560px) {
  .card { padding: 24px; }
  .card-title { font-size: 28px; line-height: 36px; }
  .card-subtitle { font-size: 16px; line-height: 24px; }
  .form-row { flex-direction: column; }
  .btn { width: 100%; }
}
