/* Primegate Digital Card — standalone styles
   Built on the live-site palette (Ink Surface ground, Bone text, Gold accents)
   and the same Fraunces + Inter typography. Mobile-first single-column layout,
   capped at 480px on desktop so the page reads as a card-sized object regardless
   of viewport.

   Source of truth for brand tokens: primegate-brand-kit/SKILL.md.
   Source of truth for the live-site treatment: build-v2/styles.css. */

:root {
  --ink:           #0A0D14;
  --ink-surface:   #10141D;
  --ink-rule:      rgba(237, 232, 220, 0.10);
  --bone:          #EDE8DC;
  --bone-soft:     #D9D3C2;
  --bone-muted:    rgba(237, 232, 220, 0.65);
  --bone-faint:    rgba(237, 232, 220, 0.45);
  --gold:          #C9A961;
  --gold-deep:     #A8863E;
  --gold-soft:     rgba(201, 169, 97, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  background: var(--ink-surface);
  color: var(--bone);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

.card-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 44px 28px 36px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
@media (min-width: 600px) {
  .card-page {
    padding: 64px 36px 48px;
    gap: 44px;
  }
}

/* ============================== IDENTITY ============================== */

.identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
}
.brand-mark .mark-outer { fill: var(--gold); }
.brand-mark .mark-inner { fill: var(--bone); }
.brand-wordmark {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--bone);
  letter-spacing: -0.005em;
  line-height: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 12px;
}
.eyebrow-rule {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.name {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 38px;
  color: var(--bone);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
@media (min-width: 600px) {
  .name { font-size: 44px; }
}

.role {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--bone-soft);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.rule {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 16px;
}

.brokerage {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: var(--bone);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.5;
}
.brokerage-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: var(--bone-muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
  line-height: 1.4;
}

/* ============================== QR ============================== */

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.qr {
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}

/* ============================== CONTACTS ============================== */

.contacts {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-rule);
  border-bottom: 1px solid var(--ink-rule);
}

.contact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px;
  border-top: 1px solid var(--ink-rule);
  transition: background 0.18s ease;
  /* iOS tap highlight tweak */
  -webkit-tap-highlight-color: rgba(201, 169, 97, 0.15);
}
.contact:first-child { border-top: none; }
.contact:hover,
.contact:focus-visible {
  background: rgba(237, 232, 220, 0.04);
  outline: none;
}

.contact-label {
  flex: 0 0 56px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 9.5px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.contact-value {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--bone);
  letter-spacing: 0.005em;
  word-break: break-word;
}
.contact-arrow {
  flex: 0 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--gold);
  margin-left: 8px;
}

/* ============================== ACTIONS ============================== */

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  display: block;
  text-align: center;
  padding: 17px 24px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.action-btn-primary {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}
.action-btn-primary:hover,
.action-btn-primary:focus-visible {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
  outline: none;
}

.action-btn-secondary {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--ink-rule);
}
.action-btn-secondary:hover,
.action-btn-secondary:focus-visible {
  background: rgba(237, 232, 220, 0.04);
  border-color: var(--gold);
  outline: none;
}

/* ============================== FOOTER ============================== */

.card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
}
.card-footer::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 14px;
}
.card-footer p {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 9.5px;
  color: var(--bone-muted);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
}

/* ============================== ACCESSIBILITY ============================== */

/* Honour the reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
