:root {
  --ink: #1b1f24;
  --muted: #4b5563;
  --accent: #0f766e;
  --accent-soft: #e7f5f3;
  --card: #ffffff;
  --stroke: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --font-sans: "Avenir Next", "Avenir", "Gill Sans", "Trebuchet MS", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino", "Book Antiqua", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #f6f4f0;
  line-height: 1.6;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, #f0e7d8 0%, transparent 45%),
    radial-gradient(circle at 85% 0%, #e4f2f0 0%, transparent 40%),
    linear-gradient(135deg, #f6f4f0 0%, #f2f0eb 100%);
  z-index: -1;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 4.5rem clamp(1.5rem, 5vw, 5rem) 2rem;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 0.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.subtitle {
  font-size: 1.1rem;
  max-width: 36rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.25);
}

.button.ghost {
  background: transparent;
  color: var(--accent);
}

.meta {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-image img {
  width: min(320px, 100%);
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 8px solid #fff;
}

main {
  padding: 0 clamp(1.5rem, 5vw, 5rem) 3.5rem;
  display: grid;
  gap: 2rem;
}

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
}

.card h2 {
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.pill-list li {
  background: var(--accent-soft);
  padding: 0.75rem 1rem;
  border-radius: 16px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.highlight-card {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 1.5rem;
  background: #fbfbf9;
}

.highlight-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.highlight-card ul {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
}

.highlight-meta {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.role {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--stroke);
}

.role:last-child {
  border-bottom: none;
}

.role-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.role-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.role-header span {
  color: var(--muted);
  font-size: 0.95rem;
}

.role ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skills-grid h4 {
  margin: 0 0 0.35rem;
  color: var(--accent);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 3.5rem;
  }

  .hero-image {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .card {
    padding: 1.5rem;
  }
}
