:root {
  --forest-950: #0e1a12;
  --forest-900: #132419;
  --forest-800: #1b3223;
  --forest-700: #24452f;
  --forest-600: #2f5a3c;
  --sage-300: #b9d0ae;
  --sage-400: #9db89a;
  --sage-500: #7fa07c;
  --clay-300: #dec39a;
  --clay-400: #c9a87c;
  --clay-500: #b08d5f;
  --cream: #eef3e6;
  --cream-dim: #c3d0ba;
  --cream-faint: #8fa188;
  --line: rgba(185, 208, 174, 0.16);
  --surface: rgba(185, 208, 174, 0.05);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--forest-950);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, var(--forest-700) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 85% 110%, rgba(176, 141, 95, 0.10) 0%, transparent 65%);
  color: var(--cream);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  padding: 20px 16px 32px;
}

.card {
  width: 100%;
  max-width: 430px;
}

.card-top {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--forest-600), var(--clay-400), var(--sage-400));
  margin-bottom: 28px;
}

/* Hero */
.hero { text-align: center; }

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 3px solid var(--clay-400);
  box-shadow: 0 0 0 5px rgba(201, 168, 124, 0.15), 0 12px 32px rgba(0, 0, 0, 0.45);
  background: var(--forest-800);
}

h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 18px 0 4px;
}

.company {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-300);
}

.tagline {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--sage-300);
}

.bio {
  margin: 14px auto 0;
  max-width: 34ch;
  font-size: 0.94rem;
  color: var(--cream-dim);
}

/* Primary action */
.btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  margin-top: 26px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--clay-400);
  color: #221806;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.btn-add:hover, .btn-add:focus-visible { background: var(--clay-300); }
.btn-add:active { transform: scale(0.99); }

.hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--cream-faint);
}

/* Contact actions */
.actions {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.action {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 16px;
  color: var(--cream);
  text-decoration: none;
  transition: background 140ms ease;
}

.action + .action { border-top: 1px solid var(--line); }
.action:hover, .action:focus-visible { background: rgba(185, 208, 174, 0.09); }

.action-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--forest-700);
  color: var(--sage-300);
}

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

.action-label { font-weight: 600; font-size: 0.97rem; }

.action-value {
  font-size: 0.84rem;
  color: var(--cream-dim);
  overflow-wrap: anywhere;
}

.action-arrow {
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--cream-faint);
}

/* Details */
.details {
  margin: 22px 0 0;
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.detail {
  display: flex;
  gap: 16px;
  padding: 10px 0;
}

.detail + .detail { border-top: 1px solid var(--line); }

.detail dt {
  flex: 0 0 86px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-400);
  padding-top: 2px;
}

.detail dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.detail dd a {
  color: var(--cream);
  text-decoration-color: var(--clay-400);
  text-underline-offset: 3px;
}

footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--cream-faint);
}

footer p { margin: 0; }

a:focus-visible, .btn-add:focus-visible {
  outline: 2px solid var(--clay-300);
  outline-offset: 3px;
}

@media (min-width: 560px) {
  body { padding-top: 36px; }
  .avatar { width: 144px; height: 144px; }
  h1 { font-size: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-add, .action { transition: none; }
}
