@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;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --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; }
body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--body);
  line-height: 1.5;
  font-weight: 400;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* NAV */
.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: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.1px;
}
.rh-nav__menu {
  display: flex;
  gap: 32px;
  align-items: center;
}
.rh-nav__menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}
.rh-nav__menu a:hover { color: var(--primary); }
.rh-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.rh-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* HERO */
.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: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 20px;
}
.rh-hero__desc {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 32px;
}
.rh-hero__img {
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* BUTTONS */
.rh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.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(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  padding: 10px 18px;
  height: 40px;
}
.rh-btn--secondary:hover { border-color: var(--ink); color: var(--ink); }

/* SECTIONS */
.rh-section {
  padding: 80px 0;
}
.rh-section--alt {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 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: 12px;
}
.rh-section__title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}
.rh-section__sub {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 48px;
}

/* CARDS */
.rh-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rh-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  transition: border-color 0.15s;
}
.rh-card:hover { border-color: var(--hairline-strong); }
.rh-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-bottom: 16px;
  border: 1px solid var(--hairline-soft);
}
.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.4;
  color: var(--ink);
  margin-bottom: 10px;
}
.rh-card__title a { color: inherit; }
.rh-card__title a:hover { color: var(--primary); }
.rh-card__excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}
.rh-card__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
}

/* ARTICLE PAGE */
.rh-article {
  padding: 80px 0;
}
.rh-article__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.rh-article__content h1 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 12px;
}
.rh-article__meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.rh-article__img {
  width: 100%;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin-bottom: 32px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.rh-article__content h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
}
.rh-article__content h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 28px 0 12px;
}
.rh-article__content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 20px;
}
.rh-article__content ul, .rh-article__content ol {
  margin: 0 0 20px 24px;
  list-style: disc;
}
.rh-article__content ol { list-style: decimal; }
.rh-article__content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}
.rh-article__content a { color: var(--primary); text-decoration: underline; }
.rh-article__content a:hover { color: var(--primary-active); }
.rh-article__content strong { color: var(--ink); font-weight: 600; }

/* SIDEBAR */
.rh-sidebar__box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.rh-sidebar__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.rh-sidebar__list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline-soft);
}
.rh-sidebar__list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.rh-sidebar__list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.rh-sidebar__list a:hover { color: var(--primary); }

/* INFO BOX */
.rh-infobox {
  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-infobox p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
  margin: 0;
}

/* TABLE */
.rh-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.rh-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline-strong);
}
.rh-table td {
  padding: 12px 16px;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
}
.rh-table tr:last-child td { border-bottom: none; }
.rh-table tr:nth-child(even) td { background: var(--canvas-soft); }

/* ARTICLE INDEX */
.rh-articles-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 80px 0;
}

/* BREADCRUMB */
.rh-breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
  margin-bottom: 0;
}
.rh-breadcrumb__inner {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.rh-breadcrumb__inner a { color: var(--muted); }
.rh-breadcrumb__inner a:hover { color: var(--primary); }
.rh-breadcrumb__sep { color: var(--hairline-strong); }

/* RELATED */
.rh-related {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
}
.rh-related__title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin-bottom: 24px;
}
.rh-related__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.rh-related__card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px;
}
.rh-related__card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.rh-related__card h4 a { color: inherit; }
.rh-related__card h4 a:hover { color: var(--primary); }
.rh-related__card p { font-size: 13px; color: var(--body); }

/* CONTACT FORM */
.rh-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 32px;
}
.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, .rh-form__textarea {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s;
  outline: none;
}
.rh-form__input:focus, .rh-form__textarea:focus {
  border-color: var(--ink);
}
.rh-form__textarea { min-height: 120px; resize: vertical; }
.rh-form__submit {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  height: 44px;
}
.rh-form__submit:hover { background: var(--primary-active); }
.rh-form__confirm {
  display: none;
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--semantic-success);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--semantic-success);
  margin-top: 16px;
}

/* PAGE HEADER */
.rh-page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}
.rh-page-header h1 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 12px;
}
.rh-page-header p {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
}

/* PROSE */
.rh-prose {
  padding: 48px 0 80px;
  max-width: 760px;
}
.rh-prose h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 14px;
}
.rh-prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}
.rh-prose p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 18px;
}
.rh-prose ul, .rh-prose ol {
  margin: 0 0 18px 24px;
  list-style: disc;
}
.rh-prose ol { list-style: decimal; }
.rh-prose li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}
.rh-prose a { color: var(--primary); text-decoration: underline; }
.rh-prose a:hover { color: var(--primary-active); }
.rh-prose strong { color: var(--ink); font-weight: 600; }

/* COOKIE BANNER */
.rh-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  z-index: 999;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.rh-cookie__text {
  font-size: 14px;
  color: var(--canvas);
  line-height: 1.5;
}
.rh-cookie__text a { color: var(--primary); text-decoration: underline; }
.rh-cookie__actions { display: flex; gap: 12px; flex-shrink: 0; }
.rh-cookie__btn {
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--rounded-md);
  padding: 8px 18px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.rh-cookie__btn--accept { background: var(--primary); color: var(--on-primary); }
.rh-cookie__btn--accept:hover { background: var(--primary-active); }
.rh-cookie__btn--reject { background: var(--surface-strong); color: var(--ink); }
.rh-cookie__btn--reject:hover { background: var(--hairline-strong); }

/* FOOTER */
.rh-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 0;
}
.rh-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.rh-footer__brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}
.rh-footer__desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}
.rh-footer__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.rh-footer__col ul li {
  margin-bottom: 10px;
}
.rh-footer__col ul a {
  font-size: 14px;
  color: var(--body);
}
.rh-footer__col ul a:hover { color: var(--primary); }
.rh-footer__bottom {
  border-top: 1px solid var(--hairline);
  padding: 20px 0;
}
.rh-footer__bottom p {
  font-size: 13px;
  color: var(--muted);
}

/* ABOUT PAGE */
.rh-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 64px 0;
}
.rh-about__grid img {
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .rh-cards, .rh-articles-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .rh-article__inner {
    grid-template-columns: 1fr;
  }
  .rh-sidebar { order: -1; }
  .rh-about__grid { grid-template-columns: 1fr; }
  .rh-footer__inner { grid-template-columns: 1fr 1fr; }
  .rh-related__grid { grid-template-columns: 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: 16px 24px;
    gap: 16px;
  }
  .rh-nav__menu.open { display: flex; }
  .rh-nav__toggle { display: flex; }
  .rh-hero__inner { grid-template-columns: 1fr; }
  .rh-hero h1 { font-size: 36px; }
  .rh-cookie { flex-direction: column; align-items: flex-start; }
  .rh-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .rh-cards, .rh-articles-list { grid-template-columns: 1fr; }
  .rh-hero { padding: 48px 0; }
  .rh-hero h1 { font-size: 32px; letter-spacing: -0.6px; }
  .rh-section { padding: 56px 0; }
  .rh-section__title { font-size: 28px; }
  .rh-article__content h1 { font-size: 28px; }
}
