@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;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --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 {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--canvas);
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* NAV */
.site-nav {
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

.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.5px;
}

.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(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

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

.hero-label {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-img-wrap {
  margin-top: 48px;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

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

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  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-subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  max-width: 640px;
  margin-bottom: 48px;
}

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

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

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

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

.card-img {
  border-radius: var(--rounded-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-img img {
  width: 100%;
  height: 200px;
  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;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 12px;
}

.card-title a:hover {
  color: var(--primary);
}

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

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

/* ARTICLE CARD */
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card-img {
  overflow: hidden;
}

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

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

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-body .card-title {
  flex: 1;
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}

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

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

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb-sep {
  color: var(--hairline-strong);
}

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

.article-header .hero-label {
  margin-bottom: 16px;
}

.article-title {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 760px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-body {
  max-width: 720px;
}

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

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
  line-height: 1.3;
}

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

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

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

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

.article-body blockquote {
  border-left: 3px solid var(--hairline-strong);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--canvas-soft);
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
}

.article-body blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--body-strong);
}

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

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

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

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

.info-box-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas-soft);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
  line-height: 1.4;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* FORM */
.contact-form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 40px;
  max-width: 600px;
}

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

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

.form-input {
  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;
  transition: border-color 0.15s;
  outline: none;
}

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

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

.form-submit {
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  height: 44px;
  border: none;
  border-radius: var(--rounded-md);
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: #e8f5f0;
  color: var(--semantic-success);
  border: 1px solid #b3dece;
  display: block;
}

.form-message.error {
  background: #fde8ec;
  color: var(--semantic-error);
  border: 1px solid #f5b3c0;
  display: block;
}

/* COOKIE BANNER */
.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 var(--body);
}

.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 {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  min-width: 280px;
}

.cookie-text a {
  color: var(--canvas);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-cookie-accept:hover {
  background: var(--primary-active);
}

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas-soft);
  border: 1px solid var(--body);
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}

.btn-cookie-reject:hover {
  border-color: var(--canvas);
}

/* CTA BAND */
.cta-band {
  padding: 96px 0;
  background-color: var(--canvas);
  border-top: 1px solid var(--hairline);
  text-align: center;
}

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

.cta-band-text {
  font-size: 16px;
  color: var(--body);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* FOOTER */
.site-footer {
  background-color: 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: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin-top: 12px;
  max-width: 260px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-bottom-links a:hover {
  color: var(--ink);
}

/* PAGE HEADER */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 48px;
}

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

.page-desc {
  font-size: 18px;
  color: var(--body);
  max-width: 640px;
  line-height: 1.5;
}

/* PROSE */
.prose h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
  line-height: 1.25;
}

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

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

.prose ul, .prose ol {
  margin: 0 0 16px 24px;
}

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

/* SIDEBAR LAYOUT */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

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

.sidebar-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-links a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

.sidebar-links a:hover {
  color: var(--ink);
}

/* MOBILE NAV */
.mobile-menu {
  display: none;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 16px 24px 24px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu ul a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
}

/* DISCLAIMER */
.disclaimer-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 24px 0;
}

/* RELATED ARTICLES */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  border-top: 2px solid var(--hairline);
  padding-top: 16px;
}

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

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

.related-card-title a:hover {
  color: var(--primary);
}

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

/* LOADING SPINNER */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--canvas);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .hero-title {
    font-size: 36px;
    letter-spacing: -0.8px;
  }
  .hero-desc {
    font-size: 16px;
  }
  .hero-img-wrap img {
    height: 260px;
  }
  .section-title {
    font-size: 28px;
  }
  .article-title {
    font-size: 32px;
  }
  .page-title {
    font-size: 32px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-form-wrap {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .hero-band {
    padding: 48px 0 48px;
  }
  .section {
    padding: 48px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-band-title {
    font-size: 28px;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
