:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 4px; }

.rh-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.rh-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.rh-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.rh-nav__logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.2px;
}

.rh-nav__menu {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
}

.rh-nav__menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}

.rh-nav__menu a:hover,
.rh-nav__menu a[aria-current="page"] {
  color: var(--ink);
}

.rh-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.rh-nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}

.btn-secondary:hover { background: var(--canvas-soft); color: var(--ink); }

.rh-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--hairline);
}

.rh-hero__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.rh-hero__title {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 680px;
  margin-bottom: 20px;
}

.rh-hero__lead {
  font-size: 18px;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.55;
}

.rh-hero__img {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  max-height: 460px;
  object-fit: cover;
  width: 100%;
}

.rh-section {
  padding: 80px 0;
}

.rh-section--alt {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.rh-section__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.rh-section__title {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.rh-section__lead {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.55;
}

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

.rh-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.rh-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.rh-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.rh-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}

.rh-card__body {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

.rh-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  width: fit-content;
}

.rh-card__link:hover { color: var(--primary); border-color: var(--primary); }

.rh-article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.rh-article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rh-article-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.rh-article-card__body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rh-article-card__meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.rh-article-card__title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.2px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
}

.rh-article-card__excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

.rh-article-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  width: fit-content;
}

.rh-article-card__link:hover { color: var(--primary); border-color: var(--primary); }

.rh-form-wrap {
  max-width: 560px;
}

.rh-form-group {
  margin-bottom: 20px;
}

.rh-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.rh-form-group input,
.rh-form-group textarea {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  height: 44px;
  outline: none;
  transition: border-color 0.15s;
}

.rh-form-group textarea {
  height: auto;
  resize: vertical;
  min-height: 120px;
}

.rh-form-group input:focus,
.rh-form-group textarea:focus {
  border-color: var(--ink);
}

.rh-form-group input.error,
.rh-form-group textarea.error {
  border-color: var(--semantic-error);
}

.rh-form-group .rh-field-error {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 4px;
}

#rh-form-message {
  margin-top: 16px;
  font-size: 14px;
  color: var(--semantic-success);
  display: none;
}

.rh-article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.rh-article-header__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.rh-article-header__title {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 16px;
}

.rh-article-header__meta {
  font-size: 13px;
  color: var(--muted);
}

.rh-article-body {
  padding: 48px 0 80px;
}

.rh-article-content {
  max-width: 720px;
}

.rh-article-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  line-height: 1.25;
  color: var(--ink);
  margin: 40px 0 14px;
}

.rh-article-content h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 28px 0 10px;
}

.rh-article-content p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
}

.rh-article-content ul,
.rh-article-content ol {
  margin-bottom: 18px;
  color: var(--body);
}

.rh-article-content li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.rh-article-content a {
  color: var(--ink);
}

.rh-article-content img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  margin: 28px 0;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.rh-article-content .rh-tip {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--body);
}

.rh-article-content .rh-tip strong {
  color: var(--ink);
}

.rh-article-related {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}

.rh-article-related__title {
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 20px;
}

.rh-breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline-soft);
}

.rh-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.rh-breadcrumb a:hover { color: var(--ink); }
.rh-breadcrumb span { margin: 0 6px; }

.rh-page-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.rh-page-header__title {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}

.rh-page-header__meta {
  font-size: 13px;
  color: var(--muted);
}

.rh-page-body {
  padding: 48px 0 80px;
  max-width: 760px;
}

.rh-page-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 36px 0 12px;
}

.rh-page-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 8px;
}

.rh-page-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 16px;
}

.rh-page-body ul, .rh-page-body ol {
  margin-bottom: 16px;
  color: var(--body);
}

.rh-page-body li {
  font-size: 16px;
  line-height: 1.6;
}

.rh-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding-top: 64px;
}

.rh-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.rh-footer__brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.rh-footer__tagline {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
}

.rh-footer__heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.rh-footer ul {
  list-style: none;
  padding: 0;
}

.rh-footer ul li { margin-bottom: 8px; }

.rh-footer a {
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
}

.rh-footer a:hover { color: var(--ink); }

.rh-footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 20px 0 32px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 13px;
  color: var(--muted);
}

.rh-cookie {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  max-width: 520px;
  width: calc(100% - 48px);
  box-shadow: 0 4px 24px rgba(38,37,30,0.08);
  display: none;
  z-index: 200;
  font-size: 14px;
  color: var(--body);
}

.rh-cookie p { margin-bottom: 14px; }

.rh-cookie__btns {
  display: flex;
  gap: 10px;
}

@media (max-width: 1024px) {
  .rh-card-grid { grid-template-columns: repeat(2, 1fr); }
  .rh-footer__inner { grid-template-columns: 1fr 1fr; }
  .rh-hero__title { font-size: 42px; }
}

@media (max-width: 768px) {
  .rh-nav__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    gap: 0;
  }
  .rh-nav__menu.is-open { display: flex; }
  .rh-nav__menu li { border-bottom: 1px solid var(--hairline-soft); }
  .rh-nav__menu a { padding: 12px 0; display: block; font-size: 16px; }
  .rh-nav__burger { display: flex; }
  .rh-nav { position: relative; }
}

@media (max-width: 640px) {
  .rh-hero__title { font-size: 32px; letter-spacing: -0.8px; }
  .rh-hero__lead { font-size: 16px; }
  .rh-section__title { font-size: 26px; }
  .rh-card-grid { grid-template-columns: 1fr; }
  .rh-article-grid { grid-template-columns: 1fr; }
  .rh-footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .rh-footer__bottom { flex-direction: column; gap: 4px; }
  .rh-article-header__title { font-size: 28px; }
  .rh-page-header__title { font-size: 28px; }
}
