@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;

  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-base: 16px;
  --spacing-md: 20px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 80px;

  --font-main: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::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);
  font-family: var(--font-main);
  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 var(--spacing-base);
}

/* TOP NAVIGATION */
.top-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.nav-brand span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  list-style: none;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--body);
  transition: color 0.15s;
}

.nav-menu a:hover {
  color: var(--ink);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--spacing-xs);
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* HERO BAND */
.hero-band {
  padding: var(--spacing-section) 0;
  background: var(--canvas);
}

.hero-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.hero-headline {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  margin-top: var(--spacing-lg);
  max-width: 440px;
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--spacing-lg);
}

.hero-image-wrap {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.hero-image-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* SECTION LABELS */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--spacing-base);
  display: block;
}

/* ARTICLE GRID */
.articles-section {
  padding: var(--spacing-section) 0;
  border-top: 1px solid var(--hairline);
}

.articles-section h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: var(--spacing-xxl);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

.article-card:hover {
  border-color: var(--hairline-strong);
}

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: var(--spacing-lg);
}

.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.article-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--spacing-xs);
}

.article-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.article-card-footer {
  padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-card-date {
  font-size: 13px;
  color: var(--muted);
}

.article-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.article-link:hover {
  color: var(--primary-active);
}

/* INFO BANDS */
.info-band {
  padding: var(--spacing-section) 0;
  border-top: 1px solid var(--hairline);
}

.info-band h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: var(--spacing-xl);
}

.info-band p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: var(--spacing-base);
  max-width: 720px;
}

/* FEATURE CARDS GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-base);
  margin-top: var(--spacing-xl);
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-lg);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--spacing-xs);
}

.feature-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  max-width: none;
  margin-bottom: 0;
}

/* CONTENT ARTICLE PAGE */
.article-hero {
  padding: var(--spacing-section) 0 var(--spacing-xxl);
}

.article-hero h1 {
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: var(--spacing-lg);
}

.article-hero-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: var(--spacing-base);
  align-items: center;
}

.article-hero-img {
  margin-top: var(--spacing-xl);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.article-hero-img img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--spacing-xxl);
  padding-bottom: var(--spacing-section);
}

.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: var(--spacing-xxl) 0 var(--spacing-base);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: var(--spacing-xl) 0 var(--spacing-sm);
}

.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: var(--spacing-base);
}

.article-content ul,
.article-content ol {
  margin: var(--spacing-sm) 0 var(--spacing-base) var(--spacing-xl);
  color: var(--body);
  line-height: 1.6;
}

.article-content li {
  margin-bottom: var(--spacing-xs);
}

.article-content blockquote {
  border-left: 3px solid var(--hairline-strong);
  padding: var(--spacing-base) var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  background: var(--surface-card);
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
}

.article-content blockquote p {
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0;
}

.article-content .note-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.article-content .note-box h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}

.article-content .note-box p {
  margin-bottom: 0;
  font-size: 15px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-xl) 0;
  font-size: 14px;
}

.article-content th {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  padding: var(--spacing-sm) var(--spacing-base);
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}

.article-content td {
  border: 1px solid var(--hairline);
  padding: var(--spacing-sm) var(--spacing-base);
  color: var(--body);
}

.article-content tr:nth-child(even) td {
  background: var(--canvas-soft);
}

.article-content .img-block {
  margin: var(--spacing-xl) 0;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.article-content .img-block img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.article-content .img-caption {
  font-size: 13px;
  color: var(--muted);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--surface-card);
}

/* SIDEBAR */
.article-sidebar {
  padding-top: var(--spacing-xxl);
}

.sidebar-widget {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-base);
}

.sidebar-widget h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--spacing-base);
}

.sidebar-widget ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sidebar-widget a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.sidebar-widget a:hover {
  color: var(--primary);
}

.sidebar-widget p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* BREADCRUMB */
.breadcrumb {
  padding: var(--spacing-base) 0;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb-list a {
  color: var(--muted);
}

.breadcrumb-list a:hover {
  color: var(--ink);
}

.breadcrumb-list .sep {
  color: var(--hairline-strong);
}

/* CONTACT FORM */
.form-section {
  padding: var(--spacing-section) 0;
  border-top: 1px solid var(--hairline);
}

.form-section h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: var(--spacing-xxl);
}

.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--ink);
  height: 44px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-soft);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  height: 40px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: background 0.15s;
  align-self: flex-start;
}

.btn-primary:hover {
  background: var(--primary-active);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-success {
  display: none;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-lg);
  color: var(--semantic-success);
  font-size: 15px;
}

.form-success.show {
  display: block;
}

/* PAGE CONTENT (about, privacy, terms) */
.page-hero {
  padding: var(--spacing-section) 0 var(--spacing-xl);
}

.page-hero h1 {
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: var(--spacing-base);
}

.page-hero p {
  font-size: 18px;
  color: var(--body);
  max-width: 540px;
  line-height: 1.5;
}

.page-content {
  max-width: 760px;
  padding-bottom: var(--spacing-section);
}

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: var(--spacing-xxl) 0 var(--spacing-base);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--hairline);
}

.page-content h2:first-child {
  border-top: none;
  padding-top: 0;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: var(--spacing-xl) 0 var(--spacing-sm);
}

.page-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: var(--spacing-base);
}

.page-content ul {
  margin: var(--spacing-sm) 0 var(--spacing-base) var(--spacing-xl);
  color: var(--body);
  line-height: 1.6;
}

.page-content li {
  margin-bottom: var(--spacing-xs);
}

.page-updated {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-base);
  border-top: 1px solid var(--hairline);
}

/* 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: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
}

.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-top: var(--spacing-sm);
  max-width: 260px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--spacing-base);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-col a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--muted);
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-base) var(--spacing-xl);
  max-width: 640px;
  width: calc(100% - var(--spacing-xxl));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  z-index: 999;
  box-shadow: none;
}

#cookie-banner p {
  font-size: 14px;
  color: var(--canvas);
  line-height: 1.4;
  flex: 1;
}

#cookie-banner a {
  color: var(--muted-soft);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--spacing-xs);
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-main);
}

.btn-cookie-reject {
  background: transparent;
  color: var(--muted-soft);
  border: 1px solid var(--muted);
  border-radius: var(--rounded-md);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-main);
}

/* BADGE PILLS */
.badge-pill {
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  display: inline-block;
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: var(--spacing-xl) 0;
}

/* DISCLAIMER */
.disclaimer {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-base) var(--spacing-lg);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: var(--spacing-xl) 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-headline {
    font-size: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-band .container {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: 36px;
    letter-spacing: -0.72px;
  }

  .hero-image-wrap {
    display: none;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    padding-top: 0;
  }

  .article-hero h1 {
    font-size: 36px;
    letter-spacing: -0.72px;
  }

  .page-hero h1 {
    font-size: 36px;
    letter-spacing: -0.72px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    padding: var(--spacing-base);
    gap: var(--spacing-base);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .top-nav {
    position: relative;
  }

  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-base);
  }
}

@media (max-width: 640px) {
  .hero-band {
    padding: 48px 0;
  }

  .articles-section,
  .info-band,
  .form-section {
    padding: 48px 0;
  }

  .articles-section h2,
  .info-band h2,
  .form-section h2 {
    font-size: 28px;
    letter-spacing: -0.5px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
