@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;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --section: 80px;
}

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

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 { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

.ch-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

.ch-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ch-nav__logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.ch-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.ch-nav__links > li > a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}

.ch-nav__links > li > a:hover { color: var(--primary); text-decoration: none; }

.ch-nav__dropdown { position: relative; }
.ch-nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 8px 0;
  min-width: 260px;
  box-shadow: 0 4px 16px rgba(38, 37, 30, 0.06);
  z-index: 200;
}

.ch-nav__dropdown:hover .ch-nav__sub { display: block; }

.ch-nav__sub li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  transition: color 0.15s;
}

.ch-nav__sub li a:hover { color: var(--ink); background: var(--canvas); text-decoration: none; }

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

.ch-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

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

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

.ch-hero__eyebrow {
  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(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 20px;
}

.ch-hero__title {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 20px;
}

.ch-hero__desc {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 440px;
}

.ch-hero__img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface-strong);
}

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

.ch-section { padding: var(--section) 0; }
.ch-section--alt { background: var(--canvas-soft); }

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

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

.ch-section__desc {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 48px;
}

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

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

.ch-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

.ch-card:hover { border-color: var(--hairline-strong); }

.ch-card__img {
  aspect-ratio: 16/9;
  background: var(--surface-strong);
  overflow: hidden;
}

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

.ch-card__body { padding: 24px; }

.ch-card__tag {
  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(--radius-pill);
  padding: 3px 10px;
  margin-bottom: 12px;
}

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

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

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

.ch-card__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
}

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

.ch-info-item {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.ch-info-item__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

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

.ch-info-item__text {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.ch-article {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--section) 24px;
}

.ch-article__breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

.ch-article__breadcrumb a { color: var(--muted); }
.ch-article__breadcrumb a:hover { color: var(--ink); }
.ch-article__breadcrumb span { margin: 0 6px; }

.ch-article__tag {
  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(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 20px;
}

.ch-article__title {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.72px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}

.ch-article__meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

.ch-article__img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16/9;
  background: var(--surface-strong);
}

.ch-article__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.ch-article__body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}

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

.ch-article__body ul, .ch-article__body ol {
  margin: 0 0 20px 24px;
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
}

.ch-article__body ul { list-style: disc; }
.ch-article__body ol { list-style: decimal; }

.ch-article__body li { margin-bottom: 8px; }

.ch-article__body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
}

.ch-article__body a:hover { text-decoration-color: var(--ink); }

.ch-callout {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
}

.ch-callout strong { color: var(--ink); }

.ch-table-wrap { overflow-x: auto; margin: 32px 0; }

.ch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ch-table th, .ch-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}

.ch-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--canvas-soft);
}

.ch-table td { color: var(--body); }
.ch-table tr:last-child td { border-bottom: none; }

.ch-form-section {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 560px;
}

.ch-form-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin-bottom: 8px;
}

.ch-form-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

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

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

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

.ch-form-group textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

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

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

.ch-form-error {
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.ch-form-error.visible { display: block; }

.ch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  height: 40px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

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

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

.ch-btn--secondary {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}

.ch-btn--secondary:hover { background: var(--canvas); }

.ch-form-msg {
  display: none;
  font-size: 14px;
  color: var(--success);
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 16px;
}

.ch-form-msg.visible { display: block; }

.ch-form-loader {
  display: none;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.ch-form-loader.visible { display: block; }

.ch-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 0;
}

.ch-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 64px 24px 48px;
}

.ch-footer__brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}

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

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

.ch-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.ch-footer__col ul li a {
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
}

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

.ch-footer__col p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.ch-footer__bottom {
  border-top: 1px solid var(--hairline);
  padding: 20px 24px;
}

.ch-footer__bottom .ch-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.ch-footer__bottom a { color: var(--muted); }
.ch-footer__bottom a:hover { color: var(--ink); }

.ch-cookie {
  display: none;
  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);
  z-index: 999;
  box-shadow: 0 4px 24px rgba(38, 37, 30, 0.08);
}

.ch-cookie.visible { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.ch-cookie p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.ch-cookie a { color: var(--ink); text-decoration: underline; }

.ch-cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }

.ch-page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.ch-page-hero__title {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 12px;
}

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

.ch-prose {
  max-width: 720px;
}

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

.ch-prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}

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

.ch-prose ul {
  list-style: disc;
  margin: 0 0 20px 24px;
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
}

.ch-prose li { margin-bottom: 8px; }

.ch-prose a { color: var(--ink); text-decoration: underline; }

@media (max-width: 1024px) {
  .ch-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .ch-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ch-info-grid { grid-template-columns: repeat(2, 1fr); }

  .ch-hero__title { font-size: 40px; }
  .ch-section__title { font-size: 30px; }
}

@media (max-width: 768px) {
  .ch-nav__toggle { display: flex; }

  .ch-nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface-card);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 0;
    z-index: 99;
  }

  .ch-nav__links.open { display: flex; }

  .ch-nav__links > li {
    width: 100%;
  }

  .ch-nav__links > li > a {
    display: block;
    padding: 12px 24px;
  }

  .ch-nav__dropdown { position: static; }

  .ch-nav__sub {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--canvas-soft);
    border-radius: 0;
    padding: 0;
  }

  .ch-nav__sub.open { display: block; }

  .ch-nav__sub li a { padding: 10px 40px; }

  .ch-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .ch-hero__title { font-size: 32px; letter-spacing: -0.5px; }

  .ch-grid-3 { grid-template-columns: 1fr; }
  .ch-grid-2 { grid-template-columns: 1fr; }
  .ch-info-grid { grid-template-columns: 1fr; }

  .ch-footer__inner { grid-template-columns: 1fr 1fr; }
  .ch-footer__bottom .ch-container { flex-direction: column; gap: 8px; text-align: center; }

  .ch-article__title { font-size: 30px; }
  .ch-section__title { font-size: 26px; }
  .ch-page-hero__title { font-size: 30px; }
}

@media (max-width: 480px) {
  .ch-footer__inner { grid-template-columns: 1fr; }
  .ch-form-section { padding: 24px; }
}
