*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #c2527a;
  --accent-light: #f5c6d8;
  --text: #2d1a24;
  --muted: #9b7088;
  --border: #f0d4e2;
  --bg: #fce8f0;
  --card: #fff5f9;
  --max-width: 760px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}

/* ---- NAV ---- */
header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ---- MAIN ---- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

section {
  padding-top: 3.5rem;
}

/* ---- HERO ---- */
.hero {
  padding-top: 4.5rem;
  padding-bottom: 0.5rem;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
}

.tagline {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 500;
}

.location {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- SECTION HEADINGS ---- */
h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* ---- ABOUT ---- */
#about p {
  font-size: 1rem;
  color: var(--text);
  max-width: 680px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

/* ---- EXPERIENCE ---- */
.job {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.job-title {
  font-weight: 600;
  font-size: 1rem;
}

.job-company {
  font-size: 0.92rem;
  color: var(--accent);
  margin-left: 0.5rem;
}

.job-date {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.job ul {
  list-style: none;
  padding: 0;
}

.job ul li {
  font-size: 0.92rem;
  color: #5a3349;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  position: relative;
}

.job ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  font-size: 0.55rem;
  top: 0.45em;
  color: var(--accent-light);
}

/* ---- SKILLS ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.skill-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}

.skill-group h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skill-group p {
  font-size: 0.88rem;
  color: #5a3349;
  line-height: 1.6;
}

/* ---- EDUCATION ---- */
.edu-entry {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.edu-degree {
  font-weight: 600;
  font-size: 0.92rem;
}

.edu-school {
  font-size: 0.92rem;
  color: #5a3349;
}

.edu-date {
  font-size: 0.82rem;
  color: var(--muted);
  margin-left: auto;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: var(--accent);
}

/* ---- NAV ACTIVE ---- */
.nav-active {
  color: var(--accent) !important;
  font-weight: 500;
}

/* ---- PROJECTS ---- */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.project-card--soon {
  text-align: center;
  padding: 2rem;
  border-style: dashed;
}

.more-soon {
  color: var(--muted);
  font-size: 0.95rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.project-name {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.project-lang {
  font-size: 0.8rem;
  color: var(--muted);
}

.project-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  transition: opacity 0.15s;
}

.project-link:hover {
  opacity: 0.75;
}

.project-desc {
  font-size: 0.95rem;
  color: #5a3349;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.project-examples {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-examples code {
  display: block;
  font-size: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: var(--accent);
  font-family: ui-monospace, "SF Mono", monospace;
  overflow-x: auto;
  white-space: nowrap;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags span {
  font-size: 0.75rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  font-weight: 500;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 560px) {
  .job-header {
    flex-direction: column;
  }

  .edu-date {
    margin-left: 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}
