* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f6f6f4;
  color: #1f1f1f;
  line-height: 1.65;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: #f6f6f4;
  border-bottom: 1px solid #dddddd;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 18px;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f1f1f;
  text-decoration: none;
}

.site-subtitle {
  margin: 4px 0 0;
  color: #666666;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-links a {
  color: #375a41;
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  text-decoration: underline;
}

main.container {
  padding-top: 44px;
  padding-bottom: 60px;
}

h1 {
  font-size: 2.4rem;
  margin: 0 0 14px;
  line-height: 1.2;
}

h2 {
  font-size: 1.8rem;
  margin: 0 0 14px;
  line-height: 1.25;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  line-height: 1.3;
}

p {
  margin: 0 0 14px;
}

.lead {
  color: #666666;
  max-width: 700px;
}

.card {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.hero-card {
  padding: 28px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 14px 0 18px;
}

.section-head-stack {
  display: block;
  margin-bottom: 24px;
}

.text-link {
  color: #375a41;
  text-decoration: none;
  font-weight: 600;
}

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

.meta {
  color: #777777;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #edf3ee;
  border: 1px solid #c8d8cb;
  color: #40634a;
  font-size: 0.86rem;
}

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

.project-card,
.detail-card {
  min-height: 100%;
}

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

.contact-list li {
  margin-bottom: 10px;
}

a {
  color: #375a41;
}

a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid #dddddd;
  padding: 20px 0 28px;
  background: #f6f6f4;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
