/* ==========================================================================
   card.nobrumenu.com — Minimal Digital Business Card
   Brand palette derived directly from the physical business card
   ========================================================================== */

:root {
  --bg-canvas: #050505;
  --bg-surface: #0f0f0f;
  --bg-surface-hover: #171717;
  --border-subtle: #242424;
  --border-hover: #383838;

  --accent: #c6ff00;
  --accent-hover: #d4ff3d;
  --accent-ink: #050505;

  --text-primary: #ffffff;
  --text-secondary: #a8a8a8;
  --text-muted: #949494;

  --radius-btn: 14px;
  --font-sans: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
}

/* Signature organic lime curve echoing the physical card */
.brand-curve {
  position: fixed;
  right: -48px;
  bottom: -48px;
  width: 240px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(1.75rem, env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 392px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Top eyebrow */
.eyebrow {
  margin: 0 0 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.eyebrow .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

/* Centered portrait */
.avatar-wrap {
  margin-bottom: 1.35rem;
  padding: 4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background-color: var(--bg-canvas);
  line-height: 0;
}

.avatar {
  display: block;
  width: 112px;
  height: 112px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background-color: var(--bg-surface);
}

/* Identity block */
.identity {
  margin-bottom: 2rem;
}

.name {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 1.5rem + 2.5vw, 2.45rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.name-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.lime-underscore {
  display: inline-block;
  width: 0.72em;
  height: 0.15em;
  border-radius: 999px;
  background-color: var(--accent);
  transform: translateY(-0.04em);
}

.role {
  margin: 0;
  font-size: clamp(0.875rem, 0.82rem + 0.3vw, 0.95rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Quick actions */
.actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  width: 100%;
  min-height: 56px;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  transition:
    background-color 150ms ease-out,
    border-color 150ms ease-out,
    color 150ms ease-out,
    scale 120ms ease-out;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  scale: 0.985;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

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

.btn-secondary {
  background-color: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.btn-icon svg,
.btn-arrow svg {
  width: 20px;
  height: 20px;
  display: block;
}

.btn-secondary .btn-icon {
  color: var(--accent);
}

.btn-label {
  letter-spacing: -0.01em;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  transition: translate 150ms ease-out;
}

.btn-primary:hover .btn-arrow {
  translate: 3px 0;
}

.btn-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.btn-secondary:hover .btn-meta {
  color: var(--text-secondary);
}

/* Direct contacts strip */
.direct-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 0.45rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.direct-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0 0.35rem;
  transition: color 150ms ease-out;
}

.direct-link:hover {
  color: var(--text-primary);
}

.divider {
  color: #3a3a3a;
}

/* Brand footer lockup */
.brand-footer {
  display: flex;
  justify-content: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.brand-bar {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background-color: var(--accent);
  margin-right: 0.1rem;
}

.brand-strong {
  font-weight: 800;
}

.brand-light {
  font-weight: 400;
  color: var(--text-secondary);
}

/* Subtle accessible toast feedback */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  translate: -50% 16px;
  opacity: 0;
  pointer-events: none;
  background-color: #141414;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  padding: 0.6rem 1.05rem;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 180ms ease-out, translate 180ms ease-out;
}

.toast.is-visible {
  opacity: 1;
  translate: -50% 0;
}

/* Tablet & Desktop refinements */
@media (min-width: 768px) {
  .brand-curve {
    right: 0;
    bottom: 0;
    width: 420px;
    opacity: 0.9;
  }

  .card {
    max-width: 416px;
    padding: 2.75rem 2.25rem 2.25rem;
    border-radius: 24px;
    border: 1px solid #181818;
    background-color: rgba(10, 10, 10, 0.72);
  }

  .avatar {
    width: 120px;
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
