: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;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --section: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }
ul { list-style: none; }

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

/* HEADER */
.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;
  height: 64px;
  gap: 32px;
}

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

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 8px; align-items: center; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--ink);
  background: var(--surface-strong);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* BUTTONS */
.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: 8px;
  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: 8px;
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--surface-strong); color: var(--ink); }

/* HERO */
.hero {
  padding: var(--section) 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  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 h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 20px;
}

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

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* SECTIONS */
.section { padding: var(--section) 0; }
.section-bordered { border-bottom: 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;
  letter-spacing: -0.72px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}

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

/* ARTICLE CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

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

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body { padding: 24px; }

.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);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

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

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

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}
.card-link:hover { color: var(--primary-active); }

/* INFO BAND */
.info-band {
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.info-item {
  padding: 40px 32px;
  border-right: 1px solid var(--hairline);
}
.info-item:last-child { border-right: none; }

.info-number {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 8px;
}

.info-text {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* ARTICLE PAGE */
.article-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

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

.article-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 4px 10px;
  border-radius: 9999px;
}

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

.article-title {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 760px;
}

.article-lead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.6;
  max-width: 680px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  padding: 64px 0;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 48px 0 16px;
  line-height: 1.25;
}
.article-body h2:first-child { margin-top: 0; }

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

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

.article-body ul, .article-body ol {
  margin: 0 0 20px 0;
  padding-left: 0;
}

.article-body ul li, .article-body ol li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  padding: 4px 0 4px 20px;
  position: relative;
}

.article-body ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.article-body ol {
  counter-reset: ol-counter;
  list-style: none;
}
.article-body ol li {
  counter-increment: ol-counter;
}
.article-body ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  color: var(--muted);
  font-weight: 500;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin: 32px 0;
}
.article-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.article-img figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-sans);
}

.article-sidebar { padding-top: 0; }

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

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

.sidebar-card ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a {
  font-size: 14px;
  color: var(--body);
}
.sidebar-card ul li a:hover { color: var(--primary); }

/* INFO BOX */
.info-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
}

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

.info-box p {
  margin-bottom: 0;
}

/* CONTACT FORM */
.contact-section { padding: var(--section) 0; border-top: 1px solid var(--hairline); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-intro h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-bottom: 12px;
}

.form-intro p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.form-group input, .form-group textarea {
  background: var(--surface-card);
  color: var(--ink);
  font-size: 16px;
  font-family: var(--font-sans);
  padding: 12px 16px;
  height: 44px;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--ink);
}

.form-error {
  font-size: 13px;
  color: var(--semantic-error);
}

#form-status {
  font-size: 14px;
  color: var(--semantic-success);
  min-height: 20px;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.breadcrumb ol { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb li {
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb li::after { content: '/'; margin-left: 8px; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li:last-child { color: var(--body); }

/* PAGE HEADER */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}
.page-header h1 {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 12px;
}
.page-header p {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
}

/* STATIC PAGES */
.static-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0;
}
.static-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 12px;
}
.static-content h2:first-child { margin-top: 0; }
.static-content p, .static-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 16px;
}
.static-content ul { padding-left: 20px; list-style: disc; }
.static-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* FOOTER */
.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;
}

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

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

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

.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(--primary); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span {
  font-size: 13px;
  color: var(--muted);
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
}
.footer-links a:hover { color: var(--primary); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-card);
  border-top: 1px solid var(--hairline-strong);
  z-index: 200;
  padding: 20px 24px;
}

.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: var(--body);
}

.cookie-inner a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: var(--section) 0;
}

.about-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.about-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-bottom: 16px;
}

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

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-item { border-right: none; border-bottom: 1px solid var(--hairline); }
  .info-item:last-child { border-bottom: none; }
}

@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);
    padding: 16px 24px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { display: block; padding: 10px 12px; }
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 26px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .article-title { font-size: 28px; }
  .page-header h1 { font-size: 28px; }
}
