:root {
  color-scheme: light;
  --paper: #f5f2ec;
  --surface: #fffaf2;
  --ink: #1a130d;
  --ink-soft: #6c5e50;
  --muted: #968779;
  --accent: #a8421b;
  --accent-soft: #f1d8ca;
  --shadow: 0 28px 80px rgb(48 31 18 / 14%);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgb(168 66 27 / 10%), transparent 34rem),
    radial-gradient(circle at 88% 94%, rgb(47 111 159 / 8%), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.share-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.share-card {
  width: min(100%, 520px);
  padding: clamp(28px, 7vw, 48px);
  border-radius: 32px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgb(48 31 18 / 14%);
}

.share-copy { margin-top: 44px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 11vw, 64px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

#share-description {
  max-width: 38ch;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.58;
}

.share-actions {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--accent); }
.button-secondary { background: var(--accent-soft); color: var(--accent); }
.button[hidden] { display: none; }

.privacy-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.privacy-note a { color: inherit; }

@media (max-width: 520px) {
  .share-card { border-radius: 26px; }
  .share-copy { margin-top: 38px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #100d0a;
    --surface: #24201c;
    --ink: #f7f0e7;
    --ink-soft: #c0b2a4;
    --muted: #93877c;
    --accent: #ef8e66;
    --accent-soft: #4b2b20;
    --shadow: 0 30px 90px rgb(0 0 0 / 42%);
  }
}

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