:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede8e0;
  --hairline: #d3cec6;
  --hairline-soft: #e5e0d9;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --accent: #ff5600;
  --success: #2d7a4f;
  --error: #b91c1c;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-xxl: 24px;
  --sp-xxs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-section: 88px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max-w: 1280px;
  --nav-h: 56px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

p {
  line-height: 1.6;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0;
  display: block;
  margin-bottom: var(--sp-sm);
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.caption {
  font-size: 12px;
  color: var(--ink-tertiary);
  line-height: 1.4;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.container-sm {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

section {
  padding: var(--sp-section) 0;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

.nav-logo {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-xs);
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: var(--sp-md) var(--sp-xl);
  z-index: 99;
  flex-direction: column;
  gap: 0;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.hero {
  padding: var(--sp-section) 0 calc(var(--sp-section) * 0.6);
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -1.6px;
  line-height: 1.08;
  margin-bottom: var(--sp-lg);
}

.hero .lead {
  margin-bottom: var(--sp-xl);
  max-width: 540px;
}

.hero-image {
  margin-top: var(--sp-xl);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background-color: var(--surface-1);
}

.hero-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.section-header {
  margin-bottom: var(--sp-xl);
}

.section-header h2 {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.8px;
  margin-bottom: var(--sp-sm);
}

.section-header p {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 520px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.article-card {
  background-color: var(--surface-1);
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s;
}

.article-card:hover {
  border-color: var(--ink-tertiary);
}

.article-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--canvas);
}

.article-card-body {
  padding: var(--sp-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.article-card-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.article-card-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.2px;
  line-height: 1.35;
  margin-top: var(--sp-xxs);
}

.article-card-title a {
  color: var(--ink);
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  flex: 1;
  margin-top: var(--sp-xs);
}

.article-card-meta {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-top: var(--sp-sm);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--hairline-soft);
}

.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xxl);
  align-items: center;
}

.intro-split-text h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin-bottom: var(--sp-md);
  margin-top: var(--sp-sm);
}

.intro-split-text p {
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}

.intro-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.intro-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.intro-image-caption {
  padding: var(--sp-sm) var(--sp-md);
  font-size: 12px;
  color: var(--ink-tertiary);
  background-color: var(--surface-1);
  border-top: 1px solid var(--hairline-soft);
  text-align: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: 13px;
  color: var(--ink-subtle);
  padding: var(--sp-md) 0;
}

.breadcrumb a {
  color: var(--ink-subtle);
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb .sep {
  color: var(--hairline);
}

.article-page-hero {
  padding: var(--sp-lg) 0 0;
}

.article-page-hero-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.article-page-hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.article-page-hero-image figcaption {
  padding: var(--sp-sm) var(--sp-md);
  font-size: 12px;
  color: var(--ink-tertiary);
  background-color: var(--surface-1);
  border-top: 1px solid var(--hairline-soft);
}

.article-page-header {
  padding: var(--sp-xxl) 0 var(--sp-xl);
  max-width: 780px;
}

.article-page-header .eyebrow {
  margin-bottom: var(--sp-sm);
}

.article-page-header h1 {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: var(--sp-md);
}

.article-page-header .lead {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-md);
}

.article-page-header .meta {
  font-size: 13px;
  color: var(--ink-tertiary);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--sp-xxl);
  align-items: start;
  padding-bottom: var(--sp-section);
}

.article-content {
  min-width: 0;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: var(--sp-xxl) 0 var(--sp-md);
  color: var(--ink);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin: var(--sp-xl) 0 var(--sp-sm);
  color: var(--ink);
}

.article-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}

.article-content ul,
.article-content ol {
  margin: var(--sp-md) 0;
  padding-left: var(--sp-lg);
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}

.article-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--ink-muted);
}

.info-box {
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  margin: var(--sp-xl) 0;
}

.info-box-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--sp-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-box ul {
  list-style: none;
  padding: 0;
}

.info-box li {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid var(--hairline-soft);
  display: flex;
  gap: var(--sp-sm);
}

.info-box li:last-child {
  border-bottom: none;
}

.info-box li strong {
  min-width: 120px;
  color: var(--ink-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.article-figure {
  margin: var(--sp-xl) 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.article-figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.article-figure figcaption {
  padding: var(--sp-sm) var(--sp-md);
  font-size: 12px;
  color: var(--ink-tertiary);
  background-color: var(--surface-1);
  border-top: 1px solid var(--hairline-soft);
}

.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-lg));
}

.sidebar-card {
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-md);
}

.sidebar-card h4 {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--sp-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.sidebar-links a {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sidebar-links a:hover {
  color: var(--ink-muted);
}

.page-hero {
  padding: var(--sp-xxl) 0 var(--sp-xl);
}

.page-hero h1 {
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -1.2px;
  margin-bottom: var(--sp-md);
  margin-top: var(--sp-sm);
}

.page-hero .lead {
  max-width: 560px;
}

.page-content {
  padding-bottom: var(--sp-section);
  max-width: 720px;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: var(--sp-xxl) 0 var(--sp-md);
}

.page-content h3 {
  font-size: 20px;
  font-weight: 500;
  margin: var(--sp-xl) 0 var(--sp-sm);
}

.page-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}

.page-content ul,
.page-content ol {
  margin: var(--sp-md) 0;
  padding-left: var(--sp-lg);
  margin-bottom: var(--sp-md);
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}

.contact-section {
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-xxl);
  margin-top: var(--sp-xl);
  max-width: 560px;
}

.contact-section h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin-bottom: var(--sp-xs);
}

.contact-section > p {
  color: var(--ink-muted);
  font-size: 15px;
  margin-bottom: var(--sp-xl);
}

.form-group {
  margin-bottom: var(--sp-md);
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: border-color 0.15s;
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink-subtle);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-tertiary);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: opacity 0.15s;
  min-height: 40px;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.82;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--ink);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--surface-1);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.form-status {
  margin-top: var(--sp-md);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-md);
  font-size: 14px;
  display: none;
}

.form-status.success {
  background-color: #f0faf4;
  color: var(--success);
  border: 1px solid #b7dfca;
  display: block;
}

.form-status.error {
  background-color: #fff5f5;
  color: var(--error);
  border: 1px solid #fecaca;
  display: block;
}

.site-footer {
  background-color: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: var(--sp-xxl) 0 var(--sp-xl);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: var(--sp-sm);
}

.footer-brand p {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.55;
  max-width: 220px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--sp-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--ink-subtle);
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: var(--ink);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-md) var(--sp-xl) 0;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--ink-tertiary);
}

.footer-bottom a {
  color: var(--ink-subtle);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner {
  position: fixed;
  bottom: var(--sp-lg);
  left: var(--sp-lg);
  right: var(--sp-lg);
  max-width: 640px;
  margin: 0 auto;
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-lg) var(--sp-xl);
  display: none;
  align-items: center;
  gap: var(--sp-xl);
  z-index: 200;
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-split {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 38px;
    letter-spacing: -0.9px;
  }

  .container,
  .container-sm {
    padding: 0 var(--sp-md);
  }

  section {
    padding: var(--sp-xxl) 0;
  }

  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    height: 280px;
  }

  .article-page-hero-image img {
    height: 260px;
  }

  .article-figure img {
    height: 220px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: var(--sp-xl);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .article-page-header h1 {
    font-size: 32px;
    letter-spacing: -0.7px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-md);
    bottom: var(--sp-md);
    left: var(--sp-md);
    right: var(--sp-md);
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 30px;
    letter-spacing: -0.5px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .article-card-image {
    height: 180px;
  }
}
