/* Shared tools stylesheet (tools/shared/static/base.css)
   Tokens copied from docs/DESIGN.md -> storefront (light) set, since the tools are
   public-facing pages like /loja rather than the dark admin platform. Per-tool
   stylesheets live in tools/<slug>/static/style.css and should reuse these variables
   instead of introducing new literal colors. */

:root {
    /* Colors — docs/DESIGN.md storefront palette */
    --bg: oklch(98.4% 0.006 210);
    --surface: oklch(100% 0 0);
    --surface-soft: oklch(96.2% 0.01 210);
    --ink: oklch(20% 0.025 235);
    --muted: oklch(45% 0.026 230);
    --line: oklch(89% 0.017 220);
    --brand: oklch(44% 0.105 205);
    --brand-dark: oklch(32% 0.09 210);
    --brand-soft: oklch(94% 0.035 205);
    --accent: oklch(69% 0.18 52);

    /* Spacing — 4px base scale */
    --s2: 8px;
    --s3: 12px;
    --s4: 16px;
    --s5: 20px;
    --s6: 24px;
    --s8: 32px;
    --s10: 40px;

    /* Radii */
    --radius-card: 12px;
    --radius-control: 8px;

    /* Type */
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Manrope", var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
}

img, video { max-width: 100%; height: auto; }

a { color: var(--brand); }

/* --- Chrome --- */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: var(--s4) var(--s6);
}

.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem; /* DESIGN.md typography.display-md */
    color: var(--ink);
    text-decoration: none;
}

.brand span { color: var(--brand); }

.site-main {
    max-width: 880px;
    margin: 0 auto;
    padding: var(--s10) var(--s6);
}

.site-main h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 var(--s6);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: var(--s6);
    color: var(--muted);
    font-size: 0.875rem;
    text-align: center;
}

/* --- Index listing --- */

.tool-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--s4);
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.tool-card a {
    display: block;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: var(--s4);
    text-decoration: none;
    color: inherit;
}

.tool-card a:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.tool-card strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 4px;
}

.tool-card span { color: var(--muted); font-size: 0.875rem; }

.empty { color: var(--muted); }

/* --- Shared building blocks for individual tools --- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: var(--s6);
}

.button {
    display: inline-block;
    background: var(--brand);
    color: var(--surface);
    border: 0;
    border-radius: var(--radius-control);
    padding: var(--s3) var(--s5, 20px);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.button:hover { background: var(--brand-dark); }

.button-cta { background: var(--accent); color: var(--ink); }
