:root {
  --bg: #fff;
  --text: #111;
  --muted: #444;
  --accent: #007aff;
  --border: #eaeaea;
  --radius: 12px;
  --focus: #007aff;
  --focus-ring: 0 0 0 3px rgba(0, 122, 255, 0.3);
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}
header.hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 2.5rem;
  margin: 0.3em 0;
}
.hero p.lead {
  color: var(--muted);
  max-width: 600px;
  margin: 0.5em auto 1.5em;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75em 1.5em;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn:hover {
  opacity: 0.85;
}

.btn:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  main {
    max-width: 100%;
    padding: 2rem 1rem;
  }

  header.hero {
    padding: 4rem 1rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .project {
    flex-direction: column;
    gap: 16px;
  }

  .project .image {
    flex-basis: auto;
    width: 100%;
  }

  .project .content {
    flex-basis: auto;
    width: 100%;
  }
}

section {
  margin-bottom: 4rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1em;
}

.card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;

  > * {
    flex: 1 1 160px;
  }

  .images {
    display: flex;
    gap: 12px;

    .image {
      border-radius: var(--radius);
      border: 1px solid var(--border);
      overflow: hidden;

      img {
        display: block;
        width: 100%;
      }
    }
  }
}

footer {
  text-align: center;
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

a.link {
  color: var(--accent);
  text-decoration: none;
}

a.link:hover {
  text-decoration: underline;
}

a.link:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Focus styles for all interactive elements */
a:focus,
button:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
