:root {
  --bg: #e9e7e2;
  --card: #fdfcfa;
  --text: #1d1d1f;
  --muted: #5f6368;
  --accent: #2557d6;
  --rule: #d8d5ce;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1013;
    --card: #1c1e23;
    --text: #ececef;
    --muted: #a0a4ab;
    --accent: #7aa2ff;
    --rule: #33363d;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
}

/* Standard business card proportions: 3.5in x 2in */
.card {
  width: 100%;
  max-width: 35rem;
  aspect-ratio: 7 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.14);
  text-align: center;
}

h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.8rem, 7vw, 2.7rem);
  letter-spacing: 0.02em;
}

.email {
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(1rem, 3.4vw, 1.2rem);
}

.email:hover,
.email:focus-visible {
  color: var(--accent);
}

.links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.links a:hover,
.links a:focus-visible {
  text-decoration: underline;
}

.tagline {
  margin: 0;
  color: var(--muted);
}
