:root {
  --bg: #f8f7f3;
  --surface: #ffffff;
  --text: #1a1d1f;
  --muted: #5b646b;
  --accent: #016e4f;
  --border: #d9e2d9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, #e9f9f0 0%, transparent 38%),
    radial-gradient(circle at 90% 100%, #e7f0ff 0%, transparent 35%),
    var(--bg);
  min-height: 100vh;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 56px;
}

.profile,
.projects {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.projects {
  margin-top: 20px;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.eyebrow {
  margin: 18px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 18ch;
}

.intro {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 58ch;
}

.social-links {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.social-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: #eff7f3;
  border: 1px solid #dcece2;
  transition: background-color 0.16s ease;
}

.social-links a:hover {
  background: #e2ece6;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header .eyebrow {
  margin: 0 0 6px;
}

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

.project-card {
  background: #f7fbf8;
  border: 1px solid #e7ece7;
  border-radius: 14px;
  padding: 16px;
}

.project-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.project-card-link:hover {
  background: #eff6f1;
  border-color: #d9e4dc;
}

.project-card p {
  margin: 14px 0 16px;
  height: 6rem;
  color: var(--muted);
  line-height: 1.45;
  overflow: hidden;
}

.visit-project {
  margin-top: auto;
  align-self: flex-end;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.project-icon {
  margin-right: 6px;
  font-size: 1.35em;
  vertical-align: -0.08em;
}

.other-projects {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e7ece7;
}

.other-projects h3 {
  font-size: 1rem;
}

.other-projects ul {
  list-style: disc;
  margin: 12px 0 0;
  padding-left: 20px;
  display: block;
}

.other-projects a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

.other-projects li + li {
  margin-top: 8px;
}

.other-projects a:hover {
  text-decoration-thickness: 2px;
}

.legal {
  margin-top: 18px;
  padding: 6px 4px 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  font-size: 0.92rem;
}

.legal a {
  color: var(--muted);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.policy-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 56px;
}

.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.policy-card p {
  color: var(--muted);
  line-height: 1.6;
}

.policy-card h2 {
  margin-top: 24px;
  font-size: 1.1rem;
}

.policy-home {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent);
}

@media (max-width: 700px) {
  .page {
    padding: 26px 14px 40px;
  }

  .profile,
  .projects {
    padding: 20px;
    border-radius: 16px;
  }

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

  .project-card p {
    height: auto;
  }

  .policy-page {
    padding: 26px 14px 40px;
  }

  .policy-card {
    padding: 20px;
    border-radius: 16px;
  }
}
