/* Nimbus Card™ — public card page
   Dark ink · neon green primary · Instrument Serif + Inter
   Strategy A: dedicated sheet; does not touch assets/style.css */

:root {
  --bg: #0B0F14;
  --surface: #161C24;
  --surface-soft: #12171E;
  --surface-raised: #1A222D;
  --ink: #F2F5F7;
  --muted: #9AA3AD;
  --muted-soft: #6B7480;
  --line: rgba(57, 255, 20, 0.12);
  --line-strong: rgba(242, 245, 247, 0.14);
  --accent: #39FF14;
  --accent-bright: #3DFF2E;
  --accent-ink: #0B0F14;
  --accent-soft: rgba(57, 255, 20, 0.12);
  --accent-mid: rgba(57, 255, 20, 0.28);
  /* Per-card glow (overridden inline via --ac*) */
  --ac: #39FF14;
  --ac-soft: rgba(57, 255, 20, 0.14);
  --ac-mid: rgba(57, 255, 20, 0.5);
  --pink: #ff2e9e;
  --pink-faint: rgba(255, 46, 158, 0.1);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.4), 0 32px 64px rgba(0, 0, 0, 0.45);
  --font-display: "Instrument Serif", "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 560px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(57, 255, 20, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, var(--pink-faint), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--ac); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-bright); }
:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 28px 0 40px;
  flex: 1;
}

/* —— Card shell —— */
.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 40px rgba(57, 255, 20, 0.06);
  text-align: center;
}

.pcard__banner {
  height: 168px;
  position: relative;
  background:
    linear-gradient(135deg, #0d1510 0%, #121a14 50%, #0e1218 100%);
  overflow: hidden;
}
.pcard__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcard__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(22, 28, 36, 0.55) 100%),
    radial-gradient(circle at 85% 15%, rgba(57, 255, 20, 0.18), transparent 42%);
  pointer-events: none;
}
.pcard__banner--cosmic {
  background:
    linear-gradient(105deg, rgba(11, 15, 20, 0.55), rgba(11, 15, 20, 0.25)),
    url("brand/nimbus-card-hero-cosmic.jpg") center / cover no-repeat;
}
.pcard__banner--cosmic::after {
  background: linear-gradient(180deg, transparent 30%, rgba(22, 28, 36, 0.75) 100%);
}

.pcard__body {
  padding: 0 22px 28px;
  margin-top: -58px;
  position: relative;
  z-index: 1;
}

.pcard__photo {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid var(--ac);
  background: #0a0e13;
  box-shadow:
    0 0 0 4px var(--surface),
    0 0 28px var(--ac-mid),
    0 8px 24px rgba(0, 0, 0, 0.45);
}
.pcard__photo--letter {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ac);
  background: linear-gradient(145deg, #1a2a18, #0f1612);
}

.pcard__logo {
  height: 32px;
  width: auto;
  max-width: 160px;
  margin: 4px auto 8px;
  object-fit: contain;
  opacity: 0.92;
}

.pcard__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 4.5vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 6px 0 4px;
  color: var(--ink);
}
.pcard__pronouns {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
  margin-top: 4px;
}

.pcard__sub {
  margin: 2px 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.pcard__loc {
  margin: 2px 0 0;
  color: var(--muted-soft);
  font-size: 0.875rem;
}

.pcard__bio {
  margin: 16px auto 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-line;
}

.pcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn--primary {
  background: var(--ac);
  color: var(--accent-ink);
  box-shadow: 0 0 20px var(--ac-soft), 0 4px 14px rgba(0, 0, 0, 0.35);
}
.btn--primary:hover {
  filter: brightness(1.08);
  color: var(--accent-ink);
  box-shadow: 0 0 28px var(--ac-mid), 0 6px 18px rgba(0, 0, 0, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--ac);
  border: 1px solid rgba(57, 255, 20, 0.35);
}
.btn--ghost:hover {
  border-color: var(--ac);
  background: var(--ac-soft);
  color: var(--accent-bright);
}

/* —— Links —— */
.links-head {
  margin: 28px 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac);
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ac-mid);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin: 10px auto;
  max-width: 460px;
  background: linear-gradient(180deg, var(--ac-soft), rgba(0, 0, 0, 0.22));
  box-shadow: 0 0 12px var(--ac-soft), inset 0 0 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
}
.link-card:hover,
.link-card:active {
  transform: translateY(-1px);
  box-shadow: 0 0 26px var(--ac-mid), inset 0 0 16px var(--ac-soft);
  color: var(--ink);
}
.link-card .lk-text { flex: 1; min-width: 0; }
.link-card .lk-label {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ac);
}
.link-card .lk-sub {
  color: rgba(242, 245, 247, 0.72);
  font-size: 0.84rem;
  margin-top: 3px;
}
.link-card.style-highlight {
  border-width: 2px;
  background: linear-gradient(180deg, var(--ac-soft), var(--ac-soft));
  box-shadow: 0 0 26px var(--ac-mid), inset 0 0 18px var(--ac-soft);
}
.link-card.style-underline .lk-label {
  text-decoration: underline;
  text-decoration-color: var(--ac);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.lk-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--ac-mid);
  box-shadow: 0 0 10px var(--ac-soft);
  background: #000;
}
.lk-chevron {
  flex: none;
  color: var(--ac);
  opacity: 0.55;
}

/* —— QR —— */
.pcard__qr {
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 280px;
}
.pcard__qr .qr-box {
  display: inline-block;
  padding: 12px;
  border-radius: 14px;
  background: #F2F5F7;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 20px var(--ac-soft);
}
.pcard__qr .qr-box svg {
  display: block;
  width: 148px;
  height: auto;
  border-radius: 6px;
}
.pcard__qr p {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* —— Soft brand footer —— */
.foot {
  padding: 18px 16px 36px;
  text-align: center;
  color: var(--muted-soft);
  font-size: 0.8125rem;
  line-height: 1.65;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover { color: var(--ac); }
.foot__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.foot__mark img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  mix-blend-mode: screen;
}
.foot .dim { color: var(--muted-soft); }

@media (prefers-reduced-motion: reduce) {
  .btn, .link-card { transition: none; }
}
