/* version: 1.0.0 | build: 2026-09-18 | update: 2026-09-18
   Presentation-site additions on top of the official Craft theme
   (craft-*.css, copied unchanged from the framework's public/assets/css).
   Same single light presentation as the framework's landing page. */

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 50;
    padding: 0.5rem 1rem;
    border-radius: var(--craft-radius);
    background: var(--craft-slate-900);
    color: #fff;
    font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--craft-slate-200);
    box-shadow: var(--craft-shadow-sm);
}
.site-header-inner {
    max-width: var(--craft-container);
    margin: 0 auto;
    padding: 0 1rem;
    height: var(--craft-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--craft-brand-600);
    font-size: var(--craft-text-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: var(--craft-text-sm);
    font-weight: 600;
    color: var(--craft-slate-600);
}
.site-nav a:hover { color: var(--craft-brand-600); }
.nav-optional { display: none; }
.locale-switch {
    display: flex;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--craft-slate-200);
    font-family: var(--craft-font-mono);
    font-size: var(--craft-text-xs);
}
.locale-switch a { color: var(--craft-slate-500); }
html[lang="pt-BR"] .locale-switch a[lang="pt-BR"],
html[lang="en"] .locale-switch a[lang="en"],
html[lang="es"] .locale-switch a[lang="es"] { color: var(--craft-brand-600); font-weight: 700; }
.btn-github {
    padding: 0.5rem 1rem;
    border-radius: var(--craft-radius);
    background: var(--craft-brand-600);
    color: #fff !important;
    font-weight: 700;
    box-shadow: var(--craft-shadow-md);
}
.btn-github:hover { background: var(--craft-brand-700); }

@media (min-width: 1024px) {
    .site-header-inner { padding: 0 1.5rem; }
    .nav-optional { display: inline; }
}
@media (max-width: 480px) {
    .site-nav { gap: 0.75rem; }
    .locale-switch { padding-left: 0.75rem; }
    .btn-github { padding: 0.4rem 0.7rem; }
}

/* Workspace */
.workspace-grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}
.workspace-points { display: grid; gap: 1rem; }
.workspace-tree { max-width: none; }
.tree-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 1.25rem;
    margin: 0;
    padding: 1.25rem 1.5rem 1.5rem;
    list-style: none;
    font-family: var(--craft-font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
}
.tree-list li { display: contents; }
.tree-path { color: #d2a8ff; }
.tree-note { color: #8b949e; }
.tree-note::before { content: "# "; }
@media (min-width: 960px) {
    .workspace-grid { grid-template-columns: 1.1fr 1fr; }
}
@media (max-width: 520px) {
    .tree-list { grid-template-columns: 1fr; gap: 0 0; }
    .tree-note { margin-bottom: 0.5rem; }
}

/* Metrics */
.metric-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.metric-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.5rem;
    border-radius: var(--craft-radius-xl);
    border: 1px solid var(--craft-slate-200);
    background: #fff;
}
.metric-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--craft-brand-600);
    font-variant-numeric: tabular-nums;
}
.metric-label { color: var(--craft-slate-600); font-size: var(--craft-text-sm); }

/* Footer */
.site-footer {
    border-top: 1px solid var(--craft-slate-200);
    background: #fff;
    color: var(--craft-slate-500);
    font-size: var(--craft-text-sm);
}
.site-footer-inner {
    max-width: var(--craft-container);
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
}
.site-footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer-links a:hover { color: var(--craft-brand-600); }

/* 404 */
.not-found {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 1rem;
    text-align: center;
}
.not-found h1 { font-size: 2rem; font-weight: 800; }
.not-found p { color: var(--craft-slate-600); }

/* Four hero stats fit one row next to the code card; the translated labels
   are longer than the English ones the base gap was tuned for. */
@media (min-width: 1024px) {
    .hero-stats { gap: 1.1rem; }
}

/* Commands must stay readable in full: four columns left each card too narrow
   and every line grew its own scrollbar. Use a 2x2 grid on wide screens and
   wrap long commands (the clone URL) instead of scrolling them. */
@media (min-width: 768px) {
    .quickstart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.quickstart-step { min-width: 0; }
.terminal-line { align-items: flex-start; overflow: visible; }
.terminal-line code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    min-width: 0;
}
