@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

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

:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede9e2;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --hairline: #d3cec6;
  --hairline-soft: #e5e1da;
  --inverse-canvas: #000000;
  --inverse-ink: #ffffff;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--canvas);
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========== NAV ========== */

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

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

.nav-brand {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.nav-contact-btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink) !important;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 7px 16px;
  transition: border-color 0.15s !important;
}

.nav-contact-btn:hover {
  border-color: var(--ink) !important;
  text-decoration: none !important;
}

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

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

.nav-mobile {
  display: none;
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 12px 32px 20px;
}

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

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

.nav-mobile a {
  display: block;
  font-size: 15px;
  color: var(--ink-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.nav-mobile a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ========== HERO ========== */

.hero {
  padding: 80px 0 72px;
  background-color: var(--canvas);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -1.4px;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 0;
}

.hero-image-card {
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

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

/* ========== SECTION TITLES ========== */

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--surface-2);
  padding: 80px 0;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-title-sm {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 620px;
}

/* ========== ARTICLE CARDS ========== */

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

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

.article-card:hover {
  border-color: var(--ink-muted);
}

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

.article-card-body {
  padding: 20px 24px 24px;
}

.article-card-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin-bottom: 10px;
}

.article-card-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-card-meta {
  font-size: 12px;
  color: var(--ink-subtle);
}

/* ========== INFO CARDS ========== */

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

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

.info-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.info-card-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.info-card-text {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ========== CONTACT FORM ========== */

.contact-section {
  padding: 80px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-detail {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.contact-form {
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  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-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s;
  min-height: 44px;
}

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

.form-control::placeholder {
  color: var(--ink-subtle);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ink);
  color: var(--inverse-ink);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  min-height: 44px;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.form-msg.success {
  background-color: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ========== FOOTER ========== */

.site-footer {
  background-color: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-brand-desc {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.55;
  max-width: 240px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--ink-subtle);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--ink-subtle);
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--ink-subtle);
  max-width: 480px;
  text-align: right;
  line-height: 1.4;
}

/* ========== ARTICLE PAGE ========== */

.article-hero {
  padding: 56px 0 48px;
}

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

.article-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

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

.article-title {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.0px;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 800px;
}

.article-lead {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 680px;
  margin-bottom: 36px;
}

.article-cover {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 56px;
}

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

.article-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin-bottom: 14px;
  margin-top: 40px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  margin-top: 28px;
}

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

.article-content ul, .article-content ol {
  margin: 0 0 18px 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.article-content li {
  margin-bottom: 6px;
}

.article-content .data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.article-content .data-table th {
  background: var(--surface-2);
  text-align: left;
  padding: 10px 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}

.article-content .data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--ink-muted);
}

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

.article-content blockquote {
  border-left: 3px solid var(--hairline);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--surface-1);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content blockquote p {
  margin: 0;
  color: var(--ink-muted);
  font-style: italic;
}

.article-content .highlight-box {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
}

.article-content .highlight-box p {
  margin: 0;
}

.article-sidebar {
  position: sticky;
  top: 72px;
}

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

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

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

.sidebar-toc a {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  line-height: 1.45;
  display: block;
  padding: 2px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-toc li:last-child a {
  border-bottom: none;
}

.sidebar-toc a:hover {
  color: var(--ink);
  text-decoration: none;
}

.sidebar-refs a {
  font-size: 13px;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 8px;
  line-height: 1.4;
  word-break: break-word;
}

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

.article-image-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 28px 0;
}

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

.article-image-caption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ink-subtle);
  line-height: 1.4;
}

/* ========== ABOUT / STATIC PAGES ========== */

.page-hero {
  padding: 56px 0 48px;
}

.page-title {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1.0px;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-lead {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 620px;
}

.page-content {
  padding-bottom: 80px;
  max-width: 760px;
}

.page-content h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.page-content h2:first-child {
  margin-top: 0;
}

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

.page-content ul, .page-content ol {
  margin: 0 0 16px 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.page-content li {
  margin-bottom: 5px;
}

/* ========== COOKIE BANNER ========== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--inverse-canvas);
  color: var(--inverse-ink);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}

.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
}

.cookie-text a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

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

.btn-cookie-accept {
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  min-height: 40px;
}

.btn-cookie-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  min-height: 40px;
}

.btn-cookie-reject:hover {
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
}

/* ========== BREADCRUMB ========== */

.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--ink-subtle);
  border-bottom: 1px solid var(--hairline-soft);
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

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

.breadcrumb span {
  margin: 0 6px;
  color: var(--hairline);
}

/* ========== DIVIDER ========== */

.divider {
  height: 1px;
  background: var(--hairline-soft);
  margin: 0;
}

/* ========== RELATED ARTICLES ========== */

.related-section {
  padding: 56px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

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

.related-card:hover {
  border-color: var(--ink-muted);
  text-decoration: none;
}

.related-card-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.related-card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

/* ========== RESPONSIVE ========== */

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

  .info-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .article-body {
    grid-template-columns: 1fr 260px;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile {
    padding: 12px 20px 20px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-title {
    font-size: 36px;
    letter-spacing: -0.8px;
  }

  .hero-image-card img {
    height: 240px;
  }

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

  .info-card-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer-disclaimer {
    text-align: left;
    max-width: none;
  }

  .section, .section-alt {
    padding: 56px 0;
  }

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

  .article-title {
    font-size: 30px;
    letter-spacing: -0.5px;
  }

  .article-body {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .article-sidebar {
    position: static;
    order: -1;
  }

  .article-cover img {
    height: 240px;
  }

  .page-title {
    font-size: 30px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
  }

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

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

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