// Uses the actual RIVERENCE logo asset (mark) + typographic wordmark
function RiverenceLogo({ size = 40, wordColor = "#3a3a3a", vertical = false, markOnly = false }) {
  const markSize = size;
  const mark = (
    <img src="assets/logo.png"
      alt="RIVERENCE"
      style={{
        width: markSize, height: markSize,
        objectFit: "contain",
      }}
    />
  );
  if (markOnly) return mark;
  if (vertical) {
    return (
      <div style={{ display: "inline-flex", flexDirection: "column", alignItems: "center", gap: 10 }}>
        {mark}
        <span style={{
          fontFamily: "'Cormorant Garamond', 'Noto Serif JP', serif",
          fontWeight: 400,
          fontSize: size * 0.44,
          letterSpacing: "0.24em",
          color: wordColor,
          paddingLeft: "0.24em",
        }}>
          RIVERENCE
        </span>
      </div>
    );
  }
  return (
    <div style={{ display: "inline-flex", alignItems: "center", gap: 10 }}>
      {mark}
      <span style={{
        fontFamily: "'Cormorant Garamond', 'Noto Serif JP', serif",
        fontWeight: 400,
        fontSize: size * 0.48,
        letterSpacing: "0.24em",
        color: wordColor,
        paddingLeft: "0.08em",
      }}>
        RIVERENCE
      </span>
    </div>
  );
}

// Legacy mark component kept for footer accent usage
function RiverenceMark({ size = 40 }) {
  return (
    <img src="assets/logo.png" alt="RIVERENCE"
      style={{ width: size, height: size, objectFit: "contain" }} />
  );
}

Object.assign(window, { RiverenceMark, RiverenceLogo });
