@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;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --ink: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --success: #1f8a65;
  --error: #cf2d56;
  --font: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--body);
  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;
}

.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.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);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.active { 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: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* 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);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -1.3px;
  max-width: 760px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.55;
  margin-bottom: 40px;
}

.hero-image-wrap {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  max-height: 440px;
}

.hero-image-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

/* BADGE LABEL */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section-narrow { max-width: 720px; }

.section-head {
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
}

/* ARTICLE CARDS */
.articles-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(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

.article-card:hover { border-color: var(--hairline-strong); }

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 20px 24px 24px;
}

.article-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.article-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 8px;
}

.article-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 16px;
}

.article-card-meta {
  font-size: 13px;
  color: var(--muted);
}

.read-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.read-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* FEATURE GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-item {
  background: var(--surface-card);
  padding: 28px 24px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: var(--ink);
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
}

/* ARTICLE PAGE */
.article-page { padding: 64px 0 80px; }

.article-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 40px;
}

.article-hero-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.84px;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 760px;
}

.article-meta {
  font-size: 14px;
  color: var(--muted);
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  line-height: 1.25;
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px 20px;
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
}

.article-body li { margin-bottom: 8px; }

.article-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  transition: color 0.15s, border-color 0.15s;
}

.article-body a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.article-callout {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
}

.article-sources {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.article-sources h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.article-sources ul {
  list-style: none;
  margin: 0;
}

.article-sources li {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.article-sources a {
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}

.article-sources a:hover { color: var(--ink); }

/* RELATED ARTICLES */
.related-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.related-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color 0.15s;
}

.related-card:hover { border-color: var(--hairline-strong); }

.related-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 6px;
}

.related-card p {
  font-size: 13px;
  color: var(--muted);
}

/* TWO-COL LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.two-col-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.two-col-text h2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.64px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.two-col-text p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* CONTACT FORM */
.contact-form {
  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(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.btn-submit {
  background: var(--ink);
  color: var(--canvas);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-submit:hover { background: var(--primary); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--success);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--body);
}

.form-message.visible { display: block; }

/* PAGE HERO */
.page-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.84px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 18px;
  color: var(--body);
  max-width: 560px;
}

/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
}

.about-body h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  margin: 32px 0 12px;
}

.about-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 16px;
}

.about-sidebar {
  padding-top: 4px;
}

.about-sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.about-sidebar-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.about-sidebar-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
}

/* PRIVACY / TERMS */
.policy-body {
  max-width: 720px;
  padding: 48px 0 80px;
}

.policy-body h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 12px;
}

.policy-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 16px;
}

.policy-body ul {
  margin: 0 0 16px 20px;
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
}

.policy-body li { margin-bottom: 6px; }

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-top: 10px;
  max-width: 260px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

.footer-col 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);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 640px;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 1000;
  box-shadow: none;
}

.cookie-banner.hidden { display: none; }

.cookie-text {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--ink);
  color: var(--canvas);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-cookie-accept:hover { background: var(--primary); }

.btn-cookie-reject {
  background: transparent;
  color: var(--body);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.15s;
}

.btn-cookie-reject:hover { border-color: var(--ink); color: var(--ink); }

/* INLINE DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* BREADCRUMB */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 6px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; letter-spacing: -0.72px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 20px 24px;
    gap: 20px;
  }
  .articles-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .related-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: flex-start; bottom: 16px; }
  .article-header h1 { font-size: 30px; }
  .page-hero h1 { font-size: 30px; }
  .section-head h2 { font-size: 26px; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0; }
  .section { padding: 56px 0; }
  .hero-image-wrap img { height: 240px; }
}
