@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --ink: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
  --section: 80px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  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%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.nav-toggle svg {
  display: block;
}

/* HERO */
.hero {
  padding: var(--section) 0;
  background: var(--canvas);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  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 h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4/3;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SECTIONS */
.section {
  padding: var(--section) 0;
}

.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;
  letter-spacing: -0.72px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 48px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ARTICLE CARDS */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--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-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-img img {
  transform: scale(1.03);
}

.article-card-body {
  padding: 24px;
}

.article-card-meta {
  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: 400;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.11px;
  margin-bottom: 12px;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 20px;
}

.article-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.article-link:hover {
  gap: 8px;
  color: var(--primary-active);
}

/* FEATURE BANDS */
.feature-band {
  background: var(--card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-item {
  padding: 40px 32px;
  border-right: 1px solid var(--hairline);
}

.feature-item:last-child {
  border-right: none;
}

.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;
  color: var(--ink);
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* ARTICLE PAGE */
.article-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.article-header .container {
  max-width: 800px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--body);
}

.breadcrumb span {
  color: var(--hairline-strong);
}

.article-header h1 {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.article-category {
  background: var(--surface-strong);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.88px;
  color: var(--muted);
}

.article-body {
  padding: 64px 0;
}

.article-body .container {
  max-width: 800px;
}

.article-featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 48px;
}

.article-featured-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-featured-img figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--hairline-soft);
  background: var(--canvas-soft);
}

.prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 24px;
}

.prose h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.33px;
  color: var(--ink);
  line-height: 1.25;
  margin: 48px 0 16px;
}

.prose h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin: 32px 0 12px;
}

.prose ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
}

.prose ul li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 6px;
}

.prose blockquote {
  border-left: 3px solid var(--primary);
  margin: 32px 0;
  padding: 16px 24px;
  background: var(--canvas-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.prose blockquote p {
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0;
}

.prose .info-box {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
}

.prose .info-box h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.88px;
  color: var(--muted);
  margin-bottom: 12px;
}

.prose .info-box p {
  font-size: 15px;
  margin-bottom: 0;
}

.article-secondary-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin: 32px 0;
}

.article-secondary-img img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.article-secondary-img figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--hairline-soft);
  background: var(--canvas-soft);
}

/* RELATED ARTICLES */
.related-section {
  padding: var(--section) 0;
  border-top: 1px solid var(--hairline);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* CONTACT / ABOUT */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-header .page-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
}

.page-body {
  padding: var(--section) 0;
}

.page-prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 20px;
}

.page-prose h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.33px;
  color: var(--ink);
  margin: 40px 0 14px;
}

.page-prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.page-prose ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.page-prose ul li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 6px;
}

/* CONTACT FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.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(--card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s;
  height: 44px;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  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);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  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-status {
  margin-top: 16px;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: none;
}

.form-status.success {
  background: #edf7f3;
  color: var(--success);
  border: 1px solid #b3dece;
  display: block;
}

.form-status.error {
  background: #fdf0f3;
  color: var(--error);
  border: 1px solid #f0b8c4;
  display: block;
}

/* 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: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-brand span { color: var(--primary); }

.footer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 280px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--body);
}

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  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;
}

.footer-legal a {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal a:hover {
  color: var(--body);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  max-width: 560px;
  width: calc(100% - 48px);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}

.cookie-text {
  font-size: 14px;
  color: #c8c6bf;
  line-height: 1.4;
  flex: 1;
}

.cookie-text a {
  color: var(--canvas);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
  background: transparent;
  color: #c8c6bf;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: border-color 0.15s;
}

.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.3); }

/* INFO STATS */
.stats-band {
  background: var(--card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 0 32px;
  border-right: 1px solid var(--hairline);
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 24px; border-right: none; border-bottom: 1px solid var(--hairline); }
  .stat-item:last-child, .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section: 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 34px; }
  .hero-img { display: none; }
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); flex-direction: column; align-items: stretch; padding: 16px 24px; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 16px; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--hairline); }
  .feature-item:last-child { border-bottom: none; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: 28px; }
  .article-header h1 { font-size: 30px; }
  .page-header h1 { font-size: 30px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; bottom: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 28px; }
  .cookie-actions { width: 100%; justify-content: stretch; }
  .btn-cookie-accept, .btn-cookie-reject { flex: 1; text-align: center; }
}
