@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-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;
}

/* TOP NAV */
.top-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-wordmark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
  text-decoration: none;
}

.nav-wordmark 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(--ink);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--primary);
}

.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;
  background: var(--canvas);
  border-bottom: 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(--ink);
  text-decoration: none;
}

/* HERO */
.hero-band {
  padding: 80px 0;
  background: var(--canvas);
}

.hero-band h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.4px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 20px;
}

.hero-band .hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 32px;
}

.hero-image-wrap {
  margin-top: 56px;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  max-height: 480px;
}

.hero-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* SECTION LABEL */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 600px;
  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: 20px;
}

.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-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 10px;
}

.article-card-excerpt {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  flex: 1;
  margin-bottom: 20px;
}

.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.15s, border-color 0.15s;
}

.article-card-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ARTICLE PAGE */
.article-header {
  padding: 64px 0 48px;
}

.article-header .article-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 46px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.15px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 20px;
}

.article-header .article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  align-items: center;
}

.article-featured-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin-bottom: 8px;
}

.article-image-caption {
  font-size: 13px;
  color: var(--muted);
  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-top: 48px;
  margin-bottom: 16px;
}

.article-content h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.7;
  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.7;
  color: var(--body);
  margin-bottom: 8px;
}

.article-content strong {
  color: var(--ink);
  font-weight: 600;
}

.article-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--primary);
}

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 32px 0;
}

.info-box p {
  margin-bottom: 0;
  font-size: 15px;
}

/* DATA TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
  background: var(--surface-card);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.data-table th {
  background: var(--canvas);
  color: var(--ink);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
  line-height: 1.5;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* RELATED ARTICLES */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.related-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px;
  transition: border-color 0.15s;
}

.related-card:hover {
  border-color: var(--hairline-strong);
}

.related-card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.related-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* INTRO BAND */
.intro-band {
  padding: 64px 0;
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.intro-band .intro-text {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  max-width: 760px;
  letter-spacing: 0.08px;
}

/* ABOUT PAGE */
.page-header {
  padding: 64px 0 48px;
}

.page-header h1 {
  font-size: 46px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.15px;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-header .page-sub {
  font-size: 18px;
  color: var(--body);
  max-width: 560px;
}

.page-content {
  max-width: 760px;
  padding-bottom: 80px;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 10px;
}

.page-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 20px;
}

.page-content ul, .page-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.page-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 8px;
}

.page-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CONTACT FORM */
.contact-section {
  padding: 80px 0;
  border-top: 1px solid var(--hairline);
}

.contact-form-wrap {
  max-width: 560px;
}

.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);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--semantic-error);
}

.form-error-msg {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.0;
  padding: 10px 18px;
  height: 40px;
  border: none;
  border-radius: var(--rounded-md);
  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-success {
  display: none;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin-top: 16px;
}

.form-success.visible {
  display: block;
}

.form-success p {
  font-size: 15px;
  color: var(--semantic-success);
  font-weight: 500;
}

/* 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 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  max-width: 220px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 14px;
  color: var(--muted);
}

.footer-disclaimer {
  font-size: 13px;
  color: var(--muted-soft);
  max-width: 560px;
  line-height: 1.5;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  max-width: 640px;
  width: calc(100% - 48px);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  z-index: 200;
  box-shadow: 0 4px 24px rgba(38, 37, 30, 0.18);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--canvas);
}

.cookie-text a {
  color: var(--canvas);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border: none;
  border-radius: var(--rounded-md);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-cookie-accept:hover {
  background: var(--primary-active);
}

.btn-cookie-reject {
  background: transparent;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--rounded-md);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
}

.btn-cookie-reject:hover {
  color: var(--canvas);
}

/* BADGE */
.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;
}

/* ABOUT IMAGE */
.about-image {
  width: 100%;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin-bottom: 32px;
  max-height: 360px;
  object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hero-band h1 {
    font-size: 46px;
    letter-spacing: -1.15px;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-band {
    padding: 56px 0;
  }

  .hero-band h1 {
    font-size: 36px;
    letter-spacing: -0.72px;
  }

  .hero-band .hero-sub {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
    letter-spacing: -0.56px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-header h1 {
    font-size: 32px;
    letter-spacing: -0.64px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero-band h1 {
    font-size: 30px;
    letter-spacing: -0.3px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap img {
    height: 240px;
  }
}
