/* Nova Sidera digital business cards (/contact/<person>/).
   Standalone and small on purpose: these pages open from a QR scan on mobile data. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --font-heading: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-card: 22px;
  --radius-btn: 14px;
  --focus: #0a5cc0;
}

.theme-silver {
  --page-bg: #f2f5f8;
  --page-bg-2: #e4eaf1;
  --ink: #0b2a5e;
  --ink-soft: #33496e;
  --accent: #0a5cc0;
  --accent-line: #1cb4f5;
  --metal-1: #f6f8fb;
  --metal-2: #d8e0e9;
  --metal-3: #eef2f6;
  --corner: #071e45;
  --btn-bg: #0b2a5e;
  --btn-ink: #ffffff;
  --btn-2-bg: rgba(255, 255, 255, 0.72);
  --btn-2-border: #c7d3e1;
  --focus: #0a5cc0;
}

.theme-gold {
  --page-bg: #fbf6e8;
  --page-bg-2: #f2e6c4;
  --ink: #111111;
  --ink-soft: #3b3427;
  --accent: #111111;
  --accent-line: #f3d47e;
  --metal-1: #f4dc93;
  --metal-2: #dcb24f;
  --metal-3: #efcf76;
  --corner: #0d0d0d;
  --btn-bg: #111111;
  --btn-ink: #f6dc8c;
  --btn-2-bg: rgba(255, 255, 255, 0.6);
  --btn-2-border: #dcc58a;
  --focus: #111111;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 8px 12px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.cp-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.cp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.cp-brand img {
  width: 30px;
  height: 30px;
}

.cp-series {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ---------- Metal card ---------- */
main {
  flex: 1;
  padding-bottom: 32px;
}

.cp-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 8px;
  padding: 36px 24px 52px;
  border-radius: var(--radius-card);
  text-align: center;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.22) 0 1px,
      rgba(0, 0, 0, 0.025) 1px 3px
    ),
    linear-gradient(160deg, var(--metal-1) 0%, var(--metal-2) 55%, var(--metal-3) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px -24px rgba(11, 42, 94, 0.45);
}

.cp-corners {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.cp-corners .fill {
  fill: var(--corner);
}
.cp-corners .edge {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.cp-logo {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto 14px;
}

.cp-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 7vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cp-title {
  margin: 6px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.cp-company {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.cp-tagline {
  margin: 18px auto 0;
  padding-top: 14px;
  max-width: 320px;
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, var(--ink) 22%, transparent);
  font-size: clamp(0.62rem, 2.9vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Actions ---------- */
.cp-lead {
  margin: 26px 0 12px;
  text-align: center;
  font-size: 1rem;
  color: var(--ink-soft);
}

.cp-actions {
  display: grid;
  gap: 10px;
}

.cp-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--btn-2-border);
  background: var(--btn-2-bg);
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.cp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.45);
}
.cp-btn:active {
  transform: translateY(0);
}

.cp-btn svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.cp-btn-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cp-btn-sub {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.cp-btn-primary {
  justify-content: center;
  min-height: 60px;
  border-color: transparent;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 1.05rem;
}
.cp-btn-primary .cp-btn-sub {
  color: inherit;
  opacity: 0.8;
}

.cp-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 10px;
}

.cp-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 10px 6px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--btn-2-border);
  background: var(--btn-2-bg);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.cp-quick-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.45);
}
.cp-quick-btn svg {
  width: 22px;
  height: 22px;
}

/* ---------- Footer ---------- */
.cp-footer {
  padding: 20px 0 28px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.cp-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.cp-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.cp-lang {
  display: flex;
  gap: 2px;
}
.cp-lang button {
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.cp-lang button[aria-pressed='true'] {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .wrap {
    max-width: 520px;
  }
  main {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .cp-card {
    padding: 44px 40px 60px;
  }
  .cp-logo {
    width: 150px;
    height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-btn,
  .cp-quick-btn {
    transition: none;
  }
  .cp-btn:hover,
  .cp-quick-btn:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .cp-btn {
    border: 1px solid ButtonText;
  }
}
