:root {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

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

body {
  background: radial-gradient(circle at 20% 0%, #ffffff 0, var(--bg) 45%);
  color: var(--text);
  font-family: Monaco, "Lucida Console", monospace;
  line-height: 1.65;
}

.container {
  width: min(92vw, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(210, 210, 215, 0.7);
  backdrop-filter: saturate(180%) blur(18px);
  background: rgba(245, 245, 247, 0.75);
}

.topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

.brand {
  letter-spacing: 0.03em;
}

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

a:hover {
  color: var(--link);
}

.hero {
  text-align: center;
  padding: 5.5rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.18;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

h3 {
  font-size: 1.08rem;
}

.lead {
  max-width: 72ch;
  margin: 0 auto;
  color: var(--muted);
}

.project-list,
.project-grid {
  display: grid;
  gap: 1rem;
}

.project-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 3rem;
}

.project-item,
.project-card {
  background: linear-gradient(180deg, #fff 0%, #fbfbfd 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.04);
}

.meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.more-link {
  display: inline-block;
  margin-bottom: 2.8rem;
  color: var(--link);
  text-decoration: none;
}

.learn-block {
  margin-bottom: 4rem;
  padding: 1.4rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.76rem;
  color: #3a3a3c;
  background: #fff;
}

.page-intro {
  padding: 2.5rem 0 4rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.74rem;
}

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

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

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 0;
  }
}
