:root {
  --bg-1: #f7f3ed;
  --bg-2: #e8e5dd;
  --surface: #fffdf9;
  --text: #1d1d1b;
  --muted: #5e5a52;
  --accent: #8e5f3c;
  --border: #d9d2c8;
  --shadow: 0 12px 30px rgba(42, 34, 24, 0.09);
  --radius: 14px;
  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1.2rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, var(--bg-1), var(--bg-2));
  padding: var(--space-lg) var(--space-md);
}

.site-bg {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 12% 14%, rgba(142, 95, 60, 0.15), transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(30, 45, 64, 0.12), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

.topbar,
.content,
.footer {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--space-xl);
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-xs);
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.08;
}

.subtitle {
  margin: var(--space-sm) 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.lang-switch {
  display: inline-flex;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(5px);
}

.lang-btn {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent);
  color: #ffffff;
}

.content {
  display: grid;
  gap: var(--space-lg);
}

.card,
.experience-item,
.footer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: var(--space-lg);
}

.card p,
.section-heading p {
  margin: var(--space-sm) 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.section-heading {
  margin-bottom: var(--space-md);
}

.experience-list {
  display: grid;
  gap: var(--space-md);
}

.experience-item {
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.experience-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), #2b445e);
}

.experience-item h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

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

.details {
  margin: var(--space-sm) 0 0;
  padding-left: 1.1rem;
}

.details li {
  margin-bottom: 0.4rem;
}

.footer {
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
}

.footer p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.65s ease forwards;
}

.intro.reveal {
  animation-delay: 0.08s;
}

.experience-section.reveal {
  animation-delay: 0.16s;
}

.footer.reveal {
  animation-delay: 0.22s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 700px) {
  body {
    padding: var(--space-xl) var(--space-lg);
  }

  .experience-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-item {
    min-height: 250px;
  }
}

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

  .card,
  .experience-item,
  .footer {
    padding: var(--space-md);
  }
}
