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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 75px 14px 40px; /* top space makes room for the fixed nav */
  background-color: #f1f0ec;
  color: #1c1c1a;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

main {
  max-width: 680px;
  margin: 0 auto;
}

/* stops the fixed nav from covering a section's top after a jump */
section[id] {
  scroll-margin-top: 84px;
}

a:focus-visible {
  outline: 2px solid #1c1c1a;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.work-heading {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.05);
}

.work-heading h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}

/* ---------- pill nav ---------- */
.pill {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 6px 18px rgba(0, 0, 0, 0.08);
}

.pill a {
  position: relative; /* sits above the gray highlight */
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  color: #6b6b66;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.pill a.active {
  color: #1c1c1a;
}

/* the gray highlight: porto.js sets --x (position) and --w (width) */
.pill-bg {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--w, 0);
  transform: translateX(var(--x, 0));
  background: #ecebe6;
  border-radius: 999px;
  transition:
    transform 0.45s ease,
    width 0.45s ease;
}

/* ---------- cards ---------- */
.card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.05);
}

.card h1,
.card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}

.card p {
  margin: 0 0 14px;
  color: #6b6b66;
}

.lead {
  font-size: 17px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e8f1e1;
  color: #3f6a2f;
  font-size: 13px;
}
.project .view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  margin-bottom: 0px;
  padding: 10px 22px;
  border-radius: 999px;

  background: #e1edf8;
  color: #285a88;
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;

  transition: background 0.2s ease;
}

.project .view:hover {
  background: #cbdff2;
}
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a9a3a;
}

.btn {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
}

.btn {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
}

.btn-dark {
  background: #1c1c1a;
  color: #fff;
}

.btn-line {
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #1c1c1a;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  height: 46px;
  padding: 0 18px;
  box-sizing: border-box;

  color: white;
  background: linear-gradient(
    45deg,
    #feda75,
    #fa7e1e,
    #d62976,
    #962fbf,
    #4f5bd5
  );

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-instagram svg {
  width: 23px;
  height: 23px;
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(214, 41, 118, 0.3);
}

/* ---------- project cards ---------- */
.project .pic {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 14px;
  border-radius: 12px;
  object-fit: contain;
  background: #e5e3dc;
}

.project .tag {
  margin: 0 0 4px;
  font-size: 13px;
}

.project h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.project .desc {
  margin: 0 0 10px;
}

.view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  color: #1c1c1a;
  font-weight: 500;
  text-decoration: none;
}

.view:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pill a,
  .pill-bg {
    transition: none;
  }
}
