/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f5f6f8;
  --surface:     #ffffff;
  --border:      #e4e6ea;
  --navy:        #1a2744;
  --navy-light:  #2c3e6b;
  --accent:      #1d6fa4;
  --accent-dark: #155d8a;
  --muted:       #6b7280;
  --text:        #1e2330;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --radius:      12px;
  --radius-sm:   8px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  padding: 24px 16px 48px;
}

/* ── Layout ── */
.card-page {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Identity ── */
.identity {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.monogram {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 auto 20px;
  color: #fff;
}

.name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.tagline {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  margin-bottom: 6px;
}

.subtitle {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Primary Actions ── */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  min-height: 52px;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  grid-column: 1 / -1;
  font-size: 1rem;
  padding: 16px;
  min-height: 58px;
}

.btn-wide {
  grid-column: 1 / -1;
}

.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: #f0f4f8; box-shadow: var(--shadow-md); }

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ── Section Label ── */
.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0 2px;
}

/* ── Link Cards ── */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: background .15s, box-shadow .15s, transform .1s;
}

.link-card:hover {
  background: #f8fafc;
  box-shadow: var(--shadow-md);
}

.link-card:active { transform: scale(.985); }

.link-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef2f8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* GitHub icon is fill-based */
.link-icon svg[viewBox="0 0 24 24"]:has(path[d*="github"]) { fill: var(--navy); stroke: none; }
.link-list li:nth-child(2) .link-icon svg { fill: var(--navy); stroke: none; }

.link-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.link-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
}

.link-desc {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Contact Details ── */
.detail-list {
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child { border-bottom: none; }

.detail-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.detail-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.detail-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-value {
  font-size: .9rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

a.detail-value:hover { color: var(--accent); text-decoration: underline; }

.detail-icon--muted { stroke: var(--muted); }
.detail-value--muted { color: var(--muted); font-weight: 400; }

.availability .detail-value {
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}

/* ── Copy Button ── */
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}

.copy-btn:hover { background: #eef2f8; color: var(--accent); }
.copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.copy-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  pointer-events: none;
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  white-space: nowrap;
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 8px 0 4px;
}

.footer-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .02em;
  margin-bottom: 2px;
}

.footer-copy {
  font-size: .72rem;
  color: var(--muted);
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 360px) {
  .name { font-size: 1.5rem; }
  .actions { grid-template-columns: 1fr; }
  .btn-primary { grid-column: 1; }
}

@media (min-width: 600px) {
  body { padding: 40px 24px 60px; }
  .identity { padding: 48px 40px 44px; }
  .monogram { width: 96px; height: 96px; font-size: 2rem; }
  .name { font-size: 2rem; }
}

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