:root {
  --bg: #fffaf0;
  --surface: #fff4df;
  --surface-strong: #ffe8bf;
  --text: #1c1a16;
  --muted: #4e4738;
  --accent: #d26520;
  --accent-2: #0a7a70;
  --line: #e8d8bc;
  --shadow: 0 18px 60px rgba(95, 68, 25, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 5%, #fff8d8 0%, var(--bg) 40%),
    linear-gradient(160deg, #fffaf0 0%, #fff2d8 100%);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.6;
}

.orb-a {
  width: 280px;
  height: 280px;
  background: #ffba76;
  right: -120px;
  top: 20%;
}

.orb-b {
  width: 220px;
  height: 220px;
  background: #88dbc7;
  left: -90px;
  bottom: 12%;
}

.site-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.hero {
  padding: 2rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #fff4e0, #fffbe9);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0;
  color: var(--accent-2);
  font-weight: 700;
}

h1 {
  margin: 0.4rem 0 0.9rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
}

.hero-copy {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.primary {
  background: var(--accent);
  color: white;
}

.ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.card {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.4rem;
  background: color-mix(in srgb, var(--surface), white 20%);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.project {
  padding: 1rem;
  border-radius: 0.9rem;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line), #c8b08f 25%);
}

.project h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.project p {
  margin-top: 0;
  color: var(--muted);
}

.project a {
  color: var(--accent-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.7s ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 0.08s;
}

.reveal:nth-of-type(3) {
  animation-delay: 0.16s;
}

.reveal:nth-of-type(4) {
  animation-delay: 0.24s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .site-header {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
  }

  .hero,
  .card {
    padding: 1rem;
  }
}
