:root {
  --bg: #f3efe7;
  --paper: rgba(255, 251, 245, 0.84);
  --text: #211c17;
  --muted: #6b6258;
  --line: rgba(33, 28, 23, 0.12);
  --accent: #bf5a36;
  --accent-soft: #f3c9a8;
  --shadow: 0 24px 70px rgba(84, 55, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(191, 90, 54, 0.18), transparent 35%),
    linear-gradient(180deg, #efe7da 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}

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

.language-switcher {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.lang-button.is-active {
  color: #fff;
  background: var(--text);
}

.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  padding: clamp(32px, 6vw, 72px);
  margin-bottom: 24px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(3rem, 9vw, 6.6rem);
  line-height: 0.95;
  font-weight: 600;
}

.hero-copy,
.about-copy,
.card p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.button-primary {
  color: #fff;
  background: var(--text);
}

.button-secondary {
  background: transparent;
}

.panel {
  padding: clamp(24px, 4vw, 36px);
  margin-bottom: 24px;
}

.panel-accent {
  background:
    linear-gradient(135deg, rgba(191, 90, 54, 0.1), rgba(255, 251, 245, 0.94)),
    var(--paper);
}

.section-heading {
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

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

.card {
  min-height: 220px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.card-index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

@media (max-width: 820px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .panel {
    border-radius: 22px;
  }
}
