:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --primary: #f54e00;
  --primary-active: #d04200;
  --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;
}

*, *::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;
  line-height: 1.5;
  font-weight: 400;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }

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

.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;
  gap: 24px;
}

.site-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  padding: 6px 12px;
  border-radius: var(--rounded-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface-strong);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--rounded-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hero-band {
  padding: 80px 0;
  background: var(--canvas);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.hero-title {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-img-wrap {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4/3;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 80px 0;
}

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

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

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

.section-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  max-width: 600px;
  margin-bottom: 48px;
}

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

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

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

.article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .article-card-img img {
  transform: scale(1.02);
}

.article-card-body {
  padding: 24px;
}

.article-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(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 12px;
}

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

.article-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 16px;
}

.article-card-meta {
  font-size: 13px;
  color: var(--muted);
}

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

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

.feature-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-md);
  background: var(--surface-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

.btn-primary {
  display: inline-flex;
  align-items: 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;
  transition: background 0.15s;
  text-decoration: none;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: 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;
  transition: background 0.15s;
  text-decoration: none;
}

.btn-secondary:hover { background: var(--surface-strong); }

.article-page {
  padding: 64px 0 80px;
}

.article-page-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-meta-tag {
  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;
}

.article-meta-date {
  font-size: 13px;
  color: var(--muted);
}

.article-title {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 16px;
}

.article-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 32px;
  border-left: 3px solid var(--hairline-strong);
  padding-left: 20px;
}

.article-hero-img {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 40px;
}

.article-hero-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.article-hero-img figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
}

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

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

.article-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 18px;
}

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.article-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 6px;
}

.article-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content figure {
  margin: 32px 0;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.article-content figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-content figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
}

.article-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-box-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-toc a {
  display: block;
  font-size: 14px;
  color: var(--body);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition: color 0.15s;
}

.sidebar-toc a:last-child { border-bottom: none; }
.sidebar-toc a:hover { color: var(--ink); }

.sidebar-related a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition: color 0.15s;
}

.sidebar-related a:last-child { border-bottom: none; }
.sidebar-related a:hover { color: var(--ink); }

.page-content {
  padding: 64px 0 80px;
}

.page-title {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 32px;
}

.page-body h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin: 36px 0 14px;
}

.page-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}

.page-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 16px;
}

.page-body ul, .page-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 6px;
}

.page-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 32px;
  max-width: 560px;
  margin-top: 48px;
}

.contact-form-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 24px;
}

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

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

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

.form-control:focus {
  border-color: var(--ink);
}

textarea.form-control {
  height: auto;
  min-height: 110px;
  resize: vertical;
}

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

.form-success {
  display: none;
  font-size: 15px;
  color: var(--semantic-success);
  background: #edf7f3;
  border: 1px solid #b5dece;
  border-radius: var(--rounded-md);
  padding: 14px 18px;
  margin-top: 20px;
}

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

.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 48px 0;
}

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-link {
  font-size: 14px;
  color: var(--body);
  line-height: 1.8;
  transition: color 0.15s;
}

.footer-link:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 24px;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  max-width: 560px;
  width: calc(100% - 48px);
}

.cookie-inner {
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--muted-soft); }

.info-block {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  margin: 24px 0;
}

.info-block-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.info-block p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .hero-title { font-size: 44px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .article-page-inner { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .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);
    flex-direction: column;
    padding: 12px 16px;
    gap: 2px;
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 10px 12px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; letter-spacing: -0.8px; }
  .section-title { font-size: 28px; }
  .articles-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .article-title { font-size: 30px; }
  .page-title { font-size: 30px; }
  .contact-form { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
  .cookie-inner { flex-direction: column; gap: 14px; }
}
