:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #16201f;
  background: #eef4f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.portfolio-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: max(28px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
  background: linear-gradient(150deg, #f0b7aa 0%, #f6efe2 48%, #cceee5 100%);
}

.welcome,
.project-notes {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 390px);
  gap: 34px;
  align-items: center;
}

.intro {
  min-width: 0;
}

.intro h1 {
  margin: 0;
  color: #16201f;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.intro p {
  max-width: 680px;
  color: #5d6762;
  font-size: 1.18rem;
  line-height: 1.55;
  text-wrap: balance;
}

.eyebrow {
  margin: 0 0 12px;
  color: #0e4d4c;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.link-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.intro a {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(23, 107, 107, 0.3);
}

.intro a.primary-link {
  background: #176b6b;
  color: white;
  border-color: #176b6b;
}

.intro a.secondary-link {
  background: rgba(255, 255, 255, 0.72);
  color: #176b6b;
}

.preview-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 14px;
  width: min(100%, 390px);
  aspect-ratio: 1;
  justify-self: end;
}

.preview-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #1f8f87;
  box-shadow: 0 18px 34px rgba(24, 32, 31, 0.14);
}

.preview-tile::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 6px solid rgba(255, 255, 255, 0.82);
  border-radius: inherit;
}

.preview-tile.tile-b {
  background: #e86f51;
}

.project-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-notes article {
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(22, 32, 31, 0.08);
  box-shadow: 0 14px 32px rgba(24, 32, 31, 0.08);
}

.project-notes h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.project-notes p {
  margin: 0;
  color: #5d6762;
  line-height: 1.5;
}

.site-footer {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #16201f;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 8px;
  background: #176b6b;
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  background: #0e4d4c;
}

@media (max-width: 680px) {
  .portfolio-page {
    align-content: start;
    padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .welcome {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .intro h1 {
    font-size: clamp(2.55rem, 15vw, 4.1rem);
    line-height: 0.96;
  }

  .intro p {
    font-size: 1rem;
    line-height: 1.45;
  }

  .preview-board {
    width: min(100%, 300px);
    justify-self: center;
    gap: 10px;
  }

  .preview-tile {
    box-shadow: 0 10px 24px rgba(24, 32, 31, 0.12);
  }

  .project-notes {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .link-row a {
    width: 100%;
  }

  .site-footer {
    display: grid;
    justify-items: center;
  }
}
