:root {
  --bg: #f7f2ea;
  --surface: #ffffff;
  --text: #2a2218;
  --muted: #6f6252;
  --accent: #c85a28;
  --accent-dark: #9a4520;
  --gold: #d4a853;
  --border: #e6ddd0;
  --shadow: 0 10px 40px rgba(42, 34, 24, 0.08);
  --radius: 18px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.lang-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.15s;
}

.lang-toggle:hover {
  background: #fffaf4;
  transform: translateY(-1px);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 168, 83, 0.2), transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(200, 90, 40, 0.09), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 560px) {
  .hero {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1.75rem;
  }
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

@media (min-width: 560px) {
  .avatar {
    width: 160px;
    height: 160px;
  }
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  margin: 0 0 0.35rem;
  color: var(--accent-dark);
  line-height: 1.15;
}

.handle {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

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

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

.sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.bio {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.7;
}

.bio a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

@media (min-width: 560px) {
  .tags {
    justify-content: flex-start;
  }
}

.tags span {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.projects h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-dark);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.project-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 90, 40, 0.45);
  box-shadow: 0 14px 36px rgba(42, 34, 24, 0.1);
}

.project-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.project-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--accent-dark);
}

.project-body p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.project-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.site-footer a:hover {
  text-decoration: underline;
}