*, *::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;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
  --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--canvas);
  color: var(--body);
  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; }
address { font-style: normal; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  min-width: 260px;
  list-style: none;
  padding: 8px 0;
  z-index: 200;
  box-shadow: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
  color: var(--ink);
  background: var(--canvas);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  cursor: pointer;
  transition: border-color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.badge-pill {
  display: inline-flex;
  align-items: center;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
}

.hero-band {
  padding: 80px 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}

.hero-inner {
  max-width: 760px;
}

.hero-label {
  margin-bottom: 20px;
}

.hero-title {
  font-size: 56px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--body);
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
}

.section {
  padding: 80px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.72px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 48px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  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;
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-label {
  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);
  line-height: 1.3;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 20px;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hairline-soft);
  padding-top: 16px;
  margin-top: auto;
}

.article-card-date {
  font-size: 13px;
  color: var(--muted);
}

.article-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.article-link:hover { color: var(--primary-active); }

.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

.article-header {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--hairline-soft);
}

.article-header .badge-pill { margin-bottom: 20px; }

.article-header h1 {
  font-size: 48px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  max-width: 800px;
}

.article-header .lead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.55;
  max-width: 680px;
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.article-meta .sep { color: var(--hairline-strong); }

.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin: 48px 0;
}

.article-body {
  max-width: 720px;
  padding: 0 0 80px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  line-height: 1.25;
  margin: 48px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin: 32px 0 12px;
}

.article-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}

.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
}

.article-body a:hover {
  text-decoration-color: var(--ink);
}

.article-body blockquote {
  border-left: 3px solid var(--primary);
  margin: 32px 0;
  padding: 12px 24px;
  background: var(--canvas-soft);
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
}

.article-body blockquote p {
  font-size: 18px;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin: 32px 0;
}

.info-box h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.info-box p,
.info-box li {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
}

.related-articles {
  border-top: 1px solid var(--hairline);
  padding: 64px 0;
}

.related-articles .section-title {
  font-size: 26px;
  margin-bottom: 32px;
}

.contact-section {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 48px;
  max-width: 640px;
}

.contact-section h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  margin-bottom: 8px;
}

.contact-section p {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.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);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 16px;
  height: 44px;
  outline: none;
  transition: border-color 0.15s;
}

.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.error,
.form-group textarea.error {
  border-color: var(--semantic-error);
}

.form-message {
  display: none;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  margin-top: 16px;
}

.form-message.success {
  background: #e8f5f1;
  color: var(--semantic-success);
  border: 1px solid #b8ddd4;
  display: block;
}

.form-message.error {
  background: #fdeef2;
  color: var(--semantic-error);
  border: 1px solid #f3b8c6;
  display: block;
}

.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline-soft);
}

.page-header h1 {
  font-size: 48px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  color: var(--muted);
}

.page-body {
  max-width: 760px;
  padding: 48px 0 80px;
}

.page-body h2 {
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.2px;
  margin: 40px 0 12px;
}

.page-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 28px 0 10px;
}

.page-body p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 16px;
}

.page-body ul,
.page-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-body li {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 5px;
}

.page-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
}

.page-body a:hover { text-decoration-color: var(--ink); }

.updated-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-soft);
}

.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-logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.site-footer h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 8px;
}

.site-footer ul li a {
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
}

.site-footer ul li a:hover { color: var(--ink); }

.site-footer address p {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 6px;
}

.site-footer address a {
  color: var(--body);
  text-decoration: none;
}

.site-footer address a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom a { color: var(--muted); text-decoration: underline; }
.footer-bottom a:hover { color: var(--ink); }

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 760px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  z-index: 1000;
  padding: 20px 24px;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-inner p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  flex: 1;
}

.cookie-inner a { color: var(--ink); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-title { font-size: 44px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px 24px;
    gap: 0;
    align-items: flex-start;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline-soft);
    font-size: 16px;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    min-width: unset;
  }

  .nav-dropdown.open .nav-dropdown-menu { display: block; }

  .nav-dropdown-menu li a {
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline-soft);
  }

  .nav-toggle { display: flex; }

  .site-header { position: relative; }

  .hero-title { font-size: 36px; letter-spacing: -0.8px; }
  .hero-subtitle { font-size: 16px; }
  .section-title { font-size: 28px; }
  .article-header h1 { font-size: 32px; letter-spacing: -0.6px; }
  .page-header h1 { font-size: 36px; }

  .card-grid-3,
  .card-grid-2 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .contact-section { padding: 32px 24px; }

  .cookie-inner { flex-direction: column; align-items: flex-start; }

  .article-body, .page-body { max-width: 100%; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero-band { padding: 48px 0; }
  .section { padding: 48px 0; }
  .cookie-banner { width: calc(100% - 32px); bottom: 16px; }
}
