@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede8e1;
  --hairline: #d3cec6;
  --hairline-soft: #e4dfd7;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --inverse-canvas: #000000;
  --inverse-ink: #ffffff;
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-xxl: 24px;
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 96px;
  --max-width: 1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top Nav */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 56px;
  display: flex;
  align-items: center;
}
.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.nav-links {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}
.btn-primary {
  background: var(--ink);
  color: var(--inverse-ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; text-decoration: none; }
.btn-secondary {
  background: var(--surface-1);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  cursor: pointer;
  display: inline-block;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--canvas); text-decoration: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}
.mobile-menu {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: var(--spacing-lg) var(--spacing-xl);
  flex-direction: column;
  gap: var(--spacing-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px;
  color: var(--ink-muted);
  padding: 6px 0;
}
.mobile-menu a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero {
  padding: var(--spacing-section) 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}
.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-md);
}
.hero h1 {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: -1.4px;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}
.hero-body {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.1px;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-xl);
}
.hero-image-card {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.hero-image-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* Section headings */
.section-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-sm);
}
.section-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}
.section-lead {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 640px;
  margin-bottom: var(--spacing-xxl);
}

/* Articles grid */
.articles-section {
  padding: var(--spacing-section) 0;
  border-top: 1px solid var(--hairline-soft);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}
.article-card {
  background: var(--surface-1);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--ink-subtle); }
.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card-body {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-xs);
}
.article-card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin-bottom: var(--spacing-sm);
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: var(--spacing-md);
}
.article-card-meta {
  font-size: 12px;
  color: var(--ink-tertiary);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Info section */
.info-section {
  padding: var(--spacing-section) 0;
  border-top: 1px solid var(--hairline-soft);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xxl);
}
.info-card {
  background: var(--surface-1);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  padding: var(--spacing-lg);
}
.info-card-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: var(--spacing-sm);
}
.info-card-text {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Contact form section */
.contact-section {
  padding: var(--spacing-section) 0;
  border-top: 1px solid var(--hairline-soft);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: start;
}
.contact-info-text {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}
.contact-refs {
  margin-top: var(--spacing-xl);
}
.contact-refs-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-subtle);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-refs a {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.contact-refs a:hover { color: var(--ink); }

.contact-form-card {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  border: 1px solid var(--hairline);
  padding: var(--spacing-xl);
}
.form-group { margin-bottom: var(--spacing-md); }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--spacing-xxs);
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-1);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  padding: 10px 14px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  outline: none;
  transition: border-color 0.15s;
  min-height: 44px;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink-subtle); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-submit-btn {
  width: 100%;
  background: var(--ink);
  color: var(--inverse-ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  min-height: 44px;
}
.form-submit-btn:hover { opacity: 0.85; }
.form-submit-btn:disabled { opacity: 0.5; cursor: default; }
.form-message {
  display: none;
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--rounded-md);
  font-size: 14px;
}
.form-message.success {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.form-message.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.form-loading { display: none; color: var(--ink-muted); font-size: 14px; margin-top: var(--spacing-sm); }

/* Footer */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px var(--spacing-xl);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
}
.footer-brand {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--spacing-sm);
}
.footer-tagline {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.5;
  max-width: 280px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 13px;
  color: var(--ink-subtle);
}
.footer-links a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom {
  max-width: var(--max-width);
  margin: var(--spacing-xl) auto 0;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}
.footer-copy {
  font-size: 12px;
  color: var(--ink-tertiary);
}
.footer-bottom-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}
.footer-bottom-links a {
  font-size: 12px;
  color: var(--ink-tertiary);
}
.footer-bottom-links a:hover { color: var(--ink-muted); text-decoration: none; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--spacing-xl) * 2);
  max-width: 720px;
  background: var(--inverse-canvas);
  color: var(--inverse-ink);
  border-radius: var(--rounded-xl);
  padding: var(--spacing-lg) var(--spacing-xl);
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  color: #cccccc;
}
.cookie-text a { color: #ffffff; text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}
.cookie-accept {
  background: var(--inverse-ink);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
}
.cookie-reject {
  background: transparent;
  color: #cccccc;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid #444444;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
}
.cookie-reject:hover { border-color: #888888; }

/* Article page */
.article-hero {
  padding: var(--spacing-xxl) 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.article-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}
.article-tag-lg {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-md);
}
.article-hero h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}
.article-hero-lead {
  font-size: 20px;
  color: var(--ink-muted);
  line-height: 1.4;
  letter-spacing: -0.2px;
  margin-bottom: var(--spacing-xl);
}
.article-meta {
  display: flex;
  gap: var(--spacing-lg);
  font-size: 13px;
  color: var(--ink-tertiary);
}
.article-img-card {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin: var(--spacing-xxl) auto;
  max-width: 800px;
}
.article-img-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.article-img-caption {
  font-size: 12px;
  color: var(--ink-tertiary);
  padding: var(--spacing-sm) var(--spacing-lg);
  text-align: center;
}

/* Article content */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl) var(--spacing-section);
}
.article-content h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: var(--spacing-xxl) 0 var(--spacing-md);
}
.article-content h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: var(--spacing-xl) 0 var(--spacing-sm);
}
.article-content p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: var(--spacing-md);
}
.article-content ul, .article-content ol {
  padding-left: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}
.article-content li {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: var(--spacing-xs);
}
.article-content a { color: var(--ink); text-decoration: underline; }
.article-content a:hover { color: var(--ink-muted); }
.info-box {
  background: var(--surface-2);
  border-left: 3px solid var(--hairline);
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}
.info-box p { margin-bottom: 0; font-size: 15px; color: var(--ink-muted); }
.info-box strong { color: var(--ink); }

/* Related articles */
.related-section {
  background: var(--canvas);
  border-top: 1px solid var(--hairline-soft);
  padding: var(--spacing-section) 0;
}

/* Page content (about, privacy, terms) */
.page-hero {
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  border-bottom: 1px solid var(--hairline-soft);
}
.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}
.page-hero h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}
.page-hero-lead {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xxl) var(--spacing-xl) var(--spacing-section);
}
.page-content h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: var(--spacing-xxl) 0 var(--spacing-md);
}
.page-content h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin: var(--spacing-xl) 0 var(--spacing-sm);
}
.page-content p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: var(--spacing-md);
}
.page-content ul, .page-content ol {
  padding-left: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}
.page-content li {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: var(--spacing-xs);
}
.page-content a { color: var(--ink); text-decoration: underline; }
.page-meta {
  font-size: 13px;
  color: var(--ink-tertiary);
  margin-bottom: var(--spacing-xl);
}

/* Disclaimer */
.disclaimer-bar {
  background: var(--surface-2);
  border-top: 1px solid var(--hairline);
  padding: var(--spacing-sm) 0;
  text-align: center;
}
.disclaimer-bar p {
  font-size: 12px;
  color: var(--ink-subtle);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* Responsive */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-nav .nav-links { display: none; }
  .top-nav .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .top-nav { position: relative; }

  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; letter-spacing: -0.8px; }
  .hero-body { font-size: 16px; }
  .hero-image-card { display: none; }

  .section-title { font-size: 28px; }
  .articles-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .article-hero h1 { font-size: 28px; }
  .article-hero-lead { font-size: 17px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cookie-banner { flex-direction: column; bottom: 0; border-radius: var(--rounded-xl) var(--rounded-xl) 0 0; width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--spacing-md); }
  .hero { padding: var(--spacing-xxl) 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
