@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;
  --success: #1f8a65;
  --error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
  --spacing-section: 80px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  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;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nav-logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
}

.nav-menu a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.hero-band {
  padding: var(--spacing-section) 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-label {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  margin-bottom: 20px;
}

.hero-band h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 20px;
}

.hero-band .hero-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero-img-wrap {
  margin-top: 48px;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-card);
}

.hero-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.section {
  padding: var(--spacing-section) 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;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  line-height: 1.5;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.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: 24px;
}

.article-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-card-date {
  font-size: 13px;
  color: var(--muted);
}

.article-card a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-strong);
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.info-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.info-split img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
}

.info-split-text h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.info-split-text p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 12px;
}

.info-list {
  list-style: none;
  margin-top: 16px;
}

.info-list li {
  font-size: 14px;
  color: var(--body);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li::before {
  content: "—";
  color: var(--muted);
  flex-shrink: 0;
}

.contact-section {
  background: var(--surface-card);
  padding: var(--spacing-section) 0;
  border-top: 1px solid var(--hairline);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-detail-item {
  font-size: 14px;
  color: var(--body);
}

.contact-detail-item strong {
  color: var(--ink);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
}

.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);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: none;
  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-message {
  display: none;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  margin-top: 16px;
}

.form-message.success {
  background: #e8f5f0;
  color: var(--success);
  border: 1px solid #b8ddd1;
  display: block;
}

.form-message.error {
  background: #fde8ec;
  color: var(--error);
  border: 1px solid #f0b8c4;
  display: block;
}

.site-footer {
  background: var(--canvas);
  padding: 64px 0 48px;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
  transition: color 0.15s;
}

.footer-bottom a:hover {
  color: var(--ink);
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  border-radius: var(--rounded-lg);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  font-size: 14px;
  line-height: 1.5;
  color: #c8c7be;
}

.cookie-banner-text a {
  color: var(--canvas);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-cookie-accept:hover {
  background: var(--primary-active);
}

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: border-color 0.15s;
  white-space: nowrap;
}

.btn-cookie-reject:hover {
  border-color: rgba(255,255,255,0.5);
}

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb span {
  color: var(--muted-soft);
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 24px;
}

.prose h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
}

.prose h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 16px;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 6px;
}

.prose strong {
  color: var(--body-strong);
  font-weight: 600;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--primary);
}

.prose figure {
  margin: 32px 0;
}

.prose figure img {
  width: 100%;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
}

.prose figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.prose .info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.prose .info-box p {
  margin: 0;
  font-size: 15px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.prose table th {
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-strong);
}

.prose table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
  vertical-align: top;
}

.prose table tr:last-child td {
  border-bottom: none;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.article-meta-item {
  font-size: 13px;
  color: var(--muted);
}

.article-tag {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
}

.page-content {
  padding: 64px 0;
}

.content-two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  position: sticky;
  top: 88px;
}

.sidebar-card h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-toc {
  list-style: none;
}

.sidebar-toc li {
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-toc li:last-child {
  border-bottom: none;
}

.sidebar-toc a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

.sidebar-toc a:hover {
  color: var(--ink);
}

.related-articles {
  margin-top: 24px;
}

.related-articles a {
  display: block;
  font-size: 14px;
  color: var(--body);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition: color 0.15s;
}

.related-articles a:last-child {
  border-bottom: none;
}

.related-articles a:hover {
  color: var(--ink);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-hero-grid img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.policy-content h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 12px;
}

.policy-content .last-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}

.policy-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 12px;
}

.policy-content p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 14px;
}

.policy-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.policy-content li {
  font-size: 15px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 6px;
}

.policy-content a {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .hero-band h1 {
    font-size: 56px;
    letter-spacing: -1.5px;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .content-two-col {
    grid-template-columns: 1fr;
  }
  .sidebar-card {
    position: static;
  }
  .about-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 24px;
    flex-direction: column;
    gap: 0;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu li {
    border-bottom: 1px solid var(--hairline-soft);
  }
  .nav-menu a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
  }
  .nav-toggle {
    display: block;
  }
  .hero-band h1 {
    font-size: 32px;
    letter-spacing: -0.8px;
  }
  .hero-band {
    padding: 48px 0;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .info-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .page-hero h1 {
    font-size: 32px;
  }
  .section-title {
    font-size: 28px;
  }
  .cookie-banner {
    flex-direction: column;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--rounded-lg) var(--rounded-lg) 0 0;
  }
  .cookie-banner-actions {
    flex-direction: row;
    width: 100%;
  }
  .btn-cookie-accept, .btn-cookie-reject {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .prose h1 {
    font-size: 32px;
  }
  .prose h2 {
    font-size: 24px;
  }
}
