/* Tally — tallyguestlist.com. White-first and monochrome, like the app. */
:root {
  --background: #ffffff;
  --surface: #f4f4f2;
  --surface-strong: #eaeae7;
  --ink: #171717;
  --secondary: #626262;
  --border: #e0e0de;
  --on-ink: #ffffff;
  --radius: 20px;
  --gutter: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 8px;
}

header.site .wordmark { height: 30px; width: auto; display: block; }

header.site nav { display: flex; gap: 18px; font-size: 15px; }
header.site nav a { color: var(--secondary); text-decoration: none; }
header.site nav a:hover { color: var(--ink); }

h1 {
  font-size: clamp(38px, 9vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 40px 0 16px;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 8px;
  letter-spacing: -0.01em;
}

h3 { font-size: 18px; font-weight: 600; margin: 24px 0 4px; }

p, li { color: var(--ink); }
.muted { color: var(--secondary); }
.lead { font-size: 20px; color: var(--secondary); margin: 0 0 28px; }

ul { padding-left: 20px; }
li { margin: 6px 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--on-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary { background: var(--surface-strong); color: var(--ink); }
.button.block { display: flex; width: 100%; }
.button[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
}

.features { display: grid; gap: 14px; margin: 32px 0; }
.features .card { margin: 0; }
.features h3 { margin-top: 0; }
.features p { margin: 4px 0 0; color: var(--secondary); }

.code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(30px, 10vw, 44px);
  font-weight: 600;
  letter-spacing: 0.08em;
  word-break: break-all;
  margin: 6px 0 4px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 18px 0; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: baseline; margin: 12px 0; }
.steps li::before {
  content: counter(step);
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stack { display: grid; gap: 12px; margin: 22px 0; }

.legal h2 { font-size: 20px; }
.legal p, .legal li { color: #2b2b2b; }

footer.site {
  margin: 64px 0 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
footer.site a { color: var(--secondary); }

@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}

/* Invite pages */
.flyer {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface);
  margin: 24px 0 0;
}
.details { font-size: 17px; font-weight: 500; margin: -12px 0 8px; }
