@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

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

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

html { scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--body); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }

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

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

h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.05em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; }

p { line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.rh-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}
.rh-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.rh-nav__brand {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.rh-nav__brand:hover { color: var(--primary); }
.rh-nav__menu {
    display: flex;
    list-style: none;
    gap: 4px;
    margin-left: auto;
}
.rh-nav__menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--rounded-sm);
    transition: color 0.15s, background 0.15s;
}
.rh-nav__menu a:hover, .rh-nav__menu a[aria-current="page"] { color: var(--ink); background: var(--surface-strong); }
.rh-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.rh-nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }

.rh-hero {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}
.rh-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    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;
    background: var(--surface-strong);
    color: var(--muted);
    padding: 4px 10px;
    border-radius: var(--rounded-pill);
    margin-bottom: 20px;
}
.rh-hero__title { margin-bottom: 20px; }
.rh-hero__desc { font-size: 1rem; color: var(--body); max-width: 480px; margin-bottom: 0; }
.rh-hero__img {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.rh-section { padding: 80px 0; }
.rh-section--alt { background: var(--canvas-soft); }
.rh-section__header { margin-bottom: 40px; }
.rh-section__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.rh-section__title { margin-bottom: 12px; }
.rh-section__desc { color: var(--body); max-width: 600px; }

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

.rh-card {
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s;
}
.rh-card:hover { border-color: var(--hairline-strong); }
.rh-card__img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.rh-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.rh-card__tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.rh-card__title { font-size: 1.125rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; line-height: 1.35; }
.rh-card__desc { font-size: 14px; color: var(--body); flex: 1; }
.rh-card__link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--primary); text-decoration: none; }
.rh-card__link:hover { color: var(--primary-active); text-decoration: underline; }

.rh-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    background: var(--hairline);
}
.rh-info-cell {
    background: var(--card);
    padding: 28px 24px;
}
.rh-info-cell__num { font-size: 2rem; font-weight: 400; color: var(--primary); margin-bottom: 8px; letter-spacing: -0.03em; }
.rh-info-cell__label { font-size: 14px; color: var(--body); }

.rh-article { padding: 60px 0 80px; }
.rh-article__header { padding-bottom: 32px; border-bottom: 1px solid var(--hairline); margin-bottom: 40px; }
.rh-article__breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.rh-article__breadcrumb a { color: var(--muted); text-decoration: none; }
.rh-article__breadcrumb a:hover { color: var(--ink); }
.rh-article__meta { font-size: 13px; color: var(--muted); margin-top: 16px; }
.rh-article__body { max-width: 720px; }
.rh-article__body h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.rh-article__body h3 { font-size: 1.2rem; margin: 32px 0 12px; }
.rh-article__body p { margin-bottom: 20px; color: var(--body); line-height: 1.7; }
.rh-article__body ul, .rh-article__body ol { margin: 0 0 20px 24px; color: var(--body); line-height: 1.7; }
.rh-article__body li { margin-bottom: 8px; }
.rh-article__body img { margin: 32px 0; border-radius: var(--rounded-lg); border: 1px solid var(--hairline); width: 100%; }
.rh-article__body figure { margin: 32px 0; }
.rh-article__body figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.rh-article__body blockquote { border-left: 3px solid var(--hairline-strong); padding-left: 20px; margin: 24px 0; color: var(--muted); font-style: italic; }
.rh-article__body a { color: var(--primary); }
.rh-article__body a:hover { color: var(--primary-active); }
.rh-article__body table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.rh-article__body th, .rh-article__body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
.rh-article__body th { font-weight: 600; color: var(--ink); background: var(--canvas-soft); }

.rh-callout {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: var(--rounded-md);
    padding: 20px 24px;
    margin: 28px 0;
}
.rh-callout p { margin: 0; font-size: 14px; color: var(--body); }

