@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: #ede9e3;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --hairline: #d3cec6;
  --hairline-soft: #e0dbd3;
  --inverse-canvas: #000000;
  --accent: #ff5600;
  --error: #c0392b;
  --success: #27ae60;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-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: 96px;
  --max-w: 1280px;
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

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

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
}

.nav-logo {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  white-space: nowrap;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  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-links a.active {
  color: var(--ink);
  font-weight: 500;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-xs);
  color: var(--ink);
}

.nav-hamburger svg {
  display: block;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: var(--sp-md) var(--sp-xl);
  z-index: 99;
}

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

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

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

.nav-mobile ul a:hover {
  color: var(--ink);
}

.hero {
  padding: var(--sp-section) 0 var(--sp-xxl);
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--sp-md);
  letter-spacing: 0;
}

.hero h1 {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: -1.4px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: var(--sp-lg);
}

.hero-sub {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.40;
  letter-spacing: -0.2px;
  color: var(--ink-muted);
  max-width: 600px;
}

.section {
  padding: var(--sp-section) 0;
}

.section-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: var(--sp-xxl);
}

.section-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--sp-md);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.article-card {
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  transition: border-color 0.15s;
}

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

.article-card-img {
  border-radius: var(--rounded-xl);
  overflow: hidden;
  background-color: var(--surface-2);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.article-card-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--ink);
}

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

.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-top: auto;
}

.article-hero {
  padding: var(--sp-xxl) 0 var(--sp-xl);
}

.article-hero-img {
  border-radius: var(--rounded-xl);
  overflow: hidden;
  background-color: var(--surface-2);
  margin-bottom: var(--sp-xxl);
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 420px;
}

.article-meta {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-bottom: var(--sp-md);
}

.article-hero h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: var(--sp-lg);
  max-width: 800px;
}

.article-intro {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.40;
  letter-spacing: -0.2px;
  color: var(--ink-muted);
  max-width: 700px;
  margin-bottom: var(--sp-xl);
}

.article-body {
  max-width: 760px;
  padding-bottom: var(--sp-section);
}

.article-body h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.20;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-top: var(--sp-xxl);
  margin-bottom: var(--sp-md);
}

.article-body h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-sm);
}

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

.article-body ul, .article-body ol {
  padding-left: var(--sp-xl);
  margin-bottom: var(--sp-md);
}

.article-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}

.article-body a {
  color: var(--ink);
  text-decoration: underline;
}

.article-body a:hover {
  color: var(--ink-muted);
}

.info-box {
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--sp-lg);
  margin: var(--sp-xl) 0;
}

.info-box-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--sp-sm);
}

.info-box p, .info-box li {
  font-size: 14px;
  color: var(--ink-muted);
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.step-item {
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--sp-lg);
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: var(--ink);
  color: var(--surface-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
  margin-top: 0;
}

.step-content p {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 0;
}

.related-articles {
  border-top: 1px solid var(--hairline);
  padding-top: var(--sp-xxl);
  margin-top: var(--sp-section);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}

.related-card {
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--sp-lg);
  text-decoration: none;
  display: block;
  transition: border-color 0.15s;
}

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

.related-card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}

.related-card-desc {
  font-size: 14px;
  color: var(--ink-muted);
}

.contact-section {
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xxl);
  padding: var(--sp-xxl);
  max-width: 640px;
}

.contact-section h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: var(--sp-sm);
}

.contact-section > p {
  font-size: 16px;
  color: var(--ink-muted);
  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%;
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 16px;
  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);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-tertiary);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  background-color: var(--ink);
  color: var(--surface-1);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  padding: 10px 18px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  min-height: 40px;
  transition: opacity 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.85;
  text-decoration: none;
  color: var(--surface-1);
}

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

.form-message {
  display: none;
  margin-top: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--rounded-md);
  font-size: 14px;
}

.form-message.success {
  background-color: #eafaf1;
  border: 1px solid #a9dfbf;
  color: #1e8449;
  display: block;
}

.form-message.error {
  background-color: #fdf3f2;
  border: 1px solid #f5b7b1;
  color: var(--error);
  display: block;
}

.form-loading {
  display: none;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
  font-size: 14px;
  color: var(--ink-muted);
}

.form-loading.active {
  display: flex;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--hairline);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.page-hero {
  padding: var(--sp-xxl) 0 var(--sp-xl);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--sp-section);
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: var(--sp-md);
}

.page-hero p {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 600px;
}

.page-content {
  max-width: 760px;
  padding-bottom: var(--sp-section);
}

.page-content h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-top: var(--sp-xxl);
  margin-bottom: var(--sp-md);
}

.page-content h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-sm);
}

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

.page-content ul, .page-content ol {
  padding-left: var(--sp-xl);
  margin-bottom: var(--sp-md);
}

.page-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--sp-xs);
}

.page-content a {
  color: var(--ink);
  text-decoration: underline;
}

.disclaimer-box {
  background-color: var(--surface-2);
  border-radius: var(--rounded-lg);
  padding: var(--sp-lg);
  margin-top: var(--sp-xl);
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.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: 1fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
}

.footer-brand p {
  font-size: 14px;
  color: var(--ink-subtle);
  margin-top: var(--sp-sm);
  line-height: 1.6;
}

.footer-logo {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  text-decoration: none;
}

.footer-logo:hover {
  text-decoration: none;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--sp-md);
  letter-spacing: 0;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.footer-col ul a {
  font-size: 14px;
  color: var(--ink-subtle);
  text-decoration: none;
}

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

.footer-bottom {
  max-width: var(--max-w);
  margin: var(--sp-xl) auto 0;
  padding: var(--sp-lg) var(--sp-xl) 0;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.footer-bottom p {
  font-size: 12px;
  color: var(--ink-tertiary);
}

.footer-bottom-links {
  display: flex;
  gap: var(--sp-md);
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--ink-tertiary);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--ink-muted);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--surface-1);
  border-top: 1px solid var(--hairline);
  padding: var(--sp-lg) var(--sp-xl);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 640px;
  line-height: 1.5;
}

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

.cookie-actions {
  display: flex;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

.btn-cookie-accept {
  background-color: var(--ink);
  color: var(--surface-1);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  min-height: 40px;
}

.btn-cookie-reject {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  cursor: pointer;
  min-height: 40px;
}

.btn-cookie-accept:hover {
  opacity: 0.85;
}

.btn-cookie-reject:hover {
  border-color: var(--ink);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-md) 0;
  font-size: 12px;
  color: var(--ink-tertiary);
}

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

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

.breadcrumb-sep {
  color: var(--hairline);
}

.info-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin: var(--sp-xl) 0;
}

.info-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
  margin: var(--sp-xl) 0;
}

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }
}

@media (max-width: 768px) {
  .info-grid-3 {
    grid-template-columns: 1fr;
  }

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

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

  .hero-sub {
    font-size: 18px;
  }

  .hero {
    padding: var(--sp-xxl) 0 var(--sp-xl);
  }

  .section {
    padding: var(--sp-xxl) 0;
  }

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

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

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

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

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

  .article-hero h1 {
    font-size: 28px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .contact-section {
    padding: var(--sp-xl);
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-md);
  }

  .container {
    padding: 0 var(--sp-md);
  }

  .nav-inner {
    padding: 0 var(--sp-md);
  }
}

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

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

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