@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --black: #0A0A0A;
  --red: #D6202B;
  --red-dark: #A8161F;
  --white: #FFFFFF;
  --charcoal: #2A2A2A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #ececec;
  color: var(--black);
}

.toolbar {
  background: var(--black);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.toolbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.toolbar .brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.toolbar .brand-name-image {
  max-height: 40px;
  width: auto;
  display: block;
}
.toolbar .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.toolbar .brand-link:hover {
  color: var(--red);
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.toolbar a { color: var(--white); text-decoration: none; }
.toolbar a:hover { color: var(--red); }
.toolbar button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
}
.toolbar button:hover { background: var(--red-dark); }

.sheet {
  max-width: 900px;
  margin: 24px auto;
  padding: 0 16px;
}

.card-page {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
}

.print-card {
  background: var(--white);
  border: 1px dashed #999;
  width: 260px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  break-inside: avoid;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.15s ease;
}
.print-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--charcoal);
  overflow: hidden;
  margin-bottom: 10px;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo .no-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #999;
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.card-body { width: 100%; }
.card-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  color: var(--black);
}
.card-num {
  font-family: 'Oswald', sans-serif;
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  margin-top: 2px;
}
.card-meta {
  font-size: 13px;
  color: #555;
  margin-top: 4px;
}
.card-bio {
  font-size: 12px;
  color: #333;
  margin-top: 8px;
  line-height: 1.4;
}
.card-contact {
  font-size: 12px;
  color: #333;
  margin-top: 8px;
  border-top: 1px solid #ddd;
  padding-top: 6px;
}

.card-qr { margin-top: 10px; }
.card-qr img { width: 110px; height: 110px; display: block; margin: 0 auto; }
.qr-caption {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #777;
  margin-top: 4px;
}

/* Single-card view gets one large centered card */
.single .print-card {
  width: 340px;
  padding: 24px;
}
.single .card-photo { aspect-ratio: 4/5; }
.single .card-qr img { width: 160px; height: 160px; }

@media print {
  .no-print { display: none !important; }
  body { background: var(--white); }
  .sheet { margin: 0; max-width: none; padding: 0; }
  .print-card { border: 1px dashed #aaa; box-shadow: none; }
}
