/* ContentCollect invite site. Tokens follow the app's palette (CCKit DesignSystem/Tokens/Palette.swift, accent iris). */
:root {
  color-scheme: light dark;
  --canvas: #ffffff;
  --surface1: #faf9f7;
  --surface2: #f5f3f1;
  --border-subtle: rgba(0, 0, 0, 0.07);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text1: #252220;
  --text2: #4a4744;
  --text3: #6f6b67;
  --accent-fill: #6e50d9;
  --accent-hover: #5935be;
  --accent-on-fill: #ffffff;
  --danger: #d02b31;
  --radius-m: 12px;
  --radius-xl: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0b0a09;
    --surface1: #12110f;
    --surface2: #181615;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text1: #f6f4f2;
    --text2: #cdcac6;
    --text3: #9e9b96;
    --accent-fill: #765cde;
    --accent-hover: #ada3fe;
    --accent-on-fill: #ffffff;
    --danger: #f3625d;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(0, 0, 0, 0.24);
    --text3: #4a4744;
  }
}

@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --border: rgba(255, 255, 255, 0.22);
    --text3: #cdcac6;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--text1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}

main {
  width: 100%;
  max-width: 420px;
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 20px 20px;
}

.brand {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text3);
}

h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.meta {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text3);
  overflow-wrap: anywhere;
}

.purpose {
  margin: 16px 0 0;
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--border-strong);
  color: var(--text2);
  font-size: 16px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.message {
  margin: 0;
  font-size: 17px;
  color: var(--text1);
  overflow-wrap: anywhere;
}

.actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--radius-m);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.button.primary {
  background: var(--accent-fill);
  color: var(--accent-on-fill);
}

.button.primary:hover {
  background: var(--accent-hover);
}

.button.secondary {
  background: var(--surface2);
  color: var(--text1);
  border: 1px solid var(--border);
}

.button:focus-visible {
  outline: 2px solid var(--accent-fill);
  outline-offset: 2px;
}

.note {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--text2);
  overflow-wrap: anywhere;
}

.hint {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text3);
  text-align: center;
}

.skeleton {
  display: block;
  height: 14px;
  border-radius: 7px;
  background: var(--surface2);
  border: 1px solid var(--border-subtle);
}

.skeleton.wide {
  width: 88%;
  height: 22px;
  border-radius: 8px;
}

.skeleton.narrow {
  width: 52%;
  margin-top: 12px;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    animation: pulse 1.4s ease-in-out infinite;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}
