// Shared SYNALITH brand atoms — re-rendered icon mark in SVG, color tokens, content copy.
// Loaded before all three direction artboards.

// Recreated icon mark from the brand asset: an isometric SL monogram built from
// three prismatic faces. We expose it as a function so each direction can tint it.
window.SynalithMark = function SynalithMark({ size = 80, primary = '#3FBFD0', secondary = '#1B7A86', accent = '#0E4951', stroke = 'none', style }) {
  // Isometric SL monogram — recreated as flat vector. Three tonal faces per letter
  // create the prism effect from the source artwork.
  return (
    <svg width={size} height={size} viewBox="0 0 120 120" style={style} aria-hidden="true">
      {/* S — left half, three faces */}
      {/* top face */}
      <path d="M22 38 L22 28 L60 12 L60 22 Z" fill={primary} />
      {/* front face — top bar */}
      <path d="M22 38 L60 22 L60 36 L36 46 L36 56 L60 46 L60 60 L22 76 L22 62 L46 52 L46 42 L22 52 Z" fill={secondary} />
      {/* right side highlight */}
      <path d="M60 22 L60 60 L56 62 L56 24 Z" fill={accent} />

      {/* L — right half, three faces */}
      {/* top face */}
      <path d="M64 22 L64 12 L98 28 L98 38 Z" fill={primary} />
      {/* front face */}
      <path d="M64 22 L98 38 L98 88 L82 96 L82 56 L64 48 Z" fill={secondary} />
      {/* foot */}
      <path d="M64 84 L64 96 L98 88 L98 76 Z" fill={primary} opacity="0.85" />
      {/* dark inner accent */}
      <path d="M64 22 L64 96 L60 94 L60 24 Z" fill={accent} />
      {stroke !== 'none' && (
        <g fill="none" stroke={stroke} strokeWidth="0.5" opacity="0.4">
          <path d="M22 38 L22 28 L60 12 L60 22 Z" />
          <path d="M64 22 L64 12 L98 28 L98 38 Z" />
        </g>
      )}
    </svg>
  );
};

// Site copy — shared across directions so we can swap typography/layout without
// re-writing content.
window.SYNALITH_COPY = {
  tagline: 'Worlds carved from intention.',
  taglineAlt: 'We make games with weight.',
  taglineCryptic: '// new constructs in motion',
  mission: 'Synalith is a new independent studio crafting unhurried, atmospheric games — the kind that ask you to slow down and inhabit them.',
  about: [
    'We are a small, newly-founded studio building games that prize atmosphere, restraint, and the quiet moments between mechanics.',
    'Our work sits at the intersection of narrative texture and worldcraft — places that feel weathered before you arrive, and remembered after you leave.',
    'We move slowly, on purpose. Synalith exists to make a small number of games very, very carefully.',
  ],
  pillars: [
    { n: '01', title: 'Craft over scale', body: 'Every surface considered. We would rather ship one game we believe in than three we are unsure about.' },
    { n: '02', title: 'Stories that linger', body: 'We build for the days after the credits — for moods that find you in traffic, in kitchens, on long walks.' },
    { n: '03', title: 'Play with intention', body: 'Mechanics are language. We treat every input as an authored sentence in the conversation between player and world.' },
  ],
  projects: [
    { id: '01', tag: 'Narrative · Atmospheric', state: 'In motion' },
    { id: '02', tag: 'Worldcraft · Experimental', state: 'In motion' },
    { id: '03', tag: 'Untitled · Cipher', state: 'Sketching' },
  ],
};

Object.assign(window, { SynalithMark: window.SynalithMark, SYNALITH_COPY: window.SYNALITH_COPY });
