@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --ink: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: 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;
}

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 400;
}

h1 { font-size: 72px; line-height: 1.1; letter-spacing: -2.16px; }
h2 { font-size: 36px; line-height: 1.2; letter-spacing: -0.72px; }
h3 { font-size: 26px; line-height: 1.25; letter-spacing: -0.325px; }
h4 { font-size: 22px; line-height: 1.3; letter-spacing: -0.11px; }

p { line-height: 1.6; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

img { display: block; max-width: 100%; }

.rh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.rh-badge {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 4px 10px;
}

.rh-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.rh-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.rh-nav-brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.rh-nav-brand span { color: var(--primary); }

.rh-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.rh-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  white-space: nowrap;
}

.rh-nav-links a:hover { color: var(--ink); }

.rh-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.rh-hero {
  padding: 80px 0 0;
  border-bottom: 1px solid var(--hairline);
}

.rh-hero-text { max-width: 720px; }

.rh-hero-badge { margin-bottom: 20px; }

.rh-hero h1 { margin-bottom: 20px; }

.rh-hero-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  margin-top: 4px;
}

.rh-hero-img {
  margin-top: 56px;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--hairline);
  border-bottom: none;
}

.rh-section { padding: 80px 0; }
.rh-section-sm { padding: 48px 0; }

.rh-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.rh-section-heading {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 12px;
}

.rh-section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 540px;
}

.rh-divider {
  border: none;
  border-top: 1px solid var(--hairline);
}

.rh-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.rh-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.rh-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rh-card-date {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.rh-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.1px;
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.3;
}

.rh-card-body p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  flex: 1;
}

.rh-card-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 1px;
}

.rh-card-link:hover { color: var(--primary-active); border-color: var(--primary-active); }

.rh-article-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.rh-article-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  flex-wrap: wrap;
}

.rh-article-meta span::before { content: '·'; margin-right: 6px; }
.rh-article-meta span:first-child::before { content: none; }

.rh-article-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  margin: 48px 0 0;
}

.rh-article-layout {
  padding: 64px 0;
}

.rh-article-body {
  max-width: 720px;
}

.rh-article-body p {
  margin-bottom: 20px;
  line-height: 1.72;
  font-size: 16px;
  color: var(--body);
}

.rh-article-body h2 {
  font-size: 28px;
  margin: 52px 0 18px;
  color: var(--ink);
}

.rh-article-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 14px;
  letter-spacing: 0;
  color: var(--ink);
}

.rh-article-body ul,
.rh-article-body ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.rh-article-body li {
  margin-bottom: 10px;
  line-height: 1.65;
  font-size: 16px;
  color: var(--body);
}

.rh-article-body strong { color: var(--ink); font-weight: 600; }

.rh-article-body a {
  color: var(--primary);
  border-bottom: 1px solid rgba(245,78,0,0.3);
}

.rh-article-body a:hover { border-color: var(--primary); }

.rh-info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 15px;
  color: var(--body);
  line-height: 1.65;
}

.rh-info-box strong { color: var(--ink); }

.rh-ref-block {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 48px;
}

.rh-ref-block p {
  font-size: 13px !important;
  color: var(--muted) !important;
  margin-bottom: 8px !important;
}

.rh-ref-block a { color: var(--muted); font-size: 13px; }
.rh-ref-block a:hover { color: var(--ink); }

.rh-sidebar {
  position: sticky;
  top: 84px;
}

.rh-sidebar-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.rh-sidebar-box h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0;
}

.rh-sidebar-links {
  list-style: none;
}

.rh-sidebar-links li {
  border-bottom: 1px solid var(--hairline-soft);
  padding: 10px 0;
  font-size: 14px;
}

.rh-sidebar-links li:last-child { border-bottom: none; }

.rh-sidebar-links a { color: var(--body); }
.rh-sidebar-links a:hover { color: var(--primary); }

.rh-related {
  border-top: 1px solid var(--hairline);
  padding: 64px 0;
}

.rh-form-section {
  background: var(--canvas);
  padding: 80px 0;
  border-top: 1px solid var(--hairline);
}

.rh-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 40px;
}

.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: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}

.rh-form input { height: 44px; }
.rh-form textarea { min-height: 120px; resize: vertical; }

.rh-form input:focus,
.rh-form textarea:focus { border-color: var(--ink); }

.rh-form input::placeholder,
.rh-form textarea::placeholder { color: var(--muted-soft); }

.btn-submit {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 0 20px;
  height: 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-submit:hover { background: var(--primary-active); }

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#form-message {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
}

#form-message.success {
  background: #e8f4ef;
  color: var(--success);
  border: 1px solid #b5d9cc;
}

#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 480px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 12px;
  padding: 22px 24px;
  z-index: 9999;
  box-shadow: none;
}

#cookie-banner p {
  font-size: 14px;
  color: rgba(247,247,244,0.88);
  margin-bottom: 16px;
  line-height: 1.55;
}

#cookie-banner a {
  color: rgba(247,247,244,0.7);
  text-decoration: underline;
}

.cookie-actions { display: flex; gap: 10px; }

.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.btn-cookie-reject {
  background: transparent;
  color: rgba(247,247,244,0.75);
  border: 1px solid rgba(247,247,244,0.2);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.rh-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.rh-footer-brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}

.rh-footer-brand span { color: var(--primary); }

.rh-footer-tagline {
  font-size: 14px;
  color: var(--muted);
}

.rh-footer-col-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
  display: block;
}

.rh-footer-list {
  list-style: none;
}

.rh-footer-list li { margin-bottom: 10px; }

.rh-footer-list a {
  font-size: 14px;
  color: var(--body);
}

.rh-footer-list a:hover { color: var(--ink); }

.rh-footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rh-footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.rh-footer-bottom-links {
  display: flex;
  gap: 20px;
}

.rh-footer-bottom-links a {
  font-size: 13px;
  color: var(--muted);
}

.rh-footer-bottom-links a:hover { color: var(--ink); }

.rh-page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.rh-page-content {
  padding: 64px 0;
  max-width: 760px;
}

.rh-page-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 14px;
  letter-spacing: -0.2px;
}

.rh-page-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
  letter-spacing: 0;
}

.rh-page-content p {
  margin-bottom: 18px;
  line-height: 1.7;
  color: var(--body);
}

.rh-page-content ul {
  padding-left: 22px;
  margin-bottom: 18px;
}

.rh-page-content li {
  margin-bottom: 8px;
  line-height: 1.65;
  color: var(--body);
}

.rh-page-content a { color: var(--primary); }
.rh-page-content a:hover { color: var(--primary-active); }

@media (max-width: 767px) {
  h1 { font-size: 34px; letter-spacing: -0.6px; }
  h2 { font-size: 26px; letter-spacing: -0.3px; }
  h3 { font-size: 22px; }

  .rh-nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 20px 24px;
    gap: 16px;
    z-index: 199;
  }

  .rh-nav-links.open { display: flex; }
  .rh-nav-toggle { display: flex; align-items: center; }

  .rh-hero { padding: 48px 0 0; }
  .rh-section { padding: 48px 0; }
  .rh-form { padding: 24px; }
  .rh-article-body { max-width: 100%; }
  .rh-sidebar { position: static; margin-top: 40px; }

  #cookie-banner {
    left: 16px;
    right: 16px;
    max-width: none;
    bottom: 16px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  h1 { font-size: 52px; letter-spacing: -1.5px; }
}
