@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede8e1;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --hairline: #d3cec6;
  --hairline-soft: #e5e0d8;
  --accent: #ff5600;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink-muted); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 56px;
  display: flex;
  align-items: center;
}

nav.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.nav-links {
  display: flex;
  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); }

.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: transform 0.2s;
}

.nav-mobile {
  display: none;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  list-style: none;
  padding: 0 32px;
}

.nav-mobile ul li { padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); }
.nav-mobile ul li:last-child { border-bottom: none; }
.nav-mobile ul a { font-size: 15px; color: var(--ink); text-decoration: none; }

.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--hairline);
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: -1.4px;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 13px;
  color: var(--ink-subtle);
}

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: 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;
  display: block;
}

.article-card-body { padding: 24px; }

.article-card-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.article-card h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 10px;
}

.article-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

.article-card-link:hover { border-color: var(--ink); }

.contact-section {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.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%;
  padding: 10px 14px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink-muted);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  min-height: 40px;
  text-decoration: none;
}

.btn-primary:hover { opacity: 0.85; color: #ffffff; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: block;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 680px;
  width: calc(100% - 48px);
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: none;
}

.cookie-banner.visible { display: flex; }

.cookie-banner p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  flex: 1;
}

.cookie-banner a { color: #ffffff; }

.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-accept {
  background: #ffffff;
  color: var(--ink);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.btn-cookie-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.btn-cookie-reject:hover { color: #ffffff; border-color: rgba(255,255,255,0.6); }

footer.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
  background: var(--canvas);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 13px;
  color: var(--ink-subtle);
  text-decoration: none;
  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;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 12px; color: var(--ink-tertiary); }

.footer-disclaimer {
  font-size: 12px;
  color: var(--ink-tertiary);
  line-height: 1.6;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-soft);
}

.article-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.article-breadcrumb {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-bottom: 24px;
}

.article-breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--ink); }
.article-breadcrumb span { margin: 0 8px; }

.article-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.article-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 20px;
}

.article-hero-lead {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 680px;
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--ink-subtle);
}

.article-meta-dot { color: var(--hairline); }

.article-content {
  padding: 56px 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

.article-body { max-width: 720px; }

.article-body h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 40px 0 16px;
  line-height: 1.25;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin: 28px 0 12px;
  line-height: 1.35;
}

.article-body p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}

.article-body a { color: var(--ink); }

.article-body .info-box {
  background: var(--surface-2);
  border-left: 3px solid var(--hairline);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.article-body .info-box p {
  margin-bottom: 0;
  font-size: 15px;
}

.article-body .info-box strong { color: var(--ink); }

.article-img {
  width: 100%;
  border-radius: var(--radius-xl);
  margin: 32px 0;
  object-fit: cover;
  max-height: 400px;
}

.article-sidebar { position: sticky; top: 80px; }

.sidebar-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.sidebar-toc { list-style: none; }
.sidebar-toc li { margin-bottom: 10px; }
.sidebar-toc a {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  line-height: 1.4;
}
.sidebar-toc a:hover { color: var(--ink); }

.related-links { list-style: none; }
.related-links li { margin-bottom: 12px; border-bottom: 1px solid var(--hairline-soft); padding-bottom: 12px; }
.related-links li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-links a { font-size: 13px; color: var(--ink); text-decoration: none; line-height: 1.4; display: block; }
.related-links a:hover { color: var(--ink-muted); }

.page-content { padding: 56px 0; max-width: 800px; }

.page-content h1 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.page-content .page-updated {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-bottom: 40px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 36px 0 14px;
  color: var(--ink);
}

.page-content p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.page-content li {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 6px;
}

.page-content a { color: var(--ink); }

.page-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 560px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--surface-2);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}

.data-table td {
  padding: 12px 16px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--hairline-soft);
}

.data-table tr:last-child td { border-bottom: none; }

@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .articles-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .contact-section { padding: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .cookie-buttons { width: 100%; }
  .btn-cookie-accept, .btn-cookie-reject { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; letter-spacing: -0.8px; }
  .article-hero h1 { font-size: 26px; letter-spacing: -0.5px; }
}
