:root {
  color-scheme: light;
  --page: #f6f1e7;
  --page-alt: #fcfaf5;
  --page-end: #f3f6f3;
  --paper: rgba(255, 252, 247, 0.92);
  --ink: #1f2a22;
  --muted: #617064;
  --line: rgba(31, 42, 34, 0.12);
  --accent: #1f7a53;
  --accent-soft: rgba(31, 122, 83, 0.14);
  --shadow: 0 26px 60px rgba(31, 42, 34, 0.14);
  font-family: "Heebo", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(116, 172, 140, 0.24), transparent 28%),
    radial-gradient(circle at right 12% top 18%, rgba(224, 190, 124, 0.2), transparent 24%),
    linear-gradient(180deg, var(--page) 0%, var(--page-alt) 54%, var(--page-end) 100%);
  font-family: "Heebo", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.language-switch {
  display: inline-flex;
  direction: ltr;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.68);
  border: 1px solid rgba(31, 42, 34, 0.08);
  backdrop-filter: blur(18px);
}

.language-switch button,
.language-switch a {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"],
.language-switch a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.content-card {
  padding: 32px 28px;
}

.content-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.content-card h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}

.content-card h3 {
  margin: 22px 0 8px;
  font-size: 1rem;
}

.content-card p,
.content-card li {
  line-height: 1.65;
}

.content-card p {
  margin: 0 0 16px;
  color: #314036;
}

.content-card ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.content-card a {
  color: var(--accent);
  font-weight: 700;
}

.content-card code {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: #2a4a3b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.content-card .updated,
.content-card .muted-copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.center-stage {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 140px);
}

.narrow-card {
  width: min(100%, 520px);
}

.medium-card {
  width: min(100%, 760px);
}

.wide-card {
  width: min(100%, 920px);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
}

.primary-action {
  border: 0;
  background: var(--ink);
  color: #fff;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}

.soft-panel {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.soft-panel label {
  font-weight: 700;
}

.soft-panel input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid rgba(31, 42, 34, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

footer.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 12px;
  margin-top: 32px;
  border-top: 1px solid rgba(31, 42, 34, 0.12);
  color: #5a665f;
  font-size: 0.94rem;
}

footer.site-footer div {
  display: flex;
  gap: 16px;
}

@media (max-width: 860px) {
  .shell {
    width: min(100%, calc(100% - 24px));
    padding-top: 18px;
  }

  .content-card {
    padding: 24px;
  }

  footer.site-footer,
  footer.site-footer div {
    flex-direction: column;
  }
}
