*, *::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;
  --success: #1f8a65;
  --error: #cf2d56;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: 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;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary); }

img { display: block; max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--ink); }
.logo-dot { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background-color 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-strong); }
.nav-links a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.2s;
}

.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  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(--radius-pill);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4/3;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section { padding: 80px 0; }
.section-alt { background: var(--canvas-soft); }
.section-bordered { border-top: 1px solid var(--hairline); }

.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;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.72px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  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(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}
.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.03); }

.article-card-body { padding: 24px; }

.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 20px;
}

.article-card-meta {
  font-size: 13px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-secondary { background: var(--surface-card); color: var(--ink); border: 1px solid var(--hairline-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); background: var(--surface-card); }

.article-page { padding: 60px 0 80px; }

.article-page .container { max-width: 800px; }

.article-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.article-breadcrumb a { color: var(--muted); }
.article-breadcrumb a:hover { color: var(--primary); }
.article-breadcrumb span { margin: 0 6px; }

.article-header { margin-bottom: 40px; }

.article-tag {
  display: inline-flex;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.84px;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

.article-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 48px;
  aspect-ratio: 16/7;
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body { font-size: 16px; color: var(--body); line-height: 1.7; }

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  line-height: 1.25;
  margin: 48px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 32px 0 12px;
}

.article-body p { margin-bottom: 20px; }

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body li { margin-bottom: 8px; }

.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--primary-active); }

.article-body figure {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.article-body figure img { width: 100%; height: auto; }
.article-body figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
}

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 15px;
}

.info-box-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.data-table-wrap { overflow-x: auto; margin: 32px 0; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--body);
}
.data-table th {
  background: var(--canvas-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}
.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline-soft);
}
.data-table tr:last-child td { border-bottom: none; }

.article-related { margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--hairline); }
.article-related .section-label { margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.page-content { padding: 60px 0 80px; }
.page-content .container { max-width: 760px; }

.page-header { margin-bottom: 40px; }
.page-header h1 {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.84px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-header .page-meta { font-size: 13px; color: var(--muted); }

.page-body { font-size: 16px; color: var(--body); line-height: 1.7; }
.page-body h2 {
  font-size: 22px;
  font-weight: 600;
  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 { margin-bottom: 18px; }
.page-body ul, .page-body ol { padding-left: 24px; margin-bottom: 18px; }
.page-body li { margin-bottom: 6px; }
.page-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.contact-form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 48px;
}
.contact-form-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.22px;
  margin-bottom: 8px;
}
.contact-form-sub { font-size: 14px; color: var(--muted); margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.15s;
}
.form-group input { height: 44px; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-soft); }

.form-submit-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.form-status {
  font-size: 14px;
  display: none;
}
.form-status.success { color: var(--success); display: block; }
.form-status.loading { color: var(--muted); display: block; }

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-desc { font-size: 14px; color: var(--body); line-height: 1.6; }
.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 { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--body); }
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  z-index: 999;
  display: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text { font-size: 14px; color: var(--canvas-soft); flex: 1; min-width: 200px; line-height: 1.5; }
.cookie-text a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.btn-cookie-accept:hover { background: var(--primary-active); }
.btn-cookie-reject {
  background: transparent;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.btn-cookie-reject:hover { color: var(--canvas); border-color: rgba(255,255,255,0.4); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--canvas-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.feature-card p { font-size: 14px; color: var(--body); line-height: 1.6; }

.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: 80px; }
.about-intro-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline); }
.about-intro-img img { width: 100%; height: auto; }

@media (max-width: 1024px) {
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 30px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-img { aspect-ratio: 16/9; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 16px; }
  .site-nav { position: relative; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 32px; letter-spacing: -0.64px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .articles-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 30px; }
  .page-header h1 { font-size: 30px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-form-wrap { padding: 24px; }
}
