@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800;900&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --bg-page: #faf8f5;
  --bg-page-2: #f3efe8;
  --surface: #ffffff;
  --surface-2: #f7f3ed;
  --text: #312821;
  --muted: #665548;
  --line: #dccfbe;
  --brown: #856047;
  --brown-deep: #5f4331;
  --beige: #a17859;
  --nav-light: #ffffff;
  --footer-light: #f6f1ea;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 18px 48px rgba(64, 45, 30, 0.13);
}

* {
  box-sizing: border-box;
}

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

body {
  background: radial-gradient(920px 520px at 10% -8%, rgba(145, 108, 78, 0.17), transparent 60%),
    radial-gradient(860px 480px at 90% -12%, rgba(176, 139, 107, 0.16), transparent 58%),
    linear-gradient(180deg, var(--bg-page) 0%, var(--bg-page-2) 100%);
  color: var(--text);
  font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--brown-deep);
  text-decoration: none;
}

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

.site {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 18px 36px;
}

.brand-header {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 40px;
  background: var(--surface);
  border: 1px solid #d3c4b2;
  color: #3b3028;
  font-size: 3rem;
  font-weight: 900;
  font-family: 'Space Grotesk', 'Nunito Sans', sans-serif;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(70, 51, 33, 0.12);
}

.top-nav {
  background: var(--nav-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(70, 51, 33, 0.09);
  overflow: hidden;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px;
}

.nav-links,
.nav-icons {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f4136;
  font-weight: 800;
  padding: 16px 24px;
  border-radius: 999px;
  min-width: 158px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: #e6d7c8;
  color: #3c2f25;
}

.nav-icons a {
  color: #6f5c4c;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.nav-icons a:hover {
  background: #e6d7c8;
  color: #3c2f25;
}

.content {
  margin-top: 14px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}

.hero-panel {
  text-align: center;
  padding: 52px 36px;
}

.hero-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.08;
  font-family: 'Space Grotesk', 'Nunito Sans', sans-serif;
  font-weight: 700;
  color: #2d241e;
}

.hero-panel p {
  max-width: 860px;
  margin: 20px auto 0;
  font-size: 1.18rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brown-deep) 0%, var(--brown) 55%, var(--beige) 100%);
  box-shadow: 0 10px 20px rgba(91, 67, 45, 0.3);
}

.btn:hover {
  color: #ffffff;
  filter: brightness(1.05);
}

.section {
  margin-top: 16px;
}

.section-head {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', 'Nunito Sans', sans-serif;
  color: #3a2f27;
  font-size: 1.65rem;
}

.project-grid,
.info-grid,
.course-grid,
.demo-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-card,
.info-card,
.pub-item,
.course-list,
.demo-card,
.stat-card,
.text-card {
  background: var(--surface-2);
  border: 1px solid #dfd2c4;
  border-radius: var(--radius-md);
  padding: 18px;
}

.project-card h3,
.info-card h3,
.pub-item h3,
.demo-card h3,
.text-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', 'Nunito Sans', sans-serif;
  color: #43362d;
  font-size: 1.14rem;
}

.muted {
  color: var(--muted);
}

.list-clean {
  margin: 0;
  padding-left: 18px;
}

.list-clean li {
  margin-bottom: 6px;
}

.image-main {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e3d9cd;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ded3c6;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e9dfd3;
}

th {
  background: #eadbc9;
  color: #4c3b2f;
}

tr:nth-child(even) {
  background: #f7f3ee;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #decfbe;
  background: #ffffff;
  font-weight: 800;
  color: #5a4a3d;
}

.pagination a.active {
  background: #e4d4c3;
  color: #5a4432;
}

.site-footer {
  margin-top: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--footer-light);
  border: 1px solid var(--line);
  color: #5e5043;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 16px;
}

.site-footer h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #3f3228;
  font-family: 'Space Grotesk', 'Nunito Sans', sans-serif;
  font-size: 1.1rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: #5e5043;
}

.site-footer a:hover {
  color: #3f3228;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 7px;
}

.copyright {
  margin-top: 10px;
  text-align: center;
  color: #7a695a;
  font-size: 0.9rem;
}

.callout {
  background: #efe5da;
  border: 1px solid #d6c4b2;
  border-radius: var(--radius-md);
  padding: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  text-align: center;
}

.stat-card .num {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: 'Space Grotesk', 'Nunito Sans', sans-serif;
  color: #7a5d49;
}

.stat-card .label {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .brand-pill {
    font-size: 2rem;
    padding: 12px 26px;
  }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    min-width: 140px;
  }

  .nav-icons {
    justify-content: center;
    padding-bottom: 8px;
  }

  .panel {
    padding: 22px;
  }

  .project-grid,
  .info-grid,
  .course-grid,
  .demo-grid,
  .card-grid,
  .footer-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
