@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;
  --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;
}

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-size: 16px;
  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-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1;
}

.nav-logo span { 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 ease;
}

.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-color: var(--ink);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.nav-mobile {
  display: none;
  background-color: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 16px 24px;
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
}

/* HERO */
.hero-band {
  padding: 80px 0;
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background-color: var(--surface-strong);
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 24px;
}

.hero-band h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.4px;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 20px;
}

.hero-band p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 0;
}

/* SECTION TITLES */
.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;
  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;
}

/* ARTICLE CARDS */
.articles-section { padding: 80px 0; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.article-card:hover { border-color: var(--hairline-strong); }

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body { padding: 24px; }

.article-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background-color: var(--surface-strong);
  border-radius: var(--rounded-pill);
  padding: 3px 8px;
  margin-bottom: 12px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 10px;
}

.article-card-title a { color: var(--ink); }
.article-card-title a:hover { color: var(--primary); }

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-card-meta {
  font-size: 13px;
  color: var(--muted);
}

/* FEATURE BLOCKS */
.features-section {
  padding: 80px 0;
  background-color: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  background-color: var(--surface-strong);
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}

.feature-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* ARTICLE PAGE */
.article-page { padding: 60px 0 80px; }

.article-header { margin-bottom: 40px; }

.article-header h1 {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.84px;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 760px;
}

.article-meta {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background-color: var(--surface-strong);
  border-radius: var(--rounded-pill);
  padding: 3px 8px;
}

.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin-bottom: 40px;
}

.article-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.article-content { max-width: 680px; }

.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: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 28px 0 12px;
}

.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}

.article-content a { color: var(--primary); }
.article-content a:hover { text-decoration: underline; }

.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 {
  font-size: 16px;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 0;
}

.article-sidebar { position: sticky; top: 80px; }

.sidebar-card {
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-card ul { list-style: none; padding: 0; }

.sidebar-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
}

.sidebar-card li:last-child { border-bottom: none; }

.sidebar-card a {
  color: var(--body);
  font-size: 14px;
  line-height: 1.4;
}

.sidebar-card a:hover { color: var(--primary); }

/* INFO TABLE */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.info-table th {
  background-color: var(--surface-strong);
  color: var(--ink);
  font-weight: 600;
  padding: 10px 16px;
  text-align: left;
  border: 1px solid var(--hairline);
}

.info-table td {
  padding: 10px 16px;
  border: 1px solid var(--hairline);
  color: var(--body);
  background-color: var(--surface-card);
}

.info-table tr:nth-child(even) td { background-color: var(--canvas-soft); }

/* PAGES */
.page-section { padding: 60px 0 80px; }

.page-section h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.84px;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.page-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}

.page-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 760px;
}

.page-content ul, .page-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
  max-width: 760px;
}

.page-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
  align-items: center;
}

.about-img {
  width: 100%;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  object-fit: cover;
  height: 360px;
}

/* CONTACT FORM */
.contact-section {
  padding: 80px 0;
  border-top: 1px solid var(--hairline-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-detail-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 70px;
}

.contact-detail-value {
  font-size: 14px;
  color: var(--body);
}

.form-card {
  background-color: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 32px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s ease;
  outline: none;
  height: 44px;
}

.form-group textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-soft); }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }

.form-group .field-error {
  font-size: 12px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

.form-group.has-error input,
.form-group.has-error textarea { border-color: var(--semantic-error); }

.form-group.has-error .field-error { display: block; }

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  height: 40px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { background-color: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  display: none;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  margin-top: 16px;
}

.form-message.success {
  background-color: #e8f5f0;
  color: var(--semantic-success);
  border: 1px solid #b3ddd0;
  display: block;
}

/* FOOTER */
.site-footer {
  background-color: 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-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-brand-name span { color: var(--primary); }

.footer-brand-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 240px;
}

.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; padding: 0; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 13px; color: var(--muted); }

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  z-index: 1000;
  display: none;
}

.cookie-banner.visible { 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: #d0cfc8; 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-color: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-cookie-accept:hover { background-color: var(--primary-active); }

.btn-cookie-reject {
  background-color: transparent;
  color: #d0cfc8;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #4a4942;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.btn-cookie-reject:hover { border-color: #807d72; }

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline-soft);
  margin-bottom: 0;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 6px; }

/* DISCLAIMER */
.disclaimer-bar {
  background-color: var(--canvas-soft);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 10px 0;
}

.disclaimer-bar p {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* SPINNER */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-band h1 { font-size: 44px; letter-spacing: -1px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .article-body { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-band { padding: 48px 0; }
  .hero-band h1 { font-size: 32px; letter-spacing: -0.64px; }
  .hero-band p { font-size: 16px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-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; }
  .page-section h1 { font-size: 32px; }
  .article-header h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
}
