:root {
  --paper: #f6efe3;
  --paper-2: #efe4d2;
  --ink: #2b2340;
  --muted: #6d6380;
  --gold: #a87a2e;
  --gold-soft: rgba(168, 122, 46, 0.14);
  --violet: #5b4596;
  --line: rgba(43, 35, 64, 0.14);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  background:
    radial-gradient(120% 60% at 50% 0%, #fff8ec 0%, rgba(255, 248, 236, 0) 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { padding: calc(18px + env(safe-area-inset-top)) 20px 0; display: flex; justify-content: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 15px var(--sans); letter-spacing: 0.04em; }
.mark { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linejoin: round; }
.mark circle { fill: var(--gold); }

main { max-width: 680px; margin: 0 auto; padding: 0 20px; }

.hero { text-align: center; padding: 28px 0 40px; }
.welcome {
  margin: 0 auto 8px;
  max-width: 520px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  color: var(--muted);
}
.welcome-eyebrow { display: block; margin-bottom: 4px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }

/* The swinging pendulum. */
.pendulum { position: relative; width: 140px; height: 150px; margin: 18px auto 6px; }
.pivot { position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--gold); }
.swing { position: absolute; left: 50%; top: 5px; width: 0; height: 110px; transform-origin: 0 0; animation: swing 3.6s ease-in-out infinite alternate; }
.string { position: absolute; left: -0.75px; top: 0; width: 1.5px; height: 96px; background: linear-gradient(var(--gold), #c9a160); }
.bob {
  position: absolute; left: -11px; top: 92px; width: 22px; height: 30px;
  background: linear-gradient(160deg, #f3dcae, #a87a2e 60%, #7c5718);
  clip-path: polygon(50% 0, 100% 35%, 50% 100%, 0 35%);
  filter: drop-shadow(0 6px 10px rgba(168, 122, 46, 0.45));
}
.arc { position: absolute; left: 50%; bottom: 0; width: 120px; height: 40px; margin-left: -60px; border-bottom: 1.5px dashed rgba(168, 122, 46, 0.35); border-radius: 0 0 60px 60px; }
@keyframes swing { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
@media (prefers-reduced-motion: reduce) { .swing { animation: none; } }

.eyebrow { margin: 18px 0 6px; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
h1 { margin: 0 auto 14px; max-width: 560px; font: 500 clamp(40px, 9vw, 60px)/1.05 var(--serif); letter-spacing: -0.01em; }
.lead { margin: 0 auto 28px; max-width: 520px; font: italic 500 clamp(20px, 4.6vw, 24px)/1.45 var(--serif); color: var(--muted); }

.join { display: flex; flex-direction: column; gap: 12px; max-width: 440px; margin: 0 auto; text-align: left; }
.join input[type='email'] {
  width: 100%; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: #fffdf8; color: var(--ink); font: 400 17px var(--sans);
}
.join input[type='email']:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
.join button, .again {
  display: inline-block; padding: 15px 22px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fbf5ea; font: 600 16px var(--sans); text-align: center; text-decoration: none;
  cursor: pointer; transition: transform 0.15s ease, opacity 0.15s ease;
}
.join button:disabled { opacity: 0.4; cursor: default; }
.join button:not(:disabled):hover, .again:hover { transform: translateY(-1px); }
.error { min-height: 1em; margin: 0; color: #a3372b; font-size: 14px; text-align: center; }
.joined { max-width: 440px; margin: 0 auto; padding: 20px; border: 1px solid var(--gold); border-radius: 16px; background: rgba(255, 255, 255, 0.6); }
.joined p { margin: 0; color: var(--muted); }
.joined .joined-title { margin-bottom: 6px; color: var(--ink); font: 600 26px var(--serif); }

.learn { padding: 20px 0 28px; }
h2 { margin: 0 0 18px; text-align: center; font: 500 34px/1.1 var(--serif); }
.cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 22px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.55); }
.card svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 10px 0 6px; font: 600 24px/1.15 var(--serif); }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

.why { text-align: center; padding: 26px 0 48px; }
.quote { margin: 0 auto 22px; max-width: 520px; font: italic 500 26px/1.4 var(--serif); }

.foot { max-width: 680px; margin: 0 auto; padding: 24px 20px calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); }
.foot p { margin: 0 0 8px; }

/* Plain pages (privacy). */
.doc { max-width: 680px; margin: 0 auto; padding: 24px 20px 48px; }
.doc h1 { font-size: 44px; text-align: left; }
.doc h2 { text-align: left; font-size: 26px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc .updated { color: var(--muted); font-size: 14px; }
