/*
  Business card faces. Shared by the website (virtual card) and /card (print file).
  All sizes use cqw (percent of card width), so the same card scales from
  a 3.5in print card to any on-screen size without changing proportions.
*/

.bc {
  --bc-paper: #f7f6f2;
  --bc-ink: #111418;
  --bc-muted: #5b616b;
  --bc-accent: #2f6f8f;
  --bc-dark: #13171c;
  --bc-dark-ink: #f2f1ec;
  --bc-dark-muted: #a7adb6;
  --bc-dark-accent: #8cc4dd;

  position: relative;
  container-type: inline-size;
  aspect-ratio: 3.5 / 2;
  width: 100%;
  font-family: "Instrument Sans", system-ui, sans-serif;
}

.bc-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  padding: 7.6cqw 8.5cqw 7cqw;
  display: flex;
  flex-direction: column;
}

/* ---------- Front ---------- */
.bc-front {
  background: var(--bc-paper);
  color: var(--bc-ink);
}

.bc-name {
  font-size: 9cqw;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
}

.bc-title {
  margin: 2.2cqw 0 0;
  font-size: 3.5cqw;
  font-weight: 500;
  color: var(--bc-muted);
  letter-spacing: 0.005em;
}
.bc-title b { color: var(--bc-ink); font-weight: 600; }

.bc-rule {
  width: 8cqw;
  height: 0.55cqw;
  background: var(--bc-accent);
  margin: 3.8cqw 0 2.8cqw;
  border-radius: 1cqw;
}

.bc-focus {
  margin: 0;
  font-size: 3.15cqw;
  font-weight: 500;
  color: var(--bc-accent);
  letter-spacing: 0.01em;
}
.bc-focus span { color: var(--bc-muted); opacity: .6; padding: 0 .4em; }

.bc-contact {
  margin-top: auto;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 2.85cqw;
  line-height: 1.6;
  color: var(--bc-ink);
}
.bc-contact a { color: inherit; text-decoration: none; }

/* The "fog" mark: three soft lines, bottom right */
.bc-mark {
  position: absolute;
  bottom: 8cqw;
  right: 8.5cqw;
  width: 9cqw;
  display: grid;
  gap: 1.3cqw;
  justify-items: end;
}
.bc-mark i {
  display: block;
  height: 0.75cqw;
  border-radius: 1cqw;
  background: var(--bc-accent);
}
.bc-mark i:nth-child(1) { width: 100%; opacity: .9; }
.bc-mark i:nth-child(2) { width: 70%;  opacity: .55; }
.bc-mark i:nth-child(3) { width: 42%;  opacity: .3; }

/* ---------- Back ---------- */
.bc-back {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(140, 196, 221, .14), transparent 55%),
    var(--bc-dark);
  color: var(--bc-dark-ink);
  flex-direction: row;
  align-items: stretch;
  gap: 6cqw;
}

.bc-back-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.bc-tagline {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 7cqw;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.bc-blurb {
  margin: 2.6cqw 0 0;
  font-size: 2.85cqw;
  line-height: 1.45;
  max-width: 52cqw;
  color: var(--bc-dark-muted);
}

.bc-connect {
  margin-top: auto;
  font-size: 2.6cqw;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bc-dark-accent);
}

.bc-qr {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2cqw;
}
.bc-qr-box {
  width: 25cqw;
  aspect-ratio: 1;
  padding: 2.2cqw;
  background: var(--bc-paper);
  border-radius: 2.2cqw;
}
.bc-qr-box img { width: 100%; height: 100%; display: block; }
.bc-qr-url {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 2.5cqw;
  color: var(--bc-dark-ink);
}
