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

/* -------------------------
   Design tokens
------------------------- */
:root {
  --green: hsl(75, 94%, 57%);

  --white: hsl(0, 0%, 100%);
  --grey-700: hsl(0, 0%, 20%);
  --grey-800: hsl(0, 0%, 12%);
  --grey-900: hsl(0, 0%, 8%);

  --radius-lg: 1rem;         /* 16px */
  --radius-md: 0.75rem;      /* 12px */
  --shadow: 0 16px 40px hsl(0 0% 0% / 0.45);
}

/* Respect user color scheme and motion prefs */
:root { color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* -------------------------
   Base / Reset
------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--grey-900);
  color: var(--white);
  line-height: 1.5;
}

/* Make focus states visible for keyboard users */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

/* -------------------------
   Profile Card
------------------------- */
.profile-card {
  width: min(384px, 100%);
  background: var(--grey-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}

.profile-card__header {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.profile-card__avatar img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.profile-card__name {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 700;
  margin: 0;
}

.profile-card__location {
  margin: 0;
  font-weight: 600;
  color: var(--green);
}

.profile-card__bio {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: hsl(0 0% 100% / 0.75);
}

/* -------------------------
   Link List (buttons)
------------------------- */
.profile-card__links {
  margin-top: 20px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.link-list__item {
  display: block;
  width: 100%;
  text-decoration: none;
  text-align: center;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--grey-700);
  color: var(--white);
  font-weight: 700;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}

.link-list__item:hover {
  background: var(--green);
  color: var(--grey-900);
  transform: translateY(-1px);
}

.link-list__item:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

/* -------------------------
   Responsive tweaks
------------------------- */
@media (min-width: 480px) {
  .profile-card { padding: 28px; }
  .profile-card__avatar img { width: 96px; height: 96px; }
  .link-list { gap: 14px; }
  .link-list__item { padding: 15px 20px; }
}

@media (min-width: 768px) {
  body { padding: 40px; }
  .profile-card { padding: 32px; }
  .profile-card__header { gap: 14px; margin-bottom: 24px; }
}
