:root {
  --rz-bg: #f5f1e8;
  --rz-surface: rgba(255, 250, 240, 0.9);
  --rz-surface-strong: #fffdf8;
  --rz-border: rgba(84, 61, 37, 0.16);
  --rz-text: #2e241a;
  --rz-muted: #6a5a48;
  --rz-accent: #bb5a2a;
  --rz-accent-soft: rgba(187, 90, 42, 0.12);
  --rz-success: #2f6b4f;
  --rz-shadow: 0 24px 50px rgba(46, 36, 26, 0.08);
  --rz-radius-xl: 28px;
  --rz-radius-lg: 18px;
  --rz-radius-md: 12px;
  --rz-content-width: 1080px;
  --rz-font-heading: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --rz-font-body: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--rz-font-body);
  color: var(--rz-text);
  background:
    radial-gradient(circle at top left, rgba(187, 90, 42, 0.12), transparent 24%),
    linear-gradient(180deg, #fbf7ef 0%, var(--rz-bg) 100%);
}

body.rz-guide-page {
  min-height: 100vh;
}

.rz-shell {
  width: min(calc(100% - 40px), var(--rz-content-width));
  margin: 0 auto;
  padding: 32px 0 64px;
}

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

.rz-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.rz-brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--rz-shadow);
}

.rz-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rz-brand-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rz-muted);
}

.rz-brand-name {
  font-family: var(--rz-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.rz-lang-switch {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rz-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--rz-border);
  text-decoration: none;
  color: var(--rz-text);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.rz-pill[aria-current="page"] {
  border-color: rgba(187, 90, 42, 0.38);
  background: var(--rz-accent-soft);
  color: var(--rz-accent);
  font-weight: 700;
}

.rz-article {
  display: grid;
  gap: 28px;
}

.rz-hero,
.rz-section,
.rz-meta-card {
  background: var(--rz-surface);
  border: 1px solid var(--rz-border);
  border-radius: var(--rz-radius-xl);
  box-shadow: var(--rz-shadow);
  backdrop-filter: blur(8px);
}

.rz-hero {
  padding: 34px;
}

.rz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rz-accent);
}

.rz-title {
  margin: 0;
  font-family: var(--rz-font-heading);
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 0.96;
}

.rz-subtitle {
  margin: 16px 0 0;
  max-width: 64ch;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--rz-muted);
}

.rz-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
}

.rz-section {
  padding: 28px;
}

.rz-section h2 {
  margin: 0 0 12px;
  font-family: var(--rz-font-heading);
  font-size: 1.7rem;
}

.rz-section p,
.rz-section li {
  color: var(--rz-text);
  line-height: 1.75;
  font-size: 1rem;
}

.rz-section ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.rz-meta-card {
  padding: 22px;
}

.rz-meta-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rz-muted);
}

.rz-meta-list {
  display: grid;
  gap: 14px;
}

.rz-meta-row {
  display: grid;
  gap: 4px;
}

.rz-meta-label {
  color: var(--rz-muted);
  font-size: 0.9rem;
}

.rz-meta-value {
  font-weight: 700;
}

.rz-callout {
  padding: 16px 18px;
  border-radius: var(--rz-radius-lg);
  background: rgba(47, 107, 79, 0.08);
  border: 1px solid rgba(47, 107, 79, 0.18);
}

.rz-footer-note {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--rz-muted);
}

@media (max-width: 860px) {
  .rz-shell {
    width: min(calc(100% - 24px), var(--rz-content-width));
    padding-top: 20px;
  }

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

  .rz-grid {
    grid-template-columns: 1fr;
  }

  .rz-hero,
  .rz-section,
  .rz-meta-card {
    padding: 22px;
  }
}
