:root {
  --bg: #f6f3ec;
  --ink: #1c1c1c;
  --ink-soft: #5a5142;
  --muted: #7a7468;
  --line: #d9d2c2;
  --accent: #1c1c1c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.4rem 1.4rem 3rem;
  min-height: 100vh;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: 1.5rem;
}
.brand-mark {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.brand-mark:hover { color: var(--ink); }
.brand-sub {
  font-style: italic;
  color: var(--muted);
  font-size: .95rem;
}

.banner {
  background: #fff7e0;
  border: 1px solid #d9c98a;
  padding: .6rem .8rem;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: .85rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* ---------- Directory ---------- */
.directory { display: flex; flex-direction: column; }
.row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: -apple-system, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  flex: 0 0 auto;
}
.row-text { display: flex; flex-direction: column; }
.row-name { font-size: 1.1rem; }
.row-title { font-style: italic; color: var(--muted); font-size: .9rem; }

/* ---------- Card ---------- */
.card { display: flex; flex-direction: column; align-items: flex-start; padding-top: .5rem; }
.avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  background: var(--line);
}
.avatar-mono {
  display: flex; align-items: center; justify-content: center;
  font-family: -apple-system, system-ui, sans-serif;
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--ink-soft);
}
.card-name { font-size: 1.7rem; font-weight: 600; margin: 0 0 .2rem; line-height: 1.1; }
.card-title { font-style: italic; color: var(--muted); margin: 0 0 1.2rem; }
.lines {
  display: flex; flex-direction: column;
  width: 100%;
  border-top: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.line {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: -apple-system, system-ui, sans-serif;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
}
.line:active { background: rgba(0,0,0,.04); }

.line-social { display: flex; align-items: center; gap: .75rem; }
.line-icon {
  display: inline-flex;
  width: 20px; height: 20px;
  color: var(--ink-soft);
  flex: 0 0 auto;
}
.line-icon svg { width: 100%; height: 100%; }

.actions { display: flex; gap: .6rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.btn {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .7rem 1.1rem;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
  min-height: 44px;
}
.btn-outline { background: transparent; color: var(--ink); }
.bio {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ---------- QR Overlay ---------- */
.qr-overlay {
  position: fixed; inset: 0;
  background: rgba(28, 28, 28, .92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}
.qr-overlay canvas, .qr-overlay img {
  background: #fff;
  padding: 1rem;
  max-width: 100%;
  height: auto;
}
