:root {
  --ink: #17312e;
  --muted: #5a6b67;
  --bg: #faf7f0;
  --card: #ffffff;
  --line: #e6dfd2;
  --teal: #234f49;
  --teal-dark: #183a35;
  --teal-soft: #dde8e4;
  --clay: #d18261;
  --clay-soft: #f6e3d8;
  --clay-dark: #9a4f2e;
  --error: #b3261e;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.55 var(--body);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.topbar nav { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px;
  font-weight: 700; font-size: 16px; color: var(--teal);
  text-underline-offset: 4px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 17px/1 var(--body);
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-clay { background: var(--clay); color: var(--ink); }
.btn-clay:hover { background: #dc967a; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 17px/1 var(--display); color: #fff;
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .topbar nav .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
