:root {
  --bg: #f2efe9;
  --surface: #fffdf9;
  --ink: #182028;
  --muted: #56616e;
  --brand: #0b6e4f;
  --brand-2: #f4b400;
  --ring: rgba(11, 110, 79, 0.2);
  --shadow: 0 12px 30px rgba(24, 32, 40, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, #ffecc2 0%, transparent 38%),
    radial-gradient(circle at 85% 10%, #d8ffe4 0%, transparent 42%),
    var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1040px, 92%);
  margin: 0 auto;
}

.site-header {
  position: relative;
  padding-bottom: 5rem;
  overflow: hidden;
}

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

.logo {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.menu-btn {
  display: none;
  border: 1px solid #cfd5db;
  border-radius: 10px;
  background: #fff;
  padding: 0.45rem 0.8rem;
  font: inherit;
}

.hero {
  padding-top: 4rem;
  position: relative;
  z-index: 1;
}

.kicker {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  margin: 0.3rem 0 1rem;
}

.subtitle {
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  max-width: 680px;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  color: #fff;
  background: linear-gradient(130deg, var(--brand), #117a58);
  box-shadow: 0 10px 24px rgba(11, 110, 79, 0.3);
}

.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid #d0d6dd;
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid #dde3e9;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.skills-list li {
  background: #fff;
  border: 1px solid #dbe1e7;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  text-align: center;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.6rem;
}

.contact-links a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem 2.4rem;
  color: var(--muted);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.25;
}

.glow-1 {
  width: 260px;
  height: 260px;
  background: #ffce54;
  top: -80px;
  right: 12%;
}

.glow-2 {
  width: 220px;
  height: 220px;
  background: #60d394;
  bottom: -90px;
  left: 8%;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .cards,
  .skills-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .menu-btn {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    right: 4%;
    top: 64px;
    background: #fff;
    border: 1px solid #d6dde4;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    width: min(220px, 80vw);
  }

  .nav-links.show {
    display: flex;
  }

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
