:root {
    --preview-navy: #061b34;
    --preview-gold: #c8942d;
    --preview-paper: #f5f2eb;
    --preview-white: #fffefa;
    --preview-ink: #132238;
    --preview-body: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
    --preview-display: Baskerville, "Iowan Old Style", "Baskerville Old Face", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--preview-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.prototype-toolbar {
    position: relative;
    z-index: 1000;
    min-height: 42px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 5px max(16px, calc((100vw - 1380px) / 2));
    color: rgba(255, 255, 255, 0.82);
    background: #02101f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.prototype-toolbar__home { justify-self: start; }
.prototype-toolbar__designs,
.prototype-toolbar__languages { display: flex; align-items: center; gap: 4px; }
.prototype-toolbar__designs a { display: inline-flex; min-height: 30px; align-items: center; gap: 7px; padding: 0 10px; border-radius: 2px; }
.prototype-toolbar__designs a span { opacity: 0.7; }
.prototype-toolbar__designs a[aria-current="page"] { color: #08192d; background: #e3bd73; }
.prototype-toolbar__languages { justify-self: end; }
.prototype-toolbar__languages a { width: 35px; min-height: 34px; display: grid; place-items: center; align-content: center; gap: 0; border-radius: 3px; line-height: 1; }
.prototype-toolbar__languages a span { font-size: 0.9rem; }
.prototype-toolbar__languages a small { margin-top: 1px; font-size: 0.48rem; font-weight: 800; letter-spacing: 0.08em; }
.prototype-toolbar__languages a[aria-current="true"] { color: #08192d; background: #fffefa; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
    .prototype-toolbar { grid-template-columns: auto 1fr auto; gap: 8px; }
    .prototype-toolbar__designs { justify-content: center; }
    .prototype-toolbar__designs a span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
