@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: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede9e3;
  --hairline: #d3cec6;
  --hairline-soft: #e3dfd8;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --accent: #ff5600;
  --inverse-canvas: #000000;
  --inverse-ink: #ffffff;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; 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: 56px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  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-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;
}

/* HERO */
.hero {
  padding: 80px 0 64px;
  background: var(--canvas);
}
.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 16px;
  letter-spacing: 0;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: -1.4px;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 600px;
  margin-bottom: 32px;
  letter-spacing: -0.1px;
}
.hero-meta {
  font-size: 13px;
  color: var(--ink-subtle);
}

/* HERO IMAGE CARD */
.hero-image-card {
  background: var(--surface-1);
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin-top: 48px;
}
.hero-image-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* SECTION */
.section { padding: 80px 0; }
.section-alt { background: var(--canvas); }

.section-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-lead {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 48px;
  letter-spacing: -0.1px;
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 24px;
}
.card-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 12px;
}
.card-body {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.card-link:hover { text-decoration: none; border-color: var(--ink); }

/* INFO CARDS */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.info-card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 32px;
}
.info-card-number {
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.info-card-label {
  font-size: 14px;
  color: var(--ink-muted);
}

/* TWO COLUMN */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col-text h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.two-col-text p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.two-col-image {
  background: var(--surface-1);
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.two-col-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* ARTICLE PAGE */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding: 64px 0;
}
.article-content h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -1.0px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.article-meta {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-hero-img {
  background: var(--surface-1);
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin-bottom: 40px;
}
.article-hero-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.article-body h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 40px 0 16px;
}
.article-body h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 28px 0 12px;
}
.article-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 16px;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-body li {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 6px;
}
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body blockquote {
  border-left: 3px solid var(--hairline);
  padding: 12px 20px;
  margin: 24px 0;
  color: var(--ink-muted);
  font-size: 17px;
  font-style: italic;
}

/* SIDEBAR */
.article-sidebar { position: sticky; top: 72px; }
.sidebar-card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 10px; }
.sidebar-links a {
  font-size: 14px;
  color: var(--ink-muted);
  transition: color 0.15s;
}
.sidebar-links a:hover { color: var(--ink); text-decoration: none; }
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 8px; }
.toc-list a {
  font-size: 13px;
  color: var(--ink-muted);
}
.toc-list a:hover { color: var(--ink); text-decoration: none; }

/* INFO BOX */
.info-box {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 24px;
  margin: 32px 0;
}
.info-box-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.info-box p {
  font-size: 14px !important;
  color: var(--ink-muted) !important;
  margin-bottom: 0 !important;
}
.info-box ul { padding-left: 18px; }
.info-box li { font-size: 14px !important; color: var(--ink-muted); }

/* CONTACT FORM */
.contact-section { padding: 80px 0; }
.form-card {
  background: var(--surface-1);
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  padding: 48px;
  max-width: 640px;
}
.form-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.form-desc {
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}
.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-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s;
  outline: none;
  min-height: 44px;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }
.form-group textarea { min-height: 100px; resize: vertical; }
.btn-primary {
  background: var(--ink);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity 0.15s;
  min-height: 40px;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.form-success {
  display: none;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--ink);
  margin-top: 16px;
  border: 1px solid var(--hairline);
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--hairline-soft);
  margin: 48px 0;
}

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-brand .footer-logo span { color: var(--accent); }
.footer-tagline {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.5;
  max-width: 240px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-col-links { list-style: none; }
.footer-col-links li { margin-bottom: 8px; }
.footer-col-links a {
  font-size: 13px;
  color: var(--ink-subtle);
  transition: color 0.15s;
}
.footer-col-links a:hover { color: var(--ink); text-decoration: none; }
.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-copy {
  font-size: 12px;
  color: var(--ink-tertiary);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 12px;
  color: var(--ink-tertiary);
}
.footer-legal a:hover { color: var(--ink-muted); text-decoration: none; }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--inverse-canvas);
  color: var(--inverse-ink);
  border-radius: var(--radius-xl);
  padding: 20px 28px;
  max-width: 540px;
  width: calc(100% - 48px);
  z-index: 1000;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
#cookie-banner.visible { display: block; }
.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.85);
}
.cookie-text a { color: #ffffff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.btn-cookie-accept {
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 36px;
}
.btn-cookie-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-family: inherit;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 36px;
}
.btn-cookie-reject:hover { color: #ffffff; border-color: rgba(255,255,255,0.5); }

/* PAGE HEADER */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 64px;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -1.0px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 560px;
}

/* PROSE PAGES */
.prose { max-width: 800px; }
.prose h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 40px 0 14px;
  color: var(--ink);
}
.prose h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 28px 0 10px;
}
.prose p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 16px;
}
.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.prose li {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 6px;
}
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .updated {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-bottom: 40px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}
.prose th {
  text-align: left;
  font-weight: 500;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-muted);
}
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-soft);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero h1 { letter-spacing: -0.8px; }
  .form-card { padding: 28px 20px; }
  .hero-image-card img { height: 240px; }
  .two-col-image img { height: 220px; }
  .article-hero-img img { height: 240px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .cookie-actions { flex-direction: column; }
}