.rh-form-section { background: var(--canvas-soft); padding: 80px 0; border-top: 1px solid var(--hairline); }
.rh-form { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 40px; max-width: 560px; }
.rh-form__title { font-size: 1.375rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.rh-form__desc { font-size: 14px; color: var(--body); margin-bottom: 28px; }
.rh-form__group { margin-bottom: 20px; }
.rh-form__label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.rh-form__input {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    height: 44px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--ink);
    transition: border-color 0.15s;
}
.rh-form__input:focus { outline: none; border-color: var(--primary); }
.rh-form__input.rh-form__input--error { border-color: var(--error); }
.rh-form__error { font-size: 12px; color: var(--error); margin-top: 4px; display: none; }
.rh-form__error--visible { display: block; }
.rh-form__msg { padding: 12px 16px; border-radius: var(--rounded-md); font-size: 14px; margin-bottom: 20px; display: none; }
.rh-form__msg--success { background: #e8f5f0; border: 1px solid #b7dfd2; color: var(--success); display: block; }
.rh-form__msg--loading { background: var(--canvas-soft); border: 1px solid var(--hairline); color: var(--muted); display: block; }

.rh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    line-height: 1;
}
.rh-btn--primary { background: var(--primary); color: var(--on-primary); padding: 10px 18px; height: 40px; }
.rh-btn--primary:hover { background: var(--primary-active); color: var(--on-primary); }
.rh-btn--secondary { background: var(--card); color: var(--ink); border: 1px solid var(--hairline-strong); padding: 10px 18px; height: 40px; }
.rh-btn--secondary:hover { background: var(--surface-strong); }
.rh-btn--full { width: 100%; height: 44px; }

.rh-cookie {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--canvas);
    border-radius: var(--rounded-lg);
    padding: 16px 24px;
    max-width: 560px;
    width: calc(100% - 48px);
    display: none;
    align-items: center;
    gap: 16px;
    z-index: 999;
    box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}
.rh-cookie.rh-cookie--visible { display: flex; }
.rh-cookie p { font-size: 14px; flex: 1; color: var(--canvas); margin: 0; }
.rh-cookie p a { color: var(--canvas); }
.rh-cookie__btns { display: flex; gap: 8px; flex-shrink: 0; }
.rh-cookie #rh-cookie-accept { background: var(--primary); color: var(--on-primary); }
.rh-cookie #rh-cookie-reject { background: transparent; color: var(--canvas); border: 1px solid rgba(255,255,255,0.3); }

.rh-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}
.rh-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.rh-footer__brand { font-size: 1.125rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 12px; letter-spacing: -0.02em; }
.rh-footer p { font-size: 14px; color: var(--body); line-height: 1.6; }
.rh-footer h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.rh-footer ul { list-style: none; }
.rh-footer li { margin-bottom: 10px; }
.rh-footer a { font-size: 14px; color: var(--body); text-decoration: none; }
.rh-footer a:hover { color: var(--ink); }
.rh-footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid var(--hairline);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.rh-footer__bottom p { font-size: 13px; color: var(--muted); }
.rh-footer__bottom a { color: var(--muted); }
.rh-footer__disclaimer { font-size: 12px; max-width: 400px; text-align: right; }

.rh-page { padding: 60px 0 80px; }
.rh-page__header { padding-bottom: 32px; border-bottom: 1px solid var(--hairline); margin-bottom: 40px; }
.rh-page__meta { font-size: 13px; color: var(--muted); margin-top: 12px; }
.rh-page__body { max-width: 720px; }
.rh-page__body h2 { font-size: 1.375rem; margin: 40px 0 16px; }
.rh-page__body h3 { font-size: 1.125rem; margin: 28px 0 10px; }
.rh-page__body p { margin-bottom: 18px; color: var(--body); line-height: 1.7; }
.rh-page__body ul, .rh-page__body ol { margin: 0 0 18px 24px; color: var(--body); line-height: 1.7; }
.rh-page__body li { margin-bottom: 8px; }
.rh-page__body a { color: var(--primary); }

@media (max-width: 1024px) {
    .rh-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .rh-hero__inner { grid-template-columns: 1fr; }
    .rh-hero__img { order: -1; max-height: 340px; }
    .rh-footer__inner { grid-template-columns: 1fr 1fr; }
    .rh-info-grid { grid-template-columns: repeat(3, 1fr); }
}

@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.rh-nav__menu--open { display: flex; }
    .rh-nav__toggle { display: flex; }
    .rh-grid--3, .rh-grid--2 { grid-template-columns: 1fr; }
    .rh-footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .rh-footer__bottom { flex-direction: column; }
    .rh-footer__disclaimer { text-align: left; }
    .rh-info-grid { grid-template-columns: 1fr; }
    .rh-form { padding: 24px; }
    .rh-cookie { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .rh-hero { padding: 48px 0; }
    .rh-section { padding: 48px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}
