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

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

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

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; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: 2.75rem; letter-spacing: -0.045em; line-height: 1.1; }
h2 { font-size: 2rem; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; letter-spacing: -0.012em; }
h4 { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }

p { color: var(--body); line-height: 1.6; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.site-logo span { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 32px; }

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }

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

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

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

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

.mobile-nav a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--body);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.mobile-nav a:last-child { border-bottom: none; }

.hero-band {
  padding: 80px 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.hero-band h1 { margin-bottom: 20px; max-width: 720px; }

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

.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-meta-item {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-item::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--muted-soft);
  border-radius: 50%;
}

.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.section-head { margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--body); font-size: 16px; max-width: 600px; }

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

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

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

.article-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--surface-strong);
}

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

.article-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);
  border-radius: 9999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

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

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

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

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

.read-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.read-link:hover { border-color: var(--ink); }

.intro-band {
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.intro-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.intro-content h2 { margin-bottom: 20px; }
.intro-content p { margin-bottom: 16px; }

.intro-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}

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

.topics-band { background: var(--canvas); }

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.topic-card h4 { color: var(--ink); margin-bottom: 10px; }
.topic-card p { font-size: 14px; line-height: 1.55; }

.contact-band { background: var(--surface-card); border-top: 1px solid var(--hairline); }

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

.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 24px; }

.contact-details { margin-top: 24px; }
.contact-detail { margin-bottom: 12px; font-size: 14px; color: var(--body); }
.contact-detail strong { color: var(--ink); }

.contact-form { background: var(--canvas); border-radius: 12px; border: 1px solid var(--hairline); 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-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 10px 16px;
  height: 44px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.form-group textarea {
  height: auto;
  min-height: 100px;
  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);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}
.form-message.success { background: #e8f5f0; color: var(--semantic-success); border: 1px solid #b8dfd3; }
.form-message.error { background: #fdf0f2; color: var(--semantic-error); border: 1px solid #f5c6cf; }

.article-page { padding: 64px 0; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

.article-main {}
.article-meta-top { margin-bottom: 32px; }

.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: 9999px;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.article-main h1 { margin-bottom: 16px; font-size: 2.25rem; }

.article-byline {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.article-hero-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin-bottom: 32px;
}

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

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

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

.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin-bottom: 18px; padding-left: 20px; }
.article-body li { margin-bottom: 8px; line-height: 1.6; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body a { color: var(--ink); border-bottom: 1px solid var(--hairline-strong); }
.article-body a:hover { border-color: var(--ink); }

.step-block {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.step-block .step-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.step-block h3 { font-size: 1.05rem; margin-bottom: 10px; }
.step-block p { font-size: 14px; margin-bottom: 0; }

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

.info-box p { font-size: 14px; margin-bottom: 0; }

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

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.sidebar-card h4 { font-size: 14px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }

.sidebar-card ul { list-style: none; }
.sidebar-card ul li { padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 14px; }
.sidebar-card ul li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-card ul li a { color: var(--body); }
.sidebar-card ul li a:hover { color: var(--ink); }

.page-hero {
  background: var(--canvas);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-hero h1 { font-size: 2.25rem; margin-bottom: 12px; }
.page-hero .page-sub { font-size: 16px; color: var(--body); max-width: 560px; }

.page-content { padding: 64px 0; }
.page-content-inner { max-width: 760px; }
.page-content-inner h2 { font-size: 1.5rem; font-weight: 600; margin: 40px 0 14px; color: var(--ink); }
.page-content-inner h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 10px; color: var(--ink); }
.page-content-inner p { margin-bottom: 18px; }
.page-content-inner ul { list-style: disc; padding-left: 20px; margin-bottom: 18px; }
.page-content-inner ul li { margin-bottom: 8px; line-height: 1.6; }

.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;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .site-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 280px; }

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

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--body); }
.footer-col ul li a:hover { color: var(--ink); }

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

.footer-bottom p { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.footer-bottom a { color: var(--muted); border-bottom: 1px solid var(--hairline); }
.footer-bottom a:hover { color: var(--ink); }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 16px 24px;
  z-index: 1000;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 13px;
  color: var(--canvas);
  margin-bottom: 0;
  flex: 1;
  min-width: 220px;
}

.cookie-inner a { color: var(--canvas); text-decoration: underline; }

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

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(247,247,244,0.3);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
}
.btn-cookie-reject:hover { border-color: rgba(247,247,244,0.7); }

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--muted-soft); }

.disclaimer {
  background: var(--surface-strong);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .intro-band .container { grid-template-columns: 1fr; gap: 40px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-hamburger { display: flex; }
  h1 { font-size: 1.875rem; }
  .hero-band { padding: 48px 0; }
  .section { padding: 48px 0; }
  .articles-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.625rem; }
  .hero-band .hero-sub { font-size: 16px; }
  .contact-form { padding: 20px; }
  .sidebar-card { padding: 16px; }
}
