@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;
  --ink: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --success: #1f8a65;
  --error: #cf2d56;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--canvas);
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ── */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-brand span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

@media (max-width: 767px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 24px; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
}

/* ── HERO ── */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--hairline);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.hero-title {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4/3;
  background: var(--surface-strong);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .hero { padding: 48px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 32px; letter-spacing: -1px; }
  .hero-image { order: -1; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title { font-size: 40px; }
}

/* ── SECTION LABELS ── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 520px;
}

/* ── ARTICLES GRID ── */
.articles-section {
  padding: 80px 0;
}
.articles-header {
  margin-bottom: 48px;
}
.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: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}
.article-card:hover { border-color: var(--hairline-strong); }
.article-card-image {
  aspect-ratio: 16/9;
  background: var(--surface-strong);
  overflow: hidden;
}
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card-body {
  padding: 24px;
}
.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.article-card-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 20px;
}
.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-card-link::after {
  content: '→';
  transition: transform 0.15s;
}
.article-card:hover .article-card-link::after { transform: translateX(3px); }

@media (max-width: 767px) {
  .articles-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── FEATURES BAND ── */
.features-band {
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 80px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.feature-item {
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--canvas-soft);
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}
.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── CONTACT FORM ── */
.contact-section {
  padding: 80px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  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(--canvas-soft);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  height: 44px;
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}
.form-group textarea {
  height: 120px;
  resize: vertical;
}
.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: var(--radius-md);
  padding: 10px 20px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  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 {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: none;
}
.form-message.success {
  display: block;
  background: #d4edda;
  color: var(--success);
  border: 1px solid #b8dfc7;
}

@media (max-width: 767px) {
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.footer-brand span { color: var(--primary); }
.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 240px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.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;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 13px;
  color: var(--muted);
}
.footer-legal {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-legal a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-legal a:hover { color: var(--ink); }

@media (max-width: 767px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 479px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── ARTICLE PAGE ── */
.article-hero {
  padding: 64px 0 0;
  border-bottom: 1px solid var(--hairline);
}
.article-hero-inner {
  max-width: 800px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.article-date {
  font-size: 13px;
  color: var(--muted);
}
.article-h1 {
  font-size: 48px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.article-intro {
  font-size: 18px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 680px;
}
.article-cover {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-bottom: none;
  aspect-ratio: 16/6;
  background: var(--surface-strong);
  margin-top: 0;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-body-wrap {
  padding: 64px 0;
}
.article-body-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}
.article-content h2 {
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin: 40px 0 16px;
}
.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}
.article-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 20px;
  letter-spacing: 0.08px;
}
.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 8px;
}
.article-content strong { color: var(--ink); font-weight: 600; }
.article-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--primary); }
.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 20px;
  margin: 28px 0;
}
.info-box p { margin-bottom: 0; font-size: 15px; }
.article-sidebar {
  position: sticky;
  top: 84px;
}
.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.sidebar-toc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-toc a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}
.sidebar-toc a:hover { color: var(--ink); }
.sidebar-related li {
  font-size: 14px;
  margin-bottom: 10px;
  list-style: none;
}
.sidebar-related li::before { content: '→ '; color: var(--muted); }
.sidebar-related a { color: var(--ink); }
.sidebar-related a:hover { color: var(--primary); }

@media (max-width: 767px) {
  .article-h1 { font-size: 30px; letter-spacing: -0.8px; }
  .article-cover { aspect-ratio: 16/9; }
  .article-body-inner { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

/* ── PAGE (about, privacy, terms) ── */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}
.page-title {
  font-size: 48px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -1.5px;
}
.page-subtitle {
  font-size: 18px;
  color: var(--body);
  margin-top: 12px;
}
.page-body {
  padding: 64px 0;
  max-width: 760px;
}
.page-body h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin: 40px 0 14px;
}
.page-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}
.page-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 16px;
  letter-spacing: 0.08px;
}
.page-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.page-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 6px;
}
.page-body strong { color: var(--ink); font-weight: 600; }
.page-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  z-index: 999;
  display: none;
}
#cookie-banner.show { 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-text {
  font-size: 14px;
  color: #d9d8d2;
  line-height: 1.5;
  flex: 1;
}
.cookie-text a { color: var(--canvas); text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.btn-cookie-reject {
  background: transparent;
  color: #d9d8d2;
  border: 1px solid #4a4940;
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

/* ── MISC ── */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--hairline-strong); }

.updated-label {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.disclaimer {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 40px;
}
