/* Same tokens and type as ariaradnia.com, trimmed to what this page uses. */
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/pt-serif-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/pt-serif-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/pt-serif-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/montserrat-latin-wght-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg-0: #09090b;
  --bg-1: #0f0f11;
  --bg-2: #141417;
  --line-1: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.09);
  --line-3: rgba(255, 255, 255, 0.14);
  --text-1: #f4f4f5;
  --text-2: #a1a1a7;
  --text-3: #6d6d74;
  --amber: #d29a52;
  --amber-soft: #e8c18c;
  --sage: #73b490;
  --serif: 'PT Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat Variable', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 5vw, 72px);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(255, 255, 255, 0.05), transparent 70%),
    var(--bg-0);
  color: var(--text-1);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.top {
  padding: 28px var(--gutter);
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.brand .mark {
  color: var(--amber);
}

.brand:hover {
  color: var(--amber-soft);
}

.stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter) 48px;
}

.card {
  width: min(100%, 620px);
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

h1 {
  margin: 22px 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-2);
  text-wrap: balance;
}

h1 em {
  color: var(--text-1);
}

.lede {
  margin: 0 auto 30px;
  max-width: 40ch;
  color: var(--text-2);
  text-wrap: pretty;
}

.signup {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  text-align: left;
}

.signup .cf-turnstile {
  grid-column: 1 / -1;
}

.signup .cf-turnstile:empty {
  display: none;
}

input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text-1);
  background: var(--bg-0);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 13px 15px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

input::placeholder {
  color: var(--text-3);
}

input:hover {
  border-color: var(--line-3);
}

input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(210, 154, 82, 0.2);
}

/* Frosted glass button, same as the main site. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 28px -14px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fine {
  margin: 18px 0 0;
  font-size: 0.78rem;
  color: var(--text-3);
}

.fine a {
  color: var(--text-2);
  text-underline-offset: 3px;
}

.fine.ok {
  color: var(--sage);
}

.fine.err {
  color: var(--amber-soft);
}

.card.done .signup {
  display: none;
}

.foot {
  padding: 24px var(--gutter) 32px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
}

.foot a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.foot a:hover {
  color: var(--text-1);
}

@media (max-width: 520px) {
  /* Turnstile needs 300px, so keep the card's sides tight on phones. */
  .card {
    padding: 28px 18px;
  }

  .signup {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* The early bird discount is the hook, so it gets a sage highlighter stroke. */
.perk {
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  padding: 0 2px;
  background: linear-gradient(180deg, transparent 58%, rgba(115, 180, 144, 0.32) 58%, rgba(115, 180, 144, 0.32) 92%, transparent 92%);
}
