/* BrandLab public site rules; every colour comes from the tokens in globals.css */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--background); color: var(--foreground); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; }
a:focus-visible, .button:focus-visible { outline: 1px solid var(--input); outline-offset: 2px; border-radius: var(--radius-control); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; border-radius: var(--radius-control); z-index: 10; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

.top { border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.top img { height: 24px; width: auto; display: block; }
.nav { display: flex; gap: 4px; }
.nav a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--muted-foreground); padding: 6px 10px; border-radius: var(--radius-control); transition: color 200ms var(--ease-spotlit), background 200ms var(--ease-spotlit); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--foreground); background: var(--secondary); }

.hero { padding-top: 72px; padding-bottom: 48px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted-foreground); background: var(--tint); border-radius: 5px; padding: 4px 8px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--info); }
.hero h1 { font-size: 34px; line-height: 1.05; letter-spacing: -0.032em; max-width: 18ch; margin: 20px 0 16px; }
@media (min-width: 768px) { .hero h1 { font-size: 56px; } }
.lead { font-size: 18px; color: var(--muted-foreground); max-width: 60ch; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--radius-control); font-size: 14px; font-weight: 500; text-decoration: none; transition: transform 200ms var(--ease-spotlit), background 200ms var(--ease-spotlit); }
.button.primary { background: var(--primary); color: var(--primary-foreground); }
.button.primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.button.secondary { background: var(--secondary); color: var(--foreground); }
.button:active { transform: translateY(1px); }

.section { padding-top: 32px; padding-bottom: 32px; }
.section > h2 { font-size: 24px; line-height: 30px; margin-bottom: 20px; }
.grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.card h3 { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
.card p { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.card ul { margin: 12px 0 0; padding-left: 18px; font-size: 14px; line-height: 22px; color: var(--muted-foreground); }

.doc { padding-top: 48px; padding-bottom: 32px; max-width: 760px; }
.doc h1 { font-size: 32px; line-height: 36px; margin-bottom: 8px; }
.doc .meta { font-size: 13px; color: var(--muted-foreground); margin: 0 0 32px; }
.doc h2 { font-size: 20px; line-height: 28px; margin: 40px 0 12px; }
.doc h3 { font-size: 16px; line-height: 24px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--doc-text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; margin: 16px 0; display: block; overflow-x: auto; }
.doc th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.doc th, .doc td { border-bottom: 1px solid var(--border); padding: 10px 12px 10px 0; vertical-align: top; }
.doc .note { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 20px; font-size: 15px; }
.doc .toc { font-size: 14px; columns: 2; column-gap: 24px; padding-left: 18px; }
@media (max-width: 640px) { .doc .toc { columns: 1; } }

.foot { border-top: 1px solid var(--border); margin-top: 48px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 32px; font-size: 13px; color: var(--muted-foreground); }
.foot nav { display: flex; gap: 16px; }
.foot a { color: var(--muted-foreground); }
.foot a:hover { color: var(--foreground); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
