/* Shared design system for Summon — tokens + marketplace components.
   Page-specific styles stay inline in each page; this is the common vocabulary. */
:root {
  --bg: #f4f2ec;
  --panel: #ffffff;
  --ink: #1a1815;
  --muted: #6f6a61;
  --faint: #a8a298;
  --line: rgba(26, 24, 21, 0.1);
  --btn: #1a1815;
  --good: #3f5c3a;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(26, 24, 21, 0.04), 0 12px 32px rgba(26, 24, 21, 0.06);
  --shadow-sm: 0 1px 2px rgba(26, 24, 21, 0.05), 0 4px 14px rgba(26, 24, 21, 0.05);
}

/* ---------- header ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  background: rgba(244, 242, 236, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.nav .links { display: flex; align-items: center; gap: 6px; }
.nav .links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav .links a:hover { color: var(--ink); }
.nav .links a.active { color: var(--ink); }
.nav .links a.cta { background: var(--btn); color: #fff; padding: 8px 15px; }
.nav .links a.cta:hover { opacity: 0.88; color: #fff; }

/* ---- accounts (Clerk) ---- */
.authslot { display: inline-flex; align-items: center; gap: 6px; }
.nav .links .nav-signin {
  font-family: var(--sans); font-size: 14px; color: var(--muted);
  background: none; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 999px; transition: color 0.15s;
}
.nav .links .nav-signin:hover { color: var(--ink); }
.userbtn { display: inline-flex; align-items: center; margin-left: 2px; }

.ob-overlay {
  position: fixed; inset: 0; z-index: 1000; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26, 24, 21, 0.46);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: ob-fade 0.2s ease;
}
@keyframes ob-fade { from { opacity: 0; } to { opacity: 1; } }
.ob-card {
  width: 100%; max-width: 460px; box-sizing: border-box;
  background: var(--panel); border-radius: 20px; padding: 36px 34px 28px;
  box-shadow: 0 30px 90px rgba(26, 24, 21, 0.32);
  animation: ob-rise 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes ob-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.ob-mark { font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.ob-card h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--ink); }
.ob-sub { color: var(--muted); font-size: 15px; margin: 0 0 20px; line-height: 1.5; }
.ob-field { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ob-field input, .ob-field textarea {
  display: block; width: 100%; margin-top: 6px; box-sizing: border-box;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 13px; resize: vertical; transition: border-color 0.15s;
}
.ob-field input:focus, .ob-field textarea:focus { outline: none; border-color: var(--ink); }
.ob-go {
  width: 100%; margin-top: 6px; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 500; color: #fff;
  background: var(--btn); border: 0; border-radius: 11px; padding: 13px; transition: opacity 0.15s;
}
.ob-go:hover { opacity: 0.9; }
.ob-go:disabled { opacity: 0.6; cursor: default; }
.ob-skip {
  display: block; width: 100%; margin-top: 10px; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; color: var(--faint);
  background: none; border: 0; padding: 4px;
}
.ob-skip:hover { color: var(--muted); }

/* ---- account page ---- */
.acct-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.acct-head .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--bg); border: 1px solid var(--line); }
.acct-head .who h1 { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -0.02em; margin: 0; }
.acct-head .who .email { color: var(--muted); font-size: 14.5px; }
.acct-ship { color: var(--muted); font-size: 14px; margin: 6px 0 30px; }
.acct-ship b { color: var(--ink); font-weight: 500; }
.acct-empty { color: var(--muted); padding: 30px 0; }
.acct-gate { text-align: center; padding: 64px 0; }
.acct-gate h1 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 8px; }
.acct-gate p { color: var(--muted); margin: 0 0 22px; }
.mine-tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.mine-tag.paid { color: var(--good); border-color: rgba(63, 92, 58, 0.3); }

/* ---------- stat bar ---------- */
.statbar { display: flex; flex-wrap: wrap; gap: 28px; }
.statbar .stat .n { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 4vw, 30px); letter-spacing: -0.02em; }
.statbar .stat .l { font-size: 12px; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }

