:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --primary: #f54e00;
  --primary-active: #d04200;
  --ink: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --success: #1f8a65;
  --error: #cf2d56;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: Inter, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.15px;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 400;
  margin: 0 0 16px;
}

h1 { font-size: 56px; line-height: 1.1; letter-spacing: -1.8px; }
h2 { font-size: 36px; line-height: 1.2; letter-spacing: -0.72px; }
h3 { font-size: 26px; line-height: 1.25; letter-spacing: -0.325px; }
h4 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }

p { margin: 0 0 16px; }

code, .mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
}

.badge {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 4px 10px;
}

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.brand .dot { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 18px;
  height: 40px;
}
.btn-primary:hover { background: var(--primary-active); text-decoration: none; }

.btn-secondary {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  padding: 10px 18px;
  height: 40px;
}
.btn-secondary:hover { text-decoration: none; }

.btn-ink {
  background: var(--ink);
  color: var(--canvas);
  padding: 12px 20px;
  height: 44px;
}
.btn-ink:hover { text-decoration: none; opacity: .92; }

.hero {
  padding: 80px 0 56px;
}
.hero .label { margin-bottom: 16px; display: block; }
.hero h1 { max-width: 14ch; }
.hero p.lead {
  font-size: 18px;
  max-width: 60ch;
  margin-bottom: 24px;
}
.hero-figure {
  margin-top: 48px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-card);
}
.hero-figure img { width: 100%; height: 420px; object-fit: cover; }
figure { margin: 0; }
figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 16px;
  border-top: 1px solid var(--hairline-soft);
}

.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
}
.card h3 { font-size: 22px; letter-spacing: -0.11px; }
.card .label { margin-bottom: 12px; display: block; }

.card-media {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media img { width: 100%; height: 200px; object-fit: cover; }
.card-media .card-body { padding: 24px; }
.card-media h3 { font-size: 22px; letter-spacing: -0.11px; margin-bottom: 8px; }
.card-media p { color: var(--body); }
.card-media .read {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-top: auto;
}

.method-list { list-style: none; margin: 0; padding: 0; }
.method-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.method-list li:last-child { border-bottom: 0; }
.method-list .step {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--muted);
  min-width: 28px;
}

.callout {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0;
}

.article-body { max-width: 70ch; }
.article-body h2 { margin-top: 48px; }
.article-body h3 { margin-top: 32px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 16px; }
.article-body li { margin-bottom: 8px; }
.article-figure {
  margin: 32px 0;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-card);
}
.article-figure img { width: 100%; max-height: 440px; object-fit: cover; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 24px 0 0;
}
.breadcrumb a { color: var(--muted); }

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
table.data th, table.data td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}
table.data th { color: var(--ink); font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }

.form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 32px;
  max-width: 560px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 12px 16px;
  height: 44px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.field input:focus {
  outline: none;
  border-color: var(--primary);
}
.field input:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}
.form-status {
  display: none;
  font-size: 15px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
}
.form-status.success {
  display: block;
  background: rgba(31,138,101,.1);
  color: var(--success);
}
.btn[disabled] { opacity: .6; cursor: progress; }

.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer h4 { font-size: 13px; letter-spacing: 0.4px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { font-size: 14px; color: var(--body); }
.footer .brand { margin-bottom: 12px; }
.footer .desc { font-size: 14px; color: var(--muted); max-width: 38ch; }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.disclaimer {
  font-size: 13px;
  color: var(--muted);
  max-width: 80ch;
  margin-top: 16px;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 20px 24px;
  display: none;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: 14px; color: var(--body); max-width: 70ch; }
.cookie-actions { display: flex; gap: 12px; }

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 44px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); }
  h1, .hero h1 { font-size: 32px; letter-spacing: -1px; }
  h2 { font-size: 28px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-figure img { height: 240px; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}
