/* pressgive site styles. Phone first. All design tokens (P86) live in the :root block below,
   so the look can be tuned there without touching anything else. The page is white (P128);
   soft purple is only for small panels. */

:root {
  /* colours */
  --c-purple: #4521b5;
  --c-purple-deep: #33178a;
  --c-cherry: #c8102e;
  --c-cherry-deep: #8e0b21;
  --c-cherry-hover: #b50e29;
  --c-input-border: #b9b2d6;
  --c-ink: #17142b;
  --c-muted: #4a4566;
  --c-line: #ece8f8;
  --c-soft: #f5f1ff;
  --c-sun: #ffcc4d;
  --c-white: #ffffff;
  --c-error: #b00d26;
  --c-error-bg: #fff1f3;

  /* type */
  --f-display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --f-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-anchor: clamp(2.5rem, 11vw, 4.5rem);
  --fs-wordmark: clamp(2.25rem, 10vw, 3rem);

  /* shape and space */
  --r-button: 14px;
  --r-panel: 22px;
  --r-input: 12px;
  --tap: 44px;
  --gutter: 1.25rem;
  --max: 34rem;
  --shadow-press: 0 5px 0;
  --shadow-panel: 0 1px 0 var(--c-line), 0 12px 32px rgba(69, 33, 181, 0.08);
  --focus: 3px solid var(--c-purple);
}

@font-face {
  font-family: "Luckiest Guy";
  src: url("../fonts/luckiest-guy-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: var(--c-purple); text-underline-offset: 0.15em; }
a:hover { color: var(--c-purple-deep); }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--c-ink); color: var(--c-white); padding: 0.75rem 1rem; border-radius: var(--r-button);
  z-index: 10;
}
.skip:focus { top: 0.75rem; color: var(--c-white); }

/* header and wordmark: "press" purple, "give" cherry, always */
.site-head { padding: 1.5rem var(--gutter) 0; text-align: center; }
.wordmark {
  font-family: var(--f-display);
  font-size: var(--fs-wordmark);
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0.25rem 0;
}
.wm-press { color: var(--c-purple); }
.wm-give { color: var(--c-cherry); }
/* the registered trade mark: small, at the wordmark's top right, never above it */
.wm-reg {
  font-family: var(--f-body);
  font-size: 0.3em;
  font-weight: 600;
  line-height: 0;
  vertical-align: top;
  position: relative;
  top: 0.35em;
  margin-left: 0.08em;
  color: var(--c-ink);
}

main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* hero */
.hero { text-align: center; padding: 2rem 0 1.75rem; }
.setup { margin: 0 0 0.5rem; color: var(--c-muted); font-size: 1.25rem; font-weight: 500; }
.anchor {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-anchor);
  line-height: 1.02;
  margin: 0 0 1.25rem;
  color: var(--c-ink);
}
.anchor-give { display: block; color: var(--c-cherry); }
.hook { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 700; color: var(--c-ink); }
.hook-money {
  white-space: nowrap;
  background: linear-gradient(transparent 55%, var(--c-sun) 55%, var(--c-sun) 92%, transparent 92%);
  padding: 0 0.15em;
}
.intro { margin: 0 auto; color: var(--c-muted); max-width: 28rem; }
.intro strong { color: var(--c-purple); font-weight: 700; white-space: nowrap; }
.launch {
  font-family: var(--f-display);
  font-size: 1.625rem;
  line-height: 1.1;
  color: var(--c-purple);
  margin: 1.25rem 0 0;
}

/* contact: a small soft purple panel */
.contact {
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-panel);
  padding: 1rem 1.25rem;
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  text-align: center;
}
.contact p { margin: 0; }
.contact a { font-weight: 600; overflow-wrap: anywhere; display: inline-block; padding: 0.625rem 0; }

/* panels */
.panel {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-panel);
  padding: 1.5rem 1.25rem 1.25rem;
  margin: 0 0 2rem;
}
.panel-title { margin: 0 0 1rem; font-size: 1.375rem; font-weight: 700; line-height: 1.2; }

/* form */
.field { margin: 0 0 1.25rem; }
.field label { display: block; font-weight: 600; margin: 0 0 0.375rem; line-height: 1.35; }
.optional { font-weight: 400; color: var(--c-muted); }
.hint { margin: -0.125rem 0 0.5rem; font-size: var(--fs-small); color: var(--c-muted); }
input[type="text"], input[type="email"] {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  font: inherit;
  color: var(--c-ink);
  background: var(--c-white);
  border: 2px solid var(--c-input-border);
  border-radius: var(--r-input);
  appearance: none;
}
input[type="text"]:focus, input[type="email"]:focus { border-color: var(--c-purple); outline: var(--focus); outline-offset: 1px; }

