@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;
  --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;
}

html { font-size: 16px; 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;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

nav.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1;
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--primary); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s;
}

.nav-mobile { display: none; }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
  }
  .nav-mobile.open { display: block; }
  .nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
  .nav-mobile a { font-size: 15px; font-weight: 500; color: var(--ink); }
}

.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 700px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
}

.hero-image-wrap {
  margin-top: 48px;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  max-height: 420px;
}

.hero-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

@media (max-width: 639px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 32px; letter-spacing: -0.8px; }
  .hero-sub { font-size: 16px; }
  .hero-image-wrap { max-height: 220px; }
  .hero-image-wrap img { height: 220px; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero h1 { font-size: 44px; }
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.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;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
}

.section-divider { border: none; border-top: 1px solid var(--hairline); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

@media (max-width: 639px) { .card-grid { grid-template-columns: 1fr; } }
@media (min-width: 640px) and (max-width: 1023px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }

.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-img {
  border-radius: var(--rounded-md);
  overflow: hidden;
  margin-bottom: 16px;
  height: 180px;
}

.card-img img { width: 100%; height: 100%; 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: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}

.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--primary); }

.card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding: 80px 0;
}

@media (max-width: 1023px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { order: -1; }
}

.article-header { margin-bottom: 40px; }

.article-header .section-label { margin-bottom: 12px; }

.article-header h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 16px;
}

.article-header .article-sub {
  font-size: 18px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-featured-img {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 40px;
}

.article-featured-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.article-body { font-size: 16px; color: var(--body); line-height: 1.6; }

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 40px 0 16px;
  line-height: 1.25;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
  line-height: 1.4;
}

.article-body p { margin-bottom: 18px; }

.article-body ul, .article-body ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.article-body li { margin-bottom: 8px; }

.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.article-body strong { color: var(--ink); font-weight: 600; }

.info-block {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  margin: 28px 0;
}

.info-block-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.info-block p { font-size: 15px; margin: 0; color: var(--body); }

.table-wrap { overflow-x: auto; margin: 24px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table th {
  background: var(--canvas-soft);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-strong);
  border-right: 1px solid var(--hairline);
  font-size: 13px;
  letter-spacing: 0.3px;
}

table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-soft);
  border-right: 1px solid var(--hairline-soft);
  color: var(--body);
  vertical-align: top;
}

table tr:last-child td { border-bottom: none; }
table th:last-child, table td:last-child { border-right: none; }

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.sidebar-links li { padding-bottom: 12px; border-bottom: 1px solid var(--hairline-soft); }
.sidebar-links li:last-child { padding-bottom: 0; border-bottom: none; }

.sidebar-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.sidebar-links a:hover { color: var(--primary); }

.related-posts { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--hairline); }

.related-posts .section-title { font-size: 26px; margin-bottom: 24px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 639px) { .related-grid { grid-template-columns: 1fr; } }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

@media (max-width: 639px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-item {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}

.feature-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-item p { font-size: 14px; color: var(--body); line-height: 1.5; }

.contact-section {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-section p { font-size: 15px; color: var(--body); margin-bottom: 28px; }

.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(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
}

.form-group textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-soft);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  font-weight: 500;
}

.form-message.success {
  background: #edf7f3;
  color: var(--success);
  border: 1px solid #b8e0d2;
  display: block;
}

.page-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 0;
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.8px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  color: var(--body);
  max-width: 500px;
}

.prose { padding: 60px 0; }

.prose h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin: 40px 0 14px;
  line-height: 1.25;
}

.prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.prose p { font-size: 15px; color: var(--body); line-height: 1.6; margin-bottom: 16px; }

.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose li { font-size: 15px; color: var(--body); line-height: 1.6; margin-bottom: 6px; }

.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.prose strong { color: var(--ink); font-weight: 600; }

.prose-max { max-width: 760px; }

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--muted-soft); }

.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;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  z-index: 9999;
  display: none;
  border-top: 1px solid #3a3930;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text { font-size: 14px; line-height: 1.5; color: #d9d8d0; }
.cookie-text a { color: var(--canvas); text-decoration: underline; text-underline-offset: 2px; }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  height: 36px;
}

.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid #5a5852;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  height: 36px;
}

.btn-cookie-reject:hover { border-color: #807d72; }

footer.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;
}

@media (max-width: 767px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 479px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand .nav-logo { font-size: 16px; margin-bottom: 12px; display: block; }

.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 260px; }

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a { font-size: 14px; color: var(--body); transition: color 0.15s; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: var(--muted); }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-primary.loading .spinner { display: inline-block; }
.btn-primary.loading .btn-text { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.disclaimer {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 24px 0;
}

.toc {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc ol { padding-left: 18px; margin: 0; }
.toc li { font-size: 14px; line-height: 1.5; margin-bottom: 6px; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--primary); }

.two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 80px 0;
}

@media (max-width: 767px) {
  .two-col-section { grid-template-columns: 1fr; padding: 48px 0; gap: 32px; }
}

.two-col-section img {
  width: 100%;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  object-fit: cover;
  height: 320px;
}

.steps-list { list-style: none; counter-reset: steps; margin-top: 24px; }

.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.steps-list li::before {
  content: counter(steps);
  min-width: 28px;
  height: 28px;
  background: var(--surface-strong);
  color: var(--ink);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.steps-list li .step-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.steps-list li .step-content p { font-size: 14px; color: var(--body); line-height: 1.5; margin: 0; }
