:root {
  --bg-start: #1c1c1e;
  --bg-end: #2b2b2d;
  --bg-raised: #333335;
  --text: #f5f3ff;
  --text-muted: #c9c3e0;
  --accent-lime: #baff29;
  --accent-coral: #ff5c7a;
  --border: rgba(255, 255, 255, 0.1);
  --font-heading: "Bricolage Grotesque", -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: linear-gradient(160deg, var(--bg-start), var(--bg-end)) fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: normal;
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  line-height: 1.55;
}

section,
header {
  margin-top: 3.5rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
}

section > h2 {
  display: inline-block;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 800;
  font-size: 1.6rem;
  position: relative;
}

section > h2::after {
  content: "";
  display: block;
  height: 5px;
  width: 60%;
  margin-top: 0.35rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-lime), var(--accent-coral));
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-lime), var(--accent-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

p,
li {
  font-size: 0.95rem;
  color: var(--text-muted);
}

a {
  color: var(--accent-lime);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

/* Header / intro */

.intro {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.portrait {
  width: 230px;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 5px;
  background: linear-gradient(135deg, var(--accent-lime), var(--accent-coral));
  box-shadow: 0 0 30px rgba(255, 92, 122, 0.35);
}

.tagline {
  color: var(--accent-coral);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.contact {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact span {
  margin: 0 0.4rem;
}

.bio {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Skills */

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

.skills-grid h3 {
  color: var(--accent-lime);
  margin-bottom: 0.65rem;
}

.skills-grid ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skills-grid li {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
}

/* Work history */

.job {
  background-color: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-lime), var(--accent-coral));
}

.job:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--accent-coral);
}

.job + .job {
  margin-top: 1.75rem;
}

.job-header h3 {
  color: var(--text);
}

.job-meta {
  color: var(--accent-lime);
  font-size: 0.85rem;
  margin-top: 0.2rem;
  font-weight: 600;
}

.job ul {
  margin-top: 0.6rem;
}

/* Community / education */

.community ul,
.education ul {
  list-style: none;
  padding-left: 0;
}

.community ul ul {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: 0.35rem;
}

.community li,
.education li {
  padding-left: 1.1rem;
  position: relative;
}

.community li::before,
.education li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-lime), var(--accent-coral));
}

.community ul ul li::before {
  background: var(--accent-coral);
}

@media (max-width: 480px) {
  .intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact span {
    display: block;
    margin: 0;
  }
}
