:root {
  color-scheme: light;
  color: #3c2f2a;
  background: #f5ebe0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top, #f8f1e8 0%, #f1e0d5 40%, #ead7c7 100%);
  line-height: 1.7;
}

.site-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.site-header {
  text-align: center;
  padding: 24px 0 32px;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4rem);
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: 1.05rem;
  color: #6b554a;
}

.section {
  margin: 32px 0;
  padding: 28px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 45px rgba(108, 88, 79, 0.1);
}

.section h2 {
  margin-top: 0;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.section-content p {
  margin: 1rem 0 0;
  color: #5f4a41;
  overflow-wrap: break-word;
  word-break: break-word;
}

.project-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.project-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: #fdf5ef;
  border: 1px solid rgba(124, 99, 88, 0.14);
  overflow: hidden;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.link-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.link-grid.three-up {
  grid-template-columns: 1fr;
}

.link-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  background: #fffaf4;
  border: 1px solid rgba(124, 99, 88, 0.16);
  color: #3c2f2a;
  box-shadow: 0 10px 25px rgba(108, 88, 79, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(108, 88, 79, 0.12);
}

.link-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.link-card span {
  display: block;
  padding: 12px 14px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.project-card p,
.link-card,
.link-card span,
.social-links a,
.section-content {
  overflow-wrap: break-word;
  word-break: break-word;
}

.social-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: #fffaf4;
  color: #4f3d35;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(124, 99, 88, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(114, 87, 73, 0.08);
}

.social-container {
  display: grid;
  gap: 24px;
  align-items: start;
}

.social-twitter {
  min-height: 500px;
  border-radius: 18px;
  overflow: hidden;
  background: #fdf5ef;
}

.social-twitter a {
  display: block;
}

.social-content h2 {
  margin-top: 0;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

@media (min-width: 720px) {
  .site-shell {
    padding: 50px 36px;
  }

  .section {
    padding: 34px 38px;
  }

  .social-container {
    grid-template-columns: 80% 20%;
  }

  .link-grid.three-up {
    grid-template-columns: repeat(3, 1fr);
  }
}
