@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-700.woff2') format('woff2');
}

:root {
  --bg: #faf8f4;
  --ink: #16281d;
  --accent: #1f4430;
  --card-bg: #e5e3dd;
  --muted: #6b7a70;
  --radius: 16px;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0f1a14;
  --ink: #f2f1ea;
  --accent: #7fb89a;
  --card-bg: #1b2b21;
  --muted: #93a89a;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.rb-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.rb-theme-toggle,
.rb-search-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.rb-theme-toggle:hover,
.rb-search-toggle:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }

.rb-icon { width: 20px; height: 20px; display: block; }
.rb-icon-moon { display: none; }
:root[data-theme="dark"] .rb-icon-sun { display: none; }
:root[data-theme="dark"] .rb-icon-moon { display: block; }

.rb-logo { justify-self: center; display: inline-flex; align-items: center; }
.rb-logo img { display: block; height: 48px; width: auto; }
.rb-logo .rb-logo-dark { display: none; }
:root[data-theme="dark"] .rb-logo .rb-logo-light { display: none; }
:root[data-theme="dark"] .rb-logo .rb-logo-dark { display: block; }

.rb-search { justify-self: end; display: flex; align-items: center; gap: 8px; position: relative; }

.rb-search-form {
  position: absolute;
  right: 0;
  top: 48px;
  display: none;
  align-items: center;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 999px;
  padding: 4px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.rb-search.is-open .rb-search-form { display: flex; }
.rb-search-form input {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  color: var(--ink);
  padding: 8px 12px;
  width: 220px;
  max-width: 60vw;
}

.rb-main { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.rb-hero {
  padding: clamp(32px, 6vw, 56px) 0 clamp(20px, 4vw, 32px);
  text-align: left;
}
.rb-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 620px;
  margin: 0;
  color: var(--ink);
}

.rb-mission { padding: 0 0 clamp(28px, 5vw, 44px); }
.rb-mission-inner {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  max-width: 620px;
}
.rb-mission-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.rb-mission-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.rb-mission-text strong { font-weight: 700; }

.rb-carousel { padding-bottom: clamp(48px, 8vw, 80px); }
.rb-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rb-carousel-track::-webkit-scrollbar { display: none; }

.rb-card {
  flex: 0 0 auto;
  width: min(280px, 72vw);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.rb-card-image {
  aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 6%, var(--card-bg)) 0 12px, var(--card-bg) 12px 24px);
}
.rb-card-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.rb-card-title { margin: 0; font-size: 14px; color: var(--muted); }
.rb-card-eye {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.rb-card-eye:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 640px) {
  .rb-header { grid-template-columns: auto 1fr auto; }
}
