:root {
  color-scheme: light;
  --bg: #f4efe7;
  --surface: rgba(255, 251, 246, 0.84);
  --surface-strong: rgba(255, 248, 240, 0.92);
  --text: #1f1a16;
  --muted: #6f6458;
  --line: rgba(62, 46, 33, 0.12);
  --accent: #0f766e;
  --accent-strong: #0a4f4a;
  --shadow: 0 30px 70px rgba(78, 52, 24, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.15), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(191, 122, 67, 0.17), transparent 30%),
    linear-gradient(180deg, #f6f0e6 0%, #efe4d3 100%);
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar,
.topbar-left,
.topbar-links,
.language-switcher,
.hero,
.card-grid,
.list-grid,
.stack-grid,
.cta-actions,
.footer {
  display: flex;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 10px 4px;
}

.topbar-left,
.topbar-links,
.language-switcher {
  align-items: center;
  gap: 14px;
}

.topbar-links { gap: 18px; }

.brand,
.back-link,
.topbar-links a,
.footer a {
  color: inherit;
  text-decoration: none;
}

.brand {
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link,
.topbar-links a,
.footer,
.footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.language-switcher {
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.language-button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.language-button.is-active {
  background: var(--accent);
  color: #f7fffe;
}

.hero {
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  padding: 24px 0 40px;
}

.hero-copy,
.profile-card,
.card,
.list-card,
.stack-card,
.cta-panel {
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px;
  background: var(--surface);
}

.hero-copy,
.profile-card,
.cta-panel {
  padding: 36px;
}

.hero-copy { flex: 1.35; }
.profile-card {
  flex: 0.85;
  display: grid;
  place-items: center;
  text-align: center;
}

.profile-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.profile-name {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.profile-role {
  color: var(--muted);
}

.eyebrow,
.stack-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3, p { margin: 0; }

h1 {
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  line-height: 1.16;
  max-width: 18ch;
}

.lede,
.section-heading p,
.card p,
.list-card p,
.stack-card p,
.cta-panel p {
  color: var(--muted);
  line-height: 1.68;
}

.lede {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 1rem;
}

.section {
  margin-bottom: 28px;
}

.section-heading {
  margin-bottom: 22px;
  padding: 0 4px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 1.35vw, 1.4rem);
  line-height: 1.2;
  max-width: 18ch;
}

.card-grid,
.list-grid,
.stack-grid {
  gap: 18px;
}

.card-grid,
.list-grid,
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.list-card,
.stack-card {
  padding: 24px;
  border-radius: 24px;
  background: var(--surface-strong);
}

.card h3,
.list-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.28;
}

.accent .list-card {
  background: rgba(255, 252, 247, 0.74);
}

.cta-panel,
.footer {
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.cta-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.26;
  max-width: 22ch;
}

.cta-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.96rem;
}

.button-primary {
  background: var(--accent);
  color: #f7fffe;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.54);
}

.footer {
  margin-top: 56px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero,
  .topbar,
  .card-grid,
  .list-grid,
  .stack-grid,
  .cta-panel,
  .footer {
    flex-direction: column;
  }

  .card-grid,
  .list-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }
}
