@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 { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: 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: 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: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

.site-nav .nav-inner {
  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.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span.accent { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px 24px;
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-mobile ul a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
}

/* HERO */
.hero-band {
  padding: 80px 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}

.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;
  color: var(--body);
  max-width: 520px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

.hero-image {
  margin-top: 56px;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  max-height: 480px;
}

.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* BADGE */
.badge-pill {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 16px;
}

/* SECTION */
.section { padding: 80px 0; }
.section-sm { padding: 48px 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;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 48px;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  transition: border-color 0.15s;
}

.feature-card:hover { border-color: var(--hairline-strong); }

.feature-card .card-img {
  border-radius: var(--rounded-md);
  overflow: hidden;
  margin-bottom: 16px;
  height: 180px;
}

.feature-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card .card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.feature-card .card-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:hover h3 { color: var(--primary); }

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* PAGE HEADER */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline-soft);
}

.page-header .page-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.page-header h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 16px;
}

.page-header .page-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
}

.page-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ARTICLE BODY */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 56px 0 80px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  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 {
  margin: 0 0 20px 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.article-body li { margin-bottom: 6px; }

.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.article-body .article-img {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  margin: 32px 0;
  border: 1px solid var(--hairline);
}

.article-body .article-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.article-body .article-img figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--canvas-soft);
}

.article-body .callout {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 32px 0;
}

.article-body .callout p { margin: 0; font-size: 15px; }

/* SIDEBAR */
.article-sidebar { padding-top: 4px; }

.sidebar-block {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.sidebar-block h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-block ul { list-style: none; }

.sidebar-block ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
  color: var(--body);
}

.sidebar-block ul li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-block ul li a { color: var(--body); font-size: 14px; }
.sidebar-block ul li a:hover { color: var(--primary); }

/* PAGE CONTENT (non-article) */
.page-content {
  padding: 56px 0 80px;
  max-width: 760px;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.page-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-content ul, .page-content ol {
  margin: 0 0 20px 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.page-content li { margin-bottom: 6px; }

.page-content a { color: var(--primary); }

.updated-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

/* CONTACT FORM */
.contact-form-section {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 40px;
  max-width: 600px;
}

.contact-form-section h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-form-section .form-sub {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 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(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  font-size: 16px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
}

.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::placeholder,
.form-group textarea::placeholder { color: var(--muted-soft); }

.form-group .field-error {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  background: #f0faf6;
  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;
}

.form-loading { display: none; align-items: center; gap: 10px; margin-top: 12px; }
.form-loading.visible { display: flex; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--hairline);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-loading span { font-size: 14px; color: var(--muted); }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0 80px;
}

.about-img {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.about-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-facts {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.fact-item {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px;
}

.fact-item .fact-num {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 4px;
}

.fact-item .fact-label {
  font-size: 13px;
  color: var(--muted);
}

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline-soft);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--body); }
.breadcrumb span { margin: 0 6px; }

/* FOOTER */
.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: 40px;
  margin-bottom: 48px;
}

.footer-brand .brand-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-brand .brand-name span { color: var(--primary); }

.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.footer-col ul li a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--body); }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 999;
  flex-wrap: wrap;
}

#cookie-banner p {
  font-size: 14px;
  color: var(--canvas-soft);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

#cookie-banner p a {
  color: var(--canvas);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas-soft);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.6); }

/* ARTICLES LIST */
.articles-list { padding: 48px 0 80px; }

.article-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.article-item:first-child { padding-top: 0; }

.article-item-img {
  border-radius: var(--rounded-md);
  overflow: hidden;
  height: 160px;
}

.article-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-item-body .item-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-item-body h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-item-body h3 a { color: inherit; }
.article-item-body h3 a:hover { color: var(--primary); }

.article-item-body p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 12px;
}

.article-item-body .item-date {
  font-size: 13px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-band h1 { font-size: 40px; letter-spacing: -1px; }
  .hero-image img { height: 280px; }
  .section-title { font-size: 28px; }
  .page-header h1 { font-size: 36px; letter-spacing: -0.72px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-item { grid-template-columns: 1fr; }
  .article-item-img { height: 200px; }
  .about-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero-band { padding: 48px 0; }
  .hero-band h1 { font-size: 32px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contact-form-section { padding: 24px 20px; }
  .about-facts { grid-template-columns: 1fr; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
}