.check {
  display: grid;
  grid-template-columns: 1.625rem 1fr;
  align-items: start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem;
  cursor: pointer;
  border: 1px solid var(--c-line);
  border-radius: var(--r-input);
  background: var(--c-soft);
  min-height: var(--tap);
}
.check-wrap { margin: 0 0 0.75rem; }
.check input {
  width: 1.625rem; height: 1.625rem; margin: 0;
  accent-color: var(--c-purple);
  cursor: pointer;
}
.check span { font-weight: 600; padding-top: 0.0625rem; }

.has-error input[type="text"], .has-error input[type="email"] { border-color: var(--c-error); }
.has-error .check { border-color: var(--c-error); background: var(--c-error-bg); }
.error { margin: 0 0 0.375rem; color: var(--c-error); font-weight: 600; font-size: var(--fs-small); }

.alert {
  border: 2px solid var(--c-error);
  background: var(--c-error-bg);
  border-radius: var(--r-input);
  padding: 0.875rem 1rem;
  margin: 0 0 1.25rem;
}
.alert p { margin: 0 0 0.25rem; font-weight: 600; }
.alert ul { margin: 0.25rem 0 0; padding-left: 1.25rem; }
.alert a { color: var(--c-error); }

/* honeypot: off screen for people, still in the page for bots */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* buttons: rounded rectangles with a pressed shadow (P78) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--r-button);
  font-family: var(--f-body);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.btn-cherry {
  width: 100%;
  margin: 0.75rem 0 0;
  background: var(--c-cherry);
  color: var(--c-white);
  box-shadow: var(--shadow-press) var(--c-cherry-deep);
}
.btn-cherry:hover { background: var(--c-cherry-hover); color: var(--c-white); }
.btn-cherry:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--c-cherry-deep); }
.btn-cherry:focus-visible { outline-color: var(--c-ink); outline-offset: 4px; }
.btn-ghost {
  background: var(--c-white);
  color: var(--c-purple);
  border: 2px solid var(--c-purple);
  box-shadow: 0 4px 0 var(--c-line);
}
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--c-line); }

.small { font-size: var(--fs-small); color: var(--c-muted); margin: 1rem 0 0; }

/* thank-you state */
.thanks { text-align: center; padding: 2rem 1.25rem; }
.thanks-mark { font-family: var(--f-display); font-size: 2.5rem; line-height: 1; color: var(--c-cherry); margin: 0 0 0.75rem; }
.thanks-text { font-size: 1.25rem; font-weight: 600; margin: 0; }

/* privacy notice */
.prose { padding: 1.75rem 1.25rem; margin-top: 1.5rem; }
.prose-title { font-family: var(--f-display); font-weight: 400; font-size: 2.25rem; line-height: 1.05; margin: 0 0 1rem; color: var(--c-purple); }
.prose h2 { font-size: 1.1875rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { color: var(--c-ink); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0 0 0.5rem; }
.lede { font-size: 1.125rem; color: var(--c-muted) !important; }

/* footer */
.site-foot { text-align: center; padding: 1.5rem var(--gutter) 2rem; color: var(--c-muted); font-size: var(--fs-small); }
.site-foot p { margin: 0 0 0.25rem; }
.site-foot a { display: inline-block; padding: 0.75rem 0.25rem; }

/* wider screens: the holding page stays one centred column, sitting in the middle of the
   screen; the sign-up (when it is on) puts the hero beside the form, both from the top */
@media (min-width: 900px) {
  :root { --gutter: 2rem; }
  .site-head { padding-top: 2.5rem; }
  main:has(.hero-holding) {
    max-width: 46rem;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 1rem; padding-bottom: 2rem;
  }
  .hero-holding { padding: 1rem 0 2.5rem; }
  .hero-holding .anchor { font-size: 4.75rem; }
  .hero-holding .hook { font-size: 1.5rem; }
  .hero-holding .intro { font-size: 1.1875rem; max-width: 32rem; }
  .hero-holding .launch { font-size: 2rem; }
  main:has(.signup) {
    --max: 62rem;
    max-width: var(--max);
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: start; padding-top: 2.5rem;
  }
  main:has(.signup) .hero { text-align: left; padding: 1rem 0 0; }
  main:has(.signup) .anchor { font-size: 3.25rem; }
  main:has(.signup) .intro { margin: 0; }
  .panel { margin: 0; padding: 2rem 1.75rem 1.5rem; }
  .page-prose main { max-width: 44rem; }
  .page-prose .panel { margin: 1.5rem 0 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
