:root {
  --mf-cream: #F7F5EE;
  --mf-teal: #1C4B5D;
  --mf-eggplant: #542C5B;
  --mf-mustard: #F0D360;
  --mf-pink: #F39CB3;
  --mf-sky: #6DB7E6;
  --mf-leaf: #7BC97B;
  --mf-tan: #E6D7B7;

  --bg: var(--mf-cream);
  --text: var(--mf-teal);
  --heading: var(--mf-eggplant);
  --accent: var(--mf-mustard);
  --card: #ffffff;
  --border: var(--mf-teal);
  --muted: #5a7a8a;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Futura PT", Futura, "Poppins", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 18px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section.muted {
  background: var(--mf-tan);
}

.section-illustration {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  max-width: 400px;
  width: 40%;
  will-change: transform, opacity;
}

.section-illustration.left {
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
}

.section-illustration.right {
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
}

.section-illustration.center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.05;
}

.section > .container {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--heading);
}

h1 {
  font-size: 60px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 700;
}

h2 {
  font-size: 44px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 32px;
}

h3 {
  font-size: 30px;
  font-weight: 700;
}

h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.subtitle {
  font-size: 24px;
  font-weight: 600;
  margin-top: 12px;
  color: var(--text);
}

.meta {
  color: var(--muted);
  margin: 8px 0 24px;
  font-size: 16px;
}

.lead {
  max-width: 820px;
  font-size: 20px;
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 245, 238, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 2px solid var(--border);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  font-size: 24px;
  letter-spacing: 0.02em;
}

nav a {
  margin: 0 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--heading);
}

.hero {
  background: var(--mf-cream);
  color: var(--text);
  padding: 120px 0 100px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/hero-bg.png');
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--heading);
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border-radius: 0;
  padding: 14px 24px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.btn.primary:hover {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn.outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn.outline:hover {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 32px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--heading);
}

.card.emphasis {
  border-color: var(--mf-pink);
  background: rgba(243, 156, 179, 0.05);
}

.link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  transition: all 0.2s ease;
}

.link:hover {
  color: var(--heading);
  border-bottom-color: var(--heading);
}

.skills-group {
  margin: 32px 0;
}

.chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.chip {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.experience-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 32px;
  margin: 24px 0;
}

.exp-meta {
  float: right;
  text-align: right;
  color: var(--muted);
  font-size: 16px;
}

.company {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--heading);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.contact-card {
  display: block;
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--heading);
  background: rgba(240, 211, 96, 0.1);
}

.contact-meta {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin: 32px auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border-radius: 0;
  border: 2px solid var(--border);
  font: inherit;
  background: var(--card);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--heading);
}

.small {
  font-size: 14px;
  color: var(--muted);
}

.site-footer {
  padding: 48px 0;
  border-top: 2px solid var(--border);
  text-align: center;
  margin-top: 80px;
  background: var(--mf-tan);
}

@media (max-width: 768px) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 26px;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 80px 0 60px;
  }

  nav a {
    margin: 0 8px;
    font-size: 14px;
  }

  .section-illustration {
    opacity: 0.04;
    max-width: 200px;
    width: 50%;
  }

  .section-illustration.left {
    left: -30px;
  }

  .section-illustration.right {
    right: -30px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  .lead {
    font-size: 18px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .hero::before {
    display: none;
  }

  .section-illustration {
    opacity: 0.03;
    max-width: 150px;
    width: 40%;
  }

  .section-illustration.left {
    left: -20px;
  }

  .section-illustration.right {
    right: -20px;
  }
}
