/* ---------------------------------------------------------
   Digitální vizitka — Jiří Zikmund
   Černobílá, psací stroj, mobile-first
--------------------------------------------------------- */

:root{
  --bg-0: #060606;
  --bg-1: #101010;
  --bg-2: #1a1a1a;
  --ink-0: #f4f2ec;
  --ink-1: #cfcac0;
  --ink-2: #8f8a80;
  --line: rgba(244,242,236,0.14);
  --line-strong: rgba(244,242,236,0.28);
  --shadow-soft: 0 20px 60px rgba(0,0,0,0.55);
  --shadow-tight: 0 2px 10px rgba(0,0,0,0.4);
  --radius: 2px;
  --serif-mono: "Courier Prime", "Courier New", monospace;
  --display: "Courier Prime", "Courier New", monospace;
}

*{ box-sizing: border-box; }

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

body{
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, #1c1c1c 0%, var(--bg-0) 55%),
    linear-gradient(180deg, var(--bg-0) 0%, #030303 100%);
  color: var(--ink-1);
  font-family: var(--serif-mono);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* subtle paper-grain noise */
.noise{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.vignette{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 90% 60% at 50% 100%, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 60%);
}

.card{
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
  padding: 15vw 6vw 10vw;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* mobile: layout/col wrappers are transparent to the flex flow of .card */
.layout,
.col-left,
.col-right{
  display: contents;
}

/* ---------------- Hero ---------------- */

.hero{
  text-align: center;
}

.photo-wrap{
  width: 132px;
  height: 132px;
  margin: 0 auto 28px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(160deg, rgba(244,242,236,0.35), rgba(244,242,236,0.03) 60%);
  box-shadow: var(--shadow-soft);
}

.photo{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  filter: grayscale(1) contrast(1.08) brightness(0.96);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
}

.eyebrow{
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.name{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  column-gap: 0.4em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 8vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink-0);
  margin: 0 0 10px;
  text-shadow: 0 2px 24px rgba(255,255,255,0.08);
}

.name-main{
  grid-column: 2;
}

.degree{
  grid-column: 1;
  justify-self: end;
  font-size: 0.42em;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: 0.05em;
}

.role{
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--ink-0);
  letter-spacing: 0.02em;
}

.firm{
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* ---------------- Divider ---------------- */

.divider{
  text-align: center;
  color: var(--line-strong);
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  margin: 34px 0;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}

/* ---------------- Contact ---------------- */

.contact{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(155deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.contact-row:active{
  transform: scale(0.985);
  border-color: var(--line-strong);
}

.contact-row .label{
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  flex-shrink: 0;
}

.contact-row .value{
  font-size: 0.92rem;
  color: var(--ink-0);
  text-align: right;
  word-break: break-word;
}

/* ---------------- vCard button ---------------- */

.vcard-btn{
  margin-top: 16px;
  width: 100%;
  padding: 15px 18px;
  font-family: var(--serif-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-0);
  background: linear-gradient(160deg, #fdfcf9 0%, #d8d4cb 100%);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vcard-btn:active{
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

/* ---------------- Profile ---------------- */

.profile{
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.profile-label{
  margin: 0 0 8px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.profile-text{
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-1);
  text-align: justify;
  hyphens: none;
}

.profile-text strong{
  color: var(--ink-0);
  font-weight: 700;
}

.profile-text a{
  color: var(--ink-0);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.profile-text a.quiet-link{
  color: inherit;
  text-decoration: none;
}

/* ---------------- Footer ---------------- */

.footer{
  margin-top: auto;
  padding-top: 46px;
  text-align: center;
}

.footer p{
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0.6;
}

/* ---------------- Larger screens ---------------- */

@media (min-width: 640px){
  body{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .card{
    padding: 64px 56px 48px;
    min-height: auto;
    margin: 40px auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0) 30%);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
  }
}

@media (min-width: 900px){
  .card{
    max-width: 920px;
    padding: 76px 64px 56px;
  }
  .layout{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    /* items stretch to the row's full height by default,
       so the divider below spans the taller (left) column */
  }
  .col-left,
  .col-right{
    display: block;
  }
  .col-right{
    border-left: 1px solid var(--line);
    padding-left: 64px;
    display: flex;
    align-items: center;
  }
  .footer{
    padding-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
