@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;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* TOP NAV */
.top-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-brand span { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.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;
  transition: all 0.2s;
}

/* MOBILE NAV */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
  gap: 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.mobile-nav a:last-child { border-bottom: none; }

/* HERO */
.hero-band {
  padding: 80px 0 60px;
  background: var(--canvas);
}
.hero-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content {}
.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 32px;
}
.hero-image {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-card);
}
.hero-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.hero-meta {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--canvas-soft);
}

/* SECTION GENERIC */
.section { padding: 80px 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;
  letter-spacing: -0.72px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 48px;
}
.section-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ARTICLES GRID */
.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(--rounded-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}
.article-card:hover { border-color: var(--hairline-strong); }
.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card-body { padding: 20px 24px 24px; }
.article-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.article-card-title {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}
.article-card-title a:hover { color: var(--primary); }
.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}
.article-card-date {
  font-size: 13px;
  color: var(--muted);
}

/* FEATURE SECTION */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}
.feature-card-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-strong);
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

/* INFO BAND */
.info-band {
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 80px 0;
}
.info-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.info-text h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 20px;
}
.info-text p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 16px;
}
.info-image {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.info-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* CONTACT FORM */
.contact-section { padding: 80px 0; }
.contact-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 24px;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-detail-item {
  font-size: 14px;
  color: var(--body);
}
.contact-detail-item strong {
  color: var(--ink);
  font-weight: 600;
}
.contact-form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 32px;
}
.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;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  height: 44px;
}
.form-group textarea {
  height: 100px;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}
.form-group input.error,
.form-group textarea.error {
  border-color: var(--semantic-error);
}
.form-error-msg {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}
.btn-primary {
  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;
  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-success {
  display: none;
  background: #f0faf6;
  border: 1px solid #1f8a65;
  border-radius: var(--rounded-md);
  padding: 16px;
  font-size: 14px;
  color: var(--semantic-success);
  margin-top: 16px;
}
.form-loading {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* FOOTER */
.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 {}
.footer-brand .brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-brand .brand-name span { color: var(--primary); }
.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  max-width: 220px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom-links a:hover { color: var(--ink); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  z-index: 1000;
  display: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-banner.visible { display: block; }
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-banner p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}
.cookie-banner p a { color: var(--canvas); text-decoration: underline; }
.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* ARTICLE PAGE */
.article-header { padding: 60px 0 40px; }
.article-header .container { max-width: 760px; }
.article-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 20px;
}
.article-meta {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-hero-img {
  width: 100%;
  max-width: 760px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin: 0 auto 48px;
  display: block;
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}
.article-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 8px;
}
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body blockquote {
  border-left: 3px solid var(--hairline-strong);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 16px;
  font-style: italic;
}
.info-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
}
.info-box strong { color: var(--ink); }
.article-updated {
  font-size: 13px;
  color: var(--muted-soft);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 20px;
  margin-top: 40px;
}

/* PAGE (about/privacy/terms) */
.page-header { padding: 60px 0 40px; border-bottom: 1px solid var(--hairline); }
.page-header h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
}
.page-content {
  max-width: 760px;
  padding: 48px 24px 80px;
}
.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 36px 0 14px;
}
.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}
.page-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 16px;
}
.page-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}
.page-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 8px;
}
.page-content a { color: var(--primary); }

/* DISCLAIMER */
.disclaimer-bar {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  padding: 12px 0;
}
.disclaimer-bar p {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.breadcrumb ol {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb ol li + li::before { content: '/'; margin-right: 8px; }
.breadcrumb ol a { color: var(--body); }
.breadcrumb ol a:hover { color: var(--ink); }

/* RELATED ARTICLES */
.related-section { padding: 48px 0 80px; border-top: 1px solid var(--hairline); }
.related-section h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin-bottom: 28px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-nav .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-band .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-content h1 { font-size: 34px; letter-spacing: -0.8px; }

  .info-band .container { grid-template-columns: 1fr; gap: 40px; }
  .contact-section .container { grid-template-columns: 1fr; gap: 40px; }

  .articles-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .article-header h1 { font-size: 28px; }
  .article-hero-img { height: 240px; }
  .section-title { font-size: 28px; }
  .cookie-banner-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 28px; }
}
