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

:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --primary: #f54e00;
    --primary-active: #d04200;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --on-primary: #ffffff;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background-color: var(--canvas);
    color: var(--body);
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

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

.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);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
}

.rh-nav__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.rh-nav__logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.rh-nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin-left: auto;
}

.rh-nav__menu li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    padding: 6px 12px;
    border-radius: var(--rounded-md);
    transition: color 0.15s, background 0.15s;
}

.rh-nav__menu li a:hover,
.rh-nav__menu li a.active {
    color: var(--ink);
    background: var(--surface-strong);
}

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

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

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

.rh-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.rh-hero__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: 20px;
}

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

.rh-hero__sub {
    font-size: 18px;
    color: var(--body);
    line-height: 1.6;
    max-width: 480px;
}

.rh-hero__img {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    aspect-ratio: 16/10;
    background: var(--surface-strong);
}

.rh-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.rh-section + .rh-section {
    border-top: 1px solid var(--hairline);
}

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

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

.rh-section__title-sm {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-bottom: 24px;
}

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

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

.rh-card__tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
    display: inline-block;
    width: fit-content;
}

.rh-card__img {
    border-radius: var(--rounded-sm);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--surface-strong);
    margin: -4px -4px 0;
    width: calc(100% + 8px);
}

.rh-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.rh-card__title a:hover {
    color: var(--primary);
}

.rh-card__excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    flex: 1;
}

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

.rh-article-hero {
    padding: 60px 0 0;
}

.rh-article-hero__inner {
    max-width: 780px;
}

.rh-article-hero__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: 20px;
}

.rh-article-hero__h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 16px;
}

.rh-article-hero__meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 32px;
}

.rh-article-hero__img {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    aspect-ratio: 16/8;
    background: var(--surface-strong);
    border: 1px solid var(--hairline);
    margin-top: 8px;
}

.rh-article-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.rh-article-body__inner {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

.rh-prose {
    max-width: 680px;
}

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

.rh-prose h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
    line-height: 1.4;
}

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

.rh-prose ul, .rh-prose ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.rh-prose li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 6px;
}

.rh-prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rh-prose strong {
    color: var(--ink);
    font-weight: 600;
}

.rh-prose .rh-callout {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: var(--rounded-md);
    padding: 20px 24px;
    margin: 28px 0;
}

.rh-prose .rh-callout p {
    margin-bottom: 0;
    font-size: 15px;
}

.rh-prose .rh-img-block {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    margin: 28px 0 8px;
    background: var(--surface-strong);
}

.rh-prose .rh-img-block img {
    width: 100%;
    height: auto;
    display: block;
}

.rh-prose .rh-img-caption {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 28px;
}

.rh-aside {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rh-aside__box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 20px;
}

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

.rh-aside__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rh-aside__links li a {
    font-size: 14px;
    color: var(--body);
}

.rh-aside__links li a:hover {
    color: var(--primary);
}

.rh-refs {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 20px 24px;
    margin-top: 40px;
}

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

.rh-refs ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rh-refs ul li a {
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    word-break: break-all;
}

.rh-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.rh-info-grid__item {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
}

.rh-info-grid__item h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.rh-info-grid__item p {
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 0;
}

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

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

.rh-page-hero__h1 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 12px;
}

.rh-page-hero__sub {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
}

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

.rh-page-body__inner {
    max-width: 780px;
}

.rh-form {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 32px;
    margin-top: 48px;
}

.rh-form__title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-bottom: 24px;
}

.rh-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.rh-form__group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.rh-form__group input,
.rh-form__group textarea {
    background: var(--canvas);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    font-size: 15px;
    color: var(--ink);
    font-family: inherit;
    height: 44px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
}

.rh-form__group textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

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

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

.rh-form__group .rh-field-error {
    font-size: 13px;
    color: var(--semantic-error);
    display: none;
}

.rh-form__group .rh-field-error.visible {
    display: block;
}

.rh-btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--rounded-md);
    padding: 10px 20px;
    height: 40px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
    font-family: inherit;
}

.rh-btn-primary:hover { background: var(--primary-active); }
.rh-btn-primary:active { background: var(--primary-active); }
.rh-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.rh-form__status {
    display: none;
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--rounded-md);
    font-size: 14px;
}

.rh-form__status.success {
    display: block;
    background: #edf9f4;
    border: 1px solid #b3e5d1;
    color: var(--semantic-success);
}

.rh-form__status.error {
    display: block;
    background: #fdf0f3;
    border: 1px solid #f5c2ce;
    color: var(--semantic-error);
}

.rh-prose-page h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    margin: 36px 0 12px;
}

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

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

.rh-prose-page ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

.rh-prose-page li {
    font-size: 15px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 4px;
}

.rh-disclaimer {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

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

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

.rh-footer__logo {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    display: block;
    margin-bottom: 12px;
}

.rh-footer__tagline {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    max-width: 240px;
}

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

.rh-footer__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rh-footer__col ul li a {
    font-size: 14px;
    color: var(--body);
}

.rh-footer__col ul li a:hover {
    color: var(--ink);
}

.rh-footer__bottom {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.rh-footer__bottom a {
    color: var(--body);
}

.rh-cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--ink);
    color: var(--canvas);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.rh-cookie.visible { transform: translateY(0); }

.rh-cookie p {
    font-size: 14px;
    color: var(--canvas-soft);
    max-width: 680px;
    line-height: 1.5;
}

.rh-cookie p a {
    color: var(--canvas);
    text-decoration: underline;
}

.rh-cookie__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.rh-cookie__btn {
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: opacity 0.15s;
}

.rh-cookie__btn:hover { opacity: 0.85; }

.rh-cookie__btn--accept {
    background: var(--primary);
    color: var(--on-primary);
}

.rh-cookie__btn--reject {
    background: transparent;
    color: var(--canvas-soft);
    border: 1px solid rgba(247,247,244,0.3);
}

@media (max-width: 1024px) {
    .rh-hero__inner { grid-template-columns: 1fr; }
    .rh-hero__h1 { font-size: 40px; }
    .rh-cards { grid-template-columns: repeat(2, 1fr); }
    .rh-article-body__inner { grid-template-columns: 1fr; }
    .rh-aside { position: static; }
    .rh-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@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: 12px 24px 20px;
        gap: 2px;
    }
    .rh-nav__menu.open { display: flex; }
    .rh-nav__burger { display: flex; }
    .rh-nav { position: relative; overflow: visible; }
    .rh-hero { padding: 48px 0; }
    .rh-hero__h1 { font-size: 32px; letter-spacing: -0.5px; }
    .rh-section { padding: 48px 0; }
    .rh-section__title { font-size: 28px; }
    .rh-cards { grid-template-columns: 1fr; }
    .rh-article-hero__h1 { font-size: 28px; }
    .rh-footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .rh-footer__bottom { flex-direction: column; align-items: flex-start; }
    .rh-info-grid { grid-template-columns: 1fr; }
    .rh-form { padding: 20px; }
}

@media (max-width: 640px) {
    .rh-cookie { flex-direction: column; align-items: flex-start; }
}
