/* ═══════════════════════════════════════════════════
   CDECKER MEDIA — business card
   (same vintage-poster style as the main site)
   ═══════════════════════════════════════════════════ */

:root {
  --paper: #e6d7b8;
  --paper-deep: #d9c69d;
  --cream: #efe3c4;
  --ink: #2b1d12;
  --green: #3d6b4f;
  --green-deep: #2c5140;
  --orange: #d97b28;
  --gold: #dca43c;
  --red: #b3392b;
  --maroon: #6e2233;
  --font-display: "Alfa Slab One", serif;
  --font-groovy: "Shrikhand", serif;
  --font-mono: "Courier Prime", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background:
    radial-gradient(ellipse 120% 100% at 50% 40%, transparent 60%, rgba(43,29,18,0.14) 100%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: var(--cream); }

.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: rgba(43,29,18,0.75); }

/* ── grain ── */
.grain {
  position: fixed; inset: -100%; z-index: 50; pointer-events: none; opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.7s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ── layout ── */
.card-wrap {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.2rem, 4vw, 3rem) 1rem;
  padding-top: calc(clamp(1.2rem, 4vw, 3rem) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(clamp(1.2rem, 4vw, 3rem) + env(safe-area-inset-bottom, 0px));
}

.card {
  position: relative;
  width: min(430px, 100%);
  background: var(--cream);
  border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: 7px 7px 0 rgba(43,29,18,0.7);
  padding: clamp(1.6rem, 5vw, 2.2rem) clamp(1.3rem, 4.5vw, 2rem) 0;
  text-align: center;
  overflow: hidden;
  opacity: 0; transform: translateY(30px);
  animation: cardIn 0.8s var(--ease) 0.1s forwards;
}
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }

/* tape across the top edge of the card */
.card-tape {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 130px; height: 30px;
  background: rgba(220, 164, 60, 0.65);
  border-left: 1px dashed rgba(43,29,18,0.3);
  border-right: 1px dashed rgba(43,29,18,0.3);
  box-shadow: 0 1px 2px rgba(43,29,18,0.25);
  z-index: 3;
}

.card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.4rem;
}
.card-logo { width: 42px; height: 42px; color: var(--green-deep); }
.card-est { text-transform: uppercase; }

/* ── headshot (taped print, like the About section) ── */
.headshot {
  position: relative; width: min(200px, 60%); margin: 0 auto 1.3rem;
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 5px 5px 0 rgba(43,29,18,0.65);
  padding: 9px;
  rotate: 2deg;
  transition: rotate 0.3s var(--ease);
}
.headshot:hover { rotate: 0deg; }
.headshot .tape {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 84px; height: 24px;
  background: rgba(220, 164, 60, 0.65);
  border-left: 1px dashed rgba(43,29,18,0.3);
  border-right: 1px dashed rgba(43,29,18,0.3);
  box-shadow: 0 1px 2px rgba(43,29,18,0.25);
  z-index: 3;
}
.headshot img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  border-radius: 6px;
  border: 1px solid rgba(43,29,18,0.35);
}

/* ── name / tagline / motto ── */
.card-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 8vw, 2.5rem); line-height: 1.05;
  color: var(--green-deep);
  text-shadow: 0.06em 0.06em 0 var(--orange);
}
.card-tagline { margin-top: 0.7rem; letter-spacing: 0.28em; }

.card-motto {
  margin: 1.1rem auto 1.5rem;
  background: var(--paper);
  border: 2px solid rgba(43,29,18,0.55);
  box-shadow: 4px 4px 0 rgba(43, 29, 18, 0.85);
  transform: rotate(-1.5deg);
  padding: 0.55rem 1rem;
  width: fit-content; max-width: 100%;
  clip-path: polygon(1% 14%, 2.4% 0, 98% 5%, 100% 20%, 99.2% 86%, 97% 100%, 2% 95%, 0 80%);
}
.card-motto span {
  font-family: var(--font-groovy); font-size: 1rem;
  color: var(--green-deep);
}

/* ── link buttons ── */
.links { display: flex; flex-direction: column; gap: 0.9rem; }
.link-btn {
  display: flex; align-items: center; gap: 0.95rem;
  text-decoration: none; text-align: left;
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.75rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.link-btn:hover, .link-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
  background: var(--gold);
}
.link-icon {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--green); color: var(--cream);
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.link-btn:nth-child(even) .link-icon { background: var(--orange); }
.link-icon svg { width: 20px; height: 20px; fill: currentColor; }
.link-text { min-width: 0; }
.link-label {
  display: block;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.link-sub {
  display: block; margin-top: 0.15rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: rgba(43,29,18,0.65);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.link-arrow {
  margin-left: auto; flex: 0 0 auto;
  font-family: var(--font-display); font-size: 1rem; color: var(--orange);
}

/* ── save contact button ── */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.9rem 1.7rem; border-radius: 8px;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-solid { background: var(--orange); color: var(--cream); }
.btn-solid:hover { background: var(--red); }
.save-btn { width: 100%; margin-top: 1.3rem; }

/* ── stripes + footer ── */
.stripes {
  height: 30px;
  margin: 1.6rem calc(clamp(1.3rem, 4.5vw, 2rem) * -1) 0;
  background: linear-gradient(to bottom,
    var(--gold) 0 20%,
    var(--orange) 20% 40%,
    var(--red) 40% 60%,
    var(--maroon) 60% 80%,
    #431722 80% 100%);
  border-top: 2px solid rgba(43,29,18,0.5);
}
.card-foot {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin: 0 calc(clamp(1.3rem, 4.5vw, 2rem) * -1);
  padding: 0.85rem clamp(1.3rem, 4.5vw, 2rem);
  background: #241812;
}
.card-foot span { color: rgba(230, 215, 184, 0.7); font-size: 0.62rem; }

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