: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;
  --success:        #1f8a65;
  --error:          #cf2d56;
  --rounded-xs:     4px;
  --rounded-sm:     6px;
  --rounded-md:     8px;
  --rounded-lg:     12px;
  --rounded-xl:     16px;
  --rounded-pill:   9999px;
  --section:        80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1;
}

.wordmark span { color: var(--primary); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  line-height: 1;
}

.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s;
  line-height: 1;
}

.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.hero-band {
  padding: var(--section) 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}

.hero-inner { max-width: 760px; }

.hero-label {
  display: inline-flex;
  align-items: center;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  margin-bottom: 24px;
}

.hero-h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-image {
  margin-top: 64px;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.section { padding: var(--section) 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  margin-bottom: 20px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-body {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  line-height: 1.6;
}

.divider { border: none; border-top: 1px solid var(--hairline); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  transition: border-color 0.15s;
}

.card:hover { border-color: var(--hairline-strong); }

.card-image {
  border-radius: var(--rounded-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
}

.card-body {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.card-link:hover { color: var(--primary-active); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.feature-item {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-strong);
  border-radius: var(--rounded-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-body { font-size: 14px; color: var(--body); line-height: 1.6; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col-image {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.two-col-image img { width: 100%; height: 360px; object-fit: cover; }

.two-col-content .section-label { display: inline-flex; }

.two-col-content .section-title { margin-top: 0; }

.article-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-meta time { font-size: 13px; }

.article-h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 820px;
}

.article-lead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 32px;
}

.article-hero-image {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-top: 40px;
}

.article-hero-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.article-hero-image figcaption {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
}

.article-body {
  padding: 64px 0;
}

.article-content {
  max-width: 720px;
}

.article-content h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 48px 0 16px;
  line-height: 1.25;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 32px 0 12px;
  line-height: 1.3;
}

.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 16px 0 20px 20px;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 8px;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(245,78,0,0.3);
}

.article-content a:hover { color: var(--primary-active); }

.article-content blockquote {
  border-left: 3px solid var(--surface-strong);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--canvas-soft);
  border-radius: 0 var(--rounded-sm) var(--rounded-sm) 0;
}

.article-content blockquote p {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0;
}

.article-inline-image {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin: 40px 0;
}

.article-inline-image img { width: 100%; height: 320px; object-fit: cover; }

.article-inline-image figcaption {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
}

.article-aside {
  position: sticky;
  top: 84px;
  align-self: start;
}

.toc-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.toc-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc-card ul { padding: 0; }

.toc-card li { margin-bottom: 8px; }

.toc-card a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.toc-card a:hover { color: var(--ink); }

.related-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
}

.related-card .toc-title { margin-bottom: 16px; }

.related-link {
  display: block;
  font-size: 14px;
  color: var(--body);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
  line-height: 1.4;
}

.related-link:last-child { border-bottom: none; }

.related-link:hover { color: var(--ink); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.data-table th {
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--canvas-soft); }

.contact-section { padding: var(--section) 0; background: var(--canvas); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.contact-intro h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.contact-intro p { font-size: 16px; color: var(--body); line-height: 1.7; }

.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 32px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-soft); }

.form-submit { width: 100%; height: 44px; font-size: 15px; }

.form-message {
  display: none;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  margin-top: 16px;
}

.form-message.success {
  background: #d4edda;
  color: var(--success);
  border: 1px solid #c3e6cb;
}

.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-sub {
  font-size: 18px;
  color: var(--body);
  line-height: 1.6;
}

.page-body {
  padding: 64px 0;
  max-width: 760px;
}

.page-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 40px 0 12px;
}

.page-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.page-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-body ul { margin: 12px 0 16px 20px; list-style: disc; }
.page-body ul li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 6px; }

.page-body a { color: var(--primary); text-decoration: underline; }
.page-body a:hover { color: var(--primary-active); }

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
  max-width: 240px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul { padding: 0; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: underline;
}

.footer-bottom a:hover { color: var(--ink); }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 16px 24px;
  z-index: 999;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p { font-size: 14px; color: #d4d2cc; line-height: 1.5; }

.cookie-inner a { color: var(--canvas); text-decoration: underline; }

.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

.cookie-actions .btn-primary { background: var(--primary); }

.cookie-actions .btn-secondary {
  background: transparent;
  color: var(--canvas);
  border-color: rgba(255,255,255,0.3);
}

.cookie-actions .btn-secondary:hover { border-color: rgba(255,255,255,0.7); color: var(--canvas); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.breadcrumb a { font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { font-size: 13px; color: var(--muted-soft); }

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--rounded-xs);
}

.loading-overlay {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--hairline);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .hero-h1 { font-size: 56px; letter-spacing: -1.5px; }
  .cards-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .hero-h1 { font-size: 40px; letter-spacing: -1px; }
  .section-title { font-size: 28px; }
  .page-h1, .article-h1 { font-size: 34px; letter-spacing: -0.8px; }
  .cards-grid, .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); }
  .site-nav li:last-child a { border-bottom: none; }
  .header-inner { position: relative; }
  .hero-image img { height: 260px; }
  .two-col-image img { height: 260px; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 32px; letter-spacing: -0.72px; }
  .hero-sub { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
}
