@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

: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;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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;
  line-height: 1.5;
  font-weight: 400;
}

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);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

.site-nav .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;
}

.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;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
  z-index: 99;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-mobile ul a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
}

/* HERO */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
}

/* 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;
  letter-spacing: -0.72px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 40px;
}

.section-title-sm {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 24px;
}

/* ARTICLE CARDS */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.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-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.article-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-tag {
  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;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.article-card-date {
  font-size: 13px;
  color: var(--muted-soft);
  margin-top: 12px;
}

/* ARTICLE PAGE */
.article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
  max-width: 760px;
}

.article-header h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}

.article-header .article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-cover {
  margin: 40px 0;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.article-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-cover figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  border-top: 1px solid var(--hairline-soft);
}

.article-body {
  max-width: 760px;
  padding: 0 0 80px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 48px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 8px;
}

.article-body a {
  color: var(--primary);
  border-bottom: 1px solid transparent;
}

.article-body a:hover {
  border-bottom-color: var(--primary);
}

.article-body blockquote {
  border-left: 3px solid var(--hairline-strong);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--canvas-soft);
  border-radius: 0 var(--rounded-sm) var(--rounded-sm) 0;
}

.article-body blockquote p {
  color: var(--ink);
  font-style: italic;
  margin-bottom: 0;
}

.tip-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  margin: 24px 0;
}

.tip-box-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.tip-box p {
  color: var(--body);
  margin-bottom: 0;
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
}

/* PAGE (about/privacy/terms) */
.page-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
}

.page-body {
  max-width: 760px;
  padding: 48px 0 80px;
}

.page-body h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin: 40px 0 14px;
}

.page-body p, .page-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 16px;
}

.page-body ul {
  padding-left: 24px;
}

.page-body ul li {
  margin-bottom: 8px;
}

/* CONTACT FORM */
.contact-section {
  padding: 80px 0;
  border-top: 1px solid var(--hairline);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  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: 16px;
  line-height: 1.6;
  color: var(--body);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.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;
  height: 44px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s;
}

.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.error,
.form-group textarea.error {
  border-color: var(--semantic-error);
}

.form-error-msg {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 4px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  height: 40px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  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-lg);
  padding: 20px 24px;
  font-size: 16px;
  color: var(--semantic-success);
}

/* 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: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h4 {
  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;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--body);
}

.footer-col a:hover {
  color: var(--ink);
}

.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-bottom p {
  font-size: 13px;
  color: var(--muted-soft);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--muted-soft);
}

.footer-bottom-links 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;
  z-index: 1000;
  display: none;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-inner p a {
  color: var(--canvas);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  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: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(247,247,244,0.35);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb span {
  margin: 0 6px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.8px;
  }
  .section-title {
    font-size: 28px;
  }
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-header h1 {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 48px 0;
  }
  .section {
    padding: 48px 0;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
