1---
2import Yantra from "../../brand/Yantra.astro";
3
4interface Props {
5 size?: number;
6}
7const { size = 22 } = Astro.props;
8// The yantra reads best when sized roughly to the cap-height of the
9// accompanying wordmark — slightly larger than the old solid dot so the
10// inner triangle stays legible.
11const markSize = Math.round(size * 0.95);
12---
13
14<span class="alc-logo">
15 <Yantra class="alc-logo__mark" size={markSize} />
16 <span class="alc-logo__word" style={`font-size:${size}px;`}>Alchemy</span>
17</span>
18
19<style>
20 .alc-logo {
21 display: inline-flex;
22 align-items: center;
23 gap: 8px;
24 }
25 .alc-logo__mark {
26 display: inline-flex;
27 align-items: center;
28 }
29 .alc-logo__mark :global(svg) {
30 display: block;
31 }
32 .alc-logo__word {
33 font-family: var(--alc-font-serif);
34 font-style: italic;
35 font-weight: 500;
36 color: var(--alc-fg-1);
37 letter-spacing: -0.01em;
38 }
39</style>