@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;
  --on-primary: #ffffff;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --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;
}

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

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

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

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

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

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

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

.nav-logo 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;
  line-height: 1.4;
  color: var(--body);
  transition: color 0.15s;
}

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

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

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

/* HERO */
.hero-band {
  padding: 80px 0;
  background-color: var(--canvas);
}

.hero-band h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 24px;
}

.hero-band .hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background-color: 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-color 0.15s;
  text-decoration: none;
}

.btn-primary:hover { background-color: var(--primary-active); color: var(--on-primary); }
.btn-primary:active { background-color: var(--primary-active); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background-color: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
}

.btn-secondary:hover { border-color: var(--muted); color: var(--ink); }

/* BADGE PILL */
.badge-pill {
  display: inline-block;
  background-color: 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;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

.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;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
}

/* CARDS */
.card {
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  transition: border-color 0.15s;
}

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

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

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

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-bottom: 16px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 8px;
}

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

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

/* ARTICLE CARD */
.article-card {
  background-color: 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: 220px;
  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: 8px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 8px;
}

.article-card-title a { color: var(--ink); }
.article-card-title a:hover { color: var(--primary); }

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

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

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* BAND VARIANTS */
.band-soft {
  background-color: var(--canvas-soft);
  padding: 80px 0;
}

/* ARTICLE PAGE */
.article-header {
  padding: 64px 0 48px;
}

.article-header h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 800px;
}

.article-header .article-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
  max-width: 660px;
  margin-bottom: 24px;
}

.article-header .article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  margin-bottom: 48px;
}

.article-content {
  max-width: 720px;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-content li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 6px;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content blockquote {
  border-left: 3px solid var(--hairline-strong);
  padding: 16px 20px;
  margin: 24px 0;
  background-color: var(--canvas-soft);
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
}

.article-content blockquote p {
  color: var(--body-strong);
  font-size: 16px;
  margin: 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 0 0 80px;
}

/* SIDEBAR */
.sidebar-card {
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 16px;
}

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

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-links a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.sidebar-links a:hover { color: var(--primary); }

/* FORM */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background-color: var(--surface-card);
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  padding: 12px 16px;
  height: 44px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus { border-color: var(--ink); }
.form-input.error { border-color: var(--semantic-error); }

textarea.form-input {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

.form-success {
  background-color: var(--surface-card);
  border: 1px solid var(--semantic-success);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--semantic-success);
  display: none;
  margin-top: 16px;
}

/* COOKIE */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 720px;
  background-color: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: none;
}

#cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--canvas);
  margin: 0;
  flex: 1;
}

#cookie-banner a {
  color: var(--canvas);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background-color: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  height: 36px;
}

.btn-cookie-reject {
  background-color: transparent;
  color: var(--canvas);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid rgba(247,247,244,0.3);
  cursor: pointer;
  height: 36px;
}

/* FOOTER */
.site-footer {
  background-color: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin-top: 12px;
  max-width: 260px;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--body);
}

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

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

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

/* PAGE HEADER */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 64px;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
}

/* STATIC PAGE CONTENT */
.static-content {
  max-width: 720px;
  padding-bottom: 80px;
}

.static-content h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 14px;
}

.static-content h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 28px 0 10px;
}

.static-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 16px;
}

.static-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.static-content li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 6px;
}

.static-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* DISCLAIMER */
.disclaimer {
  background-color: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  margin-bottom: 32px;
}

.disclaimer p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* BREADCRUMBS */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a {
  color: var(--muted);
}

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

.breadcrumbs span { color: var(--muted-soft); }

/* RELATED ARTICLES */
.related-section {
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-band h1 { font-size: 56px; letter-spacing: -1.5px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 20px 24px;
    gap: 16px;
  }
  .hero-band h1 { font-size: 40px; letter-spacing: -1px; }
  .section-title { font-size: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-header h1 { font-size: 32px; letter-spacing: -0.5px; }
  .page-header h1 { font-size: 32px; }
}

@media (max-width: 640px) {
  .hero-band h1 { font-size: 32px; letter-spacing: -0.5px; }
  .hero-band { padding: 48px 0; }
  .section { padding: 48px 0; }
  .band-soft { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
