:root {
  --ink: #14213D;
  --parchment: #FAF6EF;
  --gold: #E8A93A;
  --sage: #7C9A82;
  --charcoal: #1F2421;
  --paper-shadow: rgba(20, 33, 61, 0.18);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  line-height: 1.55;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(1.5rem, 5vw, 4rem);
}

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .hero__receipt { order: 2; margin-top: 2rem; }
}

/* --- Signature element: the "receipt" --- */
.hero__receipt { display: flex; justify-content: center; }

.receipt {
  background: var(--parchment);
  color: var(--charcoal);
  width: 100%;
  max-width: 320px;
  padding: 1.75rem 1.5rem 2.25rem;
  font-family: "IBM Plex Sans", monospace;
  font-size: 0.92rem;
  box-shadow: 0 24px 60px var(--paper-shadow);
  transform: rotate(-2.5deg);
  position: relative;
}

.receipt::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
  background: repeating-linear-gradient(115deg, var(--parchment) 0 8px, transparent 8px 16px);
  background-color: var(--ink);
}

.receipt__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.receipt__divider {
  border-top: 1px dashed var(--charcoal);
  opacity: 0.35;
  margin: 0.5rem 0;
}

.receipt__row--total {
  font-weight: 600;
  color: var(--sage);
  font-size: 1.05rem;
}

.receipt__perf {
  height: 12px;
  margin-top: 1.25rem;
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
  opacity: 0.25;
}

/* --- Content --- */
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  color: var(--parchment);
}

.lede {
  color: rgba(250, 246, 239, 0.82);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 2rem;
}

.signup {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  flex-wrap: wrap;
}

.signup input {
  flex: 1 1 240px;
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  border: 1px solid rgba(250, 246, 239, 0.25);
  background: rgba(250, 246, 239, 0.06);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1rem;
}

.signup input::placeholder { color: rgba(250, 246, 239, 0.45); }

.signup input:focus-visible,
.signup button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.signup button {
  padding: 0.9rem 1.5rem;
  border-radius: 6px;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.signup button:hover { transform: translateY(-1px); }

.fineprint {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: rgba(250, 246, 239, 0.55);
}

.notice {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  max-width: 460px;
  font-size: 0.98rem;
}

.notice--success { background: rgba(124, 154, 130, 0.18); border: 1px solid var(--sage); }
.notice--error { background: rgba(217, 119, 87, 0.18); border: 1px solid #D97757; }

.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  color: rgba(250, 246, 239, 0.45);
}

.site-footer a { color: rgba(250, 246, 239, 0.65); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