/* ---------- card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .thumb {
  position: relative;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 46px;
  letter-spacing: -0.02em;
}
.card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.86);
  color: var(--good);
  padding: 4px 9px;
  border-radius: 999px;
}
.card .body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .ctitle { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.22; letter-spacing: -0.01em; }
.card .bar { height: 6px; border-radius: 999px; background: #eceae3; overflow: hidden; }
.card .bar-fill { height: 100%; background: var(--btn); border-radius: 999px; }
.card.funded .bar-fill { background: var(--good); }
.card .nums { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card .raised { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.card .pct { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card .goal { font-size: 12.5px; color: var(--faint); margin-top: -2px; }
.muted { color: var(--muted); }
.subtitle { color: var(--muted); font-size: 14px; margin: -2px 0 14px; }
.paycrypto { all: unset; cursor: pointer; box-sizing: border-box; display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; margin-top: 9px; padding: 13px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500; transition: border-color 0.15s, background 0.15s; }
.paycrypto:hover { border-color: rgba(26, 24, 21, 0.32); background: var(--bg); }
.paycrypto[disabled] { opacity: 0.5; cursor: default; }

/* ---------- sort tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button {
  all: unset;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: all 0.13s;
}
.tabs button:hover { border-color: rgba(26, 24, 21, 0.25); }
.tabs button.on { background: var(--btn); color: #fff; border-color: var(--btn); }

/* ---------- site footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 9vh; }
.site-footer .inner { max-width: 1080px; margin: 0 auto; padding: 42px 24px 26px; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 30px; }
.site-footer .brand { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; }
.site-footer .tagline { font-size: 13px; color: var(--faint); line-height: 1.55; margin: 11px 0 0; }
.site-footer .col h4 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 13px; font-weight: 500; }
.site-footer .col a { display: block; font-size: 13.5px; color: var(--muted); text-decoration: none; margin-bottom: 9px; }
.site-footer .col a:hover { color: var(--ink); }
.site-footer .subfoot { max-width: 1080px; margin: 0 auto; padding: 16px 24px 38px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; }
.site-footer .subfoot span { font-size: 11.5px; color: var(--faint); line-height: 1.6; }
.site-footer .subfoot .fine { max-width: 660px; }
@media (max-width: 720px) { .site-footer .inner { grid-template-columns: 1fr 1fr; gap: 26px; } }

/* (Beta) badge appended to the wordmark in every nav */
.nav .brand::after {
  content: "Beta"; display: inline-block; vertical-align: super;
  font-family: var(--sans); font-weight: 500; font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); background: rgba(26, 24, 21, 0.05); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 5px; margin-left: 7px; line-height: 1;
}

/* secure-checkout trust line near pay buttons */
.trust { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--faint); margin-top: 12px; }
.trust svg { width: 12px; height: 12px; flex: none; }

/* haggle / negotiate */
.haggle { margin: 2px 0 20px; }
.haggle-open { all: unset; cursor: pointer; font-size: 13.5px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.haggle-open:hover { color: var(--ink); }
.haggle-body { margin-top: 13px; border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: var(--bg); }
.haggle-log { font-size: 13.5px; line-height: 1.5; margin-bottom: 11px; display: flex; flex-direction: column; gap: 8px; }
.haggle-log .them { color: var(--ink); align-self: flex-start; max-width: 88%; }
.haggle-log .you { color: var(--muted); align-self: flex-end; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 2px 11px; font-variant-numeric: tabular-nums; }
.haggle-log .haggle-deal { color: var(--good); font-weight: 500; }
.haggle-row { display: flex; gap: 8px; align-items: center; }
.haggle-row .hg-cur { color: var(--faint); }
.haggle-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font: inherit; font-size: 14px; padding: 10px 12px; outline: 0; color: var(--ink); }
.haggle-row input:disabled { opacity: 0.6; }
.hg-go { all: unset; cursor: pointer; background: var(--btn); color: #fff; font-size: 13.5px; font-weight: 500; padding: 10px 17px; border-radius: 10px; }
.hg-go[disabled] { opacity: 0.45; cursor: default; }
.price s { color: var(--faint); font-weight: 400; }

/* slim footer (home / how) — links row */
.slimfoot .seplinks { margin-bottom: 5px; }
.slimfoot .seplinks a { color: var(--muted); text-decoration: none; margin: 0 8px; }
.slimfoot .seplinks a:hover { color: var(--ink); }

/* ---------- summon imagery ---------- */
/* Card thumbnail photo, layered over the gradient+monogram fallback. */
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Full-bleed banner inside a 30px-padded .box (quote panel / pool page). */
.banner-img { position: relative; height: 200px; margin: -30px -30px 24px; overflow: hidden; background-size: cover; background-position: center; }
.banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
