@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

:root {
  --primary-colour: #fffae3;
  --secondary-colour: #fcfcfc;
  --tertiary-colour: #5d576b;
  --quaternary-colour: #99e1d9;
  --accent-2: #f7567c;
  --text-colour: #5d576b;
  --muted-colour: #5d576b;
  --card-bg: #fcfcfc;
  --shadow: 0 10px 30px rgba(93, 87, 107, 0.08);
  --shadow-hover: 0 18px 40px rgba(153, 225, 217, 0.18);
  --radius: 1.1rem;
  --radius-sm: 0.6rem;
}

* {
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at top left, rgba(247, 86, 124, 0.22), rgba(153, 225, 217, 0.14) 40%, #fffae3);
  font-size: 1.05rem;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  color: var(--text-colour);
  margin: 0;
  line-height: 1.6;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
  color: #c93a5e;
}

.main_container {
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

h1, h2, h3 {
  line-height: 1.25;
}

h1, h2 {
  text-align: center;
  color: #3a7d76;
}

.hero {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.hero h1 {
  margin-top: 0;
  font-size: 2.2rem;
  color: #3a7d76;
}

.hero h3 {
  color: var(--accent-2);
  margin-top: 0.25rem;
}

.hero p {
  margin: 0.75rem 0;
  color: #000;
}

.filter_bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0 1.5rem;
}

.filter_button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5em 1em;
  border: 1px solid #99e1d9;
  background: var(--secondary-colour);
  color: var(--text-colour);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: inherit;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.filter_button img {
  width: 1.1rem;
  height: 1.1rem;
}

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

.filter_button.active {
  background: #3a7d76;
  color: #fff;
  border-color: #3a7d76;
}

.projects_content {
  position: relative;
  margin-top: 1rem;
}

.project_card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: left 0.35s ease, top 0.35s ease, width 0.35s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  border: 1px solid #99e1d9;
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  break-inside: avoid;
  margin-bottom: 0;
}

.project_card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.project_card.dimmed {
  opacity: 0.35;
  filter: grayscale(0.8);
  pointer-events: none;
}

.project_card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius) - 0.25rem);
  margin-bottom: 0.75rem;
  display: block;
}

.project_card:hover img {
  transform: scale(1.02);
}

.project_card h3 {
  margin-top: 0;
  text-align: center;
  color: var(--text-colour);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

/* placeholder for missing website screenshots */
.site-thumb {
  width: 100%;
  height: 11rem;
  border-radius: calc(var(--radius) - 0.25rem);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #f7567c, #99e1d9);
}

@media (prefers-reduced-motion: reduce) {
  .project_card {
    transition: none;
  }
}

.filter_button:focus-visible,
a:focus-visible {
  outline: 2px solid #3a7d76;
  outline-offset: 2px;
}
