:root {
  color-scheme: light;
  --text: #1b1f2a;
  --muted: #4f5b75;
  --surface: #ffffff;
  --background: #f4f7fb;
  --accent: #2f6fed;
  --accent-soft: #e7efff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.5;
}

.hero {
  position: relative;
}

.hero-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(8, 16, 36, 0.55);
}

.hero-content h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-content p {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

h2 {
  margin-top: 0;
  font-size: 1.7rem;
}

.projects-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-card {
  background: var(--surface);
  border: 1px solid #dce4f0;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(11, 23, 49, 0.05);
}

.project-card h3 {
  margin-top: 0;
}

.project-card p {
  color: var(--muted);
}

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

a:hover {
  text-decoration: underline;
}

.project-page h1 {
  margin-top: 0;
}

.project-page .intro {
  color: var(--muted);
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.image-gallery img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #dce4f0;
  background: #fff;
}

.back-link {
  display: inline-block;
  margin-top: 0.5rem;
}
