@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;
  --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;
}

*, *::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: '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: 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: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-nav .nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.site-nav .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);
  transition: color 0.15s;
}

.nav-links a:hover {
  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;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
}

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

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

.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
}

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

.hero-label {
  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: var(--rounded-pill);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: var(--body);
  max-width: 580px;
  margin-bottom: 32px;
  line-height: 1.6;
}

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

/* HERO IMAGE */
.hero-image {
  margin-top: 48px;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

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

.hero-image figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-card);
  border-top: 1px solid var(--hairline-soft);
}

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

.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: 580px;
  line-height: 1.6;
}

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

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

.card:hover {
  border-color: var(--hairline-strong);
}

.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: 3px 8px;
  border-radius: var(--rounded-pill);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.card-link:hover {
  color: var(--primary-active);
}

/* ARTICLE CARD */
.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: 20px 24px 24px;
}

.article-card-body .card-tag {
  margin-bottom: 10px;
}

.article-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
}

.article-card-body p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
}

/* TWO-COLUMN LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

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

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

.two-col-img {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.two-col-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* DATA TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  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 14px;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
}

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

.table-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  margin-top: 24px;
}

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

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

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

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

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

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

.article-body {
  padding: 48px 0 80px;
}

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

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

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

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

.article-content ul,
.article-content ol {
  padding-left: 20px;
  margin-bottom: 18px;
}

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

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

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

.article-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.article-image figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-card);
  border-top: 1px solid var(--hairline-soft);
}

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  margin: 24px 0;
}

.info-box p {
  font-size: 14px;
  color: var(--body);
  margin: 0;
}

.ref-list {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

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

.ref-list ol {
  padding-left: 20px;
}

.ref-list li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.ref-list a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.contact-form {
  max-width: 540px;
  margin-top: 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;
  height: 44px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s;
  outline: none;
}

.form-group textarea {
  height: 110px;
  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);
}

.field-error {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 5px;
  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-msg {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  color: var(--semantic-success);
}

/* 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: 32px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 10px;
  max-width: 240px;
}

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

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-col 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;
  flex-wrap: wrap;
  gap: 12px;
}

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

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 640px;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(38,37,30,0.08);
  display: none;
}

#cookie-banner.show {
  display: block;
}

#cookie-banner p {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 16px;
  line-height: 1.55;
}

#cookie-banner p a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept {
  background: var(--ink);
  color: var(--canvas);
  border: none;
  border-radius: var(--rounded-md);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--body);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* ABOUT / PAGES */
.page-header {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.15;
}

.page-header p {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.6;
}

.page-body {
  padding: 48px 0 80px;
  max-width: 760px;
}

.page-body h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin: 36px 0 12px;
  line-height: 1.3;
}

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

.page-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

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

.page-body a {
  color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.8px;
  }

  .section-title {
    font-size: 26px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .site-nav {
    position: relative;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-header h1 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  #cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
