@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;
  --ink: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--canvas);
  color: var(--body);
  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%; height: auto; display: block; }
ul, ol { 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);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.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;
  gap: 32px;
  align-items: center;
}

.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;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 16px 24px;
  gap: 16px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

/* HERO */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  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;
  font-weight: 400;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-border { border-top: 1px solid var(--hairline); }

.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;
  color: var(--ink);
  letter-spacing: -0.72px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 40px;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.card:hover { border-color: var(--hairline-strong); }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body { padding: 24px; }

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-meta {
  font-size: 13px;
  color: var(--muted);
}

.card-link {
  display: block;
}

/* ARTICLE LIST */
.articles-list { display: flex; flex-direction: column; gap: 0; }

.article-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}

.article-row:first-child { border-top: 1px solid var(--hairline); }

.article-row-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.article-row-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-row-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.11px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.article-row-excerpt {
  font-size: 15px;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 12px;
}

.article-row-meta { font-size: 13px; color: var(--muted); }

/* ARTICLE PAGE */
.article-hero { padding: 60px 0 48px; border-bottom: 1px solid var(--hairline); }

.article-hero-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.article-hero h1 {
  font-size: 44px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1.15;
  max-width: 820px;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-meta span { display: flex; align-items: center; gap: 6px; }

.article-content {
  max-width: 720px;
  padding: 48px 0;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  line-height: 1.25;
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin: 28px 0 12px;
}

.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
  list-style: disc;
}

.article-content ol { list-style: decimal; }

.article-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}

.article-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
}

.article-content a:hover { text-decoration-color: var(--ink); }

.article-img-full {
  width: 100%;
  border-radius: 8px;
  margin: 32px 0;
}

.article-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: -20px;
  margin-bottom: 32px;
}

.article-sidebar { padding-top: 48px; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-links { display: flex; flex-direction: column; gap: 12px; }

.sidebar-link {
  font-size: 14px;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
  padding-bottom: 12px;
  transition: color 0.15s;
}

.sidebar-link:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-link:hover { color: var(--ink); }

/* INFOBOX */
.infobox {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.infobox p {
  font-size: 15px;
  color: var(--body);
  margin: 0;
}

/* DATA TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }

/* FORM */
.contact-section { padding: 80px 0; border-top: 1px solid var(--hairline); }

.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);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  height: 44px;
}

.form-group textarea {
  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);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: border-color 0.15s;
  font-family: inherit;
}

.btn-secondary:hover { border-color: var(--ink); }

.form-msg {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
}

.form-msg.success {
  background: #edf7f3;
  color: var(--success);
  border: 1px solid #b6dece;
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  z-index: 999;
  display: none;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-text {
  font-size: 14px;
  color: #c8c7c0;
  flex: 1;
  min-width: 240px;
}

.cookie-text a { color: #fff; text-decoration: underline; }

.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.cookie-reject {
  background: transparent;
  color: #c8c7c0;
  border: 1px solid #5a5852;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

/* 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-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-brand-name span { color: var(--primary); }

.footer-brand-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
  max-width: 280px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col-links { display: flex; flex-direction: column; gap: 10px; }

.footer-col-links a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

.footer-col-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-bottom-text { font-size: 13px; color: var(--muted); }

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-bottom-links a:hover { color: var(--ink); }

/* ABOUT/STATIC PAGES */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 17px;
  color: var(--body);
  max-width: 600px;
  line-height: 1.55;
}

.page-content { max-width: 760px; padding: 48px 0 80px; }

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  margin: 40px 0 14px;
}

.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.65;
  margin-bottom: 18px;
}

.page-content ul {
  margin: 0 0 18px 24px;
  list-style: disc;
}

.page-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 6px;
}

.page-updated {
  font-size: 13px;
  color: var(--muted);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--hairline-strong); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { padding-top: 0; border-top: 1px solid var(--hairline); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; letter-spacing: -0.9px; }
  .section-title { font-size: 28px; }
  .article-hero h1 { font-size: 30px; }
  .page-hero h1 { font-size: 32px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .article-row { grid-template-columns: 1fr; }
  .article-row-img { height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 30px; }
}
