/* Dark, minimal, centered — improved */
:root {
  /* Colors */
  --bg: #000;
  --text: #fff;
  --muted: #c9c9c9;
  --ring: #7dd3fc80;
  --chip: #111;
  --chip-border: #2a2a2a;

  /* Layout / scale */
  --max-w: 64rem;          /* 1024px content cap */
  --radius: 16px;
  --shadow-lg: 0 10px 32px rgba(0,0,0,.5);

  /* Spacing scale */
  --s-1: 6px;
  --s-2: 12px;
  --s-3: 20px;
  --s-4: 24px;

  /* Fluid type */
  --fz-base: clamp(16px, 1.2vw + 14px, 18px);
  --fz-sm: clamp(14px, .6vw + 12px, 16px);
}

/* Optional: respect system light mode while keeping dark as default */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --text: #0b0b0b;
    --muted: #4a4a4a;
    --chip: #f6f6f6;
    --chip-border: #e7e7e7;
    --ring: #0ea5e980;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fz-base);
  line-height: 1.6;
  text-align: center;
  color-scheme: dark light; /* native form controls match theme */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--s-4);
  gap: var(--s-3);
}

.container > * {
  max-width: var(--max-w);
  width: min(100%, var(--max-w));
}

/* Media */
img.profile {
  width: clamp(160px, 40vw, 250px);
  aspect-ratio: 1 / 1;     /* keeps it tidy if you swap images */
  object-fit: cover;
  border-radius: var(--radius);
  user-select: none;
  -webkit-user-drag: none;
}

/* Copy */
.about, .contact {
  margin: 0 auto var(--s-2);
  color: var(--muted);
  font-size: var(--fz-sm);
  line-height: 1.55;
}

/* Links row */
.links {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;            /* makes chip height predictable */
  opacity: 0.9;
  min-height: 44px;          /* a11y target size */
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform .2s ease,
    opacity .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.links a:hover { opacity: 1; transform: translateY(-1px); }
.links a:active { transform: translateY(0); }

/* Focus styles (only when keyboarding) */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
.links a:focus-visible {
  outline: none; /* defer to shadow so outline doesn't clip the pill */
  box-shadow: 0 0 0 3px var(--ring);
}

/* Motion & touch adjustments */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (pointer: coarse) {
  .links a { padding: 12px 16px; } /* comfier on mobile */
}

/* S*
