@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --ink: #26251e;
  --body-text: #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;
  --success: #1f8a65;
  --error: #cf2d56;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 9999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--canvas);
  color: var(--body-text);
  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; }

.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.hero-band {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}
.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.hero-h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 820px;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-updated {
  font-size: 13px;
  color: var(--muted);
}
.hero-image {
  margin-top: 56px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.hero-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}
.section-last { border-bottom: none; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-heading {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 48px;
}

.article-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(--r-lg);
  overflow: hidden;
  transition: border-color 0.15s ease;
  display: block;
  color: inherit;
}
.article-card:hover { border-color: var(--hairline-strong); color: inherit; }
.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.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;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 10px;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.55;
}

.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { margin: 0 8px; }

.article-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}
.article-tag-pill {
  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: var(--r-pill);
  padding: 4px 10px;
  margin-bottom: 16px;
}
.article-h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.44px;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 760px;
}
.article-lead {
  font-size: 18px;
  color: var(--body-text);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 20px;
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  padding: 64px 0;
}
.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
}
.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-text);
  margin-bottom: 20px;
}
.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--body-text);
  line-height: 1.75;
}
.article-content li { margin-bottom: 8px; }
.article-content figure { margin: 32px 0; }
.article-content figure img {
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  width: 100%;
}
.article-content figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

.article-sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.sidebar-card h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
}
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { color: var(--ink); font-size: 14px; }
.sidebar-card ul li a:hover { color: var(--primary); }

.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-intro h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}
.contact-intro p { font-size: 16px; color: var(--body-text); line-height: 1.7; margin-bottom: 12px; }

.contact-form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 12px 16px;
  height: 44px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.form-control:focus { outline: none; border-color: var(--ink); }
.form-control::placeholder { color: var(--muted-soft); }
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
}
.btn-primary:hover { background: var(--primary-active); }
.form-loading {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}
.form-success {
  display: none;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: var(--success);
  font-size: 14px;
  margin-top: 14px;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--hairline);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 16px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 999;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner p { flex: 1; color: var(--canvas-soft); }
.cookie-banner a { color: var(--primary); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--r-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.btn-cookie-reject {
  background: transparent;
  color: var(--canvas-soft);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.footer-brand-name span { color: var(--primary); }
.footer-brand p {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.6;
  margin-top: 10px;
  max-width: 200px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--body-text);
  transition: color 0.15s ease;
}
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.page-header {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--hairline);
}
.page-h1 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 12px;
}
.page-updated { font-size: 13px; color: var(--muted); }
.page-body { padding: 64px 0; }
.page-content { max-width: 720px; }
.page-content h2 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 14px;
}
.page-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-text);
  margin-bottom: 18px;
}
.page-content ul {
  padding-left: 24px;
  margin-bottom: 18px;
  color: var(--body-text);
  line-height: 1.75;
}
.page-content li { margin-bottom: 6px; }

@media (max-width: 1024px) {
  .hero-h1 { font-size: 56px; letter-spacing: -1.5px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { position: static; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    flex-direction: column;
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    gap: 16px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .hero-h1 { font-size: 40px; letter-spacing: -1px; }
  .article-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 28px; }
  .article-h1 { font-size: 32px; letter-spacing: -0.5px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .contact-form-wrap { padding: 24px; }
  .hero-image img { height: 260px; }
}
@media (max-width: 640px) {
  .hero-band, .section { padding: 48px 0; }
  .hero-h1 { font-size: 32px; letter-spacing: -0.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-h1 { font-size: 28px; }
}
